看同款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, "extEnable": true,
"extAppid": "wxa3127ed5c3542a28", "extAppid": "wx9f7e94fe11dc0c23",
"ext": { "ext": {
"store_id": 10048 "store_id": 10048
} }

@ -828,6 +828,7 @@
// //
toJDdetal() { toJDdetal() {
if (this.goods.jd_short_url) { if (this.goods.jd_short_url) {
// #ifdef MP-WEIXIN
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),
@ -841,6 +842,7 @@
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

@ -739,6 +739,7 @@
// //
toJDdetal() { toJDdetal() {
if (this.goods.jd_short_url) { if (this.goods.jd_short_url) {
// #ifdef MP-WEIXIN
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),
@ -752,6 +753,7 @@
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

Loading…
Cancel
Save