瀏覽代碼

开单确认

shish 3 年之前
父節點
當前提交
45cd6120cc
共有 1 個文件被更改,包括 10 次插入16 次删除
  1. 10 16
      hdApp/src/admin/billing/affirm.vue

+ 10 - 16
hdApp/src/admin/billing/affirm.vue

@@ -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){