zhang 1 年之前
父節點
當前提交
a5b7fa86db
共有 3 個文件被更改,包括 51 次插入23 次删除
  1. 10 9
      pages/user/money/withdrawal.vue
  2. 37 3
      pages/user/vip/details.vue
  3. 4 11
      pages/user/vip/tabulation.vue

+ 10 - 9
pages/user/money/withdrawal.vue

@@ -11,19 +11,19 @@
 				{{$t('userinfo.u7')}}
 			</view>
 			<view class="topF margin-b-30">
-				<input class="FF" type="text" placeholder="请输入提币地址" v-model="address"
+				<input class="FF" type="text" :placeholder="$t('userinfo.u17')" v-model="address"
 					placeholder-class="placeholder-input" />
 			</view>
 			<view class="topO ">
-				{{$t('userinfo.u8')}} <text class="font-color-gray font-size-sm">(余额:{{userWallet}})</text>
+				{{$t('userinfo.u8')}} <text class="font-color-gray font-size-sm">({{$t('userinfo.u19')}}:{{userWallet}})</text>
 			</view>
 			<view class="topF flex margin-b-30">
-				<input class="FF" type="number" v-model="withdrawal" placeholder="请输入提现数量"
+				<input class="FF" type="number" v-model="withdrawal" :placeholder="$t('userinfo.u18')"
 					placeholder-class="placeholder-input" />
-				<view class="btn" @click="withdrawal=userWallet">USDT 全部</view>
+				<view class="btn" @click="withdrawal=userWallet">USDT {{$t('userinfo.u20')}}</view>
 			</view>
 			<view class="topO ">
-				手续费
+				{{$t('userinfo.u21')}}
 			</view>
 			<view class="topF flex">
 				<text v-if="type==1">{{charge}}</text>
@@ -90,7 +90,8 @@
 			openPayPassword() {
 				if (this.userWallet < this.withdrawal) {
 					uni.showToast({
-						title: '余额不足!',
+						// title: '余额不足!',
+						title: this.$t("userinfo.u22"),
 						icon: 'error'
 					});
 					return
@@ -120,7 +121,7 @@
 			submit() {
 				const that = this;
 				uni.showLoading({
-					title: '提交中。。。',
+					title: this.$t("userinfo.u23"),
 					mask: true
 				});
 				that.loding = true;
@@ -133,14 +134,14 @@
 					that.loding = false;
 					uni.hideLoading()
 					uni.showToast({
-						title: '申请提币成功!'
+						title: this.$t("userinfo.u24")
 					});
 					this.address = '';
 					this.withdrawal = ''; //提现金额
 					this.password = '';
 				}).catch((res) => {
 					uni.showToast({
-						title: '申请提币失败!,请联系客服',
+						title: this.$t("userinfo.u25"),
 						icon: 'error'
 					});
 					that.loding = false;

+ 37 - 3
pages/user/vip/details.vue

@@ -4,10 +4,10 @@
 			<view class="top">
 				<view class="nc">123****032@qq.com</view>
 				<view class="">
-					<image class="img" src="/static/shouye/huiyuan.png" mode=""></image>
+					<image class="img"  mode=""></image>
 				</view>
 			</view>
-			<view class="center" @click="navX">
+			<view class="center">
 				<view class="sj">2023.05.05 15:00</view>
 				<view class="xq">詳情</view>
 				<view class="">
@@ -26,11 +26,45 @@
 </template>
 
 <script>
+	import {
+		mapState,
+		mapMutations
+	} from 'vuex';
+	import {spread, getUserInfo} from "@/api/user.js"
 	export default {
 		data() {
 			return {
-				
+				id: '',
+				page: 1,
+				limit: 10,
+				list: [],
 			};
+		},
+		onLoad(option) {
+			this.id = option.id
+			this.spread()
+		},
+		computed: {
+			...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+		},
+		methods: {
+			// 
+			spread() {
+				let that = this
+				spread({
+					page: that.page,
+					limit: that.limit,
+					id: that.userInfo.uid,
+				}).then(res => {
+					let data = res.data
+					this.list = res.data.list
+					console.log('list', this.list);
+				}).catch(e=>{
+					console.log(e);
+				})
+			},
+			
+			
 		}
 	}
 </script>

+ 4 - 11
pages/user/vip/tabulation.vue

@@ -9,6 +9,7 @@
 				<view class="shu">{{group_num || 0}}</view>
 				<view class="wenben">{{$t('huiyuan.a2')}}</view>
 			</view>
+		
 		</view>
 	
 	    <view class="rowT">
@@ -94,8 +95,6 @@
 		methods: {
 			// 会员记录
 			spread() {
-				// const id = this.userInfo.id
-				// console.log(this.userInfo,'dsadas');
 				let that = this
 				if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
 					return
@@ -105,9 +104,6 @@
 					limit: that.limit,
 					// id: that.userInfo.uid,
 				}).then(res => {
-					let list = res.data.list
-					console.log('list', list);
-					
 					let data = res.data
 					console.log('1111111', data);
 					this.group_num = data.group_num
@@ -115,12 +111,9 @@
 					this.totalLevel = data.totalLevel
 					this.valid_user = data.valid_user
 					
-					if (list.length == that.limit) {
-						that.loadingType = 'more'
-					} else {
-						that.loadingType = 'noMore'
-					}
-					that.loaded = true
+					this.list = res.data.list
+					console.log('list', this.list);
+					
 				}).catch(e=>{
 					console.log(e);
 				})