Browse Source

屏蔽了些注释

master
torsenli 3 years ago
parent
commit
c7e0e85803
  1. 24
      pages/exchange/contractHis.vue
  2. 6
      pages/exchange/exchangeHis.vue
  3. 8
      uni.scss

24
pages/exchange/contractHis.vue

@ -57,7 +57,7 @@
item.avail_position
}}</view>
</view>
<view class="d-flex">
<view class="row w-6/12 d-flex m-y-xs justify-between">
<view class="label fn-sm">{{ $t("contract.b1") }}</view>
@ -91,9 +91,9 @@
</view>
</view>
<view class="row d-flex m-y-xs justify-between">
<v-button type="green" size="small" class="opt-btn rounded-xs m-b-xs" @click="closePositionShow(item)">{{ $t("contract.h3") }}</v-button>
<!-- <v-button type="green" size="small" class="opt-btn rounded-xs m-b-xs m-l-xs" @click="onekeyReverse(item)">{{ $t("contract.k8") }}</v-button> -->
<!-- <v-button
type="danger"
@ -121,7 +121,7 @@
</view>
</view>
</template>
<v-paging class="layout-main" :key="2" :ajax="getHistoryEntrust" v-if="active==1">
<template #box="list">
<not-data v-if="!$list(list).length"></not-data>
@ -157,7 +157,7 @@
<div class="label fn-sm">{{$t('exchange.e2')}}</div>
<div class="color-buy">{{(item.traded_money/item.traded_amount).toFixed(4)*1||'--'}}</div>
</div>
<div class="row d-flex m-y-xs justify-between">
<div class="label fn-sm">{{$t('exchange.c2')}}</div>
<div class="color-light">{{item.amount}}</div>
@ -166,7 +166,7 @@
</div>
</template>
</v-paging>
<v-paging class="layout-main" :key="3" :ajax="getHistoryEntrust" v-if="active==2">
<template #box="list">
<not-data v-if="!$list(list).length"></not-data>
@ -202,7 +202,7 @@
<div class="label fn-sm">{{$t('exchange.e2')}}</div>
<div class="color-buy">{{(item.traded_money/item.traded_amount).toFixed(4)*1||'--'}}</div>
</div>
<div class="row d-flex m-y-xs justify-between">
<div class="label fn-sm">{{$t('exchange.c2')}}</div>
<div class="color-light">{{item.amount}}</div>
@ -283,7 +283,7 @@ export default {
many(item, newPrice) {
let face = this.symbolDetail.unit_amount;
return math.omitTo(
((newPrice - item.avg_price) * item.avail_position * face) /
((newPrice - item.avg_price) * item.avail_position * face) /
item.avg_price,
4
);
@ -346,7 +346,7 @@ export default {
.confirm({
title: this.$t("contract.c4"),
message: `${this.$t("contract.j1")}${item.pair_name}?`,
confirmButtonText: this.$t("common.confirm"),
confirmButtonText: this.$t("common.confirm"),
cancelButtonText: this.$t("common.cancel")
})
.then(() => {
@ -436,7 +436,7 @@ export default {
this.$toast(this.$t("contract.l2"));
});
});
},
},
mounted() {
@ -472,7 +472,7 @@ export default {
background-color: $theme-1;
bottom: 0;
left: 30%;
}
.w-50{
width: 50%;
@ -482,4 +482,4 @@ export default {
margin-right: $padding-sm;
}
}
</style>
</style>

6
pages/exchange/exchangeHis.vue

@ -65,7 +65,7 @@
</div>
</template>
</v-paging>
<v-paging class="layout-main" :key="2" :ajax="getHistoryEntrust" v-if="active==1">
<template #box="list">
<not-data v-if="!$list(list).length"></not-data>
@ -101,7 +101,7 @@
<div class="label fn-sm">{{$t('exchange.e2')}}</div>
<div class="color-light">{{item.avg_price}}</div>
</div>
<div class="row d-flex m-y-xs justify-between">
<div class="label fn-sm">{{$t('exchange.c2')}}</div>
<div class="color-light">{{item.amount}}</div>
@ -174,4 +174,4 @@ export default {
.w-50{
width: 50%;
}
</style>
</style>

8
uni.scss

@ -1,10 +1,4 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* 颜色变量 */

Loading…
Cancel
Save