拼团:修复部分字段读取不对的问题

pull/5/head
YunaiV 2023-10-07 22:48:39 +08:00
parent 52b8033e2d
commit 8d1cb7c4de
4 changed files with 17 additions and 14 deletions

View File

@ -461,7 +461,6 @@
* 去支付
*/
goConfirm() {
// TODO ,
uni.navigateTo({
url: `/pages/activity/bargain/index`
})

View File

@ -459,16 +459,18 @@
}, 0);
//
const now = new Date().getTime();
if (this.activity.status !== 0) {
if (this.activity.startTime > now) {
this.status = 1;
} else if (now <= this.activity.endTime) {
this.status = 2;
if (this.activity.status === 0) {
if (this.activity.status === 1) {
this.status = 0;
} else {
this.status = 3;
if (this.activity.startTime > now) {
this.status = 1;
} else if (now <= this.activity.endTime) {
this.status = 2;
} else {
this.status = 3;
}
}
} else {
this.status = 0;
}
//
CombinationApi.getHeadCombinationRecordList(this.id, 1).then(res => {

View File

@ -100,7 +100,7 @@
<div class="item" v-for="(item, index) in storeCombinationHost" :key="index" @click="goDetail(item.id)">
<div class="pictrue">
<img :src="item.picUrl" />
<div class="team" v-text="(item.userSize - item.userCount) + '人团'"></div>
<div class="team" v-text="(item.userSize) + '人团'"></div>
</div>
<div class="name line1" v-text="item.spuName"></div>
<div class="money font-color-red" v-text="'¥' + fen2yuan(item.combinationPrice)"></div>

View File

@ -113,7 +113,7 @@
<view>商品总价</view>
<view class='money'>{{ fen2yuan(orderInfoVo.price.totalPrice || 0 ) }}</view>
</view>
<view class='item acea-row row-between-wrapper'>
<view class='item acea-row row-between-wrapper' v-if="orderInfoVo.price.discountPrice > 0">
<view>订单优惠</view>
<view class='money'>-{{ fen2yuan(orderInfoVo.price.discountPrice) }}</view>
</view>
@ -190,9 +190,9 @@
},
mark: '', //
bargainRecordId: false, //
combination: false, //
seckillActivityId: false, //
bargainRecordId: undefined, //
seckillActivityId: undefined, //
combinationActivityId: undefined, //
// ========== ==========
pointStatus: false, //使
@ -255,6 +255,7 @@
}
this.seckillActivityId = options.seckillActivityId;
this.bargainRecordId = options.bargainRecordId;
this.combinationActivityId = options.combinationActivityId;
this.getloadPreOrder();
// address
@ -370,6 +371,7 @@
pointStatus: this.pointStatus,
seckillActivityId: this.seckillActivityId,
bargainRecordId: this.bargainRecordId,
combinationActivityId: this.combinationActivityId,
// TODO
}
},