xiaol 1 tahun lalu
induk
melakukan
11690feab3
3 mengubah file dengan 190 tambahan dan 6 penghapusan
  1. 9 0
      pages.json
  2. 170 0
      pages/index/personal.vue
  3. 11 6
      pages/index/recharge.vue

+ 9 - 0
pages.json

@@ -176,6 +176,15 @@
 				"navigationBarBackgroundColor": "#051137",
 				"navigationBarTextStyle": "white"
 			}
+		},
+		{
+			"path": "pages/index/personal",
+			"style": {
+				"navigationBarTitleText": "实名认证",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#051137",
+				"navigationBarTextStyle": "white"
+			}
 		}
 	],
 	"subPackages": [{ // 模块分包

+ 170 - 0
pages/index/personal.vue

@@ -0,0 +1,170 @@
+<template>
+  <view class="body_content">
+	<view class="example-title">个人资料</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="mail" placeholder="请输入电子邮箱" /></view>
+		</view>
+		<view class="login_input flex">
+			<view class="login_img"><text>真实姓名</text></view>
+			<view class="login_name"><input class="uni-input" type="text" v-model="username" placeholder="请输入真实姓名" /></view>
+		</view>
+		<view class="login_input flex">
+			<view class="login_img"><text>身份证号</text></view>
+			<view class="login_name"><input class="uni-input" type="idcard" v-model="number" placeholder="请输入身份证号" /></view>
+		</view>
+	</view>
+	<view class="submission"><button class="golden" type="golden" hover-class="none" @click="submission">确认提交</button></view>
+	<!-- <view class="example-title"><text>资金账户</text></view>
+	<view class="login_text">
+		<view class="login_input flex" style="padding-top: 45rpx;"> 
+			<view class="login_img"><text>保证金余额</text></view>
+			<view class="login_name"><text>2514. 00U</text></view>
+		</view>
+		<view class="login_input flex">
+			<view class="login_img"><text>奖励金额</text></view>
+			<view class="login_name"><text>1254.00U</text></view>
+		</view>
+		<view class="login_input flex">
+			<view class="login_img"><text>佣金费率</text></view>
+			<view class="login_name"><text>1.6</text></view>
+		</view>
+		<view class="login_input flex">
+			<view class="login_img"><text>已收款金额</text></view>
+			<view class="login_name"><text>54500U</text></view>
+		</view> -->
+	</view>
+  </view>
+</template>
+<script type="text/javascript">
+import { show_us,attestation } from '@/api/user.js';
+export default {
+  data() {
+    return {
+	  mail:'',
+	  username:'',
+	  number:'',
+	  list:'',
+	  uid:''
+    };
+  },
+  methods: {
+    //获取数据
+    loadData() {
+      show_us({
+		  uid:this.uid
+	  })
+        .then(data => {
+		  let obj = this;
+          obj.list = data.data;
+		  if(data.data.card == null){
+			  obj.number = "";
+		  }else{
+			   obj.number = data.data.card;
+		  }
+		 if(data.data.email == null){
+			obj.mail = ""; 
+		 }else{
+			 obj.mail = data.data.email;
+		 }
+		 if( data.data.name == null){
+			 obj.username = '';
+		 }else{
+			 obj.username = data.data.name;
+		 }
+		  
+        })
+        .catch(err => {
+          console.log(err);
+        });
+    },
+	// 提交
+	submission() {
+		if (this.mail == '') {
+			this.$api.msg('请输入电子邮箱');
+			return;
+		}
+		if (this.username == '') {
+			this.$api.msg('请输入真实姓名');
+			return;
+		}
+		if (this.number == '') {
+			this.$api.msg('请输入身份证号');
+			return;
+		}
+		attestation({
+			uid:this.uid,
+			email: this.mail,
+			name: this.username,
+			card: this.number,
+		})
+			.then(function(e) {
+				uni.showToast({
+					title: e.message,
+					duration: 1500,
+					mask: false,
+					icon: 'none'
+				});
+			})
+			.catch(function(e) {
+				console.log(e);
+			});
+	},
+	//下拉刷新
+	onPullDownRefresh() {
+		let obj = this;
+		//监听下拉刷新动作的执行方法,每次手动下拉刷新都会执行一次
+		setTimeout(function() {
+			obj.loadData();
+			uni.stopPullDownRefresh(); //停止下拉刷新动画
+		}, 1000);
+	}
+  },
+  onLoad() {
+	this.uid = uni.getStorageSync('uid');
+	console.log(uni.getStorageSync('uid'),this.uid)
+    this.loadData();
+  },
+};
+</script>
+<style lang="scss">
+	page {
+		min-height: 100%;
+		background:linear-gradient(-28deg,rgba(44,45,53,1),rgba(59,62,74,1));
+	}
+.body_content {
+  width: 100%;
+  height: 100%;
+}
+.login_text {
+	width: 100%;
+	// padding: 25rpx 0rpx;
+	color: #85858E !important;
+	font-size: 28rpx !important;
+	background-color: #40414E;
+}
+.login_input {
+	border-bottom: 1px solid #464755;
+	padding: 35rpx;
+}
+.uni-input{
+	width:480rpx;
+	text-align: left !important;
+}
+.width {
+	width: 265rpx !important;
+}
+.code {
+	color: #EEC680;
+	font-size: 23rpx;
+	border-left: 1px solid #85858E;
+	padding-left: 25rpx;
+}
+.submission{
+	padding: 0rpx 25rpx;
+}
+.login_name {
+	color: #ffffff;
+}
+</style>

+ 11 - 6
pages/index/recharge.vue

@@ -25,7 +25,7 @@
 				<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;">
+			<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>
@@ -35,10 +35,8 @@
 			<view class="tip">
 				<view>
 					<text>
-						请勿向上述地址充值人任何非USDT资产,否则资产将不可追回,USDT冲币仅支持
-						<text style="color: #EEC680;">ERC20</text>
-						通道充值,其他USDT将无法上帐,请您谅解。 您充值至上述地址后,需要整个网络节点确认,1次网络确认后到账,2次网络确认后即可提币。
-						最小充值金额:100USDT,小于最小金额的充值将不会上帐且无法退回。充值时在备注栏填写 个人的用户ID,如果用户ID错误,将导致您无法入账,请注意确认。
+						该地址仅支持 USDT-TRC20 收款请勿用于其他币种,否则资产将不可找回</br>
+						从易趣付之外地址转入的资金,需要在完成交易的120分钟后,才能将资产转账给易币付其他用户或提到钱包以外的地址 最小收款金额: 0.0001USDT小于最小金额的收款将不会上账且无法退回1次网络确认后可到账,1次网络确认后可转账。您的充值地址不会经常改变,可截图保存并重复充值。
 					</text>
 				</view>
 			</view>
@@ -227,7 +225,11 @@ export default {
 	}
 }
 .submission {
-	padding: 0rpx 25rpx;
+	padding: 30rpx 25rpx;
+	.golden{
+		background: #0C5AFA;
+		color: #fff;
+	}
 }
 .login_name {
 	width: 480rpx;
@@ -265,4 +267,7 @@ export default {
 	padding: 25rpx 0rpx;
 	color: #ffffff;
 }
+.input-placeholder{
+	color: #fff !important;
+}
 </style>