hwq 2 tahun lalu
induk
melakukan
07c7c53e45

+ 9 - 1
lang/en.js

@@ -1,5 +1,13 @@
 module.exports = {
 	index: {
-		rg: 'Buy'
+		rg: 'Buy',
+		cb: 'Charge',
+		tb: 'Mention',
+		yy: 'Language',
+		kf: 'Service',
+		jyd: 'Trasaction',
+		zxjg: 'Price',
+		zd: '24h Fluctuation',
+		sy: 'Index',
 	}
 }

+ 8 - 1
lang/zh_cn.js

@@ -1,5 +1,12 @@
 module.exports = {
 	index: {
-		rg: '認購'
+		rg: '認購',
+		cb: '充幣',
+		tb: '提幣',
+		yy: '語言',
+		kf: '客服',
+		jyd: '交易對',
+		zxjg: '最新價格',
+		zd: '24h漲跌',
 	}
 }

+ 12 - 9
pages/index/index.vue

@@ -24,19 +24,19 @@
 				</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 class="">{{ $t('index.cb') }}</view>
 				</view>
 				<view class="top-item flex" @click="navto('/pages/transaction/tblist')">
 					<image src="../../static/icon/gn-3.png" mode="" class=""></image>
-					<view class="">提幣</view>
+					<view class="">{{ $t('index.tb') }}</view>
 				</view>
 				<view class="top-item flex" @click="navto('/pages/index/language')">
 					<image src="../../static/icon/gn-4.png" mode="" class=""></image>
-					<view class="">語言</view>
+					<view class="">{{ $t('index.yy') }}</view>
 				</view>
 				<view class="top-item flex" @click="navto('/pages/index/kf')">
 					<image src="../../static/icon/gn-5.png" mode="" class=""></image>
-					<view class="">客服</view>
+					<view class="">{{ $t('index.kf') }}</view>
 				</view>
 			</view>
 			<view class="gnh-btm flex">
@@ -67,9 +67,9 @@
 		<!--  -->
 		<view class="list">
 			<view class="list-title flex">
-				<view class="title-left">交易對</view>
-				<view class="title-center">最新價格</view>
-				<view class="title-right">24h漲跌</view>
+				<view class="title-left">{{ $t('index.jyd') }}</view>
+				<view class="title-center">{{ $t('index.zxjg') }}</view>
+				<view class="title-right">{{ $t('index.zd') }}</view>
 			</view>
 			<view class="list-main flex" @click="navto('/pages/transaction/transactionDetail?type=' + index)" v-for="(item, index) in listOBj">
 				<view class="main-left">{{ item.name }}</view>
@@ -164,8 +164,11 @@ export default {
 					});
 				that.scoket.scoketMessage(res => {
 					try {
-						if (res.data) {
-							that.listOBj[res.arg.instId] = res.data[0];
							const item = that.listOBj[res.arg.instId];
							item.dcf = (((item.last * 1 - item.sodUtc0 * 1) / (item.sodUtc0 * 1)) * 100).toFixed(2);
							item.name = item.instId.replace('-', '/')
+						if (res.data) {
+							that.listOBj[res.arg.instId] = res.data[0];
+							const item = that.listOBj[res.arg.instId];
+							item.dcf = (((item.last * 1 - item.sodUtc0 * 1) / (item.sodUtc0 * 1)) * 100).toFixed(2);
+							item.name = item.instId.replace('-', '/');
 							// res.res.data[0].name = res.arg.instId
 							// that.listOBj[res.arg.instId] = res.data[0];
 							// that.listOBj[res.arg.instId].dcf = (((res.data[0].last * 1 - res.data[0].sodUtc0 * 1) / (res.data[0].sodUtc0 * 1)) * 100).toFixed(2);

File diff ditekan karena terlalu besar
+ 3 - 3
unpackage/dist/dev/app-plus/app-service.js


File diff ditekan karena terlalu besar
+ 121 - 113
unpackage/dist/dev/app-plus/app-view.js


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini