wcni 5 лет назад
Родитель
Сommit
c0c793a5a0
4 измененных файлов с 3 добавлено и 16 удалено
  1. 2 8
      pages/index/cart.vue
  2. 0 6
      pages/index/index.vue
  3. 0 1
      pages/index/sureBuy.vue
  4. 1 1
      pages/myOrder/reminder.vue

+ 2 - 8
pages/index/cart.vue

@@ -138,9 +138,6 @@
 				if(this.isdelete) {
 					// 结算
 					this.getorderId(); // 保存订单生成订单id
-					uni.navigateTo({
-						// url: `/pages/index/sureBuy?store=${store}&pricelist=${pricelist}&prices=${prices}`
-					});
 				}else {
 					if(ids == '') {
 						this.$msg('请选择删除商品');
@@ -178,6 +175,7 @@
 					 }
 				 })
 			},
+			// 购物车删除
 			deleteshop(ids) {
 				this.request({
 					url: '/v2/order/cart_drop',
@@ -188,7 +186,6 @@
 					},
 					success: () => {
 						this.nums = 0;
-						// this.isDelete = true;
 					    this.listip = "删除" + '(' + this.nums + ')';
 						this.getshoplist();
 					}
@@ -241,10 +238,7 @@
 			goback() {
 					uni.navigateBack(); 
 			},
-			// 编辑
-			deleteShop() {
-				
-			},
+			
 			// 数量累加
 			bindChange(e) {
 				 this.list[e.index].goods_num = e.number;

+ 0 - 6
pages/index/index.vue

@@ -250,12 +250,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/index/sureBuy.vue

@@ -170,7 +170,6 @@
 		 
 		</view>
 </template>
-
 <script>
 	
 	export default {

+ 1 - 1
pages/myOrder/reminder.vue

@@ -56,7 +56,7 @@
 						   this.$msg("催单成功");
 						   setTimeout(() => {
 							  uni.navigateBack();
-						   }, 2000)
+						   }, 500)
 						 
 					   }
  				   }