|
@@ -90,15 +90,21 @@
|
|
|
<!-- </view>-->
|
|
<!-- </view>-->
|
|
|
<!-- </view>-->
|
|
<!-- </view>-->
|
|
|
|
|
|
|
|
- <view class="selectType flex-row justify-between" @click="popupClick">
|
|
|
|
|
- <text>请选择优惠方式</text>
|
|
|
|
|
- <text class="text-group_5" v-if="ticketBtnIndex === 1" v-for="(iter,i) in equitys" :key="i">{{iter.title}}</text>
|
|
|
|
|
- <text class="text-group_5" v-if="ticketBtnIndex === 2" v-for="(iter,i) in coupons" :key="i">{{iter.name}}:-¥{{iter.discountsPrice}}</text>
|
|
|
|
|
- <u-icon name="arrow-right" color="#666" size="18"></u-icon>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+<!-- <view class="selectType flex-row justify-between" @click="popupClick">-->
|
|
|
|
|
+<!-- <text>请选择优惠方式</text>-->
|
|
|
|
|
+<!-- <text class="text-group_5" v-if="ticketBtnIndex === 1" v-for="(iter,i) in equitys" :key="i">{{iter.title}}</text>-->
|
|
|
|
|
+<!-- <text class="text-group_5" v-if="ticketBtnIndex === 2" v-for="(iter,i) in coupons" :key="i">{{iter.name}}:-¥{{iter.discountsPrice}}</text>-->
|
|
|
|
|
+<!-- <u-icon name="arrow-right" color="#666" size="18"></u-icon>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
|
|
|
<view class="flex-row justify-center">
|
|
<view class="flex-row justify-center">
|
|
|
- <view class="submitButton" @click="addChildProject">确定</view>
|
|
|
|
|
|
|
+ <view class=" submitButtonLeft" @click="popupClick">
|
|
|
|
|
+ <text v-if="(ticketBtnIndex === 1 && equitys.length===0) || (ticketBtnIndex === 2 && coupons.length === 0)">使用权益卡或优惠券</text>
|
|
|
|
|
+ <text class="text-group_5" v-else-if="ticketBtnIndex === 1" v-for="(iter,i) in equitys" :key="i">{{iter.title}}</text>
|
|
|
|
|
+ <text class="text-group_5" v-else-if="ticketBtnIndex === 2" v-for="(iter,i) in coupons" :key="i">{{iter.name}}:-¥{{iter.discountsPrice}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="submitButton " @click="addChildProject">确定</view>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<uni-popup ref="popup" type="bottom" >
|
|
<uni-popup ref="popup" type="bottom" >
|
|
@@ -150,7 +156,7 @@ export default {
|
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
|
// 判断Openid是否为空
|
|
// 判断Openid是否为空
|
|
|
let sysInfo=uni.getSystemInfoSync();
|
|
let sysInfo=uni.getSystemInfoSync();
|
|
|
- this.height= sysInfo.windowHeight -120 +'px';
|
|
|
|
|
|
|
+ this.height= sysInfo.windowHeight -80 +'px';
|
|
|
this.orderId=e.orderId
|
|
this.orderId=e.orderId
|
|
|
this.serviceStationId=e.serviceStationId
|
|
this.serviceStationId=e.serviceStationId
|
|
|
this.serviceObjectId=e.serviceObjectId
|
|
this.serviceObjectId=e.serviceObjectId
|
|
@@ -238,6 +244,10 @@ export default {
|
|
|
uni.$u.toast("请选择服务项目")
|
|
uni.$u.toast("请选择服务项目")
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if(this.requestStatus){
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.requestStatus=true
|
|
|
let userEquityCardId
|
|
let userEquityCardId
|
|
|
if (this.equitys.length>0){
|
|
if (this.equitys.length>0){
|
|
|
userEquityCardId = this.equitys[0].id
|
|
userEquityCardId = this.equitys[0].id
|
|
@@ -250,9 +260,12 @@ export default {
|
|
|
couponIds:this.couponIds,
|
|
couponIds:this.couponIds,
|
|
|
userEquityCardId:userEquityCardId
|
|
userEquityCardId:userEquityCardId
|
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
|
|
|
+ this.requestStatus=false
|
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
|
delta:1
|
|
delta:1
|
|
|
})
|
|
})
|
|
|
|
|
+ }).catch(()=>{
|
|
|
|
|
+ this.requestStatus=false
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
|