main
fanfan 6 months ago
parent d67628ac16
commit ba61e89532
  1. 6
      pages/index/index.vue

@ -162,7 +162,7 @@
</view> </view>
<view class="goods-list" v-if="seckillList && seckillList.length>0"> <view class="goods-list" v-if="seckillList && seckillList.length>0">
<view class="list" v-for="(item, index) in seckillList" :key="index" <view class="list" v-for="(item, index) in seckillList" :key="index"
@click="handleTargetGoods(item.goods_id)"> @click="handleTargetGoods(item)">
<view class="pictrue"> <view class="pictrue">
<image :src="item.goods_image"></image> <image :src="item.goods_image"></image>
</view> </view>
@ -646,9 +646,9 @@
this.timeData = e this.timeData = e
}, },
// //
handleTargetGoods(sharpGoodsId) { handleTargetGoods(item) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/goods/detail?goodsId=' + sharpGoodsId + "&isSeckill=" + true + '&isBuy=' + this url: '/pages/goods/seckillDetail?sharpGoodsId=' + item.sharp_goods_id +'&activeTimeId='+this.tabbar[this.curTabIndex].active_time_id+ "&isSeckill=" + true + '&isBuy=' + this
.seckillCutDownTime + '&seckillText=' + (this.tabbar[this.curTabIndex].status == 10 ? .seckillCutDownTime + '&seckillText=' + (this.tabbar[this.curTabIndex].status == 10 ?
'结束' : '开始') '结束' : '开始')
}) })

Loading…
Cancel
Save