修复部分显示bug
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
</view>
|
||||
<view class="tui-countdown__box" v-if="item.status == 1 || item.status == 2">
|
||||
<text>距离{{ item.status == 1 ? '结束还剩' : '开始还有' }}</text>
|
||||
<count-down :isDay="true" :tipText="'倒计时 '" :dayText="' 天 '" :hourText="' 时 '" :minuteText="' 分 '" :secondText="' 秒'" :datatime="item.stop"></count-down>
|
||||
<CountDown :isDay="true" :tipText="'倒计时 '" :dayText="' 天 '" :hourText="' 时 '" :minuteText="' 分 '" :secondText="' 秒'" :datatime="item.stop"></CountDown>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@ -163,6 +163,7 @@ export default {
|
||||
that.status = false
|
||||
that.active = index
|
||||
that.datatime = that.timeList[that.active].stop
|
||||
console.log(new Date(that.datatime))
|
||||
this.seckillList = []
|
||||
that.getSeckillList()
|
||||
},
|
||||
|
@ -260,7 +260,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
formatPrice(price, index) {
|
||||
console.log(price)
|
||||
// console.log(price)
|
||||
if (price) {
|
||||
return price.split('.')[index]
|
||||
}
|
||||
@ -284,15 +284,6 @@ export default {
|
||||
},
|
||||
}
|
||||
},
|
||||
openAlone: function() {
|
||||
this.$yrouter.push({
|
||||
path: '/pages/shop/GoodsCon/index',
|
||||
query: {
|
||||
id: this.storeInfo.productId,
|
||||
},
|
||||
})
|
||||
// this.$yrouter.replace({ path: "/detail/" + this.storeInfo.productId });
|
||||
},
|
||||
//收藏商品
|
||||
setCollect: function() {
|
||||
let that = this,
|
||||
@ -452,24 +443,41 @@ export default {
|
||||
this.$set(this, 'attrTxt', '请选择')
|
||||
}
|
||||
},
|
||||
|
||||
// 单独购买
|
||||
openAlone: function() {
|
||||
this.$yrouter.push({
|
||||
path: '/pages/shop/GoodsCon/index',
|
||||
query: {
|
||||
id: this.storeInfo.productId,
|
||||
},
|
||||
})
|
||||
// this.$yrouter.replace({ path: "/detail/" + this.storeInfo.productId });
|
||||
},
|
||||
// 发起拼团
|
||||
openTeam: function() {
|
||||
var that = this
|
||||
if (that.attr.cartAttr == false) {
|
||||
console.log(this.attr)
|
||||
if (that.attr.cartAttr == false) { // 展示弹框
|
||||
console.log(this.attr.cartAttr)
|
||||
that.attr.cartAttr = !this.attr.cartAttr
|
||||
} else {
|
||||
// 设置拼团价格
|
||||
that.attr.productSelect.price = this.storeInfo.price
|
||||
} else { // 已有弹框——初始化商品信息,下单请求
|
||||
var data = {}
|
||||
data.productId = that.storeInfo.productId
|
||||
data.price = that.storeInfo.price
|
||||
data.cartNum = that.attr.productSelect.cart_num
|
||||
data.uniqueId = that.attr.productSelect.unique
|
||||
data.combinationId = that.storeInfo.id
|
||||
data.new = 1
|
||||
console.log(data)
|
||||
postCartAdd(data)
|
||||
.then(res => {
|
||||
that.$yrouter.push({
|
||||
path: '/pages/order/OrderSubmission/index',
|
||||
query: {
|
||||
id: res.data.cartId,
|
||||
// id: res.data.cartId,
|
||||
pinkId: res.data.cartId,
|
||||
},
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user