|
|
|
@ -237,11 +237,12 @@ |
|
|
|
> --> |
|
|
|
<!-- <img src="../../assets/img/increace.png" class="td_img" alt="" v-show="item.increase * 1 >= 0"> |
|
|
|
<img src="../../assets/img/decreace.png" class="td_img" alt="" v-show="item.increase * 1 < 0"> --> |
|
|
|
<svg width="109" height="39"> |
|
|
|
<!-- <svg width="109" height="39"> |
|
|
|
<g style="transform: translate(0, 10px)"> |
|
|
|
<path :d="item.line" :class="item.increase *1 <0 ?'path_decreace':'path_increace'"/> |
|
|
|
</g> |
|
|
|
</svg> |
|
|
|
</svg> --> |
|
|
|
<price-line :line="item.prices" :increase="item.increase" class="td_img"/> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<router-link :to="`/exchange/${item.symbol}`"> |
|
|
|
@ -420,10 +421,12 @@ import Socket from "@/api/server/Socket.js"; |
|
|
|
import College from "@/api/college"; |
|
|
|
import Member from "@/api/member"; |
|
|
|
import * as d3 from 'd3'; |
|
|
|
import priceLine from "../market/price-line"; |
|
|
|
// Vue.use(VueAwesomeSwiper); |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
vueQr, |
|
|
|
priceLine |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -557,7 +560,7 @@ export default { |
|
|
|
|
|
|
|
this.homeList = res.homeList; |
|
|
|
this.marketList = res.marketList; |
|
|
|
this.calculatePath() |
|
|
|
// this.calculatePath() |
|
|
|
this.iconList = res.iconList; |
|
|
|
this.pcBannerList = res.pcBannerList |
|
|
|
this.tab = this.marketList[0].coin_name; |
|
|
|
@ -659,7 +662,7 @@ export default { |
|
|
|
if (sub == "indexMarketList") { |
|
|
|
this.marketList = data; |
|
|
|
this.replaceOptional(); |
|
|
|
this.calculatePath() |
|
|
|
// this.calculatePath() |
|
|
|
} else if (type == "ping") { |
|
|
|
ws.send({ |
|
|
|
cmd: "pong", |
|
|
|
@ -708,7 +711,6 @@ created(){ |
|
|
|
this.indexList(); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// this.calculatePath(); |
|
|
|
this.article() |
|
|
|
if (this.isLogin) { |
|
|
|
this.getCollect(); |
|
|
|
@ -1208,7 +1210,8 @@ path{ |
|
|
|
} |
|
|
|
.td_img{ |
|
|
|
width: 109px; |
|
|
|
height: 39px; |
|
|
|
height: 39px !important; |
|
|
|
margin: 0 auto; |
|
|
|
} |
|
|
|
.td_button{ |
|
|
|
width: 140px; |
|
|
|
|