商品详情入参优化

version/0412
shuxiaoquan 8 months ago
parent 731470f32b
commit 29cbb03214
  1. 8
      pages/goods/detail.vue

@ -446,7 +446,11 @@
const that = this;
console.log(options, "oo")
this.isPre = options.isPre ? options.isPre : null
this.goodsId = options.goodsId ? options.goodsId : null
// query
// this.onRecordQuery(options)
const scene = getSceneData(options)
this.goodsId = options.goodsId ? parseInt(options.goodsId) : parseInt(scene.gid)
// this.goodsId = options.goodsId ? options.goodsId : null
this.pre_id = options.pre_id ? options.pre_id : null;
this.isSeckill = options.isSeckill ? options.isSeckill : null;
this.isBuy = options.isBuy ? decodeURIComponent(options.isBuy) : null;
@ -463,8 +467,6 @@
that.selectShop = selectShop
that.selectShop.price = that.selectShop.price / 100
})
// query
this.onRecordQuery(options)
// uni.$on("checkSelectShop", function(selectShop) {
// console.log("checkSelectShop1",selectShop)
// if(selectShop && selectShop.goods_sku_id){

Loading…
Cancel
Save