Browse Source

2022.3.9 文档修改

master
ltlzx 4 years ago
parent
commit
8d732a280e
  1. 3
      src/components/CommonHeader.vue
  2. 3
      src/i18n/cn.json
  3. 86
      src/views/contract/account.vue
  4. 52
      src/views/contract/exchange-store.vue
  5. 218
      src/views/contract/history-commission.vue
  6. 146
      src/views/contract/hold-position.vue
  7. 9
      src/views/contract/index.vue
  8. 32
      src/views/contract/page-bottom.vue
  9. 21
      src/views/option/kline.vue
  10. 2
      src/views/profile/certification.vue
  11. 14
      src/views/setting/index.vue
  12. 18
      src/views/wallet/exchange-assets.vue
  13. 4
      src/views/wallet/funding.vue

3
src/components/CommonHeader.vue

@ -123,7 +123,8 @@
<a href="#/profile/certification">{{$t('common.goTo')}}</a> <a href="#/profile/certification">{{$t('common.goTo')}}</a>
</p> </p>
<div class="email text-muted mb-3"> <div class="email text-muted mb-3">
<router-link to="/profile/index">{{signed.account}}</router-link> <router-link to="/profile/index">{{userInfo.account}}</router-link>
<!-- <router-link to="/profile/index">{{signed.account}}</router-link> -->
<!-- <div>UID:{{signed.user_id}}</div> --> <!-- <div>UID:{{signed.user_id}}</div> -->
</div> </div>
</div> </div>

3
src/i18n/cn.json

@ -908,7 +908,8 @@
"k8": "请先登录进行申购", "k8": "请先登录进行申购",
"k9":"请输入认购码", "k9":"请输入认购码",
"l1":"涨幅比例", "l1":"涨幅比例",
"l2":"保证金" "l2":"保证金",
"l3":"倍"
}, },
"otc": { "otc": {
"a0": "请选择交易类型", "a0": "请选择交易类型",

86
src/views/contract/account.vue

@ -1,48 +1,48 @@
<template> <template>
<div class="account"> <div class="account">
<div class="markets-pair-list"> <div class="markets-pair-list">
<div class="nav justify-content-between"> <div class="nav justify-content-between">
<div class="nav-item"> <div class="nav-item">
<a class="nav-link">{{$t('contract.a0')}}</a> <a class="nav-link">{{$t('contract.a0')}}</a>
</div>
<div class="d-flex justify-content-between align-items-center">
<router-link to="/wallet/assets/exchange" class="border border-primary rounded text-primary p-1" >
{{$t('contract.a1')}}
</router-link>
</div>
</div>
<div class="">
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a2')}}USDT</div>
<div>{{ accountInfo.account_equity || "--" }}</div>
</div>
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a3')}}USDT</div>
<div>{{accountInfo.usable_balance}}</div>
</div>
<!-- <div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a4')}}USDT</div>
<div>{{accountInfo.position_margin}}</div>
</div> -->
<!-- <div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a5')}}USDT</div>
<div>{{accountInfo.freeze_position}}</div>
</div>
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a6')}}USDT</div>
<div class="increace">{{accountInfo.unRealProfit}}</div>
</div> -->
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a7')}}USDT</div>
<div class="decreace">{{ accountInfo.riskRate || "0%" }}</div>
</div>
<!-- <div class="d-flex p-3 justify-content-between" v-if="false">
<div>{{$t('contract.a8')}}USDT</div>
<div>{{ accountInfo.flatPrice || "--" }}</div>
</div> -->
</div>
</div> </div>
<div class="d-flex justify-content-between align-items-center">
<router-link to="/wallet/assets/exchange" class="border border-primary rounded text-primary p-1" >
{{$t('contract.a1')}}
</router-link>
</div>
</div>
<div class="">
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a2')}}USDT</div>
<div>{{ accountInfo.account_equity || "--" }}</div>
</div>
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a3')}}USDT</div>
<div>{{accountInfo.usable_balance}}</div>
</div>
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a4')}}USDT</div>
<div>{{accountInfo.position_margin}}</div>
</div>
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a5')}}USDT</div>
<div>{{accountInfo.freeze_position}}</div>
</div>
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a6')}}USDT</div>
<div class="increace">{{accountInfo.unRealProfit}}</div>
</div>
<div class="d-flex p-3 justify-content-between">
<div>{{$t('contract.a7')}}USDT</div>
<div class="decreace">{{ accountInfo.riskRate || "0%" }}</div>
</div>
<div class="d-flex p-3 justify-content-between" v-if="false">
<div>{{$t('contract.a8')}}USDT</div>
<div>{{ accountInfo.flatPrice || "--" }}</div>
</div>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
export default { export default {
@ -64,4 +64,4 @@ export default {
} }
}; };
</script> </script>

52
src/views/contract/exchange-store.vue

@ -400,31 +400,33 @@ export default {
}, },
// //
ifOpenPosition(side) { ifOpenPosition(side) {
let typeStr = let typeStr =
this.form.type == 1 this.form.type == 1
? `${this.form.entrust_price}${this.$t("contract.f0")}` ? `${this.form.entrust_price}${this.$t("contract.f0")}`
: this.$t("contract.d9"); : this.$t("contract.d9");
let decStr = let decStr =
this.tab == 1 this.tab == 1
? `${this.$t("contract.d5")}${this.form.amount}${this.$t( ? `${this.$t("contract.d5")}${this.form.amount}${this.$t(
"contract.e2" "contract.e2"
)}${side == 1 ? this.$t("contract.f1") : this.$t("contract.f2")}` )}${side == 1 ? this.$t("contract.f1") : this.$t("contract.f2")}`
: `${this.$t("contract.d6")}${this.form.amount}${this.$t( : `${this.$t("contract.d6")}${this.form.amount}${this.$t(
"contract.e2" "contract.e2"
)}`; )}`;
this.$confirm( // `${this.$t("contract.f3")}${typeStr}${this.form.lever_rate}${this.$t(
`${this.$t("contract.f3")}${typeStr}${this.form.lever_rate}${this.$t( // "contract.f4"
"contract.f4" // )}${decStr}?`
)}${decStr}?` this.$confirm(
) `${this.$t("contract.f3")}${typeStr}${this.form.lever_rate}
.then(res => { ${this.$t("contract.f4")}${this.$t("contract.d5")}?`
if (this.tab == 1) { )
this.openPosition(side); .then(res => {
} else { if (this.tab == 1) {
this.closePosition(side); this.openPosition(side);
} } else {
}) this.closePosition(side);
.catch(res => {}); }
})
.catch(res => {});
}, },
// //
openPosition(side) { openPosition(side) {

218
src/views/contract/history-commission.vue

@ -1,115 +1,115 @@
<template> <template>
<div> <div>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th>{{$t('contract.a9')}}</th> <th>{{$t('contract.a9')}}</th>
<th>{{$t('contract.b0')}}</th> <th>{{$t('contract.b0')}}</th>
<th>{{$t('contract.b1')}}</th> <th>{{$t('contract.b1')}}</th>
<th>{{$t('contract.b2')}}</th> <th>{{$t('contract.b2')}}</th>
<th>{{$t('contract.b3')}}/{{$t('contract.b4')}}</th> <th>{{$t('contract.b3')}}/{{$t('contract.b4')}}</th>
<th>{{$t('contract.b5')}}/{{$t('contract.b6')}}</th> <th>{{$t('contract.b5')}}/{{$t('contract.b6')}}</th>
<th>{{$t('contract.b7')}}</th> <th>{{$t('contract.b7')}}</th>
<th>{{$t('contract.b8')}}</th> <th>{{$t('contract.b8')}}</th>
<th>{{$t('contract.j0')}}</th> <th>{{$t('contract.j0')}}</th>
<th>{{$t('contract.k1')}}</th> <!-- <th>{{$t('contract.k1')}}</th> -->
<th>{{$t('contract.b9')}}</th> <th>{{$t('contract.b9')}}</th>
<th>{{$t('contract.c0')}}</th> <!-- <th>{{$t('contract.c0')}}</th> -->
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="item in list" :key="item.id"> <tr v-for="item in list" :key="item.id">
<td>{{ item.symbol }}/USDT</td> <td>{{ item.symbol }}/USDT</td>
<td>{{ item.lever_rate }}X</td> <td>{{ item.lever_rate }}X</td>
<td>{{ item.created_at }}</td> <td>{{ item.created_at }}</td>
<td>{{ cals(item.side, item.order_type) }}</td> <td>{{ cals(item.side, item.order_type) }}</td>
<td>{{ item.traded_amount }}/{{ item.amount }}</td> <td>{{ item.traded_amount }}/{{ item.amount }}</td>
<td>{{item.avg_price||'--'}}/{{ item.entrust_price || "--" }}</td> <td>{{item.avg_price||'--'}}/{{ item.entrust_price || "--" }}</td>
<td>{{ item.margin * 1 }}</td> <td>{{ item.margin * 1 }}</td>
<td>{{ item.fee * 1 }}</td> <td>{{ item.fee * 1 }}</td>
<td> <td>
{{item.profit||'--'}} {{item.profit||'--'}}
</td> </td>
<td> <!-- <td>
{{item.settle_profit||'--'}} {{item.settle_profit||'--'}}
</td> </td> -->
<td>{{ status(item.status) }}</td> <td>{{ status(item.status) }}</td>
<td> <!-- <td>
<button class="btn btn-sm btn-primary" @click="showDetail(item)"> <button class="btn btn-sm btn-primary" @click="showDetail(item)">
{{$t('contract.g4')}} {{$t('contract.g4')}}
</button> </button>
</td> </td> -->
</tr> </tr>
<tr v-if="!list.length"> <tr v-if="!list.length">
<td colspan="12"> <td colspan="12">
<no-record /> <no-record />
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="p-2"> <div class="p-2">
<el-pagination <el-pagination
layout="prev, pager, next" layout="prev, pager, next"
:page-size="CurrentObj.per_page" :page-size="CurrentObj.per_page"
@current-change="changePageCurrent" @current-change="changePageCurrent"
:total="CurrentObj.total" :total="CurrentObj.total"
></el-pagination> ></el-pagination>
</div> </div>
<!-- 撤销 --> <!-- 撤销 -->
<div <div
class="modal fade" class="modal fade"
id="history" id="history"
tabindex="-1" tabindex="-1"
role="dialog" role="dialog"
aria-labelledby="backClose" aria-labelledby="backClose"
aria-hidden="true" aria-hidden="true"
> >
<div <div
class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable" class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable"
> >
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title" id="backClose">{{$t('contract.g5')}}</h5> <h5 class="modal-title" id="backClose">{{$t('contract.g5')}}</h5>
<button <button
type="button" type="button"
class="close" class="close"
data-dismiss="modal" data-dismiss="modal"
aria-label="Close" aria-label="Close"
> >
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="markets-pair-list"> <div class="markets-pair-list">
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th>{{$t('contract.d8')}}</th> <th>{{$t('contract.d8')}}</th>
<th>{{$t('contract.e1')}}</th> <th>{{$t('contract.e1')}}</th>
<th>{{$t('contract.b8')}}</th> <th>{{$t('contract.b8')}}</th>
<th>{{$t('contract.g6')}}</th> <th>{{$t('contract.g6')}}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="item in order_details" :key="item.id"> <tr v-for="item in order_details" :key="item.id">
<td>{{ item.unit_price }}</td> <td>{{ item.unit_price }}</td>
<td>{{ item.trade_amount }}</td> <td>{{ item.trade_amount }}</td>
<td>{{ item.trade_buy_fee }}</td> <td>{{ item.trade_buy_fee }}</td>
<td>{{ item.created_at }}</td> <td>{{ item.created_at }}</td>
</tr> </tr>
<tr v-if="!order_details.length"> <tr v-if="!order_details.length">
<td colspan="4"> <td colspan="4">
<no-record /> <no-record />
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>
</div>
</div> </div>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
import Contract from "@/api/contract"; import Contract from "@/api/contract";
@ -183,4 +183,4 @@ export default {
} }
} }
}; };
</script> </script>

146
src/views/contract/hold-position.vue

@ -22,69 +22,69 @@
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th>{{ $t("contract.a9") }}</th> <th>{{ $t("contract.a9") }}</th>
<th>{{ $t("contract.b0") }}</th> <th>{{ $t("contract.b7") }}</th>
<th>{{ $t("contract.g7") }}</th> <th>{{ $t("contract.b0") }}</th>
<!-- <th>{{ $t("contract.g7") }}{{ $t("contract.e2") }}</th> --> <!-- <th>{{ $t("contract.g7") }}</th> -->
<th>{{ $t("contract.i3") }}</th> <!-- <th>{{ $t("contract.g7") }}{{ $t("contract.e2") }}</th> -->
<!-- <th>{{ $t("contract.g8") }}{{ $t("contract.e2") }}</th> <th>{{ $t("contract.i3") }}</th>
<th>{{ $t("contract.a5") }}{{ $t("contract.e2") }}</th> --> <!-- <th>{{ $t("contract.g8") }}{{ $t("contract.e2") }}</th>
<th>{{ $t("contract.b7") }}</th> <th>{{ $t("contract.a5") }}{{ $t("contract.e2") }}</th> -->
<th>{{ $t("contract.g9") }}</th> <th>{{ $t("contract.g9") }}</th>
<th>{{ $t("contract.g3") }}</th> <th>{{ $t("contract.g3") }}</th>
<th>{{ $t("contract.a8") }}</th> <th>{{ $t("contract.a8") }}</th>
<th >{{ $t("contract.a6") }}</th> <th >{{ $t("contract.a6") }}</th>
<th>{{ $t("contract.h0") }}</th> <th>{{ $t("contract.h0") }}</th>
<th>{{ $t("contract.i7") }} /{{ $t("contract.i8") }}</th> <th>{{ $t("contract.i7") }} /{{ $t("contract.i8") }}</th>
<th width="18%">{{ $t("contract.c0") }}</th> <th width="18%">{{ $t("contract.c0") }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(item,index) in showList" :key="item.id" @click="getactiveItem(index)"> <tr v-for="(item,index) in showList" :key="item.id" @click="getactiveItem(index)">
<td>{{ item.pair_name }}</td> <td>{{ item.pair_name }}</td>
<td>{{ item.lever_rate }}X</td> <td>{{ item.position_margin }}</td>
<td>{{ item.hold_position }}</td> <td>{{ item.lever_rate }}X</td>
<td>{{ item.side == 1 ? $t("contract.i4") : $t("contract.i5") }}</td> <!-- <td>{{ item.hold_position }}</td> -->
<!-- <td>{{ item.avail_position }}</td> <td>{{ item.side == 1 ? $t("contract.i4") : $t("contract.i5") }}</td>
<td>{{ item.freeze_position }}</td> --> <!-- <td>{{ item.avail_position }}</td>
<td>{{ item.position_margin }}</td> <td>{{ item.freeze_position }}</td> -->
<td>{{ item.avg_price * 1 }}</td> <td>{{ item.avg_price * 1 }}</td>
<td>{{ item.realtimePrice }}</td> <td>{{ item.realtimePrice }}</td>
<td>{{ item.flatPrice }}</td> <td>{{ item.flatPrice }}</td>
<td :class="item.unRealProfit>0?'increace':item.unRealProfit<0?'decreace':''">{{ item.unRealProfit }}</td> <td :class="item.unRealProfit>0?'increace':item.unRealProfit<0?'decreace':''">{{ item.unRealProfit }}</td>
<td>{{ item.profitRate }}</td> <td>{{ item.profitRate }}</td>
<td>{{ item.tpPrice || "--" }}/{{ item.slPrice || "--" }}</td> <td>{{ item.tpPrice || "--" }}/{{ item.slPrice || "--" }}</td>
<td> <td>
<button <button
class="btn btn-sm btn-danger mb-1" class="btn btn-sm btn-danger mb-1"
@click="liquidation(item)" @click="liquidation(item)"
> >
{{ $t("contract.d6") }} {{ $t("contract.d6") }}
</button> </button>
<!-- <button <!-- <button
class="btn btn-sm btn-outline-danger mb-1" class="btn btn-sm btn-outline-danger mb-1"
@click="allLiquidation(item)" @click="allLiquidation(item)"
> >
{{ $t("contract.h1") }} {{ $t("contract.h1") }}
</button> --> </button> -->
<button <button
class="btn btn-sm btn-outline-danger mb-1" class="btn btn-sm btn-outline-danger mb-1"
@click="reverse(item)" @click="reverse(item)"
> >
{{$t('contract.k3')}} {{$t('contract.k3')}}
</button> </button>
<button <button
class="btn btn-sm btn-primary mb-1" class="btn btn-sm btn-primary mb-1"
@click="toStoploss(item)" @click="toStoploss(item)"
> >
{{ $t("contract.i9") }} {{ $t("contract.i9") }}
</button> </button>
</td> </td>
</tr> </tr>
<tr v-if="!showList.length"> <tr v-if="!showList.length">
<td colspan="13"> <td colspan="13">
<no-record /> <no-record />
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -540,20 +540,20 @@ export default {
$("#exampleModal").modal("show"); $("#exampleModal").modal("show");
}, },
closePosition() { closePosition() {
let data = { let data = {
side: this.activeItem.side == 1 ? 2 : 1, side: this.activeItem.side == 1 ? 2 : 1,
type: this.activeItem.closeType, type: this.activeItem.closeType,
symbol: this.activeItem.symbol, symbol: this.activeItem.symbol,
entrust_price: this.form.entrust_price || 0, entrust_price: this.form.entrust_price || 0,
amount: this.form.amount, amount: this.form.amount,
}; };
Contract.closePosition(data).then(() => { Contract.closePosition(data).then(() => {
this.form.entrust_price = ""; this.form.entrust_price = "";
this.form.amount = ""; this.form.amount = "";
this.$message.success(this.$t("contract.f6")); this.$message.success(this.$t("contract.f6"));
this.$emit("position"); this.$emit("position");
$("#exampleModal").modal("hide"); $("#exampleModal").modal("hide");
}); });
}, },
// //
allLiquidation(item) { allLiquidation(item) {

9
src/views/contract/index.vue

@ -45,11 +45,12 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<!-- @click="activeSymbol = item.symbol" -->
<tr <tr
v-for="item in parent.marketInfoList" v-for="item in parent.marketInfoList"
:key="item.symbol" :key="item.symbol"
:class="{ active: item.symbol == activeSymbol }" :class="{ active: item.symbol == activeSymbol }"
@click="activeSymbol = item.symbol" @click="ispopover1(item.symbol)"
> >
<td class="w-10/24"> <td class="w-10/24">
{{ item.symbol }}/{{ parent.coin_name }} {{ item.symbol }}/{{ parent.coin_name }}
@ -225,7 +226,7 @@ export default {
_time: null, _time: null,
contractOpen: false, contractOpen: false,
contractAgreement: {}, contractAgreement: {},
symbolDetail:{} symbolDetail:{},
}; };
}, },
computed: { computed: {
@ -270,6 +271,10 @@ export default {
}, 3000) }, 3000)
}, },
methods: { methods: {
ispopover1(item){
this.activeSymbol=item;
this.$refs.popover.showPopper = false;
},
swapMarketList() { swapMarketList() {
let msg = "swapMarketList"; let msg = "swapMarketList";
this.ws.send({ this.ws.send({

32
src/views/contract/page-bottom.vue

@ -1,21 +1,21 @@
<template> <template>
<div class="d-flex pb-2 mt-2"> <div class="d-flex pb-2 mt-2">
<div class="markets-pair-list page-bottom bg-plain flex-fill"> <div class="markets-pair-list page-bottom bg-plain flex-fill">
<div class="nav nav-pills"> <div class="nav nav-pills">
<div class="nav-item"> <div class="nav-item">
<a class="nav-link" :class="{ active: tab == 1 }" @click="tab = 1;$emit('position')">{{$t('contract.i0')}}</a> <a class="nav-link" :class="{ active: tab == 1 }" @click="tab = 1;$emit('position')">{{$t('contract.i0')}}</a>
</div>
<div class="nav-item">
<a class="nav-link" :class="{ active: tab == 2 }" @click="tab = 2">{{$t('contract.i1')}}</a>
</div>
<div class="nav-item">
<a class="nav-link" :class="{ active: tab == 3 }" @click="tab = 3">{{$t('contract.i2')}}</a>
</div>
<!-- <div class="nav-item">
<a class="nav-link" :class="{ active: tab == 4 }" @click="tab = 4">{{$t('wallet.contractFlow')}}{{symbol}}</a>
</div> -->
</div> </div>
<div class="nav-item"> <div class="body">
<a class="nav-link" :class="{ active: tab == 2 }" @click="tab = 2">{{$t('contract.i1')}}</a>
</div>
<div class="nav-item">
<a class="nav-link" :class="{ active: tab == 3 }" @click="tab = 3">{{$t('contract.i2')}}</a>
</div>
<div class="nav-item">
<a class="nav-link" :class="{ active: tab == 4 }" @click="tab = 4">{{$t('wallet.contractFlow')}}{{symbol}}</a>
</div>
</div>
<div class="body">
<!-- 持有仓位 --> <!-- 持有仓位 -->
<hold-position @isall="$emit('isall',$event)" :symbolDetail="symbolDetail" :holdPositionAll="holdPositionAll" @position="$emit('position')" @setactive="setactive" :newPrice="newPriceObj.price" :holdPositionList="holdPositionList" :symbol="symbol" v-if="tab == 1" /> <hold-position @isall="$emit('isall',$event)" :symbolDetail="symbolDetail" :holdPositionAll="holdPositionAll" @position="$emit('position')" @setactive="setactive" :newPrice="newPriceObj.price" :holdPositionList="holdPositionList" :symbol="symbol" v-if="tab == 1" />
<!-- 当前委托 --> <!-- 当前委托 -->
@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="ml-2"> <div class="ml-2">
<account class="bg-plain" :accountInfo="accountInfo"/> <account class="bg-plain" :accountInfo="accountInfo"/>
</div> </div>
</div> </div>
</template> </template>
@ -99,4 +99,4 @@ export default {
} }
} }
}; };
</script> </script>

21
src/views/option/kline.vue

@ -118,7 +118,7 @@ data() {
onLoadedCallback: undefined, onLoadedCallback: undefined,
onRealtimeCallback: undefined, onRealtimeCallback: undefined,
// timer: "15", // timer: "15",
timer: "1", timer: "5",
sub: "", sub: "",
isCreateSocket: false, isCreateSocket: false,
page: {}, page: {},
@ -418,12 +418,12 @@ methods: {
buttonArr.forEach((v, i) => { buttonArr.forEach((v, i) => {
let button = widget.createButton(); let button = widget.createButton();
button.attr("title", v.title).addClass("my-date").text(v.title); button.attr("title", v.title).addClass("my-date").text(v.title);
if (v.resolution === "1") { if (v.resolution === _this.timer) {
button.css({ button.css({
color: "#5786d2", color: "#5786d2",
"border-bottom": "1px solid #5786d2", "border-bottom": "1px solid #5786d2",
}); });
localStorage.setItem("tim", "1"); // localStorage.setItem("tim", v.resolution);
} }
btn = button.on("click", function (e) { btn = button.on("click", function (e) {
$(this).parents(".left").children().find(".my-date").removeAttr("style"); $(this).parents(".left").children().find(".my-date").removeAttr("style");
@ -433,6 +433,7 @@ methods: {
"border-bottom": "1px solid #5786d2", "border-bottom": "1px solid #5786d2",
}); });
// _this.$store.commit("upType", v.type); // _this.$store.commit("upType", v.type);
localStorage.setItem("tim", v.resolution);
widget.chart().setChartType(v.chartType); //K线 widget.chart().setChartType(v.chartType); //K线
}); });
}); });
@ -482,6 +483,12 @@ methods: {
}, },
}, },
created(){
let tim=localStorage.getItem("tim");
if(tim){
this.timer=tim
}
},
mounted() { mounted() {
this.initView(); this.initView();
}, },

2
src/views/profile/certification.vue

@ -336,7 +336,7 @@ export default {
this.countryList = res; this.countryList = res;
for(let i=0; i<this.countryList.length;i++){ for(let i=0; i<this.countryList.length;i++){
let item=this.countryList[i]; let item=this.countryList[i];
if(item.country_code=="1"){ if(item.id==195){
this.form.country_id = item.id; this.form.country_id = item.id;
break; break;
} }

14
src/views/setting/index.vue

@ -16,7 +16,7 @@
</div> </div>
</div> </div>
<!-- 交易密码 --> <!-- 交易密码 -->
<div class="col-md-6 d-flex"> <!-- <div class="col-md-6 d-flex">
<div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column"> <div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column">
<div class="heading">{{$t('setting.transactionPassword')}}</div> <div class="heading">{{$t('setting.transactionPassword')}}</div>
<div class="tab-content flex-fill d-flex flex-column justify-content-between align-items-start"> <div class="tab-content flex-fill d-flex flex-column justify-content-between align-items-start">
@ -26,9 +26,9 @@
<button class="btn btn-primary btn-sm" @click="transShow=true" v-else>{{$t('setting.safeSetting')}}</button> <button class="btn btn-primary btn-sm" @click="transShow=true" v-else>{{$t('setting.safeSetting')}}</button>
</div> </div>
</div> </div>
</div> </div> -->
<!-- Google验证 --> <!-- Google验证 -->
<div class="col-md-4 d-flex"> <!-- <div class="col-md-4 d-flex">
<div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column"> <div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column">
<div class="heading">Google {{$t('setting.verCode')}}</div> <div class="heading">Google {{$t('setting.verCode')}}</div>
<div class="tab-content flex-fill d-flex flex-column justify-content-between align-items-start"> <div class="tab-content flex-fill d-flex flex-column justify-content-between align-items-start">
@ -48,9 +48,9 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
<!-- 短信验证 --> <!-- 短信验证 -->
<div class="col-md-4 d-flex"> <!-- <div class="col-md-4 d-flex">
<div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column"> <div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column">
<div class="heading">SMS {{$t('setting.smsVer')}}</div> <div class="heading">SMS {{$t('setting.smsVer')}}</div>
<div class="tab-content flex-fill d-flex flex-column justify-content-between align-items-start"> <div class="tab-content flex-fill d-flex flex-column justify-content-between align-items-start">
@ -71,7 +71,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
<!-- 邮箱验证 --> <!-- 邮箱验证 -->
<div class="col-md-4 d-flex"> <div class="col-md-4 d-flex">
<div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column"> <div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column">
@ -202,4 +202,4 @@ export default {
</script> </script>
<style> <style>
</style> </style>

18
src/views/wallet/exchange-assets.vue

@ -312,17 +312,17 @@
<div class="col-md-6"> <div class="col-md-6">
<form action class="withdraw-body"> <form action class="withdraw-body">
<template v-if="withdrawCoin =='USDT'"> <template v-if="withdrawCoin =='USDT'">
<!-- <div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="withdraw-address-type" id="withdraw-omni" v-model="withdraw.addressType" value="1" />
<label class="form-check-label" for="withdraw-omni">OMNI</label>
</div> -->
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="withdraw-address-type" id="withdraw-omni" v-model="withdraw.addressType" value="1" /> <input class="form-check-input" type="radio" name="withdraw-address-type" id="withdraw-trc20" v-model="withdraw.addressType" value="3" />
<label class="form-check-label" for="withdraw-omni">OMNI</label> <label class="form-check-label" for="withdraw-trc20">TRC20</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="withdraw-address-type" id="withdraw-erc20" v-model="withdraw.addressType" value="2" />
<label class="form-check-label" for="withdraw-erc20">ERC20</label>
</div> </div>
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="withdraw-address-type" id="withdraw-trc20" v-model="withdraw.addressType" value="3" /> <input class="form-check-input" type="radio" name="withdraw-address-type" id="withdraw-erc20" v-model="withdraw.addressType" value="2" />
<label class="form-check-label" for="withdraw-trc20">TRC20</label> <label class="form-check-label" for="withdraw-erc20">ERC20</label>
</div> </div>
</template> </template>
<div class="form-group mt-2"> <div class="form-group mt-2">
@ -431,7 +431,7 @@ export default {
coin_id: "", coin_id: "",
amount: "", amount: "",
address: "", address: "",
addressType: 1, // 1 omni 2 erc20, addressType: 3, // 1 omni 2 erc20,
code_type: 1, code_type: 1,
code: '' code: ''
}, },

4
src/views/wallet/funding.vue

@ -16,9 +16,9 @@
<li class="nav-item fn-16"> <li class="nav-item fn-16">
<a class="nav-link " data-toggle="pill" href="#withdrawal" role="tab" aria-selected="false" @click="currentTab = 'withdrawal'">{{$t('wallet.withdrawalRecord')}}</a> <a class="nav-link " data-toggle="pill" href="#withdrawal" role="tab" aria-selected="false" @click="currentTab = 'withdrawal'">{{$t('wallet.withdrawalRecord')}}</a>
</li> </li>
<li class="nav-item fn-16"> <!-- <li class="nav-item fn-16">
<a class="nav-link " data-toggle="pill" href="#paypal" role="tab" aria-selected="false" @click="currentTab = 'paypal'">Paypal{{$t('wallet.rechargeRecord')}}</a> <a class="nav-link " data-toggle="pill" href="#paypal" role="tab" aria-selected="false" @click="currentTab = 'paypal'">Paypal{{$t('wallet.rechargeRecord')}}</a>
</li> </li> -->
</ul> </ul>
<div class="row pt-3"> <div class="row pt-3">
<div class="form-group col-sm-3"> <div class="form-group col-sm-3">

Loading…
Cancel
Save