Bläddra i källkod

购物车删除修改

wcni 5 år sedan
förälder
incheckning
23abd478f3
5 ändrade filer med 13 tillägg och 24 borttagningar
  1. 2 2
      pages/index/cart.vue
  2. 0 1
      pages/index/index.vue
  3. 0 7
      pages/myCenter/definite.vue
  4. 0 1
      pages/myOrder/index.vue
  5. 11 13
      pages/myOrder/paymoment.vue

+ 2 - 2
pages/index/cart.vue

@@ -187,9 +187,9 @@
 						store_id: this.store_id
 					},
 					success: () => {
-						// this.nums = 0;
+						this.nums = 0;
 						// this.isDelete = true;
-					 //    this.listip = "结算" + '(' + this.nums + ')';
+					    this.listip = "删除" + '(' + this.nums + ')';
 						this.getshoplist();
 					}
 				})

+ 0 - 1
pages/index/index.vue

@@ -343,7 +343,6 @@
 				},
 				fail: (res) => {
 					this.allow = true;
-					
 					uni.hideLoading(); 
 				}
 			});  

+ 0 - 7
pages/myCenter/definite.vue

@@ -7,7 +7,6 @@
 			<view class="moneysize">{{userinfo.member_points}}</view>
 			<view>我的圈币</view>
 		</view>
-		
 		<van-cell v-for="(item,index) in point_list" :key="index" use-label-slot :title="'圈币来源:'+item.pl_desc" >
 			<template>
 				{{item.pl_stage == "payment" ? "-" : "+"}}{{item.pl_points}}
@@ -61,12 +60,6 @@
 				},
 				
 				getop() {
-					//  setTimeout( () => {  
-					// 		uni.pageScrollTo({  
-					// 		   duration:0,			//过渡时间必须为0,uniapp bug,否则运行到手机会报错
-					// 		   scrollTop: 0,  
-					// 		})  
-					// },300)  
 					   this.scrollTop = this.old.scrollTop
 		                this.$nextTick(function(){
 		                    this.scrollTop=0;

+ 0 - 1
pages/myOrder/index.vue

@@ -211,7 +211,6 @@
 						this.state = 'cancel';
 						this.getlist();
 					  }
-					  
 					  if(e.target.name == 5) {
 					  	this.state = 'refund';
 						//this.refund();	

+ 11 - 13
pages/myOrder/paymoment.vue

@@ -116,12 +116,12 @@
 					},
 					success: (res) => {
 						if(res.data.code == 1000) {
+							uni.hideLoading();  
 								let isform = this.isform;
 								let store_id = this.store_id;
 								uni.redirectTo({
 									url: `/pages/myOrder/finsh?isform=${isform}&order_id=${this.order_id}&store_id=${store_id}`
 								})
-								//uni.navigateBack()
 						}
 						
 					}
@@ -133,7 +133,9 @@
 			payMoney() {
 				if(this.radio == 0) {
 					// 微信支付
-					 
+					 // uni.showLoading({
+					 // 	title: '支付中'  
+					 // });
 					this.request({
 						url:'/v1/payment/pay',
 						method: 'post',
@@ -144,9 +146,7 @@
 						},
 						success:(res) => {
 							let { wx } = res.data.data;
-							// uni.showLoading({
-							// 	title: '支付中'  
-							// });
+							
 							uni.requestPayment({
 								    provider: 'wxpay',
 								    timeStamp: wx.timeStamp,
@@ -154,9 +154,7 @@
 								    package:  wx.package,
 								    signType: 'MD5',
 								    paySign: wx.paySign,
-									
 								    success:  (res) => {
-										console.log("成功")
 										let isform = this.isform;
 										let order_id = this.order_id;
 										let store_id =  this.store_id;
@@ -164,12 +162,12 @@
 											url: `/pages/myOrder/finsh?isform=${isform}&order_id=${order_id}&store_id=${store_id}`
 										})
 								    },
-								  //   fail: (err) => {
-										// let order_id = this.order_id ;
-										// uni.redirectTo({
-										//         url: `/pages/myOrder/order?id=${order_id}`
-										// });
-								  //   }
+								    fail: (err) => {
+										let order_id = this.order_id ;
+										uni.redirectTo({
+										        url: `/pages/myOrder/order?id=${order_id}`
+										});
+								    }
 							})
 						},
 						fail:(res) => {