xiaohaizhao 1 gadu atpakaļ
vecāks
revīzija
0d61eb32e4

+ 8 - 1
packageA/activity/detail.js

@@ -188,7 +188,11 @@ Page({
 			title: '提示',
 			content: '是否确定创建促销订单?',
 			complete: (res) => {
-				if (res.confirm)
+				if (res.confirm) {
+					wx.showLoading({
+						title: '生成中...',
+						mask: true
+					})
 					_Http.basic({
 						"id": 20221128183202,
 						"content": {
@@ -217,6 +221,7 @@ Page({
 							})
 						}
 					}).then(res => {
+						wx.hideLoading()
 						console.log("转化促销订单", res)
 						wx.showToast({
 							title: res.msg != '成功' ? res.msg : '创建成功',
@@ -228,6 +233,8 @@ Page({
 							});
 						}, 300)
 					})
+				}
+
 			}
 		})
 	},

+ 2 - 2
packageA/activity/selectProduct/index.js

@@ -62,8 +62,8 @@ Page({
           })
         }`,
       })
-    }else if(detail == "submit"){
-      console.log('生成订单')
+    } else if (detail == "submit") {
+      this.submit()
     } else {
       _Http.basic({
         "id": 20231024110003,