(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{461:function(t,e,n){var content=n(484);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(6).default)("51d8f0d1",content,!0,{sourceMap:!1})},483:function(t,e,n){"use strict";n(461)},484:function(t,e,n){(e=n(5)(!1)).push([t.i,".asset-item[data-v-5427aab2]{display:flex;justify-content:space-between;align-items:center}.asset-item .left[data-v-5427aab2],.asset-item .right[data-v-5427aab2]{flex-shrink:0}.asset-item .right[data-v-5427aab2]{text-align:right;font-size:12px;color:#888}.asset-item .center[data-v-5427aab2]{flex-grow:1;min-width:0}.asset-item .name[data-v-5427aab2]{color:#333;font-size:16px;font-weight:500}.asset-item .info[data-v-5427aab2]{font-size:12px;color:#888}.asset-item .btn[data-v-5427aab2]{height:auto;padding:5px}.van-cell__right-icon[data-v-5427aab2]{font-size:14px}.van-field[data-v-5427aab2]{line-height:32px;padding:8px 15px}",""]),t.exports=e},547:function(t,e,n){"use strict";n.r(e);n(70);var o=n(8),r=n(38);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function c(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var l={props:{platform:{type:String,required:!0}},data:function(){return{finished:!1,isLoading:!1}},computed:c(c(c({},Object(r.d)({robotData:function(t){return t.robot.robotList}})),Object(r.c)({markets:"robot/markets"})),{},{market:function(){return this.markets(this.platform)||[]}}),methods:c(c({},Object(r.b)({marketList:"robot/marketList",robotList:"robot/robotList"})),{},{loadData:function(){this.finished=!1,this.marketList({platform:this.platform,type:"spot"}),this.finished=!0,this.isLoading=!1},onLoad:function(){this.loadData(),this.robotList()},findRobot:function(t){return this.robotData.filter((function(e){return e.market_id===t}))[0]},goDetail:function(t){var e=this;this.findRobot(t.id)&&this.$nextTick((function(){e.$router.push({name:"robot",query:{market_id:t.id}})}))},addRobot:function(t){this.$router.push({name:"robot-form",query:{type:"create",platform:this.platform,data:JSON.stringify(t)}})}})},f=(n(483),n(43)),component=Object(f.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("van-pull-refresh",{on:{refresh:t.onLoad},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[n("van-list",{attrs:{finished:t.finished},on:{load:t.onLoad}},[0===t.market.length&&t.finished?n("van-empty",{attrs:{description:t.$t("empty.default")}}):t._l(t.market,(function(e){return n("van-cell",{key:e.id,on:{click:function(n){return t.goDetail(e)}}},[n("div",{staticClass:"asset-item"},[n("div",{staticClass:"center"},[n("div",{staticClass:"name"},[t._v("\n              "+t._s(e.market_name)+"\n              "),t.findRobot(e.id)&&1==t.findRobot(e.id).recycle_status?n("van-tag",{attrs:{round:"",type:"primary"}},[t._v("\n                "+t._s(t.$t("cycle_strategy"))+"\n              ")]):t._e(),t._v(" "),t.findRobot(e.id)&&0==t.findRobot(e.id).recycle_status?n("van-tag",{attrs:{round:"",type:"primary"}},[t._v("\n                "+t._s(t.$t("single_strategy"))+"\n              ")]):t._e()],1),t._v(" "),t.findRobot(e.id)?n("div",{staticClass:"info"},[n("p",[t._v("\n                "+t._s(t.$t("expected_return"))+"："+t._s(t._f("numberFormat")(Number(t.findRobot(e.id).revenue),5))+" "+t._s(e.money)+"\n              ")]),t._v(" "),t.findRobot(e.id).show_msg?n("p",{staticClass:"van-ellipsis"},[t._v("\n                "+t._s(t.$t("latest_news"))+"："+t._s(t.findRobot(e.id).show_msg)+"\n              ")]):t._e()]):t._e()]),t._v(" "),n("div",{staticClass:"right"},[t.findRobot(e.id)?[t.findRobot(e.id)&&0===t.findRobot(e.id).status?n("span",[t._v(t._s(t.$t("status.disabled")))]):t._e(),t._v(" "),n("van-icon",{attrs:{name:"arrow"}})]:n("van-button",{staticStyle:{border:"none"},attrs:{size:"small"},on:{click:function(n){return t.addRobot(e)}}},[n("span",{staticStyle:{display:"inline-block","vertical-align":"middle"}},[t._v(t._s(t.$t("add_robot")))]),t._v(" "),n("van-icon",{staticStyle:{"vertical-align":"middle"},attrs:{name:"plus"}})],1)],2)])])}))],2)],1)}),[],!1,null,"5427aab2",null);e.default=component.exports}}]);