(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{460:function(t,e,n){var content=n(482);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(6).default)("5a2aa1c6",content,!0,{sourceMap:!1})},481:function(t,e,n){"use strict";n(460)},482:function(t,e,n){(e=n(5)(!1)).push([t.i,".title[data-v-141765b4]{background-color:#fff;padding:10px 15px;font-size:18px;font-weight:600}.asset-item[data-v-141765b4]{display:flex;justify-content:space-between;align-items:center}.asset-item .left[data-v-141765b4]{flex-shrink:0}.asset-item .center[data-v-141765b4]{flex-grow:1;min-width:0}.asset-item .name[data-v-141765b4]{color:#333;font-size:16px;font-weight:500}.asset-item .info[data-v-141765b4]{font-size:12px;color:#888}.van-cell__right-icon[data-v-141765b4]{font-size:14px}.van-field[data-v-141765b4]{line-height:32px;padding:8px 15px}",""]),t.exports=e},546:function(t,e,n){"use strict";n.r(e);n(70),n(52),n(53);var o=n(8),r=n(38);function c(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 l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var f={data:function(){return{active:0,isLoading:!1,robot_list:{}}},computed:l({},Object(r.d)({platform:function(t){return t.robot.platform},robots:function(t){return t.robot.robotList}})),watch:{robots:function(t){var e=this,n=t.filter((function(t){return 1===t.status}));this.platform.forEach((function(t){for(var i in e.robot_list[t.label]=[],n)n[i].platform===t.label&&e.robot_list[t.label].push(n[i])})),this.$forceUpdate()}},mounted:function(){this.loadData()},methods:l(l({},Object(r.b)({robotList:"robot/robotList"})),{},{loadData:function(){var t=this;this.robotList().then((function(){t.isLoading=!1}))},goDetail:function(t){var e=this;this.$nextTick((function(){e.$router.push({name:"robot",query:{market_id:t.market_id}})}))}})},v=(n(481),n(43)),component=Object(v.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"background-color":"#fff"}},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("机器人")))]),t._v(" "),n("van-tabs",{attrs:{swipeable:"",animated:"",sticky:""},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.platform,(function(e){return n("van-tab",{key:e.name,scopedSlots:t._u([{key:"title",fn:function(){return[t._v(t._s(t.$t(e.label)))]},proxy:!0}],null,!0)},[t._v(" "),n("van-pull-refresh",{on:{refresh:t.loadData},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[t.robot_list[e.label]&&t.robot_list[e.label].length>0?t._l(t.robot_list[e.label],(function(e){return n("div",{key:e.id},[n("van-cell",{staticClass:"asset-item",on:{click:function(n){return t.goDetail(e)}}},[n("div",{staticClass:"center"},[n("div",{staticClass:"name"},[t._v("\n                  "+t._s(e.market_name)+"\n                  "),e&&1==e.recycle_status?n("van-tag",{attrs:{round:"",type:"primary"}},[t._v(t._s(t.$t("循环策略")))]):t._e(),t._v(" "),e&&0==e.recycle_status?n("van-tag",{attrs:{round:"",type:"primary"}},[t._v(t._s(t.$t("单次策略")))]):t._e()],1),t._v(" "),e?n("div",{staticClass:"info"},[n("p",[t._v(t._s(t.$t("预计收益"))+"："+t._s(t._f("numberFormat")(Number(e.revenue),5))+" "+t._s(e.money))]),t._v(" "),e.show_msg?n("p",{staticClass:"van-ellipsis"},[t._v(t._s(t.$t("最新消息"))+"："+t._s(e.show_msg))]):t._e()]):t._e()])])],1)})):n("van-empty",{attrs:{description:t.$t("empty.run_robot")}})],2)],1)})),1)],1)}),[],!1,null,"141765b4",null);e.default=component.exports}}]);