浏览代码

1.下拉刷新

guo 2 年之前
父节点
当前提交
7df98f41a2
共有 4 个文件被更改,包括 31 次插入9 次删除
  1. 3 3
      pages.json
  2. 11 1
      pages/index/vipCard.vue
  3. 13 2
      pages/user/addCar/cailist.vue
  4. 4 3
      pages/user/user.vue

+ 3 - 3
pages.json

@@ -118,8 +118,8 @@
             {
                 "navigationBarTitleText": "会员卡",
                 "navigationBarBackgroundColor": "#171723",
-				"navigationBarTextStyle": "white"
-				
+				"navigationBarTextStyle": "white",
+				"enablePullDownRefresh": true
             }
             
 
@@ -201,7 +201,7 @@
 			"path": "pages/user/addCar/cailist",
 			"style": {
 				"navigationBarTitleText": "我的车库",
-				"enablePullDownRefresh": false
+				"enablePullDownRefresh": true
 			}
 		}
 		

+ 11 - 1
pages/index/vipCard.vue

@@ -312,7 +312,17 @@
 					url: url
 				})
 			}
-		}
+		},
+		
+		// 下拉刷新
+		onPullDownRefresh() {
+			// this.page = 1
+			this.myOrderCoupon()
+			setTimeout(function() {
+				uni.stopPullDownRefresh();
+			}, 1000);
+		},
+		
 	}
 </script>
 

+ 13 - 2
pages/user/addCar/cailist.vue

@@ -107,14 +107,25 @@
 			},
 			
 			
-		}
+		},
+		
+		// 下拉刷新
+		onPullDownRefresh() {
+			// this.page = 1
+			this.getqueryMyBMemberCar()
+			setTimeout(function() {
+				uni.stopPullDownRefresh();
+			}, 1000);
+		},
+		
 	}
 </script>
 
 <style scoped>
 	.box {
 		min-height: 100vh;
-		background: #F4F5F7;
+		background: #F4F5F7;
+		padding-bottom: 120rpx;
 	}
 
 	.nodataImg {

+ 4 - 3
pages/user/user.vue

@@ -164,14 +164,15 @@
 				</view>
 				<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
 			</view>
-
-			<view class="rowBox" @click="gonavigateTo('')">
+
+			<!-- 先隐藏 -->
+			<!-- <view class="rowBox" @click="gonavigateTo('')">
 				<view class="leftView">
 					<image src="../../static/img/icon_me8.png" mode="" class="liftIcon"></image>
 					<view class="rowTitle">清除缓存</view>
 				</view>
 				<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
-			</view>
+			</view> -->
 
 		</view>