Commit a01be639c30658a9a76f23bbb6c417f8e28f7c27
1 parent
4f97776d
详情跳转重新打开一个页面
Showing
1 changed file
with
2 additions
and
2 deletions
src/pages/goodDetails/goodDetails.vue
| ... | ... | @@ -170,7 +170,7 @@ export default { |
| 170 | 170 | */ |
| 171 | 171 | toDetail (item) { |
| 172 | 172 | let url = this.mode == "prod" ? "https://managemall.cnlive.com/html/select_good/1/#/" : "https://wjjshop.cnlive.com/html/select_good/1/#/" |
| 173 | - window.location.href = url + "goodDetails?goodsId=" + item.id + "&uid" + this.getStore("uid"); | |
| 173 | + window.open = url + "goodDetails?goodsId=" + item.id + "&uid" + this.getStore("uid"); | |
| 174 | 174 | }, |
| 175 | 175 | // 兑换 |
| 176 | 176 | exchange () { |
| ... | ... | @@ -202,7 +202,7 @@ export default { |
| 202 | 202 | toShare () { |
| 203 | 203 | // 判断分享 |
| 204 | 204 | if (typeof this.$parent.toShare === 'function') { |
| 205 | - this.$parent.toShare(46, "1", ""); | |
| 205 | + this.$parent.toShare(46, this.$route.query.goodsId, ""); | |
| 206 | 206 | } |
| 207 | 207 | }, |
| 208 | 208 | /** | ... | ... |