Browse Source

2021-9-30

hwq 4 years ago
parent
commit
fd5d432cba
4 changed files with 78 additions and 54 deletions
  1. 29 18
      lang/en.js
  2. 23 12
      lang/zh_cn.js
  3. 17 15
      pages/index/info.vue
  4. 9 9
      pages/index/male.vue

+ 29 - 18
lang/en.js

@@ -32,26 +32,37 @@ module.exports = {
 		ljgd: "More"
 	},
 	foo: {
-		tx: 'avatar',
-		nc: 'nickname',
-		yhzh:'bank account',
+		tx: 'Avatar',
+		nc: 'Nickname',
+		yhzh:'Bank Account',
 		scyh:'Belongs to the bank',
-		zh:'account',
+		zh:'Account',
 		zfbskm:'Alipay payment code',
 		wxskm:'Weixin payment code',
-		tj:'submit',
-		tcdl:'log out',
-		hwsc: 'Oversea markets',
-		cplb: 'Product list',
-		faal: 'Project examples',
-		zyj: 'Aerator series',
-		gzwm: 'Follow us',
-		fdgzh: 'Futi WeChat official account',
-		fddy:'Futi Tick Tok official account',
-		zz: 'Manufacture',
-		jz: 'Value',
-		wh: 'Culture',
-		zzkhty: "Focus on customers'experience, innovation advancing technology development",
-		qywh: 'The company has a happy, dedicated and professional staff team, who inherit "perfect oneself to be excellent " team cooperation spirit, adhere to the " strict management,innovation, high quality,  market extension"operation policy, adhere to the" do exactly what customer may consider "business philosophy.We always provide high quality products, with excellent service,reasonable price and fast delivery,abide by customers\'commitment as our enterprise purpose.',
+		tj:'Submit',
+		tcdl:'Log out',
+		sjyhskxxs:'Upper-level user payment information(up',
+		j:'Level',
+		cg:'Succeed',
+		sb:'Fail',
+		shz:'Under review',
+		xtpt:'Dystem platform',
+		yzje:'Amount of assistance',
+		yzfkxx:'Assistance payment information',
+		scpz:'Upload documents',
+		qxz:'Please chooseTRC20',
+		zfcbdz:'Copy the coin charging address',
+		qxxyzbbcjtxgpzbsc:'Please provide offline assistance and save screenshots related credentials and upload them',
+		ts:'Hint',
+		yscpzsfcxsc:'The certificate has been uploaded. Do you want to upload it again',
+		fzcg:'Copy success!',
+		fzsb:'Copy fail',
+		yhzzyz:'Bank transfer aid',
+		yhzh:'Bank account',
+		fzzh:'Copy',
+		khh:'Opening bank',
+		fzkhh:'Copy',
+		zfbsmyz:'Alipay scan code assistance',
+		wxsmyz:'Wechat scan code assistance'
 	}
 }

+ 23 - 12
lang/zh_cn.js

@@ -42,17 +42,28 @@ module.exports =  {
 		wxskm:'微信收款码',
 		tj:'提交',
 		tcdl:'退出登录',
-        hwsc:'海外市场',
-      cplb:'产品列表',
-       faal:'方案案例',
-        zyj:'增氧机系列',
-        gzwm:'关注我们',
-        fdgzh:'富地公众号',
-		fddy:'富地抖音号',
-        zz:'制造',
-        jz:'价值',
-        wh:'文化',
-        zzkhty:"专注客户体验 创新引导技术",
-        qywh:'公司拥有一支乐业、敬业、专业的员工队伍,传承“完善小我成就大我”的团队协作精神,坚持“严管理”求创新、高品质、拓市场”的经营方针,秉承“您所想的就是我们所做”的经营理念我们一贯坚持高品质,优质服务合理价格,快速的交货期,信守客户承诺的企业宗旨',
+		sjyhskxxs:'上级用户收款信息(上',
+		j:'级',
+		cg:'成功',
+		sb:'失败',
+		shz:'审核中',
+		xtpt:'系统平台',
+		yzje:'援助金额',
+		yzfkxx:'援助付款信息',
+		scpz:'上传凭证',
+		qxz:'请选择TRC20',
+		zfcbdz:'复制充币地址',
+		qxxyzbbcjtxgpzbsc:'请线下援助并保存截图相关凭证并上传',
+		ts:'提示',
+		yscpzsfcxsc:'已上传凭证,是否重新上传',
+		fzcg:'复制成功!',
+		fzsb:'复制失败',
+		yhzzyz:'银行转账援助',
+		yhzh:'银行账户',
+		fzzh:'复制账号',
+		khh:'开户行',
+		fzkhh:'复制开户行',
+		zfbsmyz:'支付宝扫码援助',
+		wxsmyz:'微信扫码援助'
     }
 }

+ 17 - 15
pages/index/info.vue

@@ -2,20 +2,20 @@
 	<view class="center">
 		<view class="box" v-for="(item, index) in list" :key="index">
 			<view class="box-top flex">
-				<view class="title">上级用户收款信息(上{{ index + 1 }}级)</view>
-				<view class="type">{{ item.status == '1' ? '成功' : item.status == '2' ? '失败' : item.status == '0' && item.voucherimages != null ? '审核中' : '' }}</view>
+				<view class="title">{{$t('foo.sjyhskxxs')}}{{ index + 1 }}{{$t('foo.j')}})</view>
+				<view class="type">{{ item.status == '1' ? $t('foo.cg') : item.status == '2' ? $t('foo.sb') : item.status == '0' && item.voucherimages != null ? $t('foo.shz') : '' }}</view>
 			</view>
 			<view class="main flex" style="border-bottom: 1px solid #F0F0F0;">
 				<view class="left flex">
 					<view class="avtor" v-if="item.system_get == 0"><image :src="item.checker.avatar || '../../static/error/missing-face.png'" mode=""></image></view>
 					<view class="main-info">
-						<view class="name" v-if="item.system_get == 1">系统平台</view>
+						<view class="name" v-if="item.system_get == 1">{{$t('foo.xtpt')}}</view>
 						<view class="name" v-else>{{ item.checker.nickname || 'null' }}</view>
 						<view class="phone" v-if="item.system_get == 0">{{ item.checker.mobile }}</view>
 					</view>
 				</view>
-				<view class="right" v-if="item.system_get == 0">援助金额:¥{{ item.money * 1 }}</view>
-				<view class="right" v-if="item.system_get == 1">援助金额:{{ item.money * 1 }}U</view>
+				<view class="right" v-if="item.system_get == 0">{{$t('foo.yzje')}}:¥{{ item.money * 1 }}</view>
+				<view class="right" v-if="item.system_get == 1">{{$t('foo.yzje')}}:{{ item.money * 1 }}U</view>
 			</view>
 			<view class="main flex" v-if="item.system_get == 0">
 				<view class="left flex">
@@ -24,13 +24,13 @@
 						<view class="name">{{ item.checker.bank_of_deposit || '暂无' }}</view>
 						<view class="name">{{ item.checker.bank_card_no || '暂无' }}</view>
 					</view> -->
-					<view class="right-box" @click="navTo('/pages/index/male')" style="width: 228rpx;">援助付款信息</view>
+					<view class="right-box" @click="navTo('/pages/index/male')" style="width: 228rpx;">{{$t('foo.yzfkxx')}}</view>
 				</view>
-				<view class="right"><view class="right-box" @click="nav(item)">上传凭证</view></view>
+				<view class="right"><view class="right-box" @click="nav(item)">{{$t('foo.scpz')}}</view></view>
 			</view>
 			<view class="" v-if="item.system_get == 1">
 				<view class="change">
-					请选择TRC20
+					{{$t('foo.qxz')}}
 				</view>
 				<view class="erweima">
 					<tki-qrcode
@@ -50,12 +50,12 @@
 					/>
 				</view>
 				<view class="address">{{ num }}</view>
-				<view class="btn" style="margin-top: 50rpx;" @click="setData">复制充币地址</view>
-				<view class="btn" @click="nav(item.id)">上传凭证</view>
+				<view class="btn" style="margin-top: 50rpx;" @click="setData">{{$t('foo.zfcbdz')}}</view>
+				<view class="btn" @click="nav(item.id)">{{$t('foo.scpz')}}</view>
 			</view>
 		</view>
 
-		<view class="tishi">*请线下援助并保存截图相关凭证并上传</view>
+		<view class="tishi">*{{$t('foo.qxxyzbbcjtxgpzbsc')}}</view>
 	</view>
 </template>
 
@@ -112,8 +112,8 @@ export default {
 		nav(item) {
 			if (item.voucherimages) {
 				uni.showModal({
-					title: '提示',
-					content: '已上传凭证,是否重新上传',
+					title: this.$t('foo.ts'),
+					content: this.$t('foo.yscpzsfcxsc'),
 					success: function(res) {
 						if (res.confirm) {
 							console.log('用户点击确定');
@@ -142,12 +142,12 @@ export default {
 				data: this.num,
 				success: e => {
 					uni.showToast({
-						title: '复制成功!'
+						title: this.$t('this.fzcg')
 					});
 				},
 				fail(e) {
 					uni.showToast({
-						title: '复制失败',
+						title: this.$t('this.fzsb'),
 						icon: false
 					});
 					console.log(e);
@@ -220,12 +220,14 @@ export default {
 			}
 		}
 		.right {
+			text-align: right;
 			font-size: 30rpx;
 			font-family: PingFang SC;
 			font-weight: 500;
 			color: #fad6b0;
 		}
 		.right-box {
+			overflow: hidden;
 			width: 188rpx;
 			height: 56rpx;
 			background: linear-gradient(-74deg, #ce9c6d, #ffecd6);

+ 9 - 9
pages/index/male.vue

@@ -1,20 +1,20 @@
 <template>
 	<view class="content">
 		<view class="box">
-			<view class="title" style="margin-top: 0;">1.银行转账援助</view>
+			<view class="title" style="margin-top: 0;">{{$t('foo.yhzzyz')}}</view>
 			<view class="detail">
 				<view class="detail-item">
-					银行账户:{{ userInfo.bank_card_no }}
-					<view class="copy" @click="copy(userInfo.bank_card_no)">复制账号</view>
+					{{$t('foo.yhzh')}}:{{ userInfo.bank_card_no }}
+					<view class="copy" @click="copy(userInfo.bank_card_no)">{{$t('foo.fzzh')}}</view>
 				</view>
 				<view class="detail-spe">
-					开户行:{{ userInfo.bank_of_deposit }}
-					<view class="copyband" @click="copy(userInfo.bank_of_deposit)">复制开户行</view>
+					{{$t('foo.khh')}}:{{ userInfo.bank_of_deposit }}
+					<view class="copyband" @click="copy(userInfo.bank_of_deposit)">{{$t('foo.fzkhh')}}</view>
 				</view>
 			</view>
-			<view class="title" v-if="userInfo.ali">2.支付宝扫码援助</view>
+			<view class="title" v-if="userInfo.ali">{{$t('foo.zfbsmyz')}}</view>
 			<view v-if="userInfo.ali" class="erweima"><image :src="userInfo.ali" mode="widthFix"></image></view>
-			<view v-if="userInfo.wechat" class="title">3.微信扫码援助</view>
+			<view v-if="userInfo.wechat" class="title">{{$t('foo.wxsmyz')}}</view>
 			<view v-if="userInfo.wechat" class="erweima" ><image :src="userInfo.wechat" mode="widthFix"></image></view>
 		</view>
 	</view>
@@ -35,12 +35,12 @@ export default {
 				data: text,
 				success: e => {
 					uni.showToast({
-						title: '复制成功!'
+						title: this.$t('this.fzcg')
 					});
 				},
 				fail(e) {
 					uni.showToast({
-						title: '复制失败',
+						title: this.$t('this.fzsb'),
 						icon: false
 					});
 					console.log(e);