Commit 00c3c313676239cedfcc532fece139162c37d07a

Authored by zhiyangdu
1 parent 01d71d7b

大众体育跳转

Showing 1 changed file with 22 additions and 24 deletions
src/pages/index/index.vue
@@ -52,32 +52,30 @@ export default { @@ -52,32 +52,30 @@ export default {
52 shop_type: "", 52 shop_type: "",
53 to: "0" 53 to: "0"
54 }; 54 };
55 - this.$parent.gotoDetail(items);  
56 } else if (index == 2) { 55 } else if (index == 2) {
57 - // items = {  
58 - // title: "线下赛事",  
59 - // type: "30",  
60 - // shop_type:  
61 - // '{"id":"3","title":"\\u7ebf\\u4e0b\\u8d5b\\u4e8b"}',  
62 - // to:  
63 - // this.getParams(this.mode).shop.apiAddress +  
64 - // "/html/sports-china/1/#/" +  
65 - // "?activityId=" +  
66 - // (this.mode == "prod" ? 92 : 77) +  
67 - // (this.$route.query.uid  
68 - // ? "&uid=" + this.$route.query.uid  
69 - // : "")  
70 - // };  
71 - let hrefUrl =  
72 - this.getParams(this.mode).shop.apiAddress +  
73 - "/html/sports-china/1/#/" +  
74 - "?activityId=" +  
75 - (this.mode == "prod" ? 92 : 77) +  
76 - (this.$route.query.uid  
77 - ? "&uid=" + this.$route.query.uid  
78 - : "");  
79 - window.location.href = hrefUrl; 56 + items = {
  57 + title: "线下赛事",
  58 + type: "30",
  59 + shop_type:
  60 + '{"id":"3","title":"\\u7ebf\\u4e0b\\u8d5b\\u4e8b"}',
  61 + to:
  62 + this.getParams(this.mode).shop.apiAddress +
  63 + "/html/sports-china/1/#/" +
  64 + "?activityId=" +
  65 + (this.mode == "prod" ? 92 : 77)
  66 + };
  67 + // let hrefUrl =
  68 + // this.getParams(this.mode).shop.apiAddress +
  69 + // "/html/sports-china/1/#/" +
  70 + // "?activityId=" +
  71 + // (this.mode == "prod" ? 92 : 77) +
  72 + // (this.$route.query.uid
  73 + // ? "&uid=" + this.$route.query.uid
  74 + // : "");
  75 + // window.location.href = hrefUrl;
80 } 76 }
  77 + // 通用跳转打开一个webview
  78 + this.$parent.gotoDetail(items);
81 } 79 }
82 } 80 }
83 } 81 }