master
fanfan 1 month ago
parent 1d4f799be7
commit e6c8811113
  1. 54
      pages/goods/seckillDetail.vue

@ -213,7 +213,8 @@
</view> </view>
</view> </view>
<view class="footerCus firstBtn" v-else> <view class="footerCus firstBtn" v-else>
<view class="" v-if="setting.provider=='wxqykf' || setting.provider == 'ewmkf'" @click="handleContact"> <view class="" v-if="setting.provider=='wxqykf' || setting.provider == 'ewmkf'"
@click="handleContact">
<view class="cusIcon"> <view class="cusIcon">
<image :src="$picUrl+'/static/user/customer.png'"></image> <image :src="$picUrl+'/static/user/customer.png'"></image>
</view> </view>
@ -737,24 +738,39 @@
}, },
// //
toJDdetal() { toJDdetal() {
// #ifdef MP-WEIXIN if (this.goods.jd_short_url) {
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', //app.json appId: 'wx91d27dbf599dff74', //app.json
path: 'pages/union/proxy/proxy?spreadUrl=' + encodeURIComponent(this.goods.jd_short_url), path: 'pages/union/proxy/proxy?spreadUrl=' + encodeURIComponent(this.goods.jd_short_url),
extraData: { extraData: {
foo: 'bar' foo: 'bar'
}, },
envVersion: 'release', envVersion: 'release',
success(res) { success(res) {
// //
console.log(res); console.log(res);
console.log("打开成功") console.log("打开成功")
} }
}) })
// #endif // #ifndef MP-WEIXIN
// #ifndef MP-WEIXIN window.location.href = this.goods.link;
window.location.href = this.goods.link; // #endif
// #endif } else {
// #ifdef MP-WEIXIN
wx.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74',
path: '/pages/item/detail/detail?sku=' + this.goods_sku_no,
envVersion: 'release',
success(res) {
//
console.log(res);
}
})
// #endif
// #ifndef MP-WEIXIN
window.location.href = this.goods.link;
// #endif
}
}, },
// //
openPirce(type) { openPirce(type) {

Loading…
Cancel
Save