Commit 8a742ac43c33f2db77f6506655cb888e72a24659

Authored by zhiyangdu
1 parent 42bfc130

已关注达人跳转改成跳转到h5

Showing 1 changed file with 14 additions and 3 deletions
src/pages/newDaren/newDaren.vue
... ... @@ -367,9 +367,20 @@ export default {
367 367  
368 368 // 判断是否有通用跳转函数
369 369 if (typeof this.$parent.gotoDetail === "function") {
370   -
371   - // 调用通用跳转
372   - this.$parent.gotoDetail(item);
  370 + // 判断并调用通用跳转
  371 + if (typeof this.$parent.gotoDetail === "function") {
  372 + // 临时,设置跳转达人个人主页用户数据
  373 + Object.assign(item, {
  374 + type: "5",
  375 + to: (this.mode == "prod") ?
  376 + "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?from=redirect" + "&id=" + item.user_id + "&uid=" + this.getStore("uid") :
  377 + "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?from=redirect" + "&id=" + item.user_id + "&uid=" + this.getStore("uid"),
  378 + shop_type: ""
  379 + });
  380 +
  381 + // 调用通用跳转
  382 + this.$parent.gotoDetail(item);
  383 + }
373 384 }
374 385 },
375 386  
... ...