|
|
@@ -249,22 +249,16 @@ export default {
|
|
|
hasPay:this.hasPay
|
|
|
};
|
|
|
let that = this;
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '确认开单?',
|
|
|
- success: function (res) {
|
|
|
- if (res.confirm) {
|
|
|
- uni.showLoading({mask:true})
|
|
|
- createOrder(options).then(res => {
|
|
|
- uni.hideLoading()
|
|
|
- that.removeFromSaveDirect()
|
|
|
- const { data: { id } } = res
|
|
|
- let url = `/admin/billing/result?orderId=${id}`;
|
|
|
- uni.redirectTo({url: url})
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ that.$util.confirmModal({content:'确认开单?'},() => {
|
|
|
+ uni.showLoading({mask:true})
|
|
|
+ createOrder(options).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
+ that.removeFromSaveDirect()
|
|
|
+ const { data: { id } } = res
|
|
|
+ let url = `/admin/billing/result?orderId=${id}`;
|
|
|
+ uni.redirectTo({url: url})
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
gobackEvent() {
|
|
|
if(this.option.customId){
|