Browse Source

修改合约平仓弹出框组件问题、修改首页数据、点击返回时直接返回到首页

master
liaoxinyu 1 month ago
parent
commit
9910af531d
  1. 4
      pages/base/home.vue
  2. 6
      pages/exchange/index.vue
  3. 14
      pages/exchange/open-position.vue

4
pages/base/home.vue

@ -196,8 +196,8 @@
</view>
<v-link :to="{path: '/pages/exchange/index',query: { code: item.pair_name },}"
class="m-b-md m-x-md rounded-xs link-active d-flex justify-between align-center p-y-xs box-size p-x-xs"
v-for="item in parentItem.collect ? collect.slice(0,5) : parentItem.marketInfoList.slice(0,5)"
:key="item.pair_name">
v-for="item in parentItem.collect ? collect.slice(0,5) : parentItem.marketInfoList" :key="item.pair_name"
v-if="item.coin_name=='BTC'||item.coin_name=='ETH'||item.coin_name=='ETC'||item.coin_name=='BCH'||item.coin_name=='DOGE'">
<view class="fn-left w-5/12">
<view class="d-flex align-center">
<image :src="item.coin_icon" mode=""

6
pages/exchange/index.vue

@ -2,7 +2,8 @@
<v-page>
<v-header :leftClick="() => {}" :left-arrow="false">
<template #left>
<view @click="$back(-1)">
<!-- <view @click="$back(-1)"> -->
<view @click="torouter">
<i class="van-icon van-icon-arrow-left van-nav-bar__arrow"></i>
</view>
<view
@ -498,6 +499,9 @@ export default {
}
});
},
torouter(){
this._router.replace("/pages/base/index");
}
},
onUnload() {
this.isShow = false;

14
pages/exchange/open-position.vue

@ -803,11 +803,11 @@ export default {
{ label: this.$t("exchange.d7"), value: 1 },
{ label: this.$t("exchange.d6"), value: 0 }
],
shixian:[
{ label: this.$t("contract.d7"), value: 2 },
{ label: this.$t("contract.h8"), value: 1 },
// shixian:[
// { label: this.$t("contract.d7"), value: 2 },
// { label: this.$t("contract.h8"), value: 1 },
],
// ],
canvasShow:false,
myCanvas:'',
detail: '',
@ -872,6 +872,12 @@ export default {
},
marginCheck(){
return parseInt(this.margin);
},
shixian() {
return [
{ label: this.$t("contract.d7"), value: 2 },
{ label: this.$t("contract.h8"), value: 1 },
];
}
},
watch: {

Loading…
Cancel
Save