(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{464:function(t,e,n){var content=n(504);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(6).default)("67209050",content,!0,{sourceMap:!1})},503:function(t,e,n){"use strict";n(464)},504:function(t,e,n){(e=n(5)(!1)).push([t.i,"[data-v-576a6385] .van-cell{margin:10px 0}.robot-item[data-v-576a6385]{overflow:hidden}.robot-item .hd[data-v-576a6385]{display:flex;justify-content:space-between;align-items:center;padding:10px 10px 5px}.robot-item .name[data-v-576a6385]{font-weight:500}.robot-item .status[data-v-576a6385]{font-size:12px}.robot-item .info[data-v-576a6385]{padding:10px;background-color:rgba(0,0,0,.03);line-height:1.8;font-size:12px}.robot-item .info span[data-v-576a6385]{float:right;background-color:transparent}.robot-item div[data-v-576a6385]{background-color:transparent;font:inherit;color:inherit}.van-cell__right-icon[data-v-576a6385]{font-size:14px}.van-field[data-v-576a6385]{line-height:32px;padding:8px 15px}",""]),t.exports=e},551:function(t,e,n){"use strict";n.r(e);n(105),n(16);var r=n(8),o=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 l(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(r.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 c={data:function(){return{loading:!1,finished:!1,refreshing:!1,orderList:[],offset:0,limit:20}},methods:l(l({},Object(o.b)({robotOrder:"robot/robotOrder"})),{},{loadRobotOrder:function(){var t=this;if(this.refreshing&&(this.orderList=[],this.finished=!1,this.loading))this.loading=!1;else{this.loading&&(this.refreshing=!1);var e={limit_begin:this.offset,limit_end:this.limit};this.robotOrder(e).then((function(e){var n=e.data.data;n.length<t.limit?t.finished=!0:(t.finished=!1,t.offset+=t.limit),t.orderList=t.orderList.concat(n)})).finally((function(){t.loading=!1,t.refreshing=!1}))}},onLoad:function(){this.loadRobotOrder()},onRefresh:function(){this.loadRobotOrder()}})},f=(n(503),n(43)),component=Object(f.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[n("van-list",{attrs:{finished:t.finished,"finished-text":t.$t("finished_text")},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.orderList,(function(e){return n("van-cell",{key:e.id},[n("div",{staticClass:"robot-item"},[n("div",{staticClass:"hd"},[n("div",{staticClass:"name"},[t._v(t._s(e.stock)+" / "+t._s(e.money))]),t._v(" "),1==e.side?n("div",{staticClass:"status",staticStyle:{color:"red",opacity:"0.8"}},[t._v(t._s(t.$t("sell_out")))]):n("div",{staticClass:"status",staticStyle:{color:"green"}},[t._v(t._s(t.$t("buy_in")))])]),t._v(" "),n("div",{staticClass:"info"},[n("div",[t._v("\n              "+t._s(t.$t("turnover"))),n("span",[t._v(t._s(t._f("numberFormat")(Number(e.deal_money),8))+" "+t._s(e.money))])]),t._v(" "),n("div",[t._v("\n              "+t._s(t.$t("number_deals"))),n("span",[t._v(t._s(t._f("numberFormat")(Number(e.deal_amount),8))+" "+t._s(e.stock))])]),t._v(" "),n("div",[t._v("\n              "+t._s(t.$t("price"))),n("span",[t._v(t._s(t._f("numberFormat")(Number(e.price),8))+" "+t._s(e.money))])]),t._v(" "),n("div",[t._v("\n              "+t._s(t.$t("closing_time"))),n("span",[t._v(t._s(e.ctime))])])])])])})),1),t._v(" "),0===t.orderList.length?n("van-empty",{attrs:{description:t.$t("empty.order")}}):t._e()],1)],1)}),[],!1,null,"576a6385",null);e.default=component.exports}}]);