lhl vor 3 Jahren
Ursprung
Commit
80e245c078
3 geänderte Dateien mit 29 neuen und 25 gelöschten Zeilen
  1. 3 1
      lang/en.js
  2. 2 0
      lang/zh_tw.js
  3. 24 24
      pages/transaction/bbjy.vue

+ 3 - 1
lang/en.js

@@ -273,7 +273,9 @@ module.exports = {
 		qsrggbl: 'Please enter the lever multiplier',
 		s: 'Yes',
 		f: 'No',
-		yx: 'Sustainability',
+		yx: 'Sustainability',
+		ky:'available',
+		qb: 'all'
 	},
 	zxt: {
 		mr: 'Buy',

+ 2 - 0
lang/zh_tw.js

@@ -278,6 +278,8 @@ module.exports = {
 		lsjl: '歷史記錄',
 		qsrggbl: '請輸入槓桿倍率',
 		yx: '永續',
+		ky: '可用',
+		qb: '全部'
 	},
 	zxt: {
 		mr: '買入',

+ 24 - 24
pages/transaction/bbjy.vue

@@ -13,18 +13,18 @@
 		</view>
 		<view class="box  flex padding-t-20 padding-b-30">
 			<view class="item" style="width: 65%;">
-				<view class="itemTitle margin-b-20">交易方向</view>
+				<view class="itemTitle margin-b-20">{{$t('hy.jyfx')}}</view>
 				<view class="buttomBox flex">
-					<view @click="typeIndex = 1" class="buttom " :class="{ action: typeIndex == 1 }">買入</view>
-					<view @click="typeIndex = 2" class="buttom " :class="{ action: typeIndex == 2, 'bg-danger': typeIndex == 2 }">賣出</view>
+					<view @click="typeIndex = 1" class="buttom " :class="{ action: typeIndex == 1 }">{{$t('hy.mr')}}</view>
+					<view @click="typeIndex = 2" class="buttom " :class="{ action: typeIndex == 2, 'bg-danger': typeIndex == 2 }">{{$t('hy.mc')}}</view>
 				</view>
 				<view class="tabType flex ">
-					<view class="tab" @click="jyType = 1" :class="{ action: jyType == 1 }">限價委託</view>
-					<view class="tab" @click="jyType = 2" :class="{ action: jyType == 2 }">市價委託</view>
+					<view class="tab" @click="jyType = 1" :class="{ action: jyType == 1 }">{{$t('hy.xjwt')}}</view>
+					<view class="tab" @click="jyType = 2" :class="{ action: jyType == 2 }">{{$t('hy.sjwt')}}</view>
 				</view>
 				<view class="inputBox margin-b-20 flex" v-if="jyType == 1">
 					<input v-model="xzMoney" class="input" placeholder="請輸入價格" type="digit" />
-					<view @click="xzMoney = listOBj[actionList].last" class="buttomZd font-color-yellow">點擊獲取</view>
+					<view @click="xzMoney = listOBj[actionList].last" class="buttomZd font-color-yellow">{{$t('hy.djhq')}}</view>
 				</view>
 				<view class="inputBox margin-b-20 flex" v-if="jyType == 2" style="background-color: #f5f5f5;">
 					<input class="input" placeholder="按市場最優價" type="digit" disabled />
@@ -80,13 +80,13 @@
 				<view class="" v-if="typeIndex == 1" style="height: 160rpx;"></view>
 				<view class="" v-if="typeIndex == 2" style="height: 120rpx;"></view>
 				<view class="flex margin-b-20">
-					<view class="itemTitle">可用</view>
+					<view class="itemTitle">{{$t('hy.ky')}}</view>
 					<view class="itemTitle" v-if="typeIndex == 1">{{ userInfo.usdt }} USDT</view>
 					<view class="itemTitle" v-if="typeIndex == 2">{{ yue }} {{ dqbz }}</view>
 				</view>
 				<view class="inputBox margin-b-20 flex" v-if="typeIndex == 1">
-					<input class="input" placeholder="交易額" type="digit" v-model="jye" />
-					<view class="all" @click="jye = userInfo.usdt">全部</view>
+					<input class="input" :placeholder="$t('hy.jye')" type="digit" v-model="jye" />
+					<view class="all" @click="jye = userInfo.usdt">{{$t('hy.qb')}}</view>
 					<view class="">{{ dhbz }}</view>
 				</view>
 				<!-- <view class="flex margin-b-20">
@@ -98,13 +98,13 @@
 					</view>
 				</view> -->
 				<view class="buttomSubmit" :class="{ 'bg-success': typeIndex == 1, 'bg-danger': typeIndex == 2 }" @click="UpOrderHandle()">
-					{{ typeIndex == 1 ? '買入' : '賣出' }}
+					{{ typeIndex == 1 ?$t('hy.mr'): $t('hy.mc')}}
 				</view>
 			</view>
 			<view class="right-wrap">
 				<view class="line flex">
-					<view class="">價格</view>
-					<view class="">數量</view>
+					<view class="">{{$t('hy.jg')}}</view>
+					<view class="">{{$t('hy.sl')}}</view>
 				</view>
 				<!-- 買入 -->
 				<view class="" style="height: 250rpx;">
@@ -128,40 +128,40 @@
 		<view class="box margin-t-30 padding-t-30 padding-b-30">
 			<view class="flex listTitleBox">
 				<view class="leftBottom flex">
-					<view @click="ddTypeChage(0)" class="titleType margin-r-30" :class="{ action: ddType == 0 }">限價委託</view>
+					<view @click="ddTypeChage(0)" class="titleType margin-r-30" :class="{ action: ddType == 0 }">{{$t('hy.xjwt')}}</view>
 					<!-- <view @click="ddTypeChage(1)" class="titleType" :class="{action:ddType==1}">
 						持倉
 					</view> -->
 				</view>
 				<view class="rightBottom flex" @click="navto('/pages/transaction/bblist?type=' + dqbz)">
 					<image class="img" src="../../static/icon/hy02.png" mode="widthFix"></image>
-					<view class="more">全部訂單</view>
+					<view class="more">{{$t('hy.qbdd')}}</view>
 				</view>
 			</view>
 			<view v-for="(item, ind) in loadData[ddType].list" class="usdtList padding-t-30 padding-b-30">
 				<view class="flex">
 					<view class="name">
-						<text v-if="item.type == 1" class="font-color-green">買入</text>
-						<text v-if="item.type == 2" class="font-color-red">賣出</text>
+						<text v-if="item.type == 1" class="font-color-green">{{$t('hy.gm')}}</text>
+						<text v-if="item.type == 2" class="font-color-red">{{$t('hy.cs')}}</text>
 						<text>{{ item.symbol }}</text>
 					</view>
 					<view @click="clearorder(item)" v-if="ddType == 0" class="usdtListButtom">取消</view>
 				</view>
 				<view class="tip ">
-					<text v-if="item.direction == 1">委託時間:{{ item.wttime }}</text>
-					<text v-if="item.direction == 2">開倉時間:{{ item.addtime }}</text>
+					<text v-if="item.direction == 1">{{$t('hy.wtsj')}}:{{ item.wttime }}</text>
+					<text v-if="item.direction == 2">{{$t('hy.kcsj')}}:{{ item.addtime }}</text>
 				</view>
 				<view class="flex" style="flex-wrap: wrap;">
 					<view class="tipList">
-						<view class="nameTip">價格(USDT)</view>
+						<view class="nameTip">{{$t('hy.jg')}}(USDT)</view>
 						<view class="text">{{ item.xjprice }}</view>
 					</view>
 					<view class="tipList">
-						<view class="nameTip">數量(USDT)</view>
+						<view class="nameTip">{{$t('hy.sl')}}(USDT)</view>
 						<view class="text">{{ item.usdtnum }}</view>
 					</view>
 					<view class="tipList">
-						<view class="nameTip">實際成交(USDT)</view>
+						<view class="nameTip">{{$t('hy.sjdz')}}(USDT)</view>
 						<view class="text">{{ item.coinnum }}</view>
 					</view>
 				</view>
@@ -173,9 +173,9 @@
 			<!-- #endif -->
 			<view class="reback"><image src="../../static/icon/reback.png" mode="" @click="alertShow = false"></image></view>
 			<view class="list flex">
-				<view class="type">產品</view>
-				<view class="type">實時價格</view>
-				<view class="type">今日漲跌</view>
+				<view class="type">{{$t('hy.cp')}}</view>
+				<view class="type">{{$t('hy.ssjg')}}</view>
+				<view class="type">{{$t('hy.jrdz')}}</view>
 			</view>
 			<view class="itemlist flex" @click="changeData(ls)" v-for="ls in listOBj" v-if="ls.name != 'BCH/USDT'">
 				<view class="type name">{{ ls.name }}</view>