Browse Source

2023-10-27

cmy 2 năm trước cách đây
mục cha
commit
d2933d7dad
4 tập tin đã thay đổi với 19 bổ sung17 xóa
  1. 2 2
      manifest.json
  2. 5 3
      pages/index/user.vue
  3. 4 4
      pages/user/set/password.vue
  4. 8 8
      pages/user/set/transaction.vue

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "互娛有獎",
     "appid" : "__UNI__3DD0668",
     "description" : "",
-    "versionName" : "1.0.0",
-    "versionCode" : "100",
+    "versionName" : "1.0.11",
+    "versionCode" : 110,
     "transformPx" : false,
     "app-plus" : {
         /* 5+App特有相关 */

+ 5 - 3
pages/index/user.vue

@@ -205,8 +205,8 @@
 				this.recharge = res.data.recharge;
 				this.extractTotalPrice = res.data.extractTotalPrice;
 				this.sum_win = res.data.sum_win.toFixed(2);
-				this.sum_bet = res.data.sum_bet
-				this.group_sum_bet = res.data.group_sum_bet
+				this.sum_bet = res.data.sum_bet.toFixed(2);
+				this.group_sum_bet = res.data.group_sum_bet.toFixed(2);
 			},
 			// 跳转到联系客服
 			nav() {
@@ -215,7 +215,7 @@
 			// 获取用户余额信息
 			getUserWallet() {
 				gameWallet().then((res) => {
-					this.userWallet = +res.data.back.USDT.money.money
+					this.userWallet = (+res.data.back.USDT.money.money).toFixed(2);
 				})
 			},
 			// 加载初始数据
@@ -225,6 +225,8 @@
 					.then(({
 						data
 					}) => {
+						data.sum_recharge = data.sum_recharge.toFixed(2);
+						data.sum_extract = data.sum_extract.toFixed(2);
 						obj.setUserInfo(data);
 
 					})

+ 4 - 4
pages/user/set/password.vue

@@ -1,8 +1,8 @@
 <template>
 	<view class="container">
 		<view class="row b-b">
-			<text class="tit">{{$t('safe.d4')}}</text>
-			<input class="input" v-model="account" type="text" :placeholder="$t('reg.c3')" placeholder-class="placeholder" />
+			<text class="tit">{{$t('set.a3')}}</text>
+			<input class="input" v-model="account" disabled type="text" :placeholder="$t('reg.c3')" placeholder-class="placeholder" />
 		</view>
 		<view class="row b-b">
 			<text class="tit">{{$t('safe.a7')}}</text>
@@ -36,10 +36,10 @@ export default {
 		...mapState("user",['userInfo'])
 	},
 	onLoad() {
-		if(this.userInfo.phone == null){
+		if(this.userInfo.account == null){
 			this.account = '';
 		}else{
-			this.account = this.userInfo.phone;
+			this.account = this.userInfo.account;
 			this.show = false;
 		}
 	},

+ 8 - 8
pages/user/set/transaction.vue

@@ -1,8 +1,8 @@
 <template>
 	<view class="container">
 		<view class="row b-b">
-			<text class="tit">{{$t('reg.a2')}}</text>
-			<input class="input" v-model="account" type="text" :placeholder="$t('reg.a3')" placeholder-class="placeholder" />
+			<text class="tit">{{$t('set.a3')}}</text>
+			<input class="input" disabled v-model="account" type="text" :placeholder="$t('reg.a3')" placeholder-class="placeholder" />
 		</view>
 		<view class="row b-b">
 			<text class="tit">{{$t('reg.a8')}}</text>
@@ -41,12 +41,12 @@ export default {
 		...mapState("user",['userInfo'])
 	},
 	onLoad() {
-		// if(this.userInfo.phone == null){
-		// 	this.account = '';
-		// }else{
-		// 	this.account = this.userInfo.phone;
-		// 	this.show = false;
-		// }
+		if(this.userInfo.account == null){
+			this.account = '';
+		}else{
+			this.account = this.userInfo.account;
+			this.show = false;
+		}
 		uni.setNavigationBarTitle({
 			title: this.$t("tab.b3"),
 		});