Commit a2cb267c authored by Mac's avatar Mac

1

parent 511db54d
...@@ -638,7 +638,7 @@ ...@@ -638,7 +638,7 @@
}, },
gocoupon(item) { //优惠券详情 gocoupon(item) { //优惠券详情
uni.navigateTo({ uni.navigateTo({
url: "/pages/reserve/personal/couponDetail?ID=" + item.CouponId, url: "/pages/reserve/personal/couponDetail?ID=" + item.CouponId+'&storeId='+this.storeId,
}) })
}, },
gogoods(item) { //商品详情 gogoods(item) { //商品详情
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
</view> </view>
<view class="submit"> <view class="submit">
<view class="submit-l"> <view class="submit-l">
<text>定金</text> <text>金额</text>
<text :style="{'color':mc}">¥<text style='font-size: 20px;'>{{g.price}}</text></text> <text :style="{'color':mc}">¥<text style='font-size: 20px;'>{{g.price}}</text></text>
</view> </view>
<u-button <u-button
......
...@@ -327,10 +327,10 @@ ...@@ -327,10 +327,10 @@
:style="{ :style="{
'margin-left':i==0?'15px':'0', 'margin-left':i==0?'15px':'0',
'margin-right': i+1==designerList.length?'15px':'5px', 'margin-right': i+1==designerList.length?'15px':'5px',
'border-color':c.Gender== selectdesigner?'#FF4048':'#D8D8D8', 'border-color':c.ServiceId== selectdesigner?'#FF4048':'#D8D8D8',
'color':c.Gender== selectdesigner?'#FF4048':'#888888', 'color':c.ServiceId== selectdesigner?'#FF4048':'#888888',
'background':c.Gender== selectdesigner?'#FBE5E7':'#FFF', 'background':c.ServiceId== selectdesigner?'#FBE5E7':'#FFF',
'font-weight':c.Gender== selectdesigner?'Bold':'100', 'font-weight':c.ServiceId== selectdesigner?'Bold':'100',
'padding':i==0?'20px 0':'10px 0', 'padding':i==0?'20px 0':'10px 0',
'height':'123px' 'height':'123px'
}"> }">
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
<u-icon name="arrow" color='#9F9F9F'></u-icon> <u-icon name="arrow" color='#9F9F9F'></u-icon>
</view> </view>
</view> </view>
<view class="info-item" v-if="payId==2"> <view class="info-item" v-if="PaymentWay==1">
<text class="info-i-l">套餐卡</text> <text class="info-i-l">套餐卡</text>
<view class="right" > <view class="right" >
<text class="content" v-if="courseList.length>0 && Use_Education_Id==0" @click="showCourseHandler">选择套餐卡 <text class="content" v-if="courseList.length>0 && Use_Education_Id==0" @click="showCourseHandler">选择套餐卡
...@@ -382,9 +382,9 @@ ...@@ -382,9 +382,9 @@
</view> </view>
<view class="submit"> <view class="submit">
<view class="submit-l"> <view class="submit-l">
<text v-if="payId==0">线下付款金额:</text> <text v-if="PaymentWay==4">线下付款金额:</text>
<text v-if="payId==1">预付定金:</text> <text v-if="PaymentWay==5">预付定金:</text>
<text v-if="payId==2">线上付款金额:</text> <text v-if="PaymentWay==1">线上付款金额:</text>
<text :style="{'color':mainColor}">¥<text style='font-size: 20px;'>{{Income*value}}</text></text> <text :style="{'color':mainColor}">¥<text style='font-size: 20px;'>{{Income*value}}</text></text>
</view> </view>
<u-button <u-button
...@@ -449,7 +449,7 @@ ...@@ -449,7 +449,7 @@
<view class="txtype"> <view class="txtype">
<view class="typeitem" v-for="(item, index) in paymentList" :key="index"> <view class="typeitem" v-for="(item, index) in paymentList" :key="index">
<Text>{{item.name}}</Text> <Text>{{item.name}}</Text>
<u-radio-group v-model="payId"> <u-radio-group v-model="PaymentWay">
<u-radio :active-color="mainColor" shape="circle" :name="item.Id" @change="radioChange(item)"> <u-radio :active-color="mainColor" shape="circle" :name="item.Id" @change="radioChange(item)">
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
...@@ -514,7 +514,7 @@ ...@@ -514,7 +514,7 @@
paymentList:[],//付款方式的选择 paymentList:[],//付款方式的选择
payname:'线下付款', payname:'线下付款',
payId:0, PaymentWay:0,
}; };
}, },
...@@ -616,7 +616,7 @@ ...@@ -616,7 +616,7 @@
ProductList.push(obj); ProductList.push(obj);
//获取套餐卡的处理 //获取套餐卡的处理
this.Use_Education_Id=0, this.Use_Education_Id=0,
this.Income =this.payId==1?this.goods.depositMoney: this.goods.price; this.Income =this.PaymentWay==5?this.goods.depositMoney: this.goods.price;
this.EduCationMoney= 0; this.EduCationMoney= 0;
this.request2({ this.request2({
...@@ -657,11 +657,11 @@ ...@@ -657,11 +657,11 @@
let obj = { let obj = {
ServiceLogo:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/timeisup.png', ServiceLogo:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/timeisup.png',
Name:'到点分配', Name:'到点分配',
Gender:0, ServiceId:0,
} }
this.designerList.unshift(obj) this.designerList.unshift(obj)
this.selectdesigner= this.designerList[0].Gender; this.selectdesigner= this.designerList[0].ServiceId;
let set = uni.getStorageSync("basedata") ? uni.getStorageSync("basedata").mall.offlineServiceSetting.offlineServicePayType : []; let set = uni.getStorageSync("basedata") ? uni.getStorageSync("basedata").mall.offlineServiceSetting.offlineServicePayType : [];
if(set.length>0){ if(set.length>0){
...@@ -669,15 +669,15 @@ ...@@ -669,15 +669,15 @@
set.forEach(x=>{ set.forEach(x=>{
if(x==1){ if(x==1){
//data有默认值 这里不做处理 //data有默认值 这里不做处理
let obj = {name:'线下付款',Id:0}; let obj = {name:'线下付款',Id:4};
this.paymentList.push(obj) this.paymentList.push(obj)
}else if(x==2){ }else if(x==2){
let obj let obj
if(this.goods.depositMoney>0){//预定金额大于0 if(this.goods.depositMoney>0){//预定金额大于0
obj =[{name:'预付定金',Id:1},{name:'线上付款',Id:2}] obj =[{name:'预付定金',Id:5},{name:'线上付款',Id:1}]
}else{ }else{
obj =[{name:'线上付款',Id:2}] obj =[{name:'线上付款',Id:1}]
} }
this.paymentList= this.paymentList.concat(obj) this.paymentList= this.paymentList.concat(obj)
...@@ -685,7 +685,8 @@ ...@@ -685,7 +685,8 @@
}) })
} }
this.payname = this.paymentList[0].name; this.payname = this.paymentList[0].name;
this.payId = this.paymentList[0].Id; this.PaymentWay = this.paymentList[0].Id;
this.
this.schoolCoupon();//获取套餐卡 this.schoolCoupon();//获取套餐卡
this.Nosubmit = false; this.Nosubmit = false;
} }
...@@ -734,7 +735,7 @@ ...@@ -734,7 +735,7 @@
}, },
res => { res => {
if (res.resultCode == 1 ) { if (res.resultCode == 1 ) {
if(form.Income>0 || this.payId!=0){ if(form.Income>0 || this.PaymentWay!=4){
that.submitOrder = false; that.submitOrder = false;
that.payBtn = true; that.payBtn = true;
that.payInfo.OrderId = res.data.OrderId; that.payInfo.OrderId = res.data.OrderId;
...@@ -753,7 +754,7 @@ ...@@ -753,7 +754,7 @@
} }
else{ else{
that.$refs.uToast.show({ that.$refs.uToast.show({
title: res.data.message, title: res.message,
type: 'warning' type: 'warning'
}); });
} }
...@@ -787,7 +788,7 @@ ...@@ -787,7 +788,7 @@
this.selecttime = item; this.selecttime = item;
}, },
getdesigner(item){//设计师 getdesigner(item){//设计师
this.selectdesigner = item.Gender this.selectdesigner = item.ServiceId
}, },
valChange(e){ valChange(e){
this.value = e.value; this.value = e.value;
...@@ -813,8 +814,8 @@ ...@@ -813,8 +814,8 @@
}, },
radioChange(item) { radioChange(item) {
this.payname=item.name; this.payname=item.name;
this.payId=item.Id; this.PaymentWay=item.Id;
this.Income =this.payId==1?this.goods.depositMoney: this.goods.price; this.Income =this.PaymentWay==5?this.goods.depositMoney: this.goods.price;
this.show = false; this.show = false;
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment