Commit 884bd8c8b495fbe9f7521eb92c391fdc434c385c
1 parent
b5035dd9
个人中心跳转优化
Showing
2 changed files
with
22 additions
and
2 deletions
src/pages/fansShopMessageList/fansShopMessageList.vue
| @@ -138,9 +138,19 @@ | @@ -138,9 +138,19 @@ | ||
| 138 | * @param {object} item [数据对象] | 138 | * @param {object} item [数据对象] |
| 139 | */ | 139 | */ |
| 140 | toDetail(item) { | 140 | toDetail(item) { |
| 141 | - | ||
| 142 | // 判断并调用通用跳转 | 141 | // 判断并调用通用跳转 |
| 143 | if (typeof this.$parent.gotoDetail === "function") { | 142 | if (typeof this.$parent.gotoDetail === "function") { |
| 143 | + | ||
| 144 | + // 临时,设置跳转达人个人主页用户数据 | ||
| 145 | + Object.assign(item, { | ||
| 146 | + type: "5", | ||
| 147 | + to: (this.mode == "prod") ? "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?from=redirect" + "&id=" + item.id : "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?from=redirect"+ "&id=" + item.id, | ||
| 148 | + shop_type: "" | ||
| 149 | + }); | ||
| 150 | + | ||
| 151 | + | ||
| 152 | + console.log("userJump", item); | ||
| 153 | + | ||
| 144 | this.$parent.gotoDetail(item); | 154 | this.$parent.gotoDetail(item); |
| 145 | } | 155 | } |
| 146 | }, | 156 | }, |
src/pages/recommendMore/recommendMore.vue
| @@ -180,9 +180,19 @@ | @@ -180,9 +180,19 @@ | ||
| 180 | * @param {object} item [数据对象] | 180 | * @param {object} item [数据对象] |
| 181 | */ | 181 | */ |
| 182 | toDetail(item) { | 182 | toDetail(item) { |
| 183 | - | ||
| 184 | // 判断并调用通用跳转 | 183 | // 判断并调用通用跳转 |
| 185 | if (typeof this.$parent.gotoDetail === "function") { | 184 | if (typeof this.$parent.gotoDetail === "function") { |
| 185 | + | ||
| 186 | + // 临时,设置跳转达人个人主页用户数据 | ||
| 187 | + Object.assign(item, { | ||
| 188 | + type: "5", | ||
| 189 | + to: (this.mode == "prod") ? "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?from=redirect" + "&id=" + item.id : "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfile/darenProfile?from=redirect"+ "&id=" + item.id, | ||
| 190 | + shop_type: "" | ||
| 191 | + }); | ||
| 192 | + | ||
| 193 | + | ||
| 194 | + console.log("userJump", item); | ||
| 195 | + | ||
| 186 | this.$parent.gotoDetail(item); | 196 | this.$parent.gotoDetail(item); |
| 187 | } | 197 | } |
| 188 | }, | 198 | }, |