Ver Fonte

添加生成订单按钮

xiaohaizhao há 1 ano atrás
pai
commit
d177b59657

+ 1 - 1
packageA/activity/detail.js

@@ -178,7 +178,7 @@ Page({
 				}
 			}),
 		});
-		// getApp().globalData.handleSelect = this.creadedOrderForm.bind(this);
+		getApp().globalData.handleSelect = this.creadedOrderForm.bind(this);
 	},
 	creadedOrderForm({
 		list

+ 3 - 0
packageA/activity/selectProduct/cart/footer.wxml

@@ -9,4 +9,7 @@
 	<view hover-class="{{disabled?'none':'navigator-hover'}}" style="background: rgba({{disabled?'243,123,29,.7':'243,123,29,1'}});color: #fff;" class="submit" data-event="update" bindtap="{{disabled?'':'clickBut'}}">
 		加入促销购物车
 	</view>
+	<view hover-class="{{disabled?'none':'navigator-hover'}}" style="background: rgba({{disabled?'8,92,223,.7':'8,92,223,1'}});color: #fff;" class="submit" data-event="submit" bindtap="{{disabled?'':'clickBut'}}">
+		生成订单
+	</view>
 </view>

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

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