Parcourir la source

Merge branch 'master' of http://47.98.226.240:3000/twt/txCar

* 'master' of http://47.98.226.240:3000/twt/txCar:
  订单
  Update .gitignore
  gitignor
  下单价格
guo il y a 3 ans
Parent
commit
cf15c66278
3 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 2 1
      .gitignore
  2. 2 3
      pages/module/confirmOrder.vue
  3. 2 2
      pages/module/maintain.vue

+ 2 - 1
.gitignore

@@ -1 +1,2 @@
-unpackage/
+unpackage/*
+dist/

+ 2 - 3
pages/module/confirmOrder.vue

@@ -310,13 +310,12 @@ export default {
 			  itemCount:this.itemCount,
 			  couponMoney:this.couponMoney,
 			  couponID:this.couponID,
-			 // payMoney:this.payMoney,
-			  payMoney:0.01,
+			  payMoney:this.payMoney,
+			  //payMoney:0.01,
 			  packJsonArr:JSON.stringify(this.packJsonArr) ,
 			  shopID:this.orderShop.shopId,
 			 // unionID:this.orderShop.unionId,
 			 },'POST').then(res => {
-				 
 				  if(res.code==0){
 					   if(this.payMoney==0){
 						    uni.hideLoading();

+ 2 - 2
pages/module/maintain.vue

@@ -298,11 +298,11 @@ export default {
 							}
 							if(i.listGoodsAll.length>0){
 								i.listGoodsAll.forEach((goods,goodsIndex)=>{
-									 goods.forEach(sp=>{
+									/* goods.forEach(sp=>{
 									    this.goodsTotal=Number(this.goodsTotal)
 										this.goodsTotal+=sp.salePrice*sp.qty
 										this.goodsTotal=this.goodsTotal.toFixed(2) 
-									}) 
+									}) */
 									//goods[0].salePrice=1;
 									this.goodsTotal=Number(this.goodsTotal)
 									this.goodsTotal+=goods[0].salePrice*goods[0].qty