修复bug

This commit is contained in:
weipengfei 2024-03-04 16:33:01 +08:00
parent 4eb5580ff1
commit fb0e6a33c6
3 changed files with 18 additions and 5 deletions

View File

@ -116,6 +116,7 @@
this.isAuto = true;
this.isShowAuth = true;
} else {
this.checkForm.cart_id = [];
this.getProductInfoByMerid(this.mer_id);
}
},

View File

@ -73,7 +73,7 @@
<view class='money'>{{payForm.money}}</view>
</view>
<view class='item acea-row row-between-wrapper' v-if="false">
<view class='item acea-row row-between-wrapper'>
<view>补贴抵扣</view>
<block v-if="platformConsumption.length > 0" >
<view class='discount money red_packet' @click="couponTap3()">
@ -94,7 +94,7 @@
<view>
合计:
<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 class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100'
@ -231,6 +231,7 @@
type_id: '', //
consumption_id: '', //id
consumption_money: '', //
total_coupon: '', //
payForm: {
cart_id: '',
address_id: '',
@ -266,11 +267,12 @@
}
},
onLoad: function(options) {
options.money = parseFloat(options.money).toFixed(2);
this.payForm.cart_id = options.cartId;
this.payForm.money = options.money;
this.payForm.merName = options.merName;
this.checkForm.cart_id = options.cartId.split(',');
this.total_coupon = options.money;
// this.platformConsumption = [{
// balance: "39000.00",
@ -322,7 +324,8 @@
...this.checkForm,
consumption_id: this.consumption_id
}).then(res=>{
this.payForm.money = this.cartForm.total_price;
this.total_coupon = res.data.total_coupon;
this.consumption_money = res.data.consumption_money;
})
})
}

View File

@ -51,6 +51,7 @@
qrcode,
merchantRecord
} from "@/api/activity.js";
import { Toast } from '../../../libs/uniApi';
export default {
components: {
@ -87,7 +88,15 @@
getQrcode() {
qrcode().then(res => {
this.qrcodeUrl = res.data.url;
})
}).catch(err=>{
uni.showModal({
content:'暂未开通邀请码,需开通邀请码请联系管理员',
showCancel: false,
success: (res)=>{
uni.navigateBack();
}
})
})
},
//
getList() {