Commit 2c8778c630ef7799af4cdc7a52f553740acfa338
1 parent
26d80071
购好物,增加iPad下安装网家家App的平台判断和处理逻辑~
Showing
1 changed file
with
3 additions
and
3 deletions
src/pages/optimization2/optimization2.vue
| @@ -724,7 +724,7 @@ | @@ -724,7 +724,7 @@ | ||
| 724 | let version = this.$route.query.version; | 724 | let version = this.$route.query.version; |
| 725 | 725 | ||
| 726 | // 根据平台,判断是否符合版本,支持列表的“+”加入购物车/搜索跳转原生 | 726 | // 根据平台,判断是否符合版本,支持列表的“+”加入购物车/搜索跳转原生 |
| 727 | - if ((this.isiPhone.value && this.$parent.compareVersion(version, '2.0.0')) || (this.isAndroid.value && this.$parent.compareVersion(version, '1.8.7.0'))) { | 727 | + if (((this.isiPhone.value || this.isiPad.value) && this.$parent.compareVersion(version, '2.0.0')) || (this.isAndroid.value && this.$parent.compareVersion(version, '1.8.7.0'))) { |
| 728 | 728 | ||
| 729 | // 设置列表的“+”加入购物车/搜索跳转原生 | 729 | // 设置列表的“+”加入购物车/搜索跳转原生 |
| 730 | this.$set(this, 'toAddToShoppingCart', true); | 730 | this.$set(this, 'toAddToShoppingCart', true); |
| @@ -732,7 +732,7 @@ | @@ -732,7 +732,7 @@ | ||
| 732 | } | 732 | } |
| 733 | 733 | ||
| 734 | // 根据平台,判断是否符合版本,显示搜索和其它导航菜单 | 734 | // 根据平台,判断是否符合版本,显示搜索和其它导航菜单 |
| 735 | - if ((this.isiPhone.value && this.$parent.compareVersion(version, '1.9.6')) || (this.isAndroid.value && this.$parent.compareVersion(version, '1.8.5.3'))) { | 735 | + if (((this.isiPhone.value || this.isiPad.value) && this.$parent.compareVersion(version, '1.9.6')) || (this.isAndroid.value && this.$parent.compareVersion(version, '1.8.5.3'))) { |
| 736 | 736 | ||
| 737 | // 设置显示搜索和其它导航菜单模块 | 737 | // 设置显示搜索和其它导航菜单模块 |
| 738 | this.$set(this, 'showSearch', true); | 738 | this.$set(this, 'showSearch', true); |
| @@ -741,7 +741,7 @@ | @@ -741,7 +741,7 @@ | ||
| 741 | } | 741 | } |
| 742 | 742 | ||
| 743 | // 根据平台,判断是否符合版本,显示积分商城 | 743 | // 根据平台,判断是否符合版本,显示积分商城 |
| 744 | - if ((this.isiPhone.value && this.$parent.compareVersion(version, '1.9.1')) || (this.isAndroid.value && this.$parent.compareVersion(version, '1.7.3.3'))) { | 744 | + if (((this.isiPhone.value || this.isiPad.value) && this.$parent.compareVersion(version, '1.9.1')) || (this.isAndroid.value && this.$parent.compareVersion(version, '1.7.3.3'))) { |
| 745 | 745 | ||
| 746 | // 设置显示积分商城模块 | 746 | // 设置显示积分商城模块 |
| 747 | this.$set(this, 'showIntegral', true); | 747 | this.$set(this, 'showIntegral', true); |