|
@@ -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);
|