|
@@ -88,8 +88,9 @@
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ console.log('options',options);
|
|
|
this.zfbInfo = options
|
|
|
- this.uid = options.uid
|
|
|
+ this.uid = options.uid || ""
|
|
|
this.shopId = options.shopId
|
|
|
let info = localStorage.getItem('aliPayUserInfo');
|
|
|
this.localUserInfo = JSON.parse(info)
|
|
@@ -149,8 +150,9 @@
|
|
|
if (!this.price) {
|
|
|
uni.$u.toast('请输入支付金额!');
|
|
|
}
|
|
|
+
|
|
|
let res = await axios.get(`${requestConfig.BaseUrl}order/app/v1/buyer/order/createOfflineOrder
|
|
|
- ?shopId=${this.zfbInfo.shopId}&price=${this.price}&uid=${this.uid}`, {
|
|
|
+ ?shopId=${this.zfbInfo.shopId}&price=${this.price}${this.uid?'&uid='+this.uid:''}`, {
|
|
|
headers: {
|
|
|
'token': `${this.userInfo.token}`
|
|
|
}
|
|
@@ -202,7 +204,9 @@
|
|
|
|
|
|
async getShopInfo() {
|
|
|
let res = await axios.get(
|
|
|
- `${requestConfig.BaseUrl}user/app/v1/store/getStoreInfoByScan?shopId=${this.zfbInfo.shopId}&uid=${this.uid}`, {
|
|
|
+ `${requestConfig.BaseUrl}user/app/v1/store/getStoreInfoByScan?shopId=${this.zfbInfo.shopId}
|
|
|
+ ${this.uid?'&uid='+this.uid:''}
|
|
|
+ `, {
|
|
|
headers: {
|
|
|
'token': `${this.userInfo.token}`
|
|
|
}
|