Commit 15771acdd02fad82a3cf7e8c4c6a090cb82ccdda

Authored by 王强
1 parent f76df97d

搜索结果,达人结果点击跳转H5达人个人主页。

Showing 1 changed file with 16 additions and 11 deletions
src/pages/search/search.vue
... ... @@ -659,19 +659,24 @@
659 659 */
660 660 toDarenProfile(item) {
661 661  
662   - // 判断并调用通用跳转
663   - if (typeof this.$parent.gotoDetail === "function") {
  662 + // 全部跳转H5达人相关页面,达人个人主页连接
  663 + if (item.id) {
  664 + window.location.href = (this.mode == "prod") ? "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?id=" + item.id + "&from=redirect" : "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?id=" + item.id + "&from=redirect";
  665 + }
664 666  
665   - // 构造跳转参数
666   - let options = {
667   - type: "24",
668   - to: item.id,
669   - shop_type: ""
670   - }
  667 + // // 判断并调用通用跳转
  668 + // if (typeof this.$parent.gotoDetail === "function") {
671 669  
672   - // 调用通用跳转
673   - this.$parent.gotoDetail(options);
674   - }
  670 + // // 构造跳转参数
  671 + // let options = {
  672 + // type: "24",
  673 + // to: item.id,
  674 + // shop_type: ""
  675 + // }
  676 +
  677 + // // 调用通用跳转
  678 + // this.$parent.gotoDetail(options);
  679 + // }
675 680 },
676 681  
677 682 /**
... ...