hwq 1 سال پیش
والد
کامیت
7cad80da88
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      pages/shoping/list.vue

+ 7 - 2
pages/shoping/list.vue

@@ -12,7 +12,7 @@
 				@columnchange='listChange'>
 				<view class="shop-name clamp">分类</view>
 			</picker>
-			<view class="shop-name clamp">重置</view>
+			<view class="shop-name clamp" @click="initSearch">重置</view>
 		</view>
 		<view class="jg" style="height: 20rpx;"></view>
 		<block :key="ind" v-for="(lss, ind) in list">
@@ -74,7 +74,7 @@
 				// 当前动态分类
 				typeAction: {
 					name: '分类',
-					cid: 0
+					cid: ''
 				},
 				type: 0, //3->开通会员选择门店  4->自提选择门店  5->附近门店进入不做任何操作
 				typeActionNum: 0, //当前选中的action
@@ -117,6 +117,11 @@
 		// // #endif
 		methods: {
 			...mapMutations(['setLat', 'setLon', 'setStoreInfo']),
+			initSearch() {
+				this.keyword = '';
+				this.typeAction.cid = '';
+				this.getShoping();
+			},
 			// 确认切换
 			changeType(res) {
 				console.log(res);