Toggle navigation
This project
Loading...
Sign in
xt
/
xcx-book
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
b5e1798a5ca6994f4ccd4c7949038e34f054d395
Authored by
vking
2020-07-09 11:16:27 +0800
1 parent
88b63ce8
build: skipped
预定本已买单
Changes
5
Builds
0
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
4 deletions
pack-book/components/book/board/board.wxss
pack-book/components/book/list/list.wxml
pack-book/components/book/list/list.wxss
pack-book/pages/book/b_setting.js
project.config.json
pack-book/components/book/board/board.wxss
View file @
b5e1798
...
...
@@ -68,6 +68,10 @@
background-color: #E95750;
border: 2rpx solid #E95750;
}
.board.highlight-yellow .status,.board.disabled-highlight-yellow .status{
background-color: #F59A23;
border: 2rpx solid #F59A23;
}
.board.disabled,.board.disabled-highlight {
background-color: #E0E0E0;
...
...
pack-book/components/book/list/list.wxml
View file @
b5e1798
...
...
@@ -29,4 +29,5 @@
</view>
</view>
</formids>
<view class="checkout" wx:if="{{vitem.order_info.status==3}}">已买单</view>
</view>
...
...
pack-book/components/book/list/list.wxss
View file @
b5e1798
...
...
@@ -5,6 +5,7 @@
padding:0 40rpx;
box-sizing:border-box;
border-bottom: 2rpx solid #F1F0F4;
position: relative;
}
.book-list-td{
width:25%;
...
...
@@ -19,4 +20,20 @@
}
.reserve-status-4 .green-font,.reserve-status-3 .green-font,.reserve-status-6 .green-font{
color:#999999;
}
.checkout{
position: absolute;
left: 0;
top:0;
width:104rpx;
height:38rpx;
background:rgba(245,154,35,1);
border-radius:0rpx 0rpx 10rpx 0rpx;
font-size:24rpx;
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(255,255,255,1);
line-height:38rpx;
text-align: center;
}
\ No newline at end of file
...
...
pack-book/pages/book/b_setting.js
View file @
b5e1798
...
...
@@ -169,6 +169,10 @@ Page({
id
:
r
.
id
,
status
:
r
.
status
,
rname
:
rname
,
checkout
:{}
}
if
(
r
.
order_info
){
tids
[
tid
].
checkout
.
status
=
r
.
order_info
.
status
}
})
})
...
...
@@ -193,10 +197,14 @@ Page({
tb
.
status_classname
=
'highlight'
;
tb
.
reserve_id
=
tids
[
tb
.
id
].
id
;
tb
.
reserve_name
=
tids
[
tb
.
id
].
rname
;
if
(
tids
[
tb
.
id
].
checkout
.
status
==
3
){
//已买单
tb
.
status_str
=
'已买单'
;
tb
.
status_classname
=
'highlight-yellow'
;
}
}
if
(
tb
.
enable
!=
1
){
if
(
tb
.
status_str
){
tb
.
status_classname
=
'disabled-
highlight'
;
tb
.
status_classname
=
'disabled-
'
+
tb
.
status_classname
;
}
else
{
tb
.
status_str
=
'已停用'
;
tb
.
status_classname
=
'disabled'
;
...
...
project.config.json
View file @
b5e1798
{
"description"
:
"项目配置文件。"
,
"setting"
:
{
"urlCheck"
:
tru
e
,
"urlCheck"
:
fals
e
,
"es6"
:
true
,
"enhance"
:
true
,
"postcss"
:
true
,
"preloadBackgroundData"
:
false
,
"minified"
:
true
,
"newFeature"
:
true
,
"coverView"
:
true
,
"nodeModules"
:
true
,
"autoAudits"
:
false
,
"showShadowRootInWxmlPanel"
:
true
,
"scopeDataCheck"
:
tru
e
,
"scopeDataCheck"
:
fals
e
,
"uglifyFileName"
:
false
,
"checkInvalidKey"
:
true
,
"checkSiteMap"
:
true
,
...
...
@@ -21,7 +22,11 @@
"disablePlugins"
:
[],
"outputPath"
:
""
},
"preloadBackgroundData"
:
false
"useIsolateContext"
:
true
,
"useCompilerModule"
:
true
,
"userConfirmedUseCompilerModuleSwitch"
:
false
,
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[]
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.10.1"
,
...
...
Please
register
or
login
to post a comment