webpackJsonp([3],{NTRy:function(e,t){},fEWD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"allmarket",data:function(){return{token:"",current:0,topnow:1,sortindex:"",direction:!0,quoList:[],selectedName:"",typeList:[{type:this.$t("market.selfmarket")},{type:this.$t("market.allmarket")}],classtify:[{text:this.$t("market.symbol"),key:"at"},{text:this.$t("market.newprice"),key:"now_price"},{text:this.$t("market.change"),key:"change"},{text:this.$t("market.highprice"),key:""},{text:this.$t("market.lowprice"),key:""},{text:this.$t("market.vol"),key:""}],marketList:[],myAdd:[]}},filters:{toFixeds:function(e){return(e=Number(e)).toFixed(2)},toFixeds4:function(e){return(e=Number(e)).toFixed(4)}},created:function(){this.token=window.localStorage.getItem("token")||"",window.localStorage.getItem("current")&&(this.current=window.localStorage.getItem("current")),this.token,this.topnow=1,this.getData(),this.connect()},beforeCreate:function(){document.querySelector("html").setAttribute("style","background-color:#fff;")},beforeDestroy:function(){document.querySelector("html").removeAttribute("style")},methods:{changeType:function(e){this.topnow=e},changeLegal:function(e,t){this.current=e,this.selectedName=t,window.localStorage.setItem("current",this.current),window.localStorage.setItem("selectedName",this.selectedName),this.getData()},godeal:function(e,t,n,a,i,o,s,c,r,l){var d=t+"/"+i;window.localStorage.setItem("downUp",o),window.localStorage.setItem("legal_id_cur",n),window.localStorage.setItem("shareNum",s),window.localStorage.setItem("legal_id",a),window.localStorage.setItem("currency_id",n),window.localStorage.setItem("currency_name",t),window.localStorage.setItem("legal_name",i),window.localStorage.setItem("index1",this.current),window.localStorage.setItem("index2",e),window.localStorage.setItem("symbol",d),window.localStorage.setItem("dealDownUp",o),window.localStorage.setItem("dealLegalId",a),window.localStorage.setItem("dealCurrencyId",n),window.localStorage.setItem("dealCurrencyName",t),window.localStorage.setItem("dealLegalName",i),window.localStorage.setItem("dealIndex1",this.current),window.localStorage.setItem("dealIndex2",e),window.localStorage.setItem("dealSymbol",d),this.$router.push({path:"/dealCenter"})},getData:function(){var e=this,t=this;this.axios.get("/api/currency/quotation_new",{}).then(function(n){var a=n.data.message;e.myAdd.length&&a.forEach(function(t,n){e.myAdd.forEach(function(e,n){t.id==e.legal_id&&(t.quotation.find(function(t){return t.currency_id==e.currency_id}).added=!0)})}),t.quoList=a;for(var i=[],o=0;o0?n("span",[e._v("\n +"+e._s(e._f("toFixeds")(t.change||"0.00"))+"%\n ")]):n("span",[e._v("\n "+e._s(e._f("toFixeds")(t.change||"0.00"))+"%\n ")])]),e._v(" "),n("p",[e._v(e._s(e._f("toFixeds4")(t.high||0)))]),e._v(" "),n("p",[e._v(e._s(e._f("toFixeds4")(t.low||0)))]),e._v(" "),n("p",[e._v(e._s(e._f("toFixeds4")(t.volume)))])]):e._e()})):e._e()})):n("ul",e._l(e.marketList,function(t,a){return n("li",e._l(t,function(t,a){return 1==t.is_display&&t.added?n("div",{staticClass:"flex coinlist alcenter curPer"},[n("p",{staticClass:"flex alcenter"},[n("span",{staticClass:"iconfont ft14 blue icon-pingjiaxingxing",on:{click:function(n){e.addDelete("del",t.id)}}}),e._v(" "),n("span",{staticClass:"ml5"},[e._v(e._s(t.currency_name)+"/"+e._s(t.legal_name))])]),e._v(" "),n("p",[e._v(e._s(t.now_price))]),e._v(" "),n("p",{class:["tl","change","green",{red:t.change<0}]},[n("span",[e._v(e._s(e._f("toFixeds")(t.change||"0.00"))+"% ")])]),e._v(" "),n("p",[e._v(e._s(t.high||0))]),e._v(" "),n("p",[e._v(e._s(t.low||0))]),e._v(" "),n("p",[e._v(e._s(t.volume))])]):e._e()}))}))])])])])},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(e){n("NTRy")},"data-v-996c88d4",null);t.default=o.exports}}); //# sourceMappingURL=3.883d8a1265582011614b.js.map