Commit 01d71d7b53a0eef2f3bd730ce2f5b7b1e76b4f7b

Authored by zhiyangdu
1 parent 2eb8a704

线下赛事改成url直接跳转

Showing 1 changed file with 24 additions and 15 deletions
src/pages/index/index.vue
... ... @@ -52,23 +52,32 @@ export default {
52 52 shop_type: "",
53 53 to: "0"
54 54 };
  55 + this.$parent.gotoDetail(items);
55 56 } else if (index == 2) {
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   - (this.$route.query.uid
67   - ? "&uid=" + this.$route.query.uid
68   - : "")
69   - };
  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;
70 80 }
71   - this.$parent.gotoDetail(items);
72 81 }
73 82 }
74 83 }
... ...