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 | 138 | * @param {object} item [数据对象] |
| 139 | 139 | */ |
| 140 | 140 | toDetail(item) { |
| 141 | - | |
| 142 | 141 | // 判断并调用通用跳转 |
| 143 | 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 | 154 | this.$parent.gotoDetail(item); |
| 145 | 155 | } |
| 146 | 156 | }, | ... | ... |
src/pages/recommendMore/recommendMore.vue
| ... | ... | @@ -180,9 +180,19 @@ |
| 180 | 180 | * @param {object} item [数据对象] |
| 181 | 181 | */ |
| 182 | 182 | toDetail(item) { |
| 183 | - | |
| 184 | 183 | // 判断并调用通用跳转 |
| 185 | 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 | 196 | this.$parent.gotoDetail(item); |
| 187 | 197 | } |
| 188 | 198 | }, | ... | ... |