Commit 6821bbe76301769138dd3413da27b7e58085f79b
1 parent
f74823ad
组件跳转h5和原生区分
Showing
1 changed file
with
3 additions
and
4 deletions
src/pages/newDaren/newDaren.vue
| ... | ... | @@ -341,7 +341,7 @@ |
| 341 | 341 | // 临时,设置跳转参数,跳转达人动态详情页面 |
| 342 | 342 | Object.assign(item, { |
| 343 | 343 | type: "25", |
| 344 | - to: "265", | |
| 344 | + to: (this.mode == "prod") ? "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfileDynamicDetail/darenProfileDynamicDetail?from=redirect" + "&id=" + item.id : "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfileDynamicDetail/darenProfileDynamicDetail?from=redirect"+ "&id=" + item.id, | |
| 345 | 345 | shop_type: "" |
| 346 | 346 | }); |
| 347 | 347 | |
| ... | ... | @@ -358,7 +358,6 @@ |
| 358 | 358 | * @param {object} item [数据对象] |
| 359 | 359 | */ |
| 360 | 360 | userJump(item) { |
| 361 | - | |
| 362 | 361 | // 判断并调用通用跳转 |
| 363 | 362 | if (typeof this.$parent.gotoDetail === "function") { |
| 364 | 363 | |
| ... | ... | @@ -391,7 +390,7 @@ |
| 391 | 390 | // 临时,设置跳转商品详情参数 |
| 392 | 391 | Object.assign(item, { |
| 393 | 392 | type: "2", |
| 394 | - to: "9525393", | |
| 393 | + to: item.id, | |
| 395 | 394 | shop_type: "1" |
| 396 | 395 | }); |
| 397 | 396 | |
| ... | ... | @@ -416,7 +415,7 @@ |
| 416 | 415 | // 临时,设置跳转商品详情参数 |
| 417 | 416 | Object.assign(item, { |
| 418 | 417 | type: "2", |
| 419 | - to: "9525393", | |
| 418 | + to: item.id, | |
| 420 | 419 | shop_type: "1" |
| 421 | 420 | }); |
| 422 | 421 | ... | ... |