修复bug
This commit is contained in:
parent
4eb5580ff1
commit
fb0e6a33c6
@ -116,6 +116,7 @@
|
|||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true;
|
this.isShowAuth = true;
|
||||||
} else {
|
} else {
|
||||||
|
this.checkForm.cart_id = [];
|
||||||
this.getProductInfoByMerid(this.mer_id);
|
this.getProductInfoByMerid(this.mer_id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
<view class='money'>¥{{payForm.money}}</view>
|
<view class='money'>¥{{payForm.money}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='item acea-row row-between-wrapper' v-if="false">
|
<view class='item acea-row row-between-wrapper'>
|
||||||
<view>补贴抵扣</view>
|
<view>补贴抵扣</view>
|
||||||
<block v-if="platformConsumption.length > 0" >
|
<block v-if="platformConsumption.length > 0" >
|
||||||
<view class='discount money red_packet' @click="couponTap3()">
|
<view class='discount money red_packet' @click="couponTap3()">
|
||||||
@ -94,7 +94,7 @@
|
|||||||
<view>
|
<view>
|
||||||
合计:
|
合计:
|
||||||
<text class='pColor' v-if="cartArr[4].payStatus == 1 && active == 4">¥0.00</text>
|
<text class='pColor' v-if="cartArr[4].payStatus == 1 && active == 4">¥0.00</text>
|
||||||
<text class='pColor' v-else>¥{{payForm.money }}</text>
|
<text class='pColor' v-else>¥{{ total_coupon }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100'
|
<view class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100'
|
||||||
@ -231,6 +231,7 @@
|
|||||||
type_id: '', //店铺类型
|
type_id: '', //店铺类型
|
||||||
consumption_id: '', //补贴id
|
consumption_id: '', //补贴id
|
||||||
consumption_money: '', //补贴抵扣金额
|
consumption_money: '', //补贴抵扣金额
|
||||||
|
total_coupon: '', //合计
|
||||||
payForm: {
|
payForm: {
|
||||||
cart_id: '',
|
cart_id: '',
|
||||||
address_id: '',
|
address_id: '',
|
||||||
@ -266,11 +267,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
|
options.money = parseFloat(options.money).toFixed(2);
|
||||||
this.payForm.cart_id = options.cartId;
|
this.payForm.cart_id = options.cartId;
|
||||||
this.payForm.money = options.money;
|
this.payForm.money = options.money;
|
||||||
this.payForm.merName = options.merName;
|
this.payForm.merName = options.merName;
|
||||||
this.checkForm.cart_id = options.cartId.split(',');
|
this.checkForm.cart_id = options.cartId.split(',');
|
||||||
|
this.total_coupon = options.money;
|
||||||
|
|
||||||
// this.platformConsumption = [{
|
// this.platformConsumption = [{
|
||||||
// balance: "39000.00",
|
// balance: "39000.00",
|
||||||
@ -322,7 +324,8 @@
|
|||||||
...this.checkForm,
|
...this.checkForm,
|
||||||
consumption_id: this.consumption_id
|
consumption_id: this.consumption_id
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
this.payForm.money = this.cartForm.total_price;
|
this.total_coupon = res.data.total_coupon;
|
||||||
|
this.consumption_money = res.data.consumption_money;
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
qrcode,
|
qrcode,
|
||||||
merchantRecord
|
merchantRecord
|
||||||
} from "@/api/activity.js";
|
} from "@/api/activity.js";
|
||||||
|
import { Toast } from '../../../libs/uniApi';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -87,7 +88,15 @@
|
|||||||
getQrcode() {
|
getQrcode() {
|
||||||
qrcode().then(res => {
|
qrcode().then(res => {
|
||||||
this.qrcodeUrl = res.data.url;
|
this.qrcodeUrl = res.data.url;
|
||||||
})
|
}).catch(err=>{
|
||||||
|
uni.showModal({
|
||||||
|
content:'暂未开通邀请码,需开通邀请码请联系管理员',
|
||||||
|
showCancel: false,
|
||||||
|
success: (res)=>{
|
||||||
|
uni.navigateBack();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 获取好友列表
|
// 获取好友列表
|
||||||
getList() {
|
getList() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user