修改请求后台的地址;添加位置接口及ssl配置;加价提示语延长时间;
This commit is contained in:
parent
98474b4e1b
commit
b8602488e3
|
|
@ -13,7 +13,7 @@ export default {
|
||||||
})
|
})
|
||||||
let userInfo = _this.getCurUserInfo();
|
let userInfo = _this.getCurUserInfo();
|
||||||
// request 触发前拼接 url
|
// request 触发前拼接 url
|
||||||
args.url = 'https://www.opsoul.com' + args.url;
|
args.url = 'https://www.opsoul.com:8881' + args.url;
|
||||||
// args.url = 'http://127.0.0.1:80' + args.url;
|
// args.url = 'http://127.0.0.1:80' + args.url;
|
||||||
// args.url = 'http://192.168.2.50:80' + args.url;
|
// args.url = 'http://192.168.2.50:80' + args.url;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"appid" : "wx105ce607b514ff2a",
|
"appid" : "wx105ce607b514ff2a",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : false,
|
"urlCheck" : true,
|
||||||
"minified" : true
|
"minified" : true
|
||||||
},
|
},
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
|
|
@ -60,8 +60,6 @@
|
||||||
"desc" : "因涉及上门家政服务,需获取地理位置"
|
"desc" : "因涉及上门家政服务,需获取地理位置"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"requiredPrivateInfos": [
|
"requiredPrivateInfos" : [ "getLocation" ]
|
||||||
"getLocation"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@
|
||||||
this.payAction = payAction;
|
this.payAction = payAction;
|
||||||
},
|
},
|
||||||
async changeOrderPrice(newPrice) {
|
async changeOrderPrice(newPrice) {
|
||||||
if (this.payAction != this.priceObj.type) {
|
if (this.priceObj && this.payAction != this.priceObj.type) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '你有加价未付款,请客户支付后再加或在原加价上增加金额!',
|
title: '你有加价未付款,请客户支付后再加或在原加价上增加金额!',
|
||||||
|
|
@ -150,12 +150,13 @@
|
||||||
remark: this.remark
|
remark: this.remark
|
||||||
});
|
});
|
||||||
if (res && res.code === 0) {
|
if (res && res.code === 0) {
|
||||||
this.resetPriceChangedInfo();
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
title: '修改成功',
|
title: '修改成功'
|
||||||
duration: 1000
|
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
this.resetPriceChangedInfo();
|
||||||
|
}, 1500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async makePayQrcode(e) {
|
async makePayQrcode(e) {
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@
|
||||||
this.payAction = payAction;
|
this.payAction = payAction;
|
||||||
},
|
},
|
||||||
async changeOrderPrice(newPrice) {
|
async changeOrderPrice(newPrice) {
|
||||||
if (this.payAction != this.priceObj.type) {
|
if (this.priceObj && this.payAction != this.priceObj.type) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '你有加价未付款,请客户支付后再加或在原加价上增加金额!',
|
title: '你有加价未付款,请客户支付后再加或在原加价上增加金额!',
|
||||||
|
|
@ -150,12 +150,13 @@
|
||||||
remark: this.remark
|
remark: this.remark
|
||||||
});
|
});
|
||||||
if (res && res.code === 0) {
|
if (res && res.code === 0) {
|
||||||
this.resetPriceChangedInfo();
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
title: '修改成功',
|
title: '修改成功'
|
||||||
duration: 1000
|
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
this.resetPriceChangedInfo();
|
||||||
|
}, 1500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async makePayQrcode(e) {
|
async makePayQrcode(e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue