| | |
| | | async onLoad (options) { |
| | | |
| | | if(options.q){ |
| | | let queryParam = null; |
| | | const decodedUrl = decodeURIComponent(decodeURIComponent(option.q)); |
| | | const queryParam = { |
| | | id:'', |
| | | goodsId:'' |
| | | }; |
| | | const decodedUrl = decodeURIComponent(decodeURIComponent(options.q)); |
| | | console.log('原始URL:', decodedUrl); |
| | | const params = this.parseUrlParams(decodedUrl); |
| | | const id = params.id; |
| | |
| | | */ |
| | | back () { |
| | | if (getCurrentPages().length == 1) { |
| | | uni.switchTab({ |
| | | url: "/pages/tabbar/home/index", |
| | | uni.redirectTo({ |
| | | url: "/pages/commodity-square/commoditySquare", |
| | | }); |
| | | } else { |
| | | uni.navigateBack(); |