Feat:寻看点和抽奖

This commit is contained in:
lifizer
2024-02-06 12:42:46 +08:00
parent c88b6aa8a8
commit f3115fe7c8
73 changed files with 5324 additions and 6887 deletions
+8 -4
View File
@@ -269,6 +269,7 @@ export default {
contactsTel: "",
storeSelfMention: 0,
cartid: "",
lotteryRecordId:'',
payPassword: null,
// v9-2
couponList: {},
@@ -298,7 +299,6 @@ export default {
//地址切换也要重新计算一下
that.computedPrice('onLoad chooseAddress');
})
that.getCartInfo();
console.log(that.$yroute);
if (that.$yroute.query.pinkid !== undefined) {
that.pinkId = that.$yroute.query.pinkid;
@@ -307,6 +307,10 @@ export default {
that.cartid = that.$yroute.query.id;
console.log(that.cartid)
}
if (that.$yroute.query.lotteryRecordId !== undefined) {
that.lotteryRecordId = that.$yroute.query.lotteryRecordId;
}
that.getCartInfo();
},
onUnload: function () {
console.log('关闭监听选择收货地址');
@@ -351,8 +355,8 @@ export default {
},
getCartInfo() {
var that = this;
const cartIds = this.$yroute.query.id;
if (!cartIds) {
// const cartIds = this.$yroute.query.id;
if (!that.cartid && !that.lotteryRecordId) {
uni.showToast({
title: "参数有误",
icon: "none",
@@ -360,7 +364,7 @@ export default {
});
return this.$yrouter.back();
}
postOrderConfirm(cartIds)
postOrderConfirm(that.cartid,that.lotteryRecordId)
.then(res => {
that.offlinePayStatus = res.data.offline_pay_status;
that.orderGroupInfo = res.data;