Browse Source

2024/04/22

xiaol 6 months ago
parent
commit
684a038426

+ 40 - 4
pages.json

@@ -83,10 +83,10 @@
 		{
 			"path": "pages/index/user",
 			"style": {
-				// #ifndef MP-WEIXIN
-				"navigationStyle": "custom",
-				// #endif
-				"navigationBarTitleText": "My"
+				"navigationBarTitleText": "资产",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#051137",
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -219,6 +219,42 @@
 				"navigationBarBackgroundColor": "#051137",
 				"navigationBarTextStyle": "white"
 			}
+		},
+		{
+			"path": "pages/user/money",
+			"style": {
+				"navigationBarTitleText": "USTD",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#051137",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/user/transfer",
+			"style": {
+				"navigationBarTitleText": "转账",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#051137",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/user/collection",
+			"style": {
+				"navigationBarTitleText": "收款",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#051137",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/user/withdrawal",
+			"style": {
+				"navigationBarTitleText": "提币",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#051137",
+				"navigationBarTextStyle": "white"
+			}
 		}
 	],
 	"subPackages": [{ // 模块分包

+ 8 - 0
pages/index/money.vue

@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>

+ 159 - 403
pages/index/user.vue

@@ -1,216 +1,74 @@
 <template>
 	<view class="container">
-		<view class="top">
-			<view class="my">{{$t('home.d4')}}</view>
-			<view class="userinfo flex">
-				<view class="flex" @click="navTo('/pages/user/set/userinfo')">
-					<image class="image margin-r-10" :src="userInfo.avatar || '/static/error/missing-face.png'"
-						mode="scaleToFill">
-					</image>
-					<view class="info">
-						<view class="infor margin-b-20">{{ user.nickname || '游客' }}</view>
-						<view class="uservip flex-start" v-if="user.vip">
-							<text>
-								{{ user.vip_name}}
-							</text>
-							<image class="vipIcon" :src="user.vip_icon" mode="scaleToFill"></image>
-						</view>
-					</view>
-				</view>
-				<image @click="showY" class="inf" src="../../static/shouye/userinfo.png" mode="scaleToFill"></image>
-			</view>
-		</view>
-		<!-- 余额 -->
-		<view class="body">
-			<template v-if="hasLogin">
-				<view v-if="show" class="yue margin-b-30">
-					<view class="flex">
-						<view class="item">
-							<view class="te flex-start">
-								<image class="tip margin-r-10" src="../../static/icon/user-U.png" mode="scaleToFill">
-								</image>
-								<text>
-									USDT
-								</text>
-							</view>
-							<view class="tex">
-								{{userWallet}}
-							</view>
-							<!-- <view class="texmoney">
-								≈¥{{userWalletRmb}}
-							</view> -->
-						</view>
-						<view class="item">
-							<view class="te flex-start">
-								<image class="tip margin-r-10" src="../../static/icon/user-R.png" mode="scaleToFill">
-								</image>
-								<text>
-									PKR
-								</text>
-							</view>
-							<view class="tex">
-								{{userPKR}}
-							</view>
-							<!-- <view class="texmoney">
-								≈¥{{userPKRRmb}}
-							</view> -->
-						</view>
-					</view>
-					<view class="btn margin-t-30 flex">
-						<button @click="navTo('/pages/user/money/recharge')" class="btn1">
-							<text>{{$t('user.a7')}}</text>
-						</button>
-						<button @click="navTo('/pages/user/money/withdrawal')" class="btn1">
-							<text>{{$t('user.a6')}}</text>
-						</button>
-					</view>
-				</view>
-				<view v-else class="yue1 margin-b-30">
-					<view class="tj">{{$t('user.a1')}}</view>
-					<view class="tj-item flex ">
-						<view class="lj">{{$t('user.a4')}}{{$t('user.a7')}}</view>
-						<view class="ljsu">{{userInfo.sum_recharge || 0}}</view>
-					</view>
-					<view class="tj-item flex">
-						<view class="lj">{{$t('user.a4')}}{{$t('user.a6')}}</view>
-						<view class="ljsu">{{userInfo.sum_extract || 0}}</view>
-					</view>
-					<view class="tj-item flex">
-						<view class="lj">{{$t('user.a8')}}</view>
-						<view class="ljsu">{{sum_win || 0}}</view>
-					</view>
-					<view class="tj-item flex">
-						<view class="lj">{{$t('user.a9')}}</view>
-						<view class="ljsu">{{sum_bet || 0}}</view>
-					</view>
-					<view class="tj-item flex">
-						<view class="lj">{{$t('user.a10')}}</view>
-						<view class="ljsu">{{group_sum_bet || 0}}</view>
-					</view>
-				</view>
-			</template>
-			<!-- 列表 -->
-			<view class="gj">
-				{{$t('user.b1')}}
-			</view>
-			<view class="user-list flex" @click="navTo('/pages/user/money/team')">
-				<image src="../../static/shouye/yue.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b2')}}
+		<view class="topBox">
+			<view class="topName">我的资产</view>
+			<view class="topMoney">$3000</view>
+			<view class="flex topInfo">
+				<view class="flex_item infoTpl" @click="navTo('/pages/user/transfer')">
+					<image src="/static/image/img27.png" style="width: 48rpx;" mode="widthFix"></image>
+					<view class="tplName">转账</view>
 				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
-			</view>
-
-			<!-- 额外添加 -->
-			<view class="user-list flex" @click="navTo('/pages/user/shareQrCode')">
-				<image src="../../static/shouye/money.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b3')}}
+				<view class="flex_item infoTpl" @click="navTo('/pages/user/collection')">
+					<image src="/static/image/img28.png" style="width: 45rpx;" mode="widthFix"></image>
+					<view class="tplName">收款</view>
 				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
-			</view>
-			<!-- 额外添加 -->
-			<view class="user-list flex" @click="navTo('/pages/user/vip/tabulation')">
-				<image src="../../static/shouye/liebiao.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b4')}}
+				<view class="flex_item infoTpl" @click="navTo('/pages/user/withdrawal')">
+					<image src="/static/image/img29.png" style="width: 45rpx;" mode="widthFix"></image>
+					<view class="tplName">提币</view>
 				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
 			</view>
-			<view class="user-list flex" @click="copyShareLink">
-				<image src="../../static/shouye/liebiao.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b5')}}
-				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
+			<view class="flex_item moneyBox">
+				<image src="/static/image/img26.png" style="width: 30rpx" mode="widthFix"></image>
+				<view class="moneyName">资产正在保护中</view>
 			</view>
-			<!-- <view class="user-list flex" @click="openKf()">
-				<image src="../../static/shouye/liuyan.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b6')}}
-				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
-			</view> -->
-			<!-- <view class="user-list flex" @click="navTo('/pages/user/set/transaction')">
-				<image src="../../static/shouye/jiaoyi.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b7')}}
-				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
-			</view> -->
-			<!-- <view class="user-list flex" @click="navTo('/pages/public/login')">
-				<image src="../../static/shouye/tuichu.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b8')}}
-				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
-			</view> -->
-
-			<!-- 跳转到联系客服 -->
-			<view class="user-list flex" @click="nav()">
-				<image src="../../static/shouye/yue.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.a2')}}
+		</view>
+		<view class="listBox">
+			<view class="listName">我的资产</view>
+			<view class="flex listTpl" @click="navTo('/pages/user/money')">
+				<view class="flex_item TplInfo">
+					<image src="/static/image/img30.png" style="width: 80rpx;" mode="widthFix"></image>
+					<view class="infoName">USDT</view>
 				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
-			</view>
-			<!-- todo -->
-			<view class="user-list flex" @click="navTo('/pages/user/set/set')">
-				<image src="../../static/shouye/shezhi.png" mode="scaleToFill" class="left-img"></image>
-				<view class="item-name">
-					{{$t('user.b9')}}
+				<view class="flex_item tplTip">
+					<view class="tipBox">
+						<view>0.0000</view>
+						<view class="tip">≈0.00RMB</view>
+					</view>
+					<image src="/static/image/img31.png" style="width: 18rpx;" mode="widthFix"></image>
 				</view>
-				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
 			</view>
-
 		</view>
 	</view>
 </template>
 <script>
-	import {
-		getIndex,
-	} from "@/api/index.js";
-
-	import {
-		gameWallet,
-	} from "@/api/game.js";
-	import {
-		mapState,
-		mapMutations
-	} from 'vuex';
-	import {
-		getUserInfo,
-		getUser
-	} from '@/api/user.js';
+	// import {
+	// 	getIndex,
+	// } from "@/api/index.js";
+
+	// import {
+	// 	gameWallet,
+	// } from "@/api/game.js";
+	import { mapState,mapMutations } from 'vuex';
+	// import {
+	// 	getUserInfo,
+	// 	getUser
+	// } from '@/api/user.js';
 	import {
 		saveUrl,
 		interceptor
 	} from '@/utils/loginUtils.js';
 	export default {
 		data() {
-			return {
-				current: 2,
-				show: true,
-				userWallet: 0, //余额 
-				userWalletRmb: 0,
-				userPKR: 0,
-				userPKRRmb: 0,
-				extractTotalPrice: '', //累计体现
-				sum_win: '', //累计收益
-				sum_bet: '', //个人交易量
-				group_sum_bet: '', // 团队交易量
-				user: {},
-				service: ""
-			};
+			return {};
 		},
 		onShow() {
 			// 判断是否已经登录
 			if (this.hasLogin) {
-				this.getUserWallet();
-				this.getUser();
+				// this.getUserWallet();
+				// this.getUser();
 			}
-			this.loadBaseData();
-			this.getIndex()
+			// this.loadBaseData();
+			// this.getIndex()
 		},
 		computed: {
 			...mapState('user', ['hasLogin', 'userInfo']),
@@ -218,252 +76,150 @@
 		},
 		methods: {
 			...mapMutations('user', ['setUserInfo']),
-			copyShareLink() {
-				if (!this.hasLogin) {
-					// 保存地址
-					saveUrl();
-					// 登录拦截
-					interceptor();
-				} else {
-					uni.setClipboardData({
-						data: this.baseURL + this.urlFile + '/#/pages/index/index?spread=' + this.user.account,
-						success: function() {
-							//调用方法成功
-							console.log("success");
-						},
-					});
-				}
-			},
-			showY() {
-				this.show = !this.show
-			},
-			async getIndex() {
-				const res = await getIndex()
-				this.service = res.data.service
-			},
-			// 统计表
-			async getUser() {
-				const res = await getUser();
-				this.user = res.data;
-				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
-			},
-			// 跳转到联系客服
-			nav() {
-				window.location.href = this.service
-			},
+			// copyShareLink() {
+			// 	if (!this.hasLogin) {
+			// 		// 保存地址
+			// 		saveUrl();
+			// 		// 登录拦截
+			// 		interceptor();
+			// 	} else {
+			// 		uni.setClipboardData({
+			// 			data: this.baseURL + this.urlFile + '/#/pages/index/index?spread=' + this.user.account,
+			// 			success: function() {
+			// 				//调用方法成功
+			// 				console.log("success");
+			// 			},
+			// 		});
+			// 	}
+			// },
 			// 获取用户余额信息
 			getUserWallet() {
-				gameWallet().then((res) => {
-					const balance = Number(res.data.back.USDT.money.money);
-					this.userWallet = +balance.toFixed(2);
-					this.userWalletRmb = Number(res.data.back.USDT.rmb);
-					this.userPKR = Number(res.data.back.PKR.money.money);
-					this.userPKRRmb = Number(res.data.back.PKR.rmb);
-					// this.userWallet = +res.data.back.USDT.money.money
-				})
+				// gameWallet().then((res) => {
+				// 	const balance = Number(res.data.back.USDT.money.money);
+				// 	this.userWallet = +balance.toFixed(2);
+				// 	this.userWalletRmb = Number(res.data.back.USDT.rmb);
+				// 	this.userPKR = Number(res.data.back.PKR.money.money);
+				// 	this.userPKRRmb = Number(res.data.back.PKR.rmb);
+				// 	// this.userWallet = +res.data.back.USDT.money.money
+				// })
 			},
 			// 加载初始数据
 			loadBaseData() {
 				const obj = this
-				getUserInfo({})
-					.then(({
-						data
-					}) => {
-						obj.setUserInfo(data);
-
-					})
-					.catch(e => {
-						console.log(e);
-					});
-
+				// getUserInfo({})
+				// 	.then(({
+				// 		data
+				// 	}) => {
+				// 		obj.setUserInfo(data);
+
+				// 	})
+				// 	.catch(e => {
+				// 		console.log(e);
+				// 	});
 			},
 			/**
 			 * 统一跳转接口,拦截未登录路由
 			 * navigator标签现在默认没有转场动画,所以用view
 			 */
 			navTo(url) {
-				if (!this.hasLogin) {
-					// 保存地址
-					saveUrl();
-					// 登录拦截
-					interceptor();
-				} else {
-					uni.navigateTo({
-						url
-					});
-				}
+				// if (!this.hasLogin) {
+				// 	// 保存地址
+				// 	saveUrl();
+				// 	// 登录拦截
+				// 	interceptor();
+				// } else {
+				// 	uni.navigateTo({
+				// 		url
+				// 	});
+				// }
+				uni.navigateTo({
+					url
+				});
 			},
 		}
 	};
 </script>
 <style lang="scss">
 	.container {
-		height: 100%;
-		line-height: 1;
+		padding: 25rpx 25rpx;
 	}
-
-	.top {
-		height: 327rpx;
-		background-color: #000000;
-		padding: 0 45rpx;
-
-		.my {
-			padding-top: 40rpx;
-			font-size: 48rpx;
-			font-weight: 500;
+    .topBox{
+		width: 100%;
+		background: #1F2A4A;
+		border-radius: 15rpx;
+		padding: 40rpx 45rpx;
+		position: relative;
+		.topName{
+			font-weight: bold;
+			font-size: 27rpx;
 			color: #FFFFFF;
 		}
-
-		.userinfo {
-			padding-top: 40rpx;
-
-			.image {
-				border-radius: 100rpx;
-				overflow: hidden;
-				width: 125rpx;
-				height: 125rpx;
-			}
-
-			.info {
-				.infor {
-					font-size: 30rpx;
-					font-weight: 500;
-					color: #FFFFFF;
-				}
-
-				.vipIcon {
-					width: 40rpx;
-					height: 40rpx;
-					margin-left: 10rpx;
-				}
-
-				.uservip {
-					font-size: 30rpx;
-					font-weight: 500;
-					color: #93794B;
+		.topMoney{
+			font-weight: bold;
+			font-size: 60rpx;
+			color: #FFFFFF;
+			padding: 65rpx 0rpx;
+		}
+		.topInfo{
+			font-size: 27rpx;
+			color: #FFFFFF;
+			.infoTpl{
+				.tplName{
+					padding-left: 15rpx;
 				}
 			}
 		}
+		.moneyBox{
+			position: absolute;
+			right: 0;
+			top: 45rpx;
+			background: #F2DA95;
+			border-radius: 27rpx 0rpx 0rpx 27rpx;
+			font-weight: bold;
+			font-size: 24rpx;
+			color: #030E16;
+			padding: 8rpx 22rpx;
+			.moneyName{
+				padding-left: 15rpx;
+			}
+		}
+		
 	}
-
-	.inf {
-		margin-top: 25rpx;
-		width: 48rpx;
-		height: 48rpx;
-	}
-
-	//  body
-	.body {
-		background-color: #191a1f;
-		padding: 30rpx;
-		border-top-right-radius: 60rpx;
-		border-top-left-radius: 60rpx;
+	.listBox{
+		padding: 50rpx 0rpx;
 		color: #FFFFFF;
-
-		.yue {
-			text-align: center;
-			padding-top: 40rpx;
-			padding-bottom: 35rpx;
-
-			.item {
-				background-color: #000000;
-				border-radius: 30rpx;
-				padding: 30rpx;
-				text-align: left;
-				width: 48%;
-
-				.te {
-					font-size: 26rpx;
+		.listName{
+			font-family: PingFang SC;
+			font-weight: 500;
+			font-size: 36rpx;
+			color: #FFFFFF;
+		}
+		.listTpl{
+			padding: 35rpx 0rpx;
+			.TplInfo{
+				.infoName{
+					font-family: PingFang SC;
 					font-weight: 500;
-					padding-bottom: 30rpx;
-
-					.tip {
-						width: 64rpx;
-						height: 64rpx;
-					}
-				}
-
-				.tex {
-					font-size: $font-lg;
-					font-weight: bold;
-					padding-bottom: 30rpx;
-				}
-
-				.texmoney {
-					font-size: $font-lg;
-					color: $font-color-disabled;
+					font-size: 32rpx;
+					color: #FFFFFF;
+					padding-left: 31rpx;
 				}
 			}
-
-
-			.btn {
-				padding: 0 50rpx;
-
-				.btn1 {
-					min-width: 270rpx;
-					background: #FDB242;
-					border-radius: 10rpx;
-					font-size: $font-base;
+			.tplTip{
+				.tipBox{
+					padding-right: 30rpx;
+					font-family: PingFang SC;
+					font-weight: 500;
+					font-size: 32rpx;
+					color: #FFFFFF;
+					.tip{
+						font-family: PingFang SC;
+						font-weight: 500;
+						font-size: 26rpx;
+						color: #999999;
+					}
 				}
 			}
 		}
-
-		.yue1 {
-			background-color: #000000;
-			padding: 30rpx;
-			color: #FFFFFF;
-			border-radius: 60rpx;
-
-			.tj {
-				font-size: 30rpx;
-				font-weight: bold;
-				text-align: center;
-			}
-
-			.tj-item {
-				padding-top: 26rpx;
-				font-size: 24rpx;
-				opacity: 0.65;
-			}
-		}
-	}
-
-	.gj {
-		margin-left: 20rpx;
-		padding-top: 10rpx;
-		font-size: 36rpx;
-		font-weight: bold;
-		color: #FFFFFF;
-		padding-bottom: 10rpx;
-	}
-
-	.user-list {
-		background: #191a1f;
-		box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
-		margin: 0 auto;
-		padding: 30rpx 25rpx;
-		border-bottom: 1px solid rgba(240, 240, 240, 0.2);
-
-		.left-img {
-			width: 40rpx;
-			height: 40rpx;
-			margin-right: 20rpx;
-		}
-
-		.item-name {
-			flex-grow: 1;
-			font-size: 29rpx;
-			font-weight: bold;
-			color: #FFF;
-		}
-
-		.right-img {
-			width: 18rpx;
-			height: 27rpx;
-		}
 	}
 </style>

+ 274 - 0
pages/user/collection.vue

@@ -0,0 +1,274 @@
+<template>
+	<view class="container">
+		<view class="recharge">
+			<view class="infoBox">
+				<view class="tplName">链名称</view>
+				<view class="tplNum">USDT-TRC20</view>
+				<view class="tplAddr">收款地址<text>ca87ca68ca68c6a986c98a678c7a8</text></view>
+			</view>
+			<view class="code"><image :src="er_code"></image></view>
+			<view class="flex btnBox">
+				<view class="btn">保存相册</view>
+				<view class="btn">复制地址</view>
+			</view>
+		</view>
+		<!-- <view class="login_text">
+			<view class="login_input flex" style="padding-top: 45rpx;">
+				<view class="login_img">金额</view>
+				<view class="login_name"><input class="uni-input" type="text" v-model="money" placeholder="请输入充值金额" /></view>
+			</view>
+			<view class="login_input flex">
+				<view class="login_img"><text>打款凭证</text></view>
+				<view class="login_name" @click="scImg"><image :src="img"></image></view>
+			</view>
+			<view class="login_input flex" style="padding-top: 45rpx;border-bottom: none;">
+				<view class="login_img">备注</view>
+				<view class="login_name"><input class="uni-input" type="text" v-model="remark" placeholder="例如:备注用户账号" /></view>
+			</view>
+			<view class="submission"><button class="golden" type="golden" hover-class="none" @click="submission">确认提交</button></view>
+		</view> -->
+		<view class="login_text">
+			<view class="tip">
+				<view>
+					<text>
+						该地址仅支持 USDT-TRC20 收款请勿用于其他币种,否则资产将不可找回</br>
+						从易趣付之外地址转入的资金,需要在完成交易的120分钟后,才能将资产转账给易币付其他用户或提到钱包以外的地址 最小收款金额: 0.0001USDT小于最小金额的收款将不会上账且无法退回1次网络确认后可到账,1次网络确认后可转账。您的充值地址不会经常改变,可截图保存并重复充值。
+					</text>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+<script type="text/javascript">
+import uniList from '@/components/uni-list/uni-list.vue';
+import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
+// import { show_cb,do_cb } from '@/api/recharge.js';
+// import { upload } from '@/api/real.js';
+export default {
+	components: {
+		uniList,
+		uniListItem
+	},
+	data() {
+		return {
+			uid: '',
+			list:'',
+			account: '',
+			money: '',
+			address:'',
+			er_code:'',
+			remark:'',
+			img: '/static/image/img19.png'
+		};
+	},
+	onLoad() {
+		this.uid = uni.getStorageSync('uid');
+		this.loadData();
+	},
+	methods: {
+		//获取数据
+		loadData() {
+		  // show_cb({})
+		  //   .then(data => {
+		  //     this.list = data.data;
+			 //  this.address = data.data.address;
+			 //  this.er_code = data.data.er_code;
+		  //   })
+		  //   .catch(err => {
+		  //     console.log(err);
+		  //   });
+		},
+		//确认提交
+		submission() {
+			let obj = this;
+			uni.showLoading({
+				title: '充币中...',
+				mask: true
+			});
+			//确认充值调接口,成功跳转页面
+			do_cb({
+				uid: obj.uid,
+				img: obj.img,
+				address: obj.address,
+				money: obj.money,
+				bz: obj.remark,
+			})
+				.then(function(e) {
+					uni.showToast({
+						title: '请耐心等待系统审核通过',
+						duration: 1500,
+						mask: false,
+						icon: 'none'
+					});
+					uni.hideLoading();
+				})
+				.catch(function(e) {
+					console.log(e);
+				});
+		},
+		//上传图片
+		scImg() {
+			upload({
+				file:''
+			}).then((e) => {
+				console.log(e,55)
+				this.img = e[0].url;
+			});
+		},
+	}
+};
+</script>
+
+<style lang="scss">
+/* page {
+	min-height: 100%;
+	background: linear-gradient(-28deg, rgba(44, 45, 53, 1), rgba(59, 62, 74, 1));
+} */
+.container{
+	padding: 25rpx 25rpx;
+}
+.body_content {
+	width: 100%;
+	height: 100%;
+}
+.login_text {
+	width: 100%;
+	color: #fff !important;
+	font-size: 28rpx !important;
+	background-color: #1F2A4A;
+	margin: 25rpx 0rpx;
+	padding: 0rpx 25rpx;
+	padding-bottom: 15rpx;
+	border-radius: 25rpx;
+}
+.recharge {
+	text-align: center;
+	color: #85858e;
+	font-size: 30rpx;
+	border-radius: 25rpx;
+	background-color: #1F2A4A;
+}
+.example-title{
+	text-align: left !important;
+	padding: 25rpx 25rpx;
+	border-bottom: 2rpx solid #2F364E;
+	color: #0C5AFA;
+	.titleTip{
+		width: 5rpx;
+		height: 30rpx;
+		background: linear-gradient(90deg, #0C5AFA, #1356FF);
+		border-radius: 3rpx;
+		margin-right: 15rpx;
+	}
+}
+.infoBox{
+	text-align: left;
+	padding: 28rpx 51rpx;
+	.tplName{
+		font-family: PingFang SC;
+		font-weight: bold;
+		font-size: 32rpx;
+		color: #FFFFFF;
+		line-height: 24rpx;
+	}
+	.tplNum{
+		margin: 30rpx 0rpx;
+		padding: 15rpx 30rpx;
+		border-radius: 10rpx;
+		border: 1px solid #1356FF;
+		font-family: PingFang SC;
+		font-size: 26rpx;
+		color: #1356FF;
+		display: inline-block;
+	}
+	.tplAddr{
+		color: #fff;
+		font-size: 32rpx;
+		text{
+			padding-left: 15rpx;
+			font-size: 26rpx;
+			color: #FFFFFF;
+		}
+	}
+}
+.login_input {
+	border-bottom: 1px solid #464755;
+	padding: 35rpx;
+}
+.uni-input {
+	width: 100%;
+	text-align: left !important;
+}
+.code {
+	width: 277rpx;
+	height: 277rpx;
+	margin: 25rpx auto;
+	margin-bottom: 35rpx;
+	background: #0C5AFA;
+}
+.code image {
+	width: 100%;
+	height: 100%;
+}
+.btnBox{
+	justify-content: center;
+	padding-bottom: 50rpx;
+	padding-top: 30rpx;
+	.btn{
+		margin-right: 50rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		font-size: 26rpx;
+		color: #0C5AFA;
+		border: 1rpx solid #0C5AFA;
+		padding: 15rpx 45rpx;
+		border-radius: 15rpx;
+	}
+}
+.submission {
+	padding: 30rpx 25rpx;
+	.golden{
+		background: #0C5AFA;
+		color: #fff;
+	}
+}
+.login_name {
+	width: 480rpx;
+	color: #ffffff;
+}
+.login_name image {
+	width: 100rpx;
+	height: 100rpx;
+}
+.tip {
+	padding: 29rpx 31rpx;
+	line-height: 55rpx;
+	font-size: 24rpx;
+}
+.select_img {
+	width: 28rpx;
+	height: 32rpx;
+}
+.select_img image {
+	width: 100%;
+	height: 100%;
+}
+.scann {
+	margin-bottom: 35rpx;
+	margin-top: 15rpx;
+}
+.scanning {
+	background-color: #6f6f78;
+	color: #ffffff;
+	padding: 10rpx 30rpx;
+	border-radius: 15rpx;
+	font-size: 28rpx;
+}
+.address_code {
+	padding: 25rpx 0rpx;
+	color: #ffffff;
+}
+.input-placeholder{
+	color: #fff !important;
+}
+</style>

+ 111 - 0
pages/user/money.vue

@@ -0,0 +1,111 @@
+<template>
+	<view class="container">
+		<view class="topBox">
+			<image src="/static/image/img32.png" style="width: 119rpx;" mode="widthFix"></image>
+			<view class="money">{{money}}</view>
+		</view>
+		<view class="listBox">
+			<view class="listName">交易记录</view>
+			<view class="listTpl flex" v-for="item,index in list" :key="index">
+				<view class="tplInfo flex_item">
+					<image src="/static/image/img33.png" style="width: 39rpx;" mode="widthFix"></image>
+					<view class="tpl">充币<text>2024-08-31 12:10:00</text></view>
+				</view>
+				<view class="tip" :style="{color:( item.type == 1? '#fff' :'#0C5AFA')}">+7568</view>
+			</view>
+		</view>
+	</view>
+</template>
+<script>
+	export default {
+		data() {
+			return{
+				money:0,
+				page:1,
+				loadingType: "more",
+				list:[{type:1},{type:1},{type:2},{type:2},{type:2},{type:2},{type:2},{},{},{}]
+			};
+		},
+		onLoad() {
+			// this.loadData()
+		},
+		onShow() {},
+		onReachBottom() {
+			// this.loadData()
+		},
+		methods: {
+			loadData(){
+				let obj = this;
+				if (obj.loadingType == "nomore" ||
+					obj.loadingType == "loading"){
+					return;
+				}
+				obj.loadingType = "loading";
+				getList({
+					page:obj.page,
+					limit:10
+				},obj.status).then(res => {
+					if (res.length > 0) {
+						obj.list = obj.list.concat(res);
+						obj.page++;
+						if (obj.limit == res.length) {
+							obj.loadingType = "more";
+						} else {
+							obj.loadingType = "nomore";
+						}
+					}
+				});
+			},
+		},
+	};
+</script>
+<style lang="scss" scoped>
+	.container{
+		padding: 25rpx 25rpx;
+	}
+	.topBox{
+		text-align: center;
+		padding-top: 25rpx;
+		.money{
+			font-family: Kozuka Gothic Pr6N;
+			font-weight: normal;
+			font-size: 26rpx;
+			color: #FFFFFF;
+			line-height: 55rpx;
+		}
+	}
+	.listBox{
+		color: #FFFFFF;
+		.listName{
+			font-weight: 500;
+			font-size: 30rpx;
+			color: #FFFFFF;
+			padding-bottom: 30rpx;
+		}
+		.listTpl{
+			background: #1F2A4A;
+			border-radius: 10rpx;
+			padding: 40rpx 40rpx;
+			margin-bottom: 20rpx;
+			.tplInfo{
+				.tpl{
+					padding-left: 25rpx;
+					font-weight: 400;
+					font-size: 30rpx;
+					color: #FFFFFF;
+					text{
+						font-weight: 400;
+						font-size: 24rpx;
+						color: #999999;
+						padding-left: 15rpx;
+					}
+				}
+			}
+			.tip{
+				font-weight: 400;
+				font-size: 36rpx;
+				color: #4C5D97;
+			}
+		}
+	}
+</style>

+ 97 - 0
pages/user/transfer.vue

@@ -0,0 +1,97 @@
+<template>
+	<view class="container">
+		<view class="listBox">
+			<view class="titleTetx">收款地址</view>
+			<view class="flex listTpl">
+				<input type="number" class="inputBox" v-model="address" placeholder="请输入收款地址"/>
+			</view>
+		</view>
+		<view class="listBox" style="padding-top: 0rpx;">
+			<view class="titleTetx">转账数量</view>
+			<view class="listTpl flex">
+				<input type="number" class="inputBox" v-model="number" placeholder="请输入转账金额"/>
+				<view class="listAll">全部</view>
+			</view>
+			<view class="flex tipBox">
+				<view class="tip1">可用余额2.12USDT</view>
+				<view class="tip1">手续费:0.00USDT</view>
+			</view>
+		</view>
+		<view class="submission">
+			<button class="golden" type="golden" hover-class="none" @click="submission">确认转账</button>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				address:'',
+				number:'',
+			};
+		},
+		onLoad() {
+			
+		},
+		methods: {}
+	};
+</script>
+
+<style lang="scss">
+	.container{
+		padding:25rpx 25rpx;
+	}
+	.listBox{
+		padding: 46rpx 25rpx;
+		background: #1F2A4A;
+		border-radius: 10rpx;
+		.titleTetx{
+			font-weight: bold;
+			font-size: 24rpx;
+			color: #FFFFFF;
+			padding-bottom: 25rpx;
+		}
+		.tipBox{
+			padding-top: 15rpx;
+			font-size: 24rpx;
+			.tip1{
+				font-family: PingFang SC;
+				font-weight: 500;
+				font-size: 26rpx;
+				color: #0C5AFA;
+				line-height: 45rpx;
+			}
+		}
+	}
+	.listTpl{
+		border-bottom: 1rpx solid #6A7288;
+		padding-bottom: 25rpx;
+		.inputBox{
+			font-size: 35rpx;
+			color: #FFFFFF;
+		}
+		.listTip{
+			
+		}
+		.listAll{
+			padding-left: 30rpx;
+			font-size: 30rpx;
+			color: #0C5AFA;
+		}
+	}
+	.input-placeholder{
+		font-family: PingFang SC;
+		font-weight: 500;
+		font-size: 26rpx;
+		color: #666666;
+	}
+	.submission{
+		padding: 80rpx 25rpx;
+		padding-bottom: 25rpx;
+		.golden{
+			background: #0C5AFA;
+			color: #ffffff;
+		}
+	}
+</style>

+ 148 - 0
pages/user/withdrawal.vue

@@ -0,0 +1,148 @@
+<template>
+	<view class="container">
+		<view class="recharge">
+			<view class="tplName">提币网络</view>
+			<view class="tplNum">USDT-TRC20</view>
+			<view class="tplName">提币地址</view>
+			<view class="inputBox">
+				<input class="input" type="text" v-model="address" placeholder="请输入提币地址"/>
+			</view>
+			<view class="tplBox flex">
+				<view class="tplName">提币数量</view>
+				<view class="tplTip">可用0.00000000USDT</view>
+			</view>
+			<view class="inputBox flex">
+				<input class="input" type="text" v-model="number" placeholder="请输入提币数量"/>
+				<view class="text">USDT <text>全部</text></view>
+			</view>
+			<view class="free">手续费:0</view>
+		</view>
+	</view>
+</template>
+<script type="text/javascript">
+export default {
+	data() {
+		return {
+			address:'',
+			number:''
+		};
+	},
+	onLoad() {},
+	methods: {
+		//获取数据
+		loadData() {
+		  // show_cb({})
+		  //   .then(data => {
+		  //     this.list = data.data;
+			 //  this.address = data.data.address;
+			 //  this.er_code = data.data.er_code;
+		  //   })
+		  //   .catch(err => {
+		  //     console.log(err);
+		  //   });
+		},
+		//确认提交
+		submission() {
+			let obj = this;
+			uni.showLoading({
+				title: '充币中...',
+				mask: true
+			});
+			//确认充值调接口,成功跳转页面
+			do_cb({
+				uid: obj.uid,
+				img: obj.img,
+				address: obj.address,
+				money: obj.money,
+				bz: obj.remark,
+			})
+				.then(function(e) {
+					uni.showToast({
+						title: '请耐心等待系统审核通过',
+						duration: 1500,
+						mask: false,
+						icon: 'none'
+					});
+					uni.hideLoading();
+				})
+				.catch(function(e) {
+					console.log(e);
+				});
+		},
+		//上传图片
+		scImg() {
+			upload({
+				file:''
+			}).then((e) => {
+				console.log(e,55)
+				this.img = e[0].url;
+			});
+		},
+	}
+};
+</script>
+
+<style lang="scss">
+.container{
+	padding: 25rpx 25rpx;
+}
+
+.recharge {
+	border-radius: 25rpx;
+	background-color: #1F2A4A;
+	padding: 37rpx 25rpx;
+	.tplName{
+		font-weight: bold;
+		font-size: 32rpx;
+		color: #FFFFFF;
+		line-height: 24rpx;
+	}
+	.tplNum{
+		margin: 40rpx 0rpx;
+		padding: 15rpx 30rpx;
+		border-radius: 10rpx;
+		border: 1px solid #1356FF;
+		font-size: 26rpx;
+		color: #1356FF;
+		display: inline-block;
+	}
+	.tplTip{
+		font-size: 20rpx;
+		color: #FFFFFF;
+	}
+}
+.inputBox{
+	background: #29314D;
+	border-radius: 20rpx;
+	margin: 30rpx 0rpx;
+	padding:0 25rpx;
+	.input{
+		height: 80rpx;
+		line-height: 80rpx;
+		color: #FFFFFF;
+	}
+	.text{
+		font-family: PingFang SC;
+		font-weight: 500;
+		font-size: 26rpx;
+		color: #FFFFFF;
+		text{
+			padding-left: 25rpx;
+		}
+	}
+}
+.free{
+	font-family: PingFang SC;
+	font-weight: 500;
+	font-size: 30rpx;
+	color: #1355F5;
+	text-align: center;
+}
+.input-placeholder{
+	font-family: PingFang SC;
+	font-weight: 500;
+	font-size: 26rpx;
+	color: #797C8B;
+	line-height: 24rpx;
+}
+</style>

BIN
static/image/img26.png


BIN
static/image/img27.png


BIN
static/image/img28.png


BIN
static/image/img29.png


BIN
static/image/img30.png


BIN
static/image/img31.png


BIN
static/image/img32.png


BIN
static/image/img33.png