看同款h5兼容

master
wangdong 3 weeks ago
parent e72c9e2641
commit 2d807404d1
  1. 2
      ext.json
  2. 2
      pages/goods/detail.vue
  3. 2
      pages/goods/seckillDetail.vue

@ -1,6 +1,6 @@
{
"extEnable": true,
"extAppid": "wxa3127ed5c3542a28",
"extAppid": "wx9f7e94fe11dc0c23",
"ext": {
"store_id": 10048
}

@ -828,6 +828,7 @@
//
toJDdetal() {
if (this.goods.jd_short_url) {
// #ifdef MP-WEIXIN
wx.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', //app.json
path: 'pages/union/proxy/proxy?spreadUrl=' + encodeURIComponent(this.goods.jd_short_url),
@ -841,6 +842,7 @@
console.log("打开成功")
}
})
// #endif
// #ifndef MP-WEIXIN
window.location.href = this.goods.link;
// #endif

@ -739,6 +739,7 @@
//
toJDdetal() {
if (this.goods.jd_short_url) {
// #ifdef MP-WEIXIN
wx.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', //app.json
path: 'pages/union/proxy/proxy?spreadUrl=' + encodeURIComponent(this.goods.jd_short_url),
@ -752,6 +753,7 @@
console.log("打开成功")
}
})
// #endif
// #ifndef MP-WEIXIN
window.location.href = this.goods.link;
// #endif

Loading…
Cancel
Save