Browse Source

文档7.18

master
ltlzx 4 years ago
parent
commit
4e8a98288c
  1. 2
      src/assets/scss/base/_common.scss
  2. 7
      src/components/CommonFooter.vue
  3. 6
      src/components/SecondaryNav.vue
  4. 2
      src/components/VBox.vue
  5. 2
      src/i18n/en.json
  6. 2
      src/views/college/detail.vue
  7. 8
      src/views/contract/exchange-store.vue
  8. 2
      src/views/contract/handicap.vue
  9. 15
      src/views/contract/index.vue
  10. 2
      src/views/exchange/make-deal.vue
  11. 3
      src/views/option/kline.vue
  12. 22
      src/views/wallet/exchange-assets.vue

2
src/assets/scss/base/_common.scss

@ -348,7 +348,7 @@ $basew: 24;
} }
.form-control:disabled, .form-control:disabled,
.form-control[readonly] { .form-control[readonly] {
background-color: #676767; background-color: #f7f7f7;
color: #999; color: #999;
} }
.table { .table {

7
src/components/CommonFooter.vue

@ -216,11 +216,12 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
height: 324px; height: 324px;
margin-left: 233px; // margin-left: 233px;
justify-content: space-between;
padding:0 233px;
.item_left{ .item_left{
width: 504px; width: 504px;
margin-right: 300px; // margin-right: 300px;
.logo{ .logo{
display: flex; display: flex;
align-items: center; align-items: center;

6
src/components/SecondaryNav.vue

@ -241,7 +241,8 @@ export default {
a { a {
font-weight: 500; font-weight: 500;
color: rgba(193, 187, 242, 1); // color: rgba(193, 187, 242, 1);
color: black;
width: 100%; width: 100%;
height: 100%; height: 100%;
// border: 1px solid red; // border: 1px solid red;
@ -261,7 +262,8 @@ export default {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
background: linear-gradient(135deg, rgba(188, 106, 188, 1) 0%, rgba(104, 86, 166, 1) 100%); // background: linear-gradient(135deg, rgba(188, 106, 188, 1) 0%, rgba(104, 86, 166, 1) 100%);
background: black;
} }
} }
} }

2
src/components/VBox.vue

@ -195,7 +195,7 @@ export default {
.v-box__container { .v-box__container {
background: #141e2c; background: white;
border-radius: 4px; border-radius: 4px;
overflow: hidden; // overflow: hidden; //

2
src/i18n/en.json

@ -908,7 +908,7 @@
"d8": "Price", "d8": "Price",
"d9": "Market Price", "d9": "Market Price",
"e0": "Limit Price", "e0": "Limit Price",
"e1": "Num", "e1": "Amount",
"e2": "Leaf", "e2": "Leaf",
"e3": "Margin", "e3": "Margin",
"e4": "Multiple positions", "e4": "Multiple positions",

2
src/views/college/detail.vue

@ -10,7 +10,7 @@
</el-breadcrumb> </el-breadcrumb>
<div class="title h2 mt-4">{{article.title}}</div> <div class="title h2 mt-4">{{article.title}}</div>
<div class="single-subtitle d-flex justify-content-between border-bottom pb-2"> <div class="single-subtitle d-flex justify-content-between border-bottom pb-2">
<div class="text-muted">{{article.created_at}}</div> <!-- <div class="text-muted">{{article.created_at}}</div> -->
</div> </div>
<div class="edit-content py-4"> <div class="edit-content py-4">
<div v-html="article.body"></div> <div v-html="article.body"></div>

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

@ -88,16 +88,16 @@
</div> </div>
<div class="input-group mb-4 input-group-sm"> <div class="input-group mb-4 input-group-sm">
<div class="input-group-prepend"> <div class="input-group-prepend">
<!-- <span class="input-group-text">{{ $t("contract.e1") }}</span> --> <span class="input-group-text">{{ $t("contract.e1") }}</span>
<span class="input-group-text">{{ $t("contract.l2") }}</span> <!-- <span class="input-group-text">{{ $t("contract.l2") }}</span> -->
</div> </div>
<!-- v-model="form.amount" --> <!-- v-model="form.amount" -->
<!-- :placeholder="tips" --> <!-- :placeholder="tips" -->
<input <input
type="number" type="number"
v-model="margin" v-model="form.amount"
class="form-control" class="form-control"
placeholder="USDT" :placeholder="tips"
/> />
<!-- <div class="input-group-append"> <!-- <div class="input-group-append">
<span class="input-group-text">{{ $t("contract.e2") }}</span> <span class="input-group-text">{{ $t("contract.e2") }}</span>

2
src/views/contract/handicap.vue

@ -191,7 +191,7 @@ export default {
this.linkSocket(); this.linkSocket();
} }
bus.$on('collapse', msg => { bus.$on('collapse', msg => {
this.newPriceObj.price = (msg.close).toFixed(3); this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3);
this.$emit("input", this.newPriceObj); this.$emit("input", this.newPriceObj);
}); });
}, },

15
src/views/contract/index.vue

@ -115,7 +115,7 @@
</div> </div>
</div> </div>
</div> </div>
<div><theme-change /></div> <!-- <div><theme-change /></div> -->
</div> </div>
<kline <kline
:activeCoin="{ pair_name: activeContract.pair_name }" :activeCoin="{ pair_name: activeContract.pair_name }"
@ -271,14 +271,17 @@ export default {
}); });
// console.info(this.$refs) // console.info(this.$refs)
bus.$on('collapse', msg => { bus.$on('collapse', msg => {
this.activeContract.price = (msg.close).toFixed(3); this.activeContract.price =this.activeContract.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3);
this.holdPositionList.map(item=>{
if(item.symbol==this.activeContract.symbol) item.realtimePrice=this.activeContract.price
})
}); });
}, },
// //
mounted: function () { mounted: function () {
setInterval(() => { setInterval(() => {
this.holdPosition(); this.holdPosition();
}, 3000) }, 2000)
}, },
methods: { methods: {
ispopover1(item){ ispopover1(item){
@ -295,7 +298,7 @@ export default {
let { data, sub,cmd } = res; let { data, sub,cmd } = res;
if (sub == msg) { if (sub == msg) {
// console.info(data) if( data.symbol=='BTC' )(data.price).toFixed(1)
this.contractList = data; this.contractList = data;
}else if (cmd == "ping") { }else if (cmd == "ping") {
this.ws.send({ this.ws.send({
@ -334,6 +337,10 @@ export default {
symbol: (this.holdPositionAll && this.activeSymbol) || "" symbol: (this.holdPositionAll && this.activeSymbol) || ""
}; };
Contract.holdPosition(data, { loading: false }).then(res => { Contract.holdPosition(data, { loading: false }).then(res => {
console.info(res)
res.map(item=>{
if(item.symbol==this.activeContract.symbol) item.realtimePrice=this.activeContract.price
})
this.holdPositionList = res; this.holdPositionList = res;
}); });
}, },

2
src/views/exchange/make-deal.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="col-md-6"> <div class="col-md-6">
<div class="px-4 py-2 heading"> <div class="px-4 py-2 heading">
<theme-change/> <!-- <theme-change/> -->
<el-tooltip placement="bottom" effect="light"> <el-tooltip placement="bottom" effect="light">
<div slot="content" class="market"> <div slot="content" class="market">
<div class="coin p-md color-light fn-20"> <div class="coin p-md color-light fn-20">

3
src/views/option/kline.vue

@ -156,10 +156,9 @@ methods: {
ws.on("message", (res) => { ws.on("message", (res) => {
let { data, msg, code, sub, type, status, req, cmd } = res; let { data, msg, code, sub, type, status, req, cmd } = res;
console.info(this.sub)
if (sub == this.sub && this.onRealtimeCallback) { if (sub == this.sub && this.onRealtimeCallback) {
if(sub.indexOf("BTC")!= -1) (data.close).toFixed(1)
this.onRealtimeCallback(this.getMap(data)); this.onRealtimeCallback(this.getMap(data));
// console.info(data)
bus.$emit('collapse', data); bus.$emit('collapse', data);
} else if (type == "ping" || cmd == "ping") { } else if (type == "ping" || cmd == "ping") {
this.ws.send({ this.ws.send({

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

@ -181,14 +181,15 @@
<input class="form-check-input" type="radio" v-model="depositeAdressType" name="deposite—address-type" id="deposite-omni" value="1" /> <input class="form-check-input" type="radio" v-model="depositeAdressType" name="deposite—address-type" id="deposite-omni" value="1" />
<label class="form-check-label" for="deposite-omni">OMNI</label> <label class="form-check-label" for="deposite-omni">OMNI</label>
</div> --> </div> -->
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" v-model="depositeAdressType" name="deposite—address-type" id="deposite-trc20" value="3" />
<label class="form-check-label" for="deposite-trc20">TRC20</label>
</div>
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<input class="form-check-input" type="radio" v-model="depositeAdressType" name="deposite—address-type" id="deposite-erc20" value="2" /> <input class="form-check-input" type="radio" v-model="depositeAdressType" name="deposite—address-type" id="deposite-erc20" value="2" />
<label class="form-check-label" for="deposite-erc20">ERC20</label> <label class="form-check-label" for="deposite-erc20">ERC20</label>
</div> </div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" v-model="depositeAdressType" name="deposite—address-type" id="deposite-trc20" value="3" />
<label class="form-check-label" for="deposite-trc20">TRC20</label>
</div>
</template> </template>
@ -317,14 +318,15 @@
<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-omni" v-model="withdraw.addressType" value="1" />
<label class="form-check-label" for="withdraw-omni">OMNI</label> <label class="form-check-label" for="withdraw-omni">OMNI</label>
</div> --> </div> -->
<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" />
<label class="form-check-label" for="withdraw-trc20">TRC20</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-erc20" v-model="withdraw.addressType" value="2" /> <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> <label class="form-check-label" for="withdraw-erc20">ERC20</label>
</div> </div>
<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" />
<label class="form-check-label" for="withdraw-trc20">TRC20</label>
</div>
</template> </template>
<div class="form-group mt-2"> <div class="form-group mt-2">
<label class="d-flex justify-content-between" for="formGroupExampleInput"> <label class="d-flex justify-content-between" for="formGroupExampleInput">
@ -416,7 +418,7 @@ export default {
showValue: true, // showValue: true, //
depositeCoin: null, depositeCoin: null,
depositeAdressType: 3, // 1 omin 2 erc20 depositeAdressType: 2, // 1 omin 2 erc20
withdrawCoin: null, withdrawCoin: null,
@ -432,7 +434,7 @@ export default {
coin_id: "", coin_id: "",
amount: "", amount: "",
address: "", address: "",
addressType: 3, // 1 omni 2 erc20, addressType: 2, // 1 omni 2 erc20,
code_type: 1, code_type: 1,
code: '' code: ''
}, },

Loading…
Cancel
Save