guhongwei 2 anos atrás
pai
commit
54595f68c4

+ 1 - 1
pages/home/index.vue

@@ -124,7 +124,7 @@
 		onLoad: function() {
 		onLoad: function() {
 			const that = this;
 			const that = this;
 			that.search();
 			that.search();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			async search() {
 			async search() {

+ 1 - 1
pages/store/index.vue

@@ -64,7 +64,7 @@
 			await that.watchLogin();
 			await that.watchLogin();
 			// 查询列表
 			// 查询列表
 			await that.search();
 			await that.search();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 监听用户是否登录
 			// 监听用户是否登录

+ 19 - 22
pages/week/index.vue

@@ -2,15 +2,13 @@
 	<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
 	<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
 		<view class="main">
 		<view class="main">
 			<view class="one">
 			<view class="one">
-				<input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')"
-					placeholder-class="placss">
+				<input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')" placeholder-class="placss">
 			</view>
 			</view>
 			<view class="two">
 			<view class="two">
 				<view class="two_1">
 				<view class="two_1">
 					<scroll-view scroll-y="true" class="scroll-view">
 					<scroll-view scroll-y="true" class="scroll-view">
 						<view class="list-scroll-view">
 						<view class="list-scroll-view">
-							<view class="list" :class="[active==index?'listActive':'']" v-for="(item,index) in typeList"
-								:key="index" @tap="toChange(index,item)">
+							<view class="list" :class="[active==index?'listActive':'']" v-for="(item,index) in typeList" :key="index" @tap="toChange(index,item)">
 								<text>{{item.label}}</text>
 								<text>{{item.label}}</text>
 							</view>
 							</view>
 						</view>
 						</view>
@@ -21,13 +19,10 @@
 						<view class="list-scroll-view">
 						<view class="list-scroll-view">
 							<view class="two_2_1">
 							<view class="two_2_1">
 								<scroll-view scroll-x="true" class="typeScrollview">
 								<scroll-view scroll-x="true" class="typeScrollview">
-									<view class="list" v-for="(item,index) in list" :key="index"
-										@tap="twoChange(item,index)">
-										<image class="image"
-											:src="item.file&&item.file.length>0?item.file[0].url:logoUrl" mode="">
+									<view class="list" v-for="(item,index) in list" :key="index" @tap="twoChange(item,index)">
+										<image class="image" :src="item.file&&item.file.length>0?item.file[0].url:logoUrl" mode="">
 										</image>
 										</image>
-										<view class="label textOver"><text
-												:style="{color:twoActive==index?'#ff0000':'#000000'}">{{item.label}}</text>
+										<view class="label textOver"><text :style="{color:twoActive==index?'#ff0000':'#000000'}">{{item.label}}</text>
 										</view>
 										</view>
 									</view>
 									</view>
 								</scroll-view>
 								</scroll-view>
@@ -35,8 +30,7 @@
 							<view class=" two_2_2">
 							<view class=" two_2_2">
 								<view class="list" v-for="(tag,index) in marketList" :key="index" @tap="toBuy(tag)">
 								<view class="list" v-for="(tag,index) in marketList" :key="index" @tap="toBuy(tag)">
 									<view class="img">
 									<view class="img">
-										<image class="image" :src="tag.file&&tag.file.length>0?tag.file[0].url:''"
-											mode=""></image>
+										<image class="image" :src="tag.file&&tag.file.length>0?tag.file[0].url:''" mode=""></image>
 									</view>
 									</view>
 									<view class="info">
 									<view class="info">
 										<view class="name textOver">
 										<view class="name textOver">
@@ -93,7 +87,7 @@
 			const that = this;
 			const that = this;
 			that.searchConfig();
 			that.searchConfig();
 			that.search();
 			that.search();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置
@@ -209,14 +203,6 @@
 				that.$set(that, `twoActive`, index);
 				that.$set(that, `twoActive`, index);
 				that.searchMarket();
 				that.searchMarket();
 			},
 			},
-			// 清空列表
-			clearPage() {
-				const that = this;
-				that.$set(that, `marketList`, []);
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-			},
 			// 搜索商品
 			// 搜索商品
 			toCommon(e) {
 			toCommon(e) {
 				const that = this;
 				const that = this;
@@ -244,7 +230,18 @@
 						url: `/${e.route}`
 						url: `/${e.route}`
 					})
 					})
 				}
 				}
-			}
+			},
+			// 清空列表
+			clearPage() {
+				const that = this;
+				that.$set(that, `list`, [])
+				that.$set(that, `marketList`, [])
+				that.$set(that, `typeList`, [])
+				that.$set(that, `active`, '0')
+				that.$set(that, `skip`, 0)
+				that.$set(that, `limit`, 6)
+				that.$set(that, `page`, 0)
+			},
 		},
 		},
 		onPullDownRefresh: async function() {
 		onPullDownRefresh: async function() {
 			const that = this;
 			const that = this;

+ 1 - 1
pagesHome/exchange/index.vue

@@ -41,7 +41,7 @@
 			// 监听用户是否登录
 			// 监听用户是否登录
 			that.watchLogin();
 			that.watchLogin();
 			// 下拉刷新
 			// 下拉刷新
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		onShow: function() {
 		onShow: function() {
 			const that = this;
 			const that = this;

+ 1 - 1
pagesHome/market/search.vue

@@ -125,7 +125,7 @@
 			that.searchConfig();
 			that.searchConfig();
 			await that.searchOther();
 			await that.searchOther();
 			await that.search();
 			await that.search();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesHome/market/type.vue

@@ -83,7 +83,7 @@
 			that.searchConfig();
 			that.searchConfig();
 			that.search();
 			that.search();
 			// 下拉刷新
 			// 下拉刷新
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesHome/shop/index.vue

@@ -217,7 +217,7 @@
 			await that.search();
 			await that.search();
 			await that.searchOther();
 			await that.searchOther();
 			// 下拉刷新
 			// 下拉刷新
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesMy/address/index.vue

@@ -70,7 +70,7 @@
 			const that = this;
 			const that = this;
 			that.searchConfig();
 			that.searchConfig();
 			that.watchLogin();
 			that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesMy/assets/index.vue

@@ -30,7 +30,7 @@
 			};
 			};
 		},
 		},
 		onLoad: function(e) {
 		onLoad: function(e) {
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 
 

+ 1 - 1
pagesMy/collection/market.vue

@@ -144,7 +144,7 @@
 			const that = this;
 			const that = this;
 			that.searchConfig();
 			that.searchConfig();
 			that.watchLogin();
 			that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesMy/collection/shop.vue

@@ -124,7 +124,7 @@
 			const that = this;
 			const that = this;
 			that.searchConfig();
 			that.searchConfig();
 			that.watchLogin();
 			that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesMy/discount/index.vue

@@ -44,7 +44,7 @@
 			that.searchConfig();
 			that.searchConfig();
 			// 监听用户是否登录
 			// 监听用户是否登录
 			that.watchLogin();
 			that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesMy/dough/index.vue

@@ -99,7 +99,7 @@
 		onShow: function() {
 		onShow: function() {
 			const that = this;
 			const that = this;
 			that.watchLogin();
 			that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 输入框
 			// 输入框

+ 1 - 1
pagesMy/integral/index.vue

@@ -57,7 +57,7 @@
 			that.searchConfig();
 			that.searchConfig();
 			await that.searchOther();
 			await that.searchOther();
 			await that.watchLogin();
 			await that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		onHide: function() {
 		onHide: function() {
 			const that = this;
 			const that = this;

+ 1 - 1
pagesMy/order/after.vue

@@ -121,7 +121,7 @@
 			await that.searchOther();
 			await that.searchOther();
 			// 监听用户登录
 			// 监听用户登录
 			await that.watchLogin();
 			await that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesMy/order/index.vue

@@ -200,7 +200,7 @@
 			that.searchConfig();
 			that.searchConfig();
 			// 监听用户是否登录
 			// 监听用户是否登录
 			that.watchLogin();
 			that.watchLogin();
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesRest/activity/list.vue

@@ -51,7 +51,7 @@
 			that.searchConfig();
 			that.searchConfig();
 			that.search();
 			that.search();
 			// 下拉刷新
 			// 下拉刷新
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置

+ 1 - 1
pagesRest/recom/index.vue

@@ -52,7 +52,7 @@
 			that.searchOther();
 			that.searchOther();
 			that.search();
 			that.search();
 			// 下拉刷新
 			// 下拉刷新
-			uni.startPullDownRefresh();
+			
 		},
 		},
 		methods: {
 		methods: {
 			// 查询基本设置
 			// 查询基本设置