Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 25f2b964
authored
May 08, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
预约日历
1 parent
7332e541
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
tabDate/pages/apprManage/apprManage.js
tabDate/pages/apprManage/apprManage.wxml
tabDate/pages/apprManage/apprManage.wxss
tabDate/pages/apprManage/apprManage.js
View file @
25f2b96
...
...
@@ -43,7 +43,6 @@ Page({
data
.
forEach
(
item
=>
{
item
.
remainNum
=
item
.
maxCount
-
(
item
.
invitedCount
||
0
)
item
.
isInvite
=
new
Date
()
<
new
Date
(
item
.
inviteDate
+
' '
+
item
.
endTime
)
console
.
log
(
item
,
'???'
)
})
// toShopStatus - 到店状态(1:未到店,2:已到店,3:超时未到店)
this
.
setData
({
...
...
tabDate/pages/apprManage/apprManage.wxml
View file @
25f2b96
...
...
@@ -12,7 +12,7 @@
<view class="bar-point grey"></view>
<view>客户订单已施工</view>
</view>
<scroll-view scroll-y enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="search" class="list" style="height:calc(100vh - {{navBarHeight + 104}}px);" refresher-threshold="104" refresher-triggered="{{triggered}}">
<scroll-view scroll-y enable-back-to-top bindrefresherrefresh="search" class="list" style="height:calc(100vh - {{navBarHeight + 104}}px);" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="card-box" wx:for="{{list}}" wx:key="index">
<view class="card-head">
<view>{{item.startTime}}-{{item.endTime}}</view>
...
...
@@ -25,7 +25,7 @@
</view>
<view class="content-box">
<view class="content" wx:for="{{item.list}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" bindtap="jump" data-name="detail" data-item="{{subItem}}">
<view>
<view
class="content-item"
>
<view class="flex card-name">
<!-- toShopStatus - 到店状态(1:未到店,2:已到店,3:超时未到店) -->
<view class="bar-point card-point {{subItem.toShopStatus == 2 ? 'grey' : ''}} {{subItem.toShopStatus == 3 ? 'orange' : ''}}"></view>
...
...
@@ -34,15 +34,17 @@
<view wx:if="{{subItem.carSeriesName}}" class="text-hide card-car">{{subItem.carSeriesName}}</view>
</view>
</view>
<view wx:if="{{item.remainNum > 0 && item.isInvite}}" class="content appr-btn" bindtap="handleInvite" data-item="{{item}}">+预约</view>
</view>
<view wx:if="{{item.maxCount <= 0 && item.isInvite}}" class="card-tip">请联系管理员开通预约工位</view>
<view wx:elif="{{item.invitedCount == 0 && !item.isInvite}}" class="card-tip">过去的时间不可预约</view>
<view wx:elif="{{item.remainNum > 0}}">
<view wx:if="{{item.isInvite}}" class="content appr-btn" bindtap="handleInvite" data-item="{{item}}">+预约</view>
<view wx:if="{{!item.isInvite}}" class="card-tip">本轮时段不可预约</view>
<view wx:if="{{!item.list.length}}">
<view wx:if="{{item.maxCount <= 0 && item.isInvite}}" class="card-tip">请联系管理员开通预约工位</view>
<view wx:elif="{{item.invitedCount == 0 && !item.isInvite}}" class="card-tip">过去的时间不可预约</view>
<view wx:elif="{{item.remainNum > 0}}">
<view wx:if="{{!item.isInvite}}" class="card-tip">本轮时段不可预约</view>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
<customerInfo show="{{customerInfoBox}}" bindconfirm="chooseCustomerInfo" />
\ No newline at end of file
<customerInfo wx:if="{{customerInfoBox}}" show="{{customerInfoBox}}" bindconfirm="chooseCustomerInfo" />
\ No newline at end of file
tabDate/pages/apprManage/apprManage.wxss
View file @
25f2b96
...
...
@@ -38,12 +38,20 @@
margin: 0 8rpx 0 0;
}
.content-item {
width: 100%;
}
.card-name {
text-align: center;
font-size: 24rpx;
color: #333333;
}
.card-car {
text-align: center;
width: calc(100% - 20rpx);
margin: 0 10rpx;
font-size: 20rpx;
color: #666666;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment