Browse Source

bug修复:商品删除

baijunde 7 tháng trước cách đây
mục cha
commit
f44e9fd689
3 tập tin đã thay đổi với 14 bổ sung12 xóa
  1. 2 2
      manifest.json
  2. 5 6
      pages/product/index.vue
  3. 7 4
      pages/store/addHours.vue

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "掌柜生活商户版",
     "appid" : "__UNI__E0EA6E1",
     "description" : "",
-    "versionName" : "1.1.5.9",
-    "versionCode" : 1159,
+    "versionName" : "1.1.6.0",
+    "versionCode" : 1160,
     "transformPx" : false,
     "app-plus" : {
         /* 5+App特有相关 */

+ 5 - 6
pages/product/index.vue

@@ -110,7 +110,7 @@
 					<image src="/static/product/round.png" mode="" v-else></image>
 					全选
 				</view>
-				<view class="delete" @click="remove">删除</view>
+				<view class="delete" @click="remove" v-if="currentIndex == 0 || currentIndex == 3">删除</view>
 				<view class="delete delist" @click="deletes(1)" v-if="currentIndex == 0">上架</view>
 				<view class="delete delist" @click="deletes(0)" v-else>下架</view>
 			</view>
@@ -331,7 +331,6 @@ export default {
 		},
 		//批量删除
 		remove() {
-			console.log(this.productList)
 			this.productList.forEach((item => {
 				if (item.select) {
 					this.productHandleList.push(item.productId)
@@ -339,7 +338,7 @@ export default {
 
 			}))
 			this.isDelete = true
-			this.getProductList()
+			// this.getProductList()
 		},
 		removeProduct() {
 			let ids = []
@@ -353,12 +352,12 @@ export default {
 							duration: 2000,
 							icon: 'none'
 						});
+						this.getProductList()
 						this.isDelete = false
 						this.productHandleList = []
-						this.$router.go(0)
 						this.isManage = false
 						this.isAll = false
-						this.getProductList()
+						
 					} else {
 						this.isDelete = false
 						this.productHandleList = []
@@ -914,7 +913,7 @@ export default {
 		.operate {
 			width: 100%;
 			display: flex;
-			// justify-content: space-between;
+			justify-content: space-between;
 			align-items: center;
 			padding: 0px 20rpx;
 

+ 7 - 4
pages/store/addHours.vue

@@ -214,10 +214,13 @@ export default {
             }
         },
         add() {
-            this.timeArr.push({
-                value: '',
-                show: false,
-            })
+					if( this.timeArr.length<3){
+						this.timeArr.push({
+						    value: '',
+						    show: false,
+						})
+					}
+           
         },
         onEndTimeChange(val) {
             this.timeArr[this.timeIndex].value = val.startDate + '-' + val.endDate