lsw 9 місяців тому
батько
коміт
be1ad91fc1
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      app/pages/user/money/index.vue

+ 3 - 3
app/pages/user/money/index.vue

@@ -5,7 +5,7 @@
 			<text>账户余额保障中</text>
 		</view>
 		<view class="mcard">
-			<view class="money">{{ item.money }}</view>
+			<view class="money">{{ money }}</view>
 			<view class="desc">账户余额(元)</view>
 			<view class="flex">
 				<view class="f">
@@ -134,7 +134,7 @@
 export default {
 	data() {
 		return {
-			item: {},
+			money: 0,
 			current: 0,
 			type: [
 				{ name: '全部', value: '' },
@@ -164,7 +164,7 @@ export default {
 			this.http.request({
 				url: '/app/user/info',
 				success: (res) => {
-					this.item = res.data.data;
+					this.money = res.data.data.money;
 					uni.setStorageSync('money', res.data.data.money || 0);
 				}
 			});