|
|
@@ -276,7 +276,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
- this.initData().then(res => {
|
|
|
+ this.initData(this.id).then(res => {
|
|
|
uni.stopPullDownRefresh()
|
|
|
})
|
|
|
},
|
|
|
@@ -331,13 +331,14 @@ export default {
|
|
|
if(this.option.id){
|
|
|
id = this.option.id
|
|
|
}else{
|
|
|
- //小票上的二维码打开
|
|
|
- //https://api.shop.huaml.com/#/pagesPurchase/purDetails?id=1292
|
|
|
- if(this.option.q){
|
|
|
- let currentUrl = decodeURIComponent(this.option.q)
|
|
|
- id = currentUrl.substring(currentUrl.lastIndexOf("?id=") + 4)
|
|
|
- }
|
|
|
+ //小票上的二维码打开
|
|
|
+ //https://api.shop.huaml.com/#/pagesPurchase/purDetails?id=1292
|
|
|
+ if(this.option.q){
|
|
|
+ let currentUrl = decodeURIComponent(this.option.q)
|
|
|
+ id = currentUrl.substring(currentUrl.lastIndexOf("?id=") + 4)
|
|
|
+ }
|
|
|
}
|
|
|
+ this.id = id
|
|
|
this.initData(id)
|
|
|
},
|
|
|
initData (id) {
|