| | |
| | | <u-icon size="34" class="red" name="home-fill"></u-icon> |
| | | <view class="red icon-btn-name">店铺</view> |
| | | </view> |
| | | <view class="icon-btn-item" @click="linkMsgDetail()"> |
| | | <!-- <view class="icon-btn-item" @click="linkMsgDetail()"> |
| | | <u-icon size="34" name="kefu-ermai"></u-icon> |
| | | <view class="icon-btn-name">客服</view> |
| | | </view> |
| | | </view> --> |
| | | <view class="icon-btn-item" @click="reluchToCart()"> |
| | | <u-icon size="34" name="storeping-cart"></u-icon> |
| | | <view class="icon-btn-name">购物车</view> |
| | |
| | | // #ifdef MP-WEIXIN |
| | | |
| | | // #endif |
| | | this.goodsDetail = {}; |
| | | //如果有参数ids说明事分销短连接,需要获取参数 |
| | | if (this.routerVal.scene) { |
| | | getMpScene(this.routerVal.scene).then((res) => { |
| | | if (res.data.success) { |
| | | let data = res.data.result.split(","); // skuId,goodsId,distributionId |
| | | this.init(data[0], data[1], data[2]); |
| | | } |
| | | }); |
| | | } else { |
| | | this.init(this.routerVal.id, this.routerVal.goodsId, this.routerVal.distributionId); |
| | | } |
| | | }, |
| | | |
| | | onUnload() { |
| | |
| | | userAction(param) |
| | | } |
| | | }) |
| | | this.goodsDetail = {}; |
| | | //如果有参数ids说明事分销短连接,需要获取参数 |
| | | if (this.routerVal.scene) { |
| | | getMpScene(this.routerVal.scene).then((res) => { |
| | | if (res.data.success) { |
| | | let data = res.data.result.split(","); // skuId,goodsId,distributionId |
| | | this.init(data[0], data[1], data[2]); |
| | | } |
| | | }); |
| | | } else { |
| | | this.init(this.routerVal.id, this.routerVal.goodsId, this.routerVal.distributionId); |
| | | } |
| | | // this.goodsDetail = {}; |
| | | // //如果有参数ids说明事分销短连接,需要获取参数 |
| | | // if (this.routerVal.scene) { |
| | | // getMpScene(this.routerVal.scene).then((res) => { |
| | | // if (res.data.success) { |
| | | // let data = res.data.result.split(","); // skuId,goodsId,distributionId |
| | | // this.init(data[0], data[1], data[2]); |
| | | // } |
| | | // }); |
| | | // } else { |
| | | // this.init(this.routerVal.id, this.routerVal.goodsId, this.routerVal.distributionId); |
| | | // } |
| | | }, |
| | | |
| | | methods: { |