zs 2 år sedan
förälder
incheckning
d541013d90

+ 27 - 20
pages/home/index.vue

@@ -1,14 +1,18 @@
 <template>
 	<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
-		<scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-top="scrollTop" @scroll="scroll" @scrolltolower="toPage">
+		<scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-top="scrollTop" @scroll="scroll"
+			@scrolltolower="toPage">
 			<view class="list-scroll-view">
 				<view class="main">
 					<view class="zero 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 class="zero two">
-						<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
-							<swiper-item class="list" v-for="(item,index) in bannerList" :key="index" @tap="toBanner(item)">
+						<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
+							indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
+							<swiper-item class="list" v-for="(item,index) in bannerList" :key="index"
+								@tap="toBanner(item)">
 								<image class="image" :src="item.url&&item.url.length>0?item.url[0].url:''" mode="">
 								</image>
 							</swiper-item>
@@ -23,7 +27,8 @@
 						</view>
 					</view>
 					<view class="zero four" v-if="recomList&&recomList.length>0">
-						<view class="recomList" v-for="(item,index) in recomList" :key="index" v-if="item.list&&item.list.length>0">
+						<view class="recomList" v-for="(item,index) in recomList" :key="index"
+							v-if="item.list&&item.list.length>0">
 							<view class="list" v-for="(tag,indexs) in item.list" :key="indexs" @tap="toBuy(tag)">
 								<view class="list_1">
 									<view class="txt">
@@ -34,7 +39,8 @@
 									</view>
 								</view>
 								<view class="list_2">
-									<image class="image" :src="tag.url&&tag.url.length>0?tag.url[0].url:''" mode=""></image>
+									<image class="image" :src="tag.url&&tag.url.length>0?tag.url[0].url:''" mode="">
+									</image>
 								</view>
 								<view class="list_3 textOver">
 									{{tag.name}}
@@ -45,7 +51,8 @@
 					<view class="zero act">
 						<view class="list" v-for="(item,index) in platformactList" :key="index" @tap="toAct(item)">
 							<view class="img">
-								<image class="image" :src="item.cover&&item.cover.length>0?item.cover[0].url:''" mode="">
+								<image class="image" :src="item.cover&&item.cover.length>0?item.cover[0].url:''"
+									mode="">
 								</image>
 							</view>
 							<view class="title" v-if="item.act_time.is_use=='0'">
@@ -257,20 +264,20 @@
 				this.$nextTick(function() {
 					this.scrollTop = 0
 				});
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `bannerList`, [])
-				that.$set(that, `btnList`, [])
-				that.$set(that, `recomList`, [])
-				that.$set(that, `platformactList`, [])
-				that.$set(that, `marketList`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `bannerList`, [])
+			that.$set(that, `btnList`, [])
+			that.$set(that, `recomList`, [])
+			that.$set(that, `platformactList`, [])
+			that.$set(that, `marketList`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 9 - 9
pages/store/index.vue

@@ -175,16 +175,16 @@
 						url: `/${e.route}`
 					})
 				}
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 26 - 18
pages/week/index.vue

@@ -2,13 +2,15 @@
 	<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
 		<view class="main">
 			<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 class="two">
 				<view class="two_1">
 					<scroll-view scroll-y="true" class="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>
 							</view>
 						</view>
@@ -19,16 +21,22 @@
 						<view class="list-scroll-view">
 							<view class="two_2_1">
 								<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=""></image>
-										<view class="label textOver"><text :style="{color:twoActive==index?'#ff0000':'#000000'}">{{item.label}}</text></view>
+									<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>
+										<view class="label textOver"><text
+												:style="{color:twoActive==index?'#ff0000':'#000000'}">{{item.label}}</text>
+										</view>
 									</view>
 								</scroll-view>
 							</view>
 							<view class=" two_2_2">
 								<view class="list" v-for="(tag,index) in marketList" :key="index" @tap="toBuy(tag)">
 									<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 class="info">
 										<view class="name textOver">
@@ -236,19 +244,19 @@
 						url: `/${e.route}`
 					})
 				}
-			},
-			onPullDownRefresh: async function() {
-				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)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			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)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 9 - 9
pagesMy/address/index.vue

@@ -261,16 +261,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 5)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 10 - 9
pagesMy/assets/index.vue

@@ -33,15 +33,16 @@
 			uni.startPullDownRefresh();
 		},
 		methods: {
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
-			}
+
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 17 - 13
pagesMy/collection/market.vue

@@ -8,23 +8,27 @@
 				<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
 					<view class="list-scroll-view">
 						<view class="two_1">
-							<view :class="['list',condActive==index?'activeList':'']" v-for="(item,index) in condList" :key="index" @tap="toCond(index,item)">
+							<view :class="['list',condActive==index?'activeList':'']" v-for="(item,index) in condList"
+								:key="index" @tap="toCond(index,item)">
 								<view class="name" v-if="index!=4">
 									{{item.name}}
 								</view>
 								<view v-if="index==4" class="icon4">
 									<view class="icon_1">
-										<text :class="['iconfont',item.shangActive]" v-if="condActive==index&&shang=='1'"></text>
+										<text :class="['iconfont',item.shangActive]"
+											v-if="condActive==index&&shang=='1'"></text>
 										<text :class="['iconfont',item.shang]" v-else></text>
 									</view>
 								</view>
 								<view v-else class="icon">
 									<view class="icon_1">
-										<text :class="['iconfont',item.shangActive]" v-if="condActive==index&&shang=='1'"></text>
+										<text :class="['iconfont',item.shangActive]"
+											v-if="condActive==index&&shang=='1'"></text>
 										<text :class="['iconfont',item.shang]" v-else></text>
 									</view>
 									<view class="icon_1">
-										<text :class="['iconfont', item.xiaActive]" v-if="condActive==index&&xia=='-1'"></text>
+										<text :class="['iconfont', item.xiaActive]"
+											v-if="condActive==index&&xia=='-1'"></text>
 										<text :class="['iconfont', item.xia]" v-else></text>
 									</view>
 								</view>
@@ -313,16 +317,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 6)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 17 - 13
pagesMy/collection/shop.vue

@@ -8,23 +8,27 @@
 				<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
 					<view class="list-scroll-view">
 						<view class="two_1">
-							<view :class="['list',condActive==index?'activeList':'']" v-for="(item,index) in condList" :key="index" @tap="toCond(index,item)">
+							<view :class="['list',condActive==index?'activeList':'']" v-for="(item,index) in condList"
+								:key="index" @tap="toCond(index,item)">
 								<view class="name" v-if="index!=2">
 									{{item.name}}
 								</view>
 								<view v-if="index==2" class="icon4">
 									<view class="icon_1">
-										<text :class="['iconfont',item.shangActive]" v-if="condActive==index&&shang=='1'"></text>
+										<text :class="['iconfont',item.shangActive]"
+											v-if="condActive==index&&shang=='1'"></text>
 										<text :class="['iconfont',item.shang]" v-else></text>
 									</view>
 								</view>
 								<view v-else class="icon">
 									<view class="icon_1">
-										<text :class="['iconfont',item.shangActive]" v-if="condActive==index&&shang=='1'"></text>
+										<text :class="['iconfont',item.shangActive]"
+											v-if="condActive==index&&shang=='1'"></text>
 										<text :class="['iconfont',item.shang]" v-else></text>
 									</view>
 									<view class="icon_1">
-										<text :class="['iconfont', item.xiaActive]" v-if="condActive==index&&xia=='-1'"></text>
+										<text :class="['iconfont', item.xiaActive]"
+											v-if="condActive==index&&xia=='-1'"></text>
 										<text :class="['iconfont', item.xia]" v-else></text>
 									</view>
 								</view>
@@ -282,16 +286,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 5)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 9 - 9
pagesMy/discount/index.vue

@@ -133,16 +133,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 5)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 11 - 10
pagesMy/dough/index.vue

@@ -11,7 +11,8 @@
 							<view class="list-scroll-view">
 								<view class="list" v-for="(item, index) in list" :key="index" @click="toShare(item)">
 									<view class="image">
-										<image class="file" v-for="(tag, indexs) in item.persons.slice(0,9)" :key="indexs" :src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
+										<image class="file" v-for="(tag, indexs) in item.persons.slice(0,9)"
+											:key="indexs" :src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
 										</image>
 									</view>
 									<view class="list_1">
@@ -207,16 +208,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 6)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 10 - 10
pagesMy/integral/index.vue

@@ -59,7 +59,7 @@
 			await that.watchLogin();
 			uni.startPullDownRefresh();
 		},
-        onHide: function() {
+		onHide: function() {
 			const that = this;
 			that.clearPage();
 		},
@@ -168,16 +168,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 6)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 9 - 9
pagesMy/order/after.vue

@@ -267,16 +267,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 5)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>

+ 42 - 25
pagesMy/order/index.vue

@@ -12,7 +12,8 @@
 								<view class="list_1" v-if="tabs.active=='-0'">
 									全部订单
 								</view>
-								<view class="list_2" v-for="(item,index) in list" :key="index" v-else-if="tabs.active=='0'" @tap="toInfo(item)">
+								<view class="list_2" v-for="(item,index) in list" :key="index"
+									v-else-if="tabs.active=='0'" @tap="toInfo(item)">
 									<view class="status">
 										{{item.status=='0'?'待付款':item.status=='1'?'已支付':item.status=='-1'?'取消订单':item.status=='2'?'发货中':item.status=='-2'?'已退款':item.status=='3'?'已收货':item.status=='-3'?'申请售后':item.status=='-4'?'正在售后中':item.status=='-5'?'售后已结束':'未识别'}}
 									</view>
@@ -26,7 +27,9 @@
 										<view class="goods_2">
 											<view class="market" v-for="(tags,indexss) in tag.goods" :key="indexss">
 												<view class="url">
-													<image class="image" :src="tags.goods.file&&tags.goods.file.length>0?tags.goods.file[0].url:''" mode=""></image>
+													<image class="image"
+														:src="tags.goods.file&&tags.goods.file.length>0?tags.goods.file[0].url:''"
+														mode=""></image>
 												</view>
 												<view class="goodsname">
 													{{tags.goods.name}}
@@ -53,15 +56,22 @@
 										<text>总价¥{{item.total_detail.goods_total}}</text>
 									</view>
 									<view class="btn">
-										<button v-if="item.status=='0'" type="default" size="mini" @tap.stop="toCancel(item)">取消订单</button>
-										<button class="toPay" v-if="item.status=='0'" type="default" size="mini" @tap.stop="toPay(item)">付款</button>
-										<button v-if="item.status=='2'" type="default" size="mini" @tap.stop="toConfirm(item)">确认收货</button>
-										<button v-if="item.status!='0'" type="default" size="mini" @tap.stop="toAfter(item)">申请售后</button>
-										<button v-if="item.status=='3'&&!item.rate" type="default" size="mini" @tap.stop="toAppraise(item)">立即评价</button>
-										<button v-if="item.status=='3'&&item.rate" type="default" size="mini" @tap.stop="toAppraise(item)">追加评价</button>
+										<button v-if="item.status=='0'" type="default" size="mini"
+											@tap.stop="toCancel(item)">取消订单</button>
+										<button class="toPay" v-if="item.status=='0'" type="default" size="mini"
+											@tap.stop="toPay(item)">付款</button>
+										<button v-if="item.status=='2'" type="default" size="mini"
+											@tap.stop="toConfirm(item)">确认收货</button>
+										<button v-if="item.status!='0'" type="default" size="mini"
+											@tap.stop="toAfter(item)">申请售后</button>
+										<button v-if="item.status=='3'&&!item.rate" type="default" size="mini"
+											@tap.stop="toAppraise(item)">立即评价</button>
+										<button v-if="item.status=='3'&&item.rate" type="default" size="mini"
+											@tap.stop="toAppraise(item)">追加评价</button>
 									</view>
 								</view>
-								<view class="list_2 list_3" v-for="(item,index) in list" :key="index" @tap="toInfo(item)" v-else>
+								<view class="list_2 list_3" v-for="(item,index) in list" :key="index"
+									@tap="toInfo(item)" v-else>
 									<view class="list_3_1">
 										<view class="goods_1">
 											<view class="shopname">
@@ -104,13 +114,20 @@
 										<text>总价¥{{item.real_pay}}</text>
 									</view>
 									<view class="btn">
-										<button v-if="item.status=='2'||item.status=='3'" type="default" size="mini" @tap.stop="toLogi(item)">查看物流</button>
-										<button v-if="item.status=='0'" type="default" size="mini" @tap.stop="toCancel(item)">取消订单</button>
-										<button class="toPay" v-if="item.status=='0'" type="default" size="mini" @tap.stop="toPay(item)">付款</button>
-										<button v-if="item.status=='2'" type="default" size="mini" @tap.stop="toConfirm(item)">确认收货</button>
-										<button v-if="item.status!='0'" type="default" size="mini" @tap.stop="toAfter(item)">申请售后</button>
-										<button v-if="item.status=='3'&&!item.rate" type="default" size="mini" @tap.stop="toAppraise(item)">立即评价</button>
-										<button v-if="item.status=='3'&&item.rate" type="default" size="mini" @tap.stop="toAppraise(item)">追加评价</button>
+										<button v-if="item.status=='2'||item.status=='3'" type="default" size="mini"
+											@tap.stop="toLogi(item)">查看物流</button>
+										<button v-if="item.status=='0'" type="default" size="mini"
+											@tap.stop="toCancel(item)">取消订单</button>
+										<button class="toPay" v-if="item.status=='0'" type="default" size="mini"
+											@tap.stop="toPay(item)">付款</button>
+										<button v-if="item.status=='2'" type="default" size="mini"
+											@tap.stop="toConfirm(item)">确认收货</button>
+										<button v-if="item.status!='0'" type="default" size="mini"
+											@tap.stop="toAfter(item)">申请售后</button>
+										<button v-if="item.status=='3'&&!item.rate" type="default" size="mini"
+											@tap.stop="toAppraise(item)">立即评价</button>
+										<button v-if="item.status=='3'&&item.rate" type="default" size="mini"
+											@tap.stop="toAppraise(item)">追加评价</button>
 									</view>
 								</view>
 								<view class="is_bottom" v-if="is_bottom">
@@ -450,16 +467,16 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 5)
 				that.$set(that, `page`, 0)
-			},
-			onPullDownRefresh: async function() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
-				that.$set(that, `page`, 0)
-				await that.search();
-				uni.stopPullDownRefresh();
 			}
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.$set(that, `list`, [])
+			that.$set(that, `skip`, 0)
+			that.$set(that, `limit`, 6)
+			that.$set(that, `page`, 0)
+			await that.search();
+			uni.stopPullDownRefresh();
 		}
 	}
 </script>