Commit 913ca348514798cd13e4cb62c87b36b08dfe7caf

Authored by zhiyangdu
1 parent dde86e06

app内跳转和app外跳转判断

Showing 1 changed file with 25 additions and 6 deletions
src/pages/index/index.vue
... ... @@ -133,13 +133,32 @@
133 133 },
134 134 methods: {
135 135 link(index){
136   - debugger
137   - if (index == 1) {
138   - window.location.href = this.getParams(this.mode).shop.apiAddress + "/html/mall/1/#/pages/main/cultureDetail/cultureDetail?id=9621652"
139   - } else {
140   - window.location.href = this.getParams(this.mode).shop.apiAddress + "/html/mall/1/#/pages/main/cultureDetail/cultureDetail?id=9620396"
  136 + if(this.isCNLive){
  137 + let items;
  138 + if(index==1){
  139 + items={
  140 + "title": "线下赛事",
  141 + "type": "2",
  142 + "shop_type": "2",
  143 + "to":"9621652",
  144 + }
  145 + }else {
  146 + items={
  147 + "title": "线下赛事",
  148 + "type": "2",
  149 + "shop_type":"2",
  150 + "to":"9620396",
  151 + }
  152 + }
  153 + this.$parent.gotoDetail(items)
  154 +
  155 + }else {
  156 + if (index == 1) {
  157 + window.location.href = this.getParams(this.mode).shop.apiAddress + "/html/mall/1/#/pages/main/cultureDetail/cultureDetail?id=9621652"
  158 + } else {
  159 + window.location.href = this.getParams(this.mode).shop.apiAddress + "/html/mall/1/#/pages/main/cultureDetail/cultureDetail?id=9620396"
  160 + }
141 161 }
142   -
143 162 },
144 163 /**
145 164 * 视频播放
... ...