dever %!s(int64=4) %!d(string=hai) anos
pai
achega
d414ed44b4
Modificáronse 1 ficheiros con 23 adicións e 2 borrados
  1. 23 2
      pages/index/index.vue

+ 23 - 2
pages/index/index.vue

@@ -34,7 +34,7 @@
 					<text>邀请码</text>
 				</view>
 			</view>
-			<view class="navigators">
+			<view class="navigators" style="display: none;">
 				<view class="left">
 					<view class="grid flex-column just-content-center">
 						<view class="d-flex align-items-center">
@@ -86,13 +86,34 @@
 	export default {
 		data() {
 			return {
+				fetch : {
+					user : {},
+				},
 			}
 		},
 		computed: {
 			...mapState(['member']),
-			//...mapGetters(['isLogin'])
+		},
+		onShow() {
+			//this.Dever.checkLogin();
+			this.getData(1);
+		},
+		// 重新加载
+		onPullDownRefresh: function() {
+			this.getData(1);
+		},
+		//下拉加载
+		onReachBottom() {
+			this.getData(2);
 		},
 		methods: {
+			getData : function(page) {
+				this.Dever.get(this, 'app/collection/?l=api.home', {id:-1});
+			},
+			view : function(id) {
+				this.Dever.location('dream/index?id=' + id);
+			},
+			
 			takein() {
 				this.$store.commit('SET_ORDER_TYPE', 'takein')
 				uni.switchTab({