Commit e96627e8faacb0d66d3d64a36d9de4d0079ad636
1 parent
7c8eb949
购好物,新版电商页面,强制兼容Android拉起服务号~
Showing
2 changed files
with
10 additions
and
14 deletions
src/components/callAppBox/callAppBox.vue
| @@ -55,19 +55,18 @@ export default { | @@ -55,19 +55,18 @@ export default { | ||
| 55 | // 拼接参数字符串,根据分享参数拼接 | 55 | // 拼接参数字符串,根据分享参数拼接 |
| 56 | let shareString = "shop_shop_type=" + this.callApps.funcs.callAppParams.shop_shop_type + "&shop_to=" + this.callApps.funcs.callAppParams.shop_to + "&shop_type=" + this.callApps.funcs.callAppParams.shop_type + "&share_mold=" + this.callApps.funcs.callAppParams.share_mold; | 56 | let shareString = "shop_shop_type=" + this.callApps.funcs.callAppParams.shop_shop_type + "&shop_to=" + this.callApps.funcs.callAppParams.shop_to + "&shop_type=" + this.callApps.funcs.callAppParams.shop_type + "&share_mold=" + this.callApps.funcs.callAppParams.share_mold; |
| 57 | 57 | ||
| 58 | - // 判断是否有扩展参数,如果有,拼接扩展参数到原始字符串 | ||
| 59 | - if (this.callApps.funcs.callAppParams.shop_ext) { | 58 | + // 临时 硬加参数 |
| 59 | + if (this.isAndroid.value && this.$router && this.$router.history.current.name == 'labourUnion2') { | ||
| 60 | 60 | ||
| 61 | - // 判断如果地址栏有shop_extra参数,取地址栏的shop_extra参数进行拼接 | ||
| 62 | - if (this.$route.query.shop_extra) { | 61 | + // 设置请求参数,添加shop_extra=1 |
| 62 | + shareString += "&shop_extra=1"; | ||
| 63 | + } else | ||
| 63 | 64 | ||
| 64 | - // 拼接扩展参数到原始字符串 | ||
| 65 | - shareString += "&shop_extra=" + this.$route.query.shop_extra; | ||
| 66 | - } else { | 65 | + // 判断是否有扩展参数,如果有,拼接扩展参数到原始字符串 |
| 66 | + if (this.callApps.funcs.callAppParams.shop_ext) { | ||
| 67 | 67 | ||
| 68 | - // 拼接扩展参数到原始字符串 | ||
| 69 | - shareString += "&shop_extra=" + this.callApps.funcs.callAppParams.shop_ext; | ||
| 70 | - } | 68 | + // 拼接扩展参数到原始字符串 |
| 69 | + shareString += "&shop_extra=" + this.callApps.funcs.callAppParams.shop_ext; | ||
| 71 | } | 70 | } |
| 72 | 71 | ||
| 73 | // Base64位编码加密 | 72 | // Base64位编码加密 |
src/pages/labourUnion2/labourUnion2.vue
| @@ -828,10 +828,7 @@ | @@ -828,10 +828,7 @@ | ||
| 828 | this.$parent.getOpenApp({ | 828 | this.$parent.getOpenApp({ |
| 829 | type: 72, | 829 | type: 72, |
| 830 | id: this.$route.query.appid || this.$route.query.id || 1, | 830 | id: this.$route.query.appid || this.$route.query.id || 1, |
| 831 | - url: "", | ||
| 832 | - ext: { | ||
| 833 | - shop_extra: '1' | ||
| 834 | - } | 831 | + url: "" |
| 835 | }); | 832 | }); |
| 836 | } | 833 | } |
| 837 | 834 |