Commit dbcb2e8ef2b2ca127bec85a377e47b324e63d4a5
1 parent
05a38d31
优选库——优选首页跳转列表页获取URL方式调整,直接获取目录
Showing
1 changed file
with
5 additions
and
5 deletions
src/pages/optimization2/optimization2.vue
| ... | ... | @@ -385,7 +385,7 @@ |
| 385 | 385 | // 设置跳转参数 |
| 386 | 386 | let params = { |
| 387 | 387 | type: '5', |
| 388 | - to: window.location.origin + '/html/select_good/1/#/discountList', | |
| 388 | + to: window.location.origin + window.location.pathname + '#/discountList', | |
| 389 | 389 | shop_type: '' |
| 390 | 390 | }; |
| 391 | 391 | |
| ... | ... | @@ -432,7 +432,7 @@ |
| 432 | 432 | // 设置跳转参数 |
| 433 | 433 | let params = { |
| 434 | 434 | type: '5', |
| 435 | - to: window.location.origin + '/html/select_good/1/#/optimizationList', | |
| 435 | + to: window.location.origin + window.location.pathname + '#/optimizationList', | |
| 436 | 436 | shop_type: '' |
| 437 | 437 | }; |
| 438 | 438 | |
| ... | ... | @@ -453,7 +453,7 @@ |
| 453 | 453 | // 设置跳转参数 |
| 454 | 454 | let params = { |
| 455 | 455 | type: '5', |
| 456 | - to: window.location.origin + '/html/select_good/1/#/hotSaleList', | |
| 456 | + to: window.location.origin + window.location.pathname + '#/hotSaleList', | |
| 457 | 457 | shop_type: '' |
| 458 | 458 | }; |
| 459 | 459 | |
| ... | ... | @@ -474,7 +474,7 @@ |
| 474 | 474 | // 设置跳转参数 |
| 475 | 475 | let params = { |
| 476 | 476 | type: '5', |
| 477 | - to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, | |
| 477 | + to: window.location.origin + window.location.pathname + '#/goodDetails?goodsId=' + item.id, | |
| 478 | 478 | shop_type: '' |
| 479 | 479 | }; |
| 480 | 480 | |
| ... | ... | @@ -495,7 +495,7 @@ |
| 495 | 495 | // 设置跳转参数 |
| 496 | 496 | let params = { |
| 497 | 497 | type: '5', |
| 498 | - to: window.location.origin + '/html/select_good/1/#/pointsMall', | |
| 498 | + to: window.location.origin + window.location.pathname + '#/pointsMall', | |
| 499 | 499 | shop_type: '' |
| 500 | 500 | }; |
| 501 | 501 | ... | ... |