Browse Source

no message

yanjie 4 năm trước cách đây
mục cha
commit
87d6edc170
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 6 3
      pages/index/mine.vue

+ 6 - 3
pages/index/mine.vue

xqd xqd xqd
@@ -24,7 +24,7 @@
 						<view class="pr m-xcenter plr20 header-box" style="padding: 40rpx 40rpx;background-color: #fff;border-radius: 16rpx;">
 							<navigator class="m-flex tl f14 m-ycenter dpb" hoverClass="none">
 								<view class="m-gray-big f20 fb pr10">0</view>
-								<view class="m-gray-letter mt5 f12">代币(个)</view>
+								<view class="m-gray-letter mt5 f12">余额(元)</view>
 							</navigator>
 							<view bindtap="" class="m-flex tl f14 m-ycenter">
 								<view class="m-gray-big f20 fb">0</view>
@@ -147,7 +147,8 @@
 		},
 		data() {
 			return {
-				itemcurrent: 0
+				itemcurrent: 0,
+				userinfo: {}
 			}
 		},
 		methods: {
@@ -156,7 +157,9 @@
 			},
 			getUserInfo: async function() {
 				let res = await this.$request.post('/api/v1/user/userInfo')
-				console.log(res)
+				if (res.status == 0) {
+					this.userinfo
+				}
 			}
 		}
 	};