Commit 6d689b332da6334fd0fb276cd3d0807c4a629856
1 parent
04ce6cb1
达人最新动态列表页,点击用户信息,调用通用跳转,在App内打开新的WebView~
Showing
1 changed file
with
11 additions
and
7 deletions
src/pages/darenList/darenList.vue
| @@ -327,20 +327,24 @@ | @@ -327,20 +327,24 @@ | ||
| 327 | */ | 327 | */ |
| 328 | userJump(item) { | 328 | userJump(item) { |
| 329 | 329 | ||
| 330 | + // 判断并调用通用跳转 | ||
| 331 | + if (typeof this.$parent.gotoDetail === "function") { | ||
| 330 | 332 | ||
| 331 | - // 临时,设置跳转达人个人主页用户数据 | ||
| 332 | - Object.assign(item, { | ||
| 333 | - to: "40" | ||
| 334 | - }); | ||
| 335 | - | 333 | + // 临时,设置跳转达人个人主页用户数据 |
| 334 | + Object.assign(item, { | ||
| 335 | + type: "5", | ||
| 336 | + to: (this.mode == "prod") ? "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?id=40&from=redirect" : "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?id=40&from=redirect", | ||
| 337 | + shop_type: "" | ||
| 338 | + }); | ||
| 336 | 339 | ||
| 337 | 340 | ||
| 338 | - console.log("userJump", item); | 341 | + console.log("userJump", item); |
| 339 | 342 | ||
| 340 | 343 | ||
| 341 | - window.location.href = (this.mode == "prod") ? "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?id=" + item.to + "&from=redirect" : "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?id=" + item.to + "&from=redirect"; | ||
| 342 | 344 | ||
| 343 | 345 | ||
| 346 | + this.$parent.gotoDetail(item); | ||
| 347 | + } | ||
| 344 | }, | 348 | }, |
| 345 | 349 | ||
| 346 | /** | 350 | /** |