Commit 7992f0b338df696c3d227f8083af0dfee8931b1b

Authored by zhiyangdu
1 parent e413a2bf

首页跳转到商品详情页通用跳转打开新的一个webview

src/pages/pointsMall/pointsMall.less
... ... @@ -31,7 +31,7 @@
31 31 }
32 32 .main_box{
33 33 width: 100%;
34   - // min-height: 1840px;
  34 + min-height: 100vh;
35 35 background:#fff url("../../../static/img/pointsBack.png") no-repeat
36 36 center top;
37 37 background-size: 100%;
... ...
src/pages/pointsMall/pointsMall.vue
... ... @@ -177,7 +177,7 @@ export default {
177 177 document.documentElement.scrollTop = document.body.scrollTop = this.$refs[item.ref].offsetTop - safeDistance - (20 * ((document.documentElement.clientWidth || document.body.clientWidth) / 750)) - (this.$parent.top.value + 60);
178 178 }
179 179 } else {
180   - this.$parent.callApp();;
  180 + this.$parent.callApp();
181 181 }
182 182 },
183 183 /**
... ... @@ -193,7 +193,7 @@ export default {
193 193 }
194 194 })
195 195 } else {
196   - this.$parent.callApp();;
  196 + this.$parent.callApp();
197 197 }
198 198 },
199 199 /**
... ... @@ -212,7 +212,7 @@ export default {
212 212 window.obj.jumpClientIntegralList();
213 213 }
214 214 } else {
215   - this.$parent.callApp();;
  215 + this.$parent.callApp();
216 216 }
217 217 },
218 218 /**
... ... @@ -221,16 +221,21 @@ export default {
221 221 */
222 222 toDetail (item) {
223 223 if (this.isCNLive.value) {
224   - // 判断通用跳转函数是否存在
225   - this.$router.push({
226   - path: '/goodDetails',
227   - query: {
228   - goodsId: item.id,
229   - uid: this.getStore("uid")
230   - }
231   - })
  224 + // 跳转封装
  225 + if (typeof this.$parent.gotoDetail === 'function') {
  226 +
  227 + // 设置跳转参数
  228 + let params = {
  229 + type: '5',
  230 + to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id,
  231 + shop_type: ''
  232 + };
  233 +
  234 + // 页面跳转
  235 + this.$parent.gotoDetail(params);
  236 + }
232 237 } else {
233   - this.$parent.callApp();;
  238 + this.$parent.callApp();
234 239 }
235 240 },
236 241 /**
... ...