|
@@ -58,7 +58,18 @@
|
|
|
<view class="plus-amount">{{ increaseSumPrice }}</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
+ <view class="appoint-server"
|
|
|
+ v-if="showLastServiceBtn" @tap="chooseLastOrder">
|
|
|
+ <view class="server-tip" >优先匹配上一单的服务者</view>
|
|
|
+
|
|
|
+ <image mode="aspectFit"
|
|
|
+ src="https://mall.zhaijieshi.cc/file/wx-huawang/dian2.png" class="radio-img" v-if="isPreOrder"
|
|
|
+ ></image>
|
|
|
+
|
|
|
+ <image mode="aspectFit"
|
|
|
+ src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png" v-else
|
|
|
+ class="radio-img" ></image>
|
|
|
+ </view>
|
|
|
<!-- 预约时间 -->
|
|
|
<view class="appoint-time-block" v-if="goodsType != 6 && goodsType != 4 && (isNeedAppoint || couponId == 24)">
|
|
|
<view class="appoint-time-operate" @tap="showAppoint">
|
|
@@ -310,7 +321,13 @@
|
|
|
<view class="time-select-bottom" v-if="selectweek!==''&weekday!==''&selecttime!==''">
|
|
|
<span>当前选择:</span>
|
|
|
{{selectweek}}
|
|
|
- <span style="display: inline-block;width: 4rpx;height:20rpx;background-color: #D77958;"></span>
|
|
|
+ <span style=" display: inline-block;
|
|
|
+ width: 2px;
|
|
|
+ height: 10px;
|
|
|
+ background-color: #d77958;
|
|
|
+ position: relative;
|
|
|
+ top: 1px;
|
|
|
+ margin: 0 5px;"></span>
|
|
|
{{weekday}}({{selecttime}})
|
|
|
</view>
|
|
|
</view>
|
|
@@ -321,13 +338,15 @@
|
|
|
<block v-if="popupType == 3">
|
|
|
<view class="popup-content">
|
|
|
<view class="first-appoint-date-list">
|
|
|
- <view class="first-appoint-date-item" @tap="firstDateCheck" :data-index="index"
|
|
|
+ <view class="first-appoint-date-item" @tap="firstDateCheck" :data-index="index" :data-firstdate="item.date" :data-firstweek="item.week"
|
|
|
v-for="(item, index) in firstAppointList" :key="index">
|
|
|
<view :class="firstDateIndex == index ? 'current-date' : ''">
|
|
|
{{ item.date + ' ' + item.week }}
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- <view v-if="firstDateIndex == index" class="first-time-selected date-tag">已选</view> -->
|
|
|
+ </view>
|
|
|
+ <view class="time-select-bottom2" v-if="firstdate!==''&firstweek!==''&selecttime!==''">
|
|
|
+ <span>当前选择:</span>
|
|
|
+ {{firstdate}}({{firstweek}}){{selecttime}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -578,8 +597,12 @@
|
|
|
appType: 0,
|
|
|
couponName: '',
|
|
|
selectweek: '两周1次',
|
|
|
- weekday: '',
|
|
|
- selecttime: ''
|
|
|
+ weekday: '周一',
|
|
|
+ selecttime: '',
|
|
|
+ showLastServiceBtn:false,
|
|
|
+ isPreOrder:false,
|
|
|
+ firstweek:'',
|
|
|
+ firstdate:''
|
|
|
};
|
|
|
},
|
|
|
onReady: function() {
|
|
@@ -781,7 +804,8 @@
|
|
|
goodsType: res.data.goodsType,
|
|
|
increaseSumPrice: res.data.increaseSumPrice,
|
|
|
serviceDuration: res.data.serviceDuration,
|
|
|
- couponName: res.data.couponName
|
|
|
+ couponName: res.data.couponName,
|
|
|
+ showLastServiceBtn:res.data.showLastServiceBtn
|
|
|
});
|
|
|
let serviceDuration = res.data.checkedGoodsList[0].product.serviceDuration;
|
|
|
if (that.popupType == 2) {
|
|
@@ -1046,7 +1070,8 @@
|
|
|
lng: this.checkedAddress.lng,
|
|
|
lat: this.checkedAddress.lat,
|
|
|
shopId: this.checkedAddress.shopId,
|
|
|
- goodId: this.checkedGoodsList[0].goodsId
|
|
|
+ goodId: this.checkedGoodsList[0].goodsId,
|
|
|
+ isPreOrder:this.isPreOrder
|
|
|
};
|
|
|
console.log(params);
|
|
|
this.orderPay(params);
|
|
@@ -1070,7 +1095,8 @@
|
|
|
lng: this.checkedAddress.lng,
|
|
|
lat: this.checkedAddress.lat,
|
|
|
shopId: this.checkedAddress.shopId,
|
|
|
- goodId: this.checkedGoodsList[0].goodsId
|
|
|
+ goodId: this.checkedGoodsList[0].goodsId,
|
|
|
+ isPreOrder:this.isPreOrder
|
|
|
};
|
|
|
console.log(params);
|
|
|
this.orderPay(params);
|
|
@@ -1102,7 +1128,8 @@
|
|
|
orderDate: orderData,
|
|
|
requireOrder: this.requireOrder,
|
|
|
traceId: this.traceId, //视频号
|
|
|
- createOrderType: this.appType
|
|
|
+ createOrderType: this.appType,
|
|
|
+
|
|
|
};
|
|
|
|
|
|
if (this.codeShow && !this.isNoMatch) {
|
|
@@ -1621,8 +1648,13 @@
|
|
|
|
|
|
firstDateCheck(e) {
|
|
|
let index = e.currentTarget.dataset.index;
|
|
|
+ let firstdate = e.currentTarget.dataset.firstdate;
|
|
|
+ let firstweek = e.currentTarget.dataset.firstweek;
|
|
|
+ console.log("firstweek",firstweek+firstdate);
|
|
|
this.setData({
|
|
|
- firstDateIndex: index
|
|
|
+ firstDateIndex: index,
|
|
|
+ firstdate:firstdate,
|
|
|
+ firstweek:firstweek
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -1951,7 +1983,9 @@
|
|
|
let params = {
|
|
|
days: 30,
|
|
|
productId: this.checkedGoodsList[0].productId,
|
|
|
- serviceDuration: this.serviceDuration
|
|
|
+ serviceDuration: this.serviceDuration,
|
|
|
+ isPreOrder:this.isPreOrder,
|
|
|
+ addressId:this.checkedAddress.id
|
|
|
};
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
@@ -1998,6 +2032,13 @@
|
|
|
timeIndex: ''
|
|
|
});
|
|
|
});
|
|
|
+ },
|
|
|
+ //优先选择上一单服务者
|
|
|
+ chooseLastOrder(){
|
|
|
+ this.setData({
|
|
|
+ isPreOrder:!this.isPreOrder
|
|
|
+ })
|
|
|
+ console.log("isProOrder",this.isPreOrder);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -2949,6 +2990,29 @@
|
|
|
color: #ABABAB;
|
|
|
font-family: AlibabaPuHuiTi_2_85_Bold;
|
|
|
}
|
|
|
+
|
|
|
+ .appoint-server{
|
|
|
+ border-radius: 18rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ height: 80rpx;
|
|
|
+ line-height: 80rpx;
|
|
|
+ padding: 0 24rpx;
|
|
|
+ color: #999;
|
|
|
+ display: flex;
|
|
|
+ margin-top: 28rpx;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .appoint-server .server-tip{
|
|
|
+ color: #999;
|
|
|
+ font-size: 26rpx;
|
|
|
+ flex: 1;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+ .appoint-server .radio-img{
|
|
|
+ width: 26rpx;
|
|
|
+ height: 26rpx;
|
|
|
+ }
|
|
|
|
|
|
/* 时间弹窗相关 */
|
|
|
.week-select-left {
|
|
@@ -3009,11 +3073,12 @@
|
|
|
background-color: #feebd7;
|
|
|
height: 54rpx;
|
|
|
font-size: 22rpx !important;
|
|
|
- /* color: #00b4fe !important; */
|
|
|
+ color: #d77958 !important;
|
|
|
line-height: 54rpx;
|
|
|
padding-left: 30rpx;
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
+ letter-spacing: 2rpx;
|
|
|
}
|
|
|
|
|
|
.time-select-bottom1 {
|
|
@@ -3021,12 +3086,23 @@
|
|
|
background-color: #feebd7;
|
|
|
height: 54rpx;
|
|
|
font-size: 22rpx !important;
|
|
|
- /* color: #00b4fe !important; */
|
|
|
+ color: #d77958 !important;
|
|
|
line-height: 54rpx;
|
|
|
padding-left: 30rpx;
|
|
|
position: absolute;
|
|
|
bottom: 55rpx;
|
|
|
}
|
|
|
+ .time-select-bottom2 {
|
|
|
+ width: 100vw;
|
|
|
+ background-color: #feebd7;
|
|
|
+ height: 54rpx;
|
|
|
+ font-size: 22rpx !important;
|
|
|
+ color: #d77958 !important;
|
|
|
+ line-height: 54rpx;
|
|
|
+ padding-left: 30rpx;
|
|
|
+
|
|
|
+ letter-spacing: 2rpx;
|
|
|
+ }
|
|
|
|
|
|
.time-select-left {
|
|
|
/* flex: 2; */
|
|
@@ -3259,4 +3335,7 @@
|
|
|
justify-content: space-between;
|
|
|
align-content: flex-start;
|
|
|
}
|
|
|
+ .first-appoint-date-list{
|
|
|
+ background-color: #fafafa;
|
|
|
+ }
|
|
|
</style>
|