Browse Source

Merge branch 'master' of http://git.liuniu946.com/lhl/nzhbsr

cmy 3 years ago
parent
commit
0fa227f3c3

+ 24 - 0
api/login.js

@@ -133,4 +133,28 @@ export function upauthrz(data) {
 		method: 'get',
 		data
 	})
+}
+
+export function coininfo(data) {
+	return request({
+		url: '/api/User/coininfo',
+		method: 'get',
+		data
+	})
+}
+
+export function bill(data) {
+	return request({
+		url: '/api/User/bill',
+		method: 'get',
+		data
+	})
+}
+
+export function transfer(data) {
+	return request({
+		url: '/api/User/transfer',
+		method: 'get',
+		data
+	})
 }

+ 54 - 0
api/wallet.js

@@ -56,3 +56,57 @@ export function paycoin(data) {
 		data
 	});
 }
+
+// 提幣列表
+export function txcoin(data) {
+	return request({
+		url: '/api/User/txcoin',
+		method: 'get',
+		data
+	});
+}
+
+// 提幣詳情
+export function txpage(data) {
+	return request({
+		url: '/api/User/txpage',
+		method: 'get',
+		data
+	});
+}
+
+// 提幣地址
+export function addresslist(data) {
+	return request({
+		url: '/api/User/addresslist',
+		method: 'get',
+		data
+	});
+}
+
+// 添加提幣地址
+export function upplusaddress(data) {
+	return request({
+		url: '/api/User/upplusaddress',
+		method: 'get',
+		data
+	});
+}
+
+// 刪除地址
+export function deladdress(data) {
+	return request({
+		url: '/api/User/deladdress',
+		method: 'get',
+		data
+	});
+}
+
+// 提幣
+export function tbhandle(data) {
+	return request({
+		url: '/api/user/tbhandle',
+		method: 'get',
+		data
+	});
+}

+ 22 - 10
pages.json

@@ -45,6 +45,12 @@
 				"navigationBarTitleText": "提幣詳情"
 			}
 		},
+		{
+			"path": "pages/transaction/transfer",
+			"style": {
+				"navigationBarTitleText": "資金劃轉"
+			}
+		},
 		{
 			"path": "pages/heyue/heyue",
 			"style": {
@@ -99,6 +105,12 @@
 			"style": {
 				"navigationBarTitleText": ""
 			}
+		},
+		{
+			"path": "pages/user/coininfo",
+			"style": {
+				"navigationBarTitleText": ""
+			}
 		}
 		
 	],
@@ -109,32 +121,32 @@
 		"backgroundColor": "#f8f8f8"
 	},
 	"tabBar": {
-		"color": "#C0C4CC",
-		"selectedColor": "#5DBC7C",
+		"color": "#697484",
+		"selectedColor": "#fcd417",
 		"borderStyle": "black",
 		"backgroundColor": "#ffffff",
 		"list": [{
 				"pagePath": "pages/index/index",
-				"iconPath": "static/tabBar/tab-home.png",
-				"selectedIconPath": "static/tabBar/tab-home-current.png",
+				"iconPath": "static/tabBar/home.png",
+				"selectedIconPath": "static/tabBar/home-action.png",
 				"text": "首頁"
 			},
 			{
 				"pagePath": "pages/transaction/transaction",
-				"iconPath": "static/tabBar/tab-home.png",
-				"selectedIconPath": "static/tabBar/tab-home-current.png",
+				"iconPath": "static/tabBar/jy.png",
+				"selectedIconPath": "static/tabBar/jy-action.png",
 				"text": "交易"
 			},
 			{
 				"pagePath": "pages/heyue/heyue",
-				"iconPath": "static/tabBar/tab-home.png",
-				"selectedIconPath": "static/tabBar/tab-home-current.png",
+				"iconPath": "static/tabBar/hy.png",
+				"selectedIconPath": "static/tabBar/hy-action.png",
 				"text": "合約"
 			},
 			{
 				"pagePath": "pages/user/user",
-				"iconPath": "static/tabBar/tab-my.png",
-				"selectedIconPath": "static/tabBar/tab-my-current.png",
+				"iconPath": "static/tabBar/zc.png",
+				"selectedIconPath": "static/tabBar/zc-action.png",
 				"text": "資產"
 			}
 		]

+ 10 - 6
pages/index/index.vue

@@ -14,15 +14,15 @@
 		<!-- 功能盒 start -->
 		<view class="gnh-wrap">
 			<view class="gnh-top flex">
-				<view class="top-item flex">
+				<!-- <view class="top-item flex">
 					<image src="../../static/icon/gn-1.png" mode="" class=""></image>
 					<view class="">認購</view>
-				</view>
-				<view class="top-item flex">
+				</view> -->
+				<view class="top-item flex" @click="navto('/pages/transaction/cblist')">
 					<image src="../../static/icon/gn-2.png" mode="" class=""></image>
 					<view class="">充幣</view>
 				</view>
-				<view class="top-item flex">
+				<view class="top-item flex" @click="navto('/pages/transaction/tblist')">
 					<image src="../../static/icon/gn-3.png" mode="" class=""></image>
 					<view class="">提幣</view>
 				</view>
@@ -30,10 +30,10 @@
 					<image src="../../static/icon/gn-4.png" mode="" class=""></image>
 					<view class="">語言</view>
 				</view> -->
-				<view class="top-item flex">
+				<!-- <view class="top-item flex">
 					<image src="../../static/icon/gn-5.png" mode="" class=""></image>
 					<view class="">客服</view>
-				</view>
+				</view> -->
 			</view>
 			<view class="gnh-btm flex">
 				<view class="btm-item">
@@ -101,6 +101,10 @@
 </template>
 
 <script>
+	import {
+		saveUrl,
+		interceptor
+	} from '@/utils/loginUtils.js';
 	import {
 		mapState,
 		mapMutations

+ 11 - 6
pages/transaction/cbdetail.vue

@@ -2,7 +2,7 @@
 	<view class="content">
 		<view class="vheight"></view>
 		<view class="top flex">
-			<image @click="navTo('/pages/transaction/cblist')" class="top-icon1" src="../../static/img/cb2.png" mode=""></image>
+			<image @click="back()" class="top-icon1" src="../../static/img/cb2.png" mode=""></image>
 			<image class="top-icon2" src="../../static/img/cb1.png" mode=""></image>
 		</view>
 		<view class="title">充幣</view>
@@ -39,9 +39,9 @@
 			<view class="btn" @click="copy(info.czaddress)">複製地址</view>
 		</view>
 		<view class="info">
-			<view class="info-item red">最小充值金額:0.00BTC,小於最小金額的充值將不會上賬且無法退回</view>
+			<view class="info-item red">最小充值金額:{{ info.czminnum }}{{ info.title }},小於最小金額的充值將不會上賬且無法退回</view>
 			<view class="info-item">請選擇正確的充值通道網絡,否則資產將不可找回</view>
-			<view class="info-item">最小充值金額:0.00BTC,小於最小金額的充值將不會上賬且無法退回</view>
+			<view class="info-item">最小充值金額:{{ info.czminnum }}{{ info.title }},小於最小金額的充值將不會上賬且無法退回</view>
 			<view class="info-item">您的充值地址不會經常改變,可以重複充值;如有更改,我們會盡量通過網站公告或郵件通知您</view>
 			<view class="info-item">請務必確認電腦及瀏覽器安全,防止信息被篡改或洩露</view>
 		</view>
@@ -80,7 +80,8 @@ export default {
 			loadMake: true,
 			usingComponents: true,
 			num: '',
-			image: ''
+			image: '',
+			image1: ''
 		};
 	},
 	onLoad(opt) {
@@ -99,6 +100,9 @@ export default {
 		qrR(res) {
 			console.log(res, '123456');
 		},
+		back() {
+			uni.navigateBack();
+		},
 		navTo(url) {
 			uni.navigateTo({
 				url
@@ -111,6 +115,7 @@ export default {
 			}).then(data => {
 				console.log('data', data);
 				this.image = data[0].src;
+				this.image1 = data[0].img;
 			});
 		},
 		copy(item) {
@@ -134,10 +139,10 @@ export default {
 			if (this.num < 0) {
 				return this.$api.msg('充值金額不能為0');
 			}
-			if (!this.image) {
+			if (!this.image1) {
 				return this.$api.msg('請上傳轉款憑證');
 			}
-			paycoin({ cid: this.id, zznum: this.num, payimg: this.image, coinname: this.info.title }).then(e => {
+			paycoin({ cid: this.id, zznum: this.num, payimg: this.image1, coinname: this.info.title }).then(e => {
 				this.num = '';
 				this.image = '';
 				return this.$api.msg('提交申請成功,請耐心等待審核');

+ 9 - 3
pages/transaction/cblist.vue

@@ -5,7 +5,7 @@
 				<view class="ss-main-icon"><image src="../../static/img/ss.png" mode=""></image></view>
 				<input type="text" @blur="loadData()" v-model="keyworld" placeholder="搜索您需要的幣種" />
 			</view>
-			<view class="ss-font">取消</view>
+			<view class="ss-font" @click="navTo('/pages/user/user')">取消</view>
 		</view>
 		<!-- <view class="title">热门币种</view>
 		<view class="rmbz flex">
@@ -65,9 +65,14 @@ export default {
 				this.bilist = e.data;
 			});
 		},
-		navTo(opt) {
+		navTo(url) {
 			uni.navigateTo({
-				url: '/pages/transaction/cbdetail?type=' + opt
+				url,
+				fail() {
+					uni.switchTab({
+						url
+					});
+				}
 			});
 		},
 		nav(opt) {
@@ -103,6 +108,7 @@ page,
 		.ss-main-icon {
 			width: 32rpx;
 			height: 32rpx;
+			margin-right: 20rpx;
 			image {
 				width: 100%;
 				height: 100%;

+ 236 - 17
pages/transaction/tbdetail.vue

@@ -1,33 +1,252 @@
 <template>
 	<view class="content">
-
+		<view class="vheight"></view>
+		<view class="top flex">
+			<image @click="back()" class="top-icon1" src="../../static/img/cb2.png" mode=""></image>
+			<image class="top-icon2" src="../../static/img/cb1.png" mode=""></image>
+		</view>
+		<view class="title">提幣</view>
+		<view class="type flex" @click="navTo('/pages/transaction/cblist')">
+			<view class="type-left">幣種</view>
+			<view class="type-right">
+				<view class="type-name">{{ info.title }}</view>
+				<image class="type-icon" src="../../static/icon/user-back.png" mode=""></image>
+			</view>
+		</view>
+		<view class="main">
+			<view class="main-title">提幣網絡</view>
+			<view class="main-list">{{ info.czline }}</view>
+			<view class="main-title" style="margin-top: 20rpx;">提幣地址</view>
+			<view class="sr-input"><input placeholder="請輸入提幣地址" type="number" v-model="address" /></view>
+			<view class="sr-sl flex">
+				<view class="sr-title">提幣數量</view>
+				<view class="sr-num" v-if="info">可用 {{ money }} {{ info.name.toLocaleUpperCase() }}</view>
+			</view>
+			<view class="sr-input flex">
+				<input placeholder="請輸入提幣數量" type="number" v-model="num" />
+				<view class="main-type-box">
+					<view class="main-type" v-if="info">{{ info.name.toLocaleUpperCase() }}</view>
+					<view class="all" @click="qb()">全部</view>
+				</view>
+			</view>
+			<view class="sr-btn" @click="submit()">提交</view>
+			<view class="sr-tip flex" v-if="num">
+				<view class="sr-tip-item">實際到賬</view>
+				<view class="sr-tip-item" v-if="info.sxftype == 1">{{ num * 1 * (1 - (info.txsxf * 1) / 100) }}</view>
+				<view class="sr-tip-item" v-if="info.sxftype == 2">{{ num * 1 - info.txsxf_n * 1 }}</view>
+			</view>
+		</view>
+		<view class="info">
+			<view class="info-item red">
+				提币扣除{{ info.sxftype == 1 ? info.txsxf + '%' : info.txsxf_n + info.title }}手续费 , 輸小提幣數量:{{ info.txminnum
+				}}{{ info.title }},小於最小金額的提幣將不會到賬且無法退回
+			</view>
+			<view class="info-item">為保障資金安全,當您賬戶安全策略變更,密碼修改,我們會對提幣進行人工審核,請耐心等待工作人員電話或郵件聯繫.</view>
+			<view class="info-item">請務必確認電腦及瀏覽器安全,防止信息被篡改或洩露</view>
+		</view>
 	</view>
 </template>
 
 <script>
-	export default {
-		data() {
-			return {
-
-			}
+import { txpage, tbhandle } from '@/api/wallet.js';
+import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
+import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
+export default {
+	data() {
+		return {
+			id: '',
+			info: '',
+			address: '',
+			num: '',
+			money: ''
+		};
+	},
+	onLoad(opt) {
+		this.id = opt.type;
+		this.loadData();
+	},
+	onShow() {},
+	onReachBottom() {},
+	onReady() {},
+	methods: {
+		loadData() {
+			txpage({ id: this.id }).then(({ data }) => {
+				this.info = data.info;
+				this.money = data.money;
+			});
 		},
-		onLoad() {
-
+		qrR(res) {
+			console.log(res, '123456');
 		},
-		onShow() {
-
+		back() {
+			uni.navigateBack();
 		},
-		onReachBottom() {
-
+		qb() {
+			this.num = this.money;
 		},
-		onReady() {
-
+		navTo(url) {
+			uni.navigateTo({
+				url
+			});
 		},
-		methods: {
-
+		submit() {
+			console.log(222);
+			if (this.num < 0) {
+				return this.$api.msg('提幣數量不能為0');
+			}
+			if (!this.address) {
+				return this.$api.msg('請輸入上傳地址');
+			}
+			tbhandle({ id: this.id, num: this.num, address: this.address }).then(e => {
+				this.num = '';
+				this.image = '';
+				return this.$api.msg('提交申請成功,請耐心等待審核');
+			});
 		}
 	}
+};
 </script>
 
 <style lang="scss">
-</style>
+page,
+.content {
+	min-height: 100%;
+	height: auto;
+	background: #f5f5f5;
+}
+.vheigh {
+	height: var(--status-bar-height);
+}
+.top {
+	padding: 20rpx 40rpx;
+	.top-icon1 {
+		width: 52rpx;
+		height: 36rpx;
+	}
+	.top-icon2 {
+		width: 48rpx;
+		height: 48rpx;
+	}
+}
+.title {
+	padding: 20rpx 20rpx 0;
+	font-size: 52rpx;
+	font-weight: 500;
+}
+.type {
+	margin: 20rpx auto 0;
+	width: 690rpx;
+	background: #ffffff;
+	border-radius: 20rpx;
+	padding: 30rpx 20rpx;
+	.type-left {
+		font-size: 32rpx;
+		color: #000;
+	}
+	.type-right {
+		display: flex;
+		align-items: center;
+		.type-name {
+			font-size: 36rpx;
+			font-weight: bold;
+			color: #fcd535;
+			margin-right: 10rpx;
+		}
+		.type-icon {
+			width: 24rpx;
+			height: 24rpx;
+		}
+	}
+}
+.main {
+	margin: 20rpx auto 0;
+	width: 690rpx;
+	background: #ffffff;
+	border-radius: 20rpx;
+	padding: 30rpx 20rpx;
+	.main-title {
+		font-size: 32rpx;
+		color: #000;
+	}
+	.main-list {
+		margin-top: 20rpx;
+		width: 200rpx;
+		height: 70rpx;
+		line-height: 70rpx;
+		text-align: center;
+		border: 2px solid #fcd535;
+		border-radius: 10rpx;
+		font-size: 28rpx;
+		color: #fcd535;
+	}
+	.sr-input {
+		margin-top: 20rpx;
+		display: flex;
+		align-items: center;
+		width: 100%;
+		height: 80rpx;
+		line-height: 80rpx;
+		background: #f5f5f5;
+		border-radius: 20rpx;
+		padding: 0rpx 30rpx;
+		input {
+			font-size: 28rpx;
+			padding-left: 30rpx;
+			background: #f5f5f5;
+		}
+	}
+	.sr-sl {
+		margin-top: 20rpx;
+		.sr-num {
+			color: #707a8a;
+			font-size: 24rpx;
+		}
+	}
+	.main-type-box {
+		display: flex;
+		align-items: center;
+		.main-type {
+			font-size: 32rpx;
+			color: #707a8a;
+			margin-right: 20rpx;
+		}
+		.all {
+			font-size: 32rpx;
+			color: #707a8a;
+		}
+	}
+	.sr-btn {
+		width: 100%;
+		height: 80rpx;
+		line-height: 80rpx;
+		text-align: center;
+		border-radius: 10rpx;
+		margin: 20rpx auto 0;
+		background: linear-gradient(to left, #eeb80d, #ffe35b);
+		font-size: 28rpx;
+		color: #000;
+	}
+	.sr-tip {
+		margin-top: 20rpx;
+		.sr-tip-item {
+			font-size: 24rpx;
+			color: #707a8a;
+		}
+	}
+}
+.info {
+	margin: 20rpx auto 0;
+	width: 690rpx;
+	background: #ffffff;
+	border-radius: 20rpx;
+	padding: 30rpx 20rpx;
+	.info-item {
+		font-size: 24rpx;
+		color: #000;
+		margin-bottom: 20rpx;
+	}
+	.red {
+		color: red;
+	}
+}
+</style>

+ 178 - 20
pages/transaction/tblist.vue

@@ -1,33 +1,191 @@
 <template>
 	<view class="content">
-
+		<view class="ss-box flex">
+			<view class="ss-main">
+				<view class="ss-main-icon"><image src="../../static/img/ss.png" mode=""></image></view>
+				<input type="text" @blur="loadData()" v-model="keyworld" placeholder="搜索您需要的幣種" />
+			</view>
+			<view class="ss-font" @click="navTo('/pages/user/user')">取消</view>
+		</view>
+		<view class="title">可提幣列表</view>
+		<scroll-view class="swiper-box" scroll-y="true" :style="{ height: maxheight }">
+			<view class="list" v-for="(item, index) in bilist" @click="nav(item)">
+				<view class="list-item flex">
+					<view class="list-item-left">
+						<view class="list-title">{{ item.cname }}</view>
+						<view class="list-tip">{{ item.title }}</view>
+					</view>
+					<view class="list-item-right">
+						<view class="kc">{{ item.cnum }}</view>
+						<view class="back"><image src="../../static/icon/user-back.png" mode=""></image></view>
+					</view>
+				</view>
+			</view>
+		</scroll-view>
 	</view>
 </template>
 
 <script>
-	export default {
-		data() {
-			return {
-
-			}
-		},
-		onLoad() {
-
-		},
-		onShow() {
-
-		},
-		onReachBottom() {
-
+import { txcoin } from '@/api/wallet.js';
+export default {
+	data() {
+		return {
+			keyworld: '',
+			rmlist: ['USDT', 'BTC', 'ETH', 'TRX'],
+			bilist: [],
+			maxheight: ''
+		};
+	},
+	onLoad() {},
+	onShow() {
+		this.loadData();
+	},
+	onReachBottom() {},
+	onReady(res) {
+		var _this = this;
+		uni.getSystemInfo({
+			success: resu => {
+				const query = uni.createSelectorQuery();
+				query.select('.swiper-box').boundingClientRect();
+				query.exec(function(res) {
+					_this.maxheight = resu.windowHeight - res[0].top + 'px';
+					console.log('打印页面的剩余高度', _this.maxheight);
+				});
+			},
+			fail: res => {}
+		});
+	},
+	methods: {
+		loadData() {
+			txcoin({ name: this.keyworld }).then(e => {
+				this.bilist = e.data;
+			});
 		},
-		onReady() {
-
+		navTo(url) {
+			uni.navigateTo({
+				url,
+				fail() {
+					uni.switchTab({
+						url
+					});
+				}
+			});
 		},
-		methods: {
-
+		nav(opt) {
+			uni.navigateTo({
+				url: '/pages/transaction/tbdetail?type=' + opt.id
+			});
 		}
 	}
+};
 </script>
 
 <style lang="scss">
-</style>
+page,
+.content {
+	min-height: 100%;
+	height: auto;
+	background: #ffffff;
+}
+.ss-box {
+	padding: 12rpx 62rpx 10rpx 34rpx;
+	border-bottom: 1px solid #f6f6f6;
+	.ss-main {
+		width: 537rpx;
+		padding: 10rpx 0;
+		background: #f6f6f6;
+		border-radius: 26rpx;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		.ss-main-icon {
+			width: 32rpx;
+			height: 32rpx;
+			margin-right: 20rpx;
+			image {
+				width: 100%;
+				height: 100%;
+			}
+		}
+		input {
+			font-size: 20rpx;
+			font-family: PingFang SC;
+			font-weight: 500;
+			color: #aaaaaa;
+		}
+	}
+	.ss-font {
+		font-size: 28rpx;
+		font-family: PingFang SC;
+		font-weight: 500;
+		color: #070707;
+	}
+}
+.title {
+	display: inline-block;
+	margin: 30rpx 0 0 18rpx;
+	padding: 0 10rpx 13rpx;
+	border-bottom: 4rpx solid #f4d03c;
+}
+.rmbz {
+	padding: 32rpx 0;
+	justify-content: center;
+	.rmbz-item {
+		width: 130rpx;
+		height: 52rpx;
+		border: 2rpx solid #848a8f;
+		border-radius: 10rpx;
+		text-align: center;
+		line-height: 52rpx;
+		font-size: 24rpx;
+		font-family: PingFang SC;
+		font-weight: 500;
+		color: #000000;
+		margin: 0 16rpx;
+	}
+}
+.list {
+	margin-top: 6rpx;
+	padding: 0 24rpx;
+	.list-item {
+		padding: 42rpx 0 24rpx;
+		.list-item-left {
+			display: flex;
+			align-items: center;
+			.list-title {
+				width: 200rpx;
+				font-size: 28rpx;
+				font-family: PingFang SC;
+				font-weight: 500;
+				color: #5d5f70;
+			}
+			.list-tip {
+				font-size: 24rpx;
+				font-family: PingFang SC;
+				font-weight: 500;
+				color: #5d5f70;
+			}
+		}
+		.list-item-right {
+			display: flex;
+			align-items: center;
+			line-height: 1;
+			.kc {
+				font-size: 20rpx;
+				font-family: PingFang SC;
+				font-weight: 500;
+				color: #5d5f70;
+				margin-right: 20rpx;
+			}
+			.back {
+				width: 24rpx;
+				height: 24rpx;
+				image {
+					width: 100%;
+					height: 100%;
+				}
+			}
+		}
+	}
+}
+</style>

+ 181 - 0
pages/transaction/transfer.vue

@@ -0,0 +1,181 @@
+<template>
+	<view class="content">
+		<view class="" style="height: 50rpx;">
+
+		</view>
+		<view class="wrap">
+			<view class="imgbox_1">
+				劃轉類型
+			</view>
+			<view class="flex">
+				<view class="imgbox_noaction" :class="{'imgbox_action': current == 1}" @click="current = 1">
+					資金賬戶轉合約賬戶
+				</view>
+				<view class="imgbox_noaction" :class="{'imgbox_action': current == 2}" @click="current = 2">
+					合約帳戶甎資金賬戶
+				</view>
+			</view>
+			<view class="flex" style="margin-top: 20rpx;">
+				<view class="item-left">
+					資金賬戶
+				</view>
+				<view class="item-right">
+					可用餘額 {{userInfo.usdt}} USDT
+				</view>
+			</view>
+			<view class="flex">
+				<view class="item-left">
+					合約賬戶
+				</view>
+				<view class="item-right">
+					可用餘額 {{userInfo.money}} USDT
+				</view>
+			</view>
+			<view class="sr-wrap flex">
+				<input type="digit" placeholder="輸入劃轉數量" class="sr-inp" v-model="tbnum" />
+				<view class="">
+					USDT
+				</view>
+			</view>
+			<view class="sub-btn" @click="transfer">
+				提交
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import {
+		mapState,
+		mapMutations
+	} from 'vuex';
+	import {
+		transfer,
+		getUser
+	} from '@/api/login.js'
+	export default {
+		data() {
+			return {
+				current: 1,
+				tbnum: '',
+				loaded: false
+			}
+		},
+		onLoad() {
+			console.log(this.userInfo)
+		},
+		computed: {
+			...mapState('user', ['userInfo'])
+		},
+		onShow() {
+
+		},
+		onReachBottom() {
+
+		},
+		onReady() {
+
+		},
+		methods: {
+			...mapMutations('user', ['setUserInfo']),
+			transfer() {
+				let obj = this
+				if(obj.loaded) {
+					return
+				}
+				obj.loaded = true
+				transfer({
+					tbnum: obj.tbnum,
+					type: obj.current
+				}).then(res => {
+					
+					uni.showToast({
+						title: '劃轉成功',
+						duration: 2000,
+						position: 'top'
+					});
+					getUser().then(re => {
+						obj.loaded = false
+						obj.setUserInfo(re.data)
+					})
+				}).catch(err => {
+					obj.loaded = false
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+	.wrap {
+		width: 640rpx;
+		height: 610rpx;
+		padding: 40rpx;
+		background-color: #fff;
+		margin: auto;
+		border-radius: 20rpx;
+
+		.imgbox_1 {
+			height: 80rpx;
+			line-height: 80rpx;
+			font-size: 32rpx;
+		}
+
+		.imgbox_noaction {
+			width: 280rpx;
+			height: 70rpx;
+			line-height: 70rpx;
+			text-align: center;
+			font-size: 24rpx;
+			border: #ccc solid 1px;
+			color: #ccc;
+			border-radius: 20rpx;
+		}
+
+		.imgbox_action {
+			color: #FCD535;
+			border: #FCD535 solid 1px;
+
+		}
+	}
+
+	.item-left {
+		height: 60rpx;
+		line-height: 60rpx;
+		font-size: 32rpx;
+	}
+
+	.item-right {
+		height: 60rpx;
+		line-height: 60rpx;
+		font-size: 24rpx;
+		color: #707A8A;
+	}
+
+	.sr-wrap {
+		width: 560rpx;
+		height: 80rpx;
+		background-color: #f5f5f5;
+		border-radius: 20rpx;
+		padding: 0 20rpx;
+
+		.sr-inp {
+			width: 352rpx;
+			height: 60rpx;
+			line-height: 60rpx;
+			display: inline-block;
+		}
+	}
+
+	.sub-btn {
+		width: 560rpx;
+		height: 80rpx;
+		line-height: 80rpx;
+		color: #000;
+		text-align: center;
+		font-size: 28rpx;
+		background: linear-gradient(to left, #eeb80d, #ffe35b);
+		margin-top: 30rpx;
+		border-radius: 20rpx;
+	}
+</style>

+ 21 - 7
pages/user/authrz.vue

@@ -18,14 +18,14 @@
 				上傳身份證正面
 			</view>
 			<view class="up-img" @click="upcardzm()">
-				<image src="" mode="heightFix" v-if="cardzm"></image>
+				<image :src="cardzmt" mode="heightFix" v-if="cardzm"></image>
 				<image src="../../static/img/flower.png" mode="heightFix" v-else></image>
 			</view>
 			<view class="up-tit">
 				上傳身份證背面
 			</view>
-			<view class="up-img"  @click="upcardzm()">
-				<image src="" mode="heightFix" v-if="cardfm"></image>
+			<view class="up-img"  @click="upcardfm()">
+				<image :src="cardfmt" mode="heightFix" v-if="cardfm"></image>
 				<image src="../../static/img/flower.png" mode="heightFix" v-else></image>
 			</view>
 			<view class="up-btn" @click="upauthrz()">
@@ -40,12 +40,14 @@
 		upauthrz,
 		upimg
 	} from '@/api/login.js'
-	// import {  } from '@/api/wallet.js'
+	import { upload } from '@/api/wallet.js'
 	export default {
 		data() {
 			return {
 				cardzm: '',
-				cardfm: ''
+				cardzmt: '',
+				cardfm: '',
+				cardfmt: '',
 			}
 		},
 		onLoad() {
@@ -62,10 +64,22 @@
 		},
 		methods: {
 			upcardzm() {
-				
+				upload({
+					filename: ''
+				}).then(data => {
+					console.log('data', data);
+					this.cardzm = data[0].img;
+					this.cardzmt = data[0].src;
+				});
 			},
 			upcardfm() {
-				
+				upload({
+					filename: ''
+				}).then(data => {
+					console.log('data', data);
+					this.cardfm = data[0].img;
+					this.cardfmt = data[0].src;
+				});
 			},
 			upauthrz() {
 				let obj = this

+ 259 - 0
pages/user/coininfo.vue

@@ -0,0 +1,259 @@
+<template>
+	<view class="content">
+		<view class="top-base">
+			<view class="contentbox_top">
+				{{info.name}}
+			</view>
+			<view class="base-info flex">
+				<view class="info-item">
+					<view class="item-name">
+						可用
+					</view>
+					<view class="item-val">
+						{{info.num}}
+					</view>
+				</view>
+				<view class="info-item">
+					<view class="item-name">
+						凍結
+					</view>
+					<view class="item-val">
+						{{info.numd}}
+					</view>
+				</view>
+				<view class="info-item">
+					<view class="item-name" style="text-align: right;">
+						折合(USDT)
+					</view>
+					<view class="item-val" style="text-align: right;">
+						{{info.zhe}}
+					</view>
+				</view>
+			</view>
+			
+		</view>
+		<view class="" style="height: 20rpx;background-color: #f5f5f5;">
+			
+		</view>
+		<view class="tit">
+			財務記錄
+		</view>
+		<view class="cwjl-wrap" v-for="item in list">
+			<view class="jl-tit">
+				{{item.remark}}
+			</view>
+			<view class="jl-info flex" >
+				<view class="info-item">
+					<view class="item-name">
+						數量
+					</view>
+					<view class="item-val">
+						{{item.num}}
+					</view>
+				</view>
+				<view class="info-item">
+					<view class="item-name" >
+						狀態
+					</view>
+					<view class="item-val">
+						{{item.st == 1? '增加': (item.st == 2 ? '減少': '')}}
+					</view>
+				</view>
+				<view class="info-item">
+					<view class="item-name" style="text-align: right;">
+						時間
+					</view>
+					<view class="item-val" style="text-align: right;">
+						{{item.addtime}}
+					</view>
+				</view>
+			</view>
+		</view>
+		<uni-load-more :status="loadingType"></uni-load-more>
+		<view class="tianc" style="height: 120rpx;background-color: #fff;">
+			
+		</view>
+		<view class="btm-btn flex">
+			<view class="btnbox_a " @click="navto('/pages/transaction/cbdetail?type=' + id)">
+				充幣
+			</view>
+			<view class="btnbox_b " @click="navto('/pages/transaction/tbdetail?type=' + id)">
+				提幣
+			</view>
+			<view class="btnbox_b " v-if="info.name == 'Wallets-USDT'" @click="navto('/pages/transaction/transfer')">
+				劃轉
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import {
+		coininfo,
+		bill
+	} from '@/api/login.js'
+	export default {
+		data() {
+			return {
+				id: '',
+				info: {},
+				page: 1,
+				limit: 10,
+				loadingType: 'more',
+				loaded: false,
+				list: []
+			}
+		},
+		onLoad(opt) {
+			if (opt.id) {
+				this.id = opt.id
+				this.coininfo()
+			}
+		},
+		onShow() {
+
+		},
+		onReachBottom() {
+			console.log('dao')
+			this.bill()
+		},
+		onReady() {
+
+		},
+		methods: {
+			navto(url) {
+				uni.navigateTo({
+					url
+				})
+			},
+			coininfo() {
+				let obj = this
+				coininfo({
+					cid: obj.id
+				}).then(res => {
+					console.log(res)
+					obj.info = res.data
+					obj.bill()
+				})
+			},
+			bill() {
+				let obj = this
+				if(obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
+					return
+				}
+				obj.loadingType = 'loading'
+				bill({
+					name: obj.info.name,
+					page: obj.page,
+					limit: obj.limit
+				}).then(res => {
+					console.log(res)
+					// if()
+					obj.list = obj.list.concat(res.data)
+					if(obj.limit == res.data.length) {
+						obj.loadingType = 'more'
+					}else {
+						obj.loadingType = 'noMore'
+					}
+					obj.loaded = true
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+	page {
+		background-color: #fff;
+		height: 100%;
+	}
+	.top-base {
+		width: 750rpx;
+		height: 240rpx;
+		background-color: #fff;
+		padding: 10rpx 30rpx;
+	}
+
+	.contentbox_top {
+		color: #FCD535;
+		height: 100rpx;
+		line-height: 100rpx;
+		font-size: 52rpx;
+	}
+	.base-info {
+		width: 100%;
+		justify-content: space-between;
+		.info-item {
+			width: 33%;
+			height: 100rpx;
+			color: #000;
+			font-size: 28rpx;
+			.item-name {
+				color: #707A8A;
+			}
+		}
+	}
+	.tit {
+		height: 100rpx;
+		line-height: 100rpx;
+		padding: 20rpx;
+		color: #000;
+		font-size: 40rpx;
+	}
+	.cwjl-wrap {
+		width: 660rpx;
+		height: 180rpx;
+		border-bottom: 1px solid #f5f5f5;
+		margin: auto;
+		padding: 10rpx 20rpx;
+		color: #000;
+		font-size: 28rpx;
+		.jl-tit {
+			
+			
+		}
+		.jl-info {
+			justify-content: space-between;
+			
+			.info-item {
+				width: 33%;
+				.item-name {
+					color: #707A8A;
+					padding: 20rpx 0 10rpx;
+				}
+				.item-val {
+					padding: 10rpx 0;
+				}
+			}
+		}
+	}
+	.btm-btn {
+		width: 750rpx;
+		height: 120rpx;
+		padding: 20rpx;
+		font-size: 28rpx;
+		color: #000;
+		justify-content: flex-start;
+		position: fixed;
+		bottom: 0;
+		background-color: #fff;
+		.btnbox_a {
+			width: 198rpx;
+			height: 80rpx;
+			line-height: 80rpx;
+			text-align: center;
+			background: linear-gradient(to left,#eeb80d,#ffe35b);
+			margin-right: 20rpx;
+			border-radius: 20rpx;
+		}
+		.btnbox_b {
+			width: 198rpx;
+			height: 80rpx;
+			line-height: 80rpx;
+			text-align: center;
+			background: #f5f5f5;
+			margin-right: 20rpx;
+			border-radius: 20rpx;
+		}
+	}
+</style>

+ 1 - 1
pages/user/user.vue

@@ -24,7 +24,7 @@
 			</view>
 
 			<scroll-view :scroll-y="true" class="swiper-box" :style="{ height: maxheight }">
-				<view class="listbox" v-for="(item, index) in list">
+				<view class="listbox" v-for="(item, index) in list" @click="navTo('/pages/user/coininfo?id=' + item.id)">
 					<view class="listbox_title flex">
 						<view class="listbox_title_l">{{ item.name.toLocaleUpperCase() }}</view>
 						<view class="listbox_title_r"><image src="../../static/icon/user-back.png" mode=""></image></view>

BIN
static/tabBar/dingdan.png


BIN
static/tabBar/home-action.png


BIN
static/tabBar/home.png


BIN
static/tabBar/hy-action.png


BIN
static/tabBar/hy.png


BIN
static/tabBar/jy-action.png


BIN
static/tabBar/jy.png


BIN
static/tabBar/tab-cart-current.png


BIN
static/tabBar/tab-cart.png


BIN
static/tabBar/tab-cate-current.png


BIN
static/tabBar/tab-cate.png


BIN
static/tabBar/tab-home-current.png


BIN
static/tabBar/tab-home.png


BIN
static/tabBar/tab-my-current.png


BIN
static/tabBar/tab-my.png


BIN
static/tabBar/zc-action.png


BIN
static/tabBar/zc.png


BIN
unpackage/安卓/hy.keystore


+ 2 - 0
unpackage/安卓/证书详情.txt

@@ -0,0 +1,2 @@
+别名:inc.hy.com
+密码:112233