(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{520:function(t,e,r){var content=r(590);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("700f797e",content,!0,{sourceMap:!1})},589:function(t,e,r){"use strict";r(520)},590:function(t,e,r){(e=r(5)(!1)).push([t.i,"[data-v-6e384a3e] .van-cell{margin:10px 0}.robot-item[data-v-6e384a3e]{overflow:hidden}.robot-item .hd[data-v-6e384a3e]{display:flex;justify-content:space-between;align-items:center;padding:10px 10px 5px}.robot-item .name[data-v-6e384a3e]{font-weight:500}.robot-item .status[data-v-6e384a3e]{font-size:12px}.robot-item .info[data-v-6e384a3e]{padding:10px;background-color:rgba(0,0,0,.03);line-height:1.8;font-size:12px}.robot-item .info span[data-v-6e384a3e]{float:right;background-color:transparent}.robot-item div[data-v-6e384a3e]{background-color:transparent;font:inherit;color:inherit}.van-cell__right-icon[data-v-6e384a3e]{font-size:14px}.van-field[data-v-6e384a3e]{line-height:32px;padding:8px 15px}",""]),t.exports=e},688:function(t,e,r){"use strict";r.r(e);r(105),r(16);var n=r(8),o=r(38);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}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(n.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{robot_id:this.$route.query.id,loading:!1,finished:!1,refreshing:!1,orderList:[],offset:0,limit:20}},methods:l(l({},Object(o.b)({robotOrder:"robot/robotOrder"})),{},{loadList:function(){var t=this;if(this.refreshing&&(this.orderList=[],this.offset=0,this.finished=!1,this.loading))this.loading=!1;else{this.loading&&(this.refreshing=!1);var e={robot_id:this.robot_id,limit_begin:this.offset,limit_end:this.limit};this.robotOrder(e).then((function(e){var r=e.data.data;r.length<t.limit?t.finished=!0:t.offset+=t.limit,t.orderList=t.orderList.concat(r)})).finally((function(){t.loading=!1,t.refreshing=!1}))}},onLoad:function(){this.loadList()},onRefresh:function(){this.loadList()}})},f=(r(589),r(43)),component=Object(f.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("van-nav-bar",{attrs:{border:!1,title:t.$t("pageRobot.order"),"left-arrow":""},on:{"click-left":function(e){return t.$router.back()}}}),t._v(" "),r("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[r("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 r("van-cell",{key:e.id},[r("div",{staticClass:"robot-item"},[r("div",{staticClass:"hd"},[r("div",{staticClass:"name"},[t._v(t._s(e.stock)+" / "+t._s(e.money))]),t._v(" "),1==e.side?r("div",{staticClass:"status",staticStyle:{color:"red",opacity:"0.8"}},[t._v(t._s(t.$t("sell_out")))]):r("div",{staticClass:"status",staticStyle:{color:"green"}},[t._v(t._s(t.$t("buy_in")))])]),t._v(" "),r("div",{staticClass:"info"},[r("div",[t._v("\n              "+t._s(t.$t("turnover"))),r("span",[t._v(t._s(t._f("numberFormat")(Number(e.deal_money),8))+" "+t._s(e.money))])]),t._v(" "),r("div",[t._v("\n              "+t._s(t.$t("number_deals"))),r("span",[t._v(t._s(t._f("numberFormat")(Number(e.deal_amount),8))+" "+t._s(e.stock))])]),t._v(" "),r("div",[t._v("\n              "+t._s(t.$t("price"))),r("span",[t._v(t._s(t._f("numberFormat")(Number(e.price),8))+" "+t._s(e.money))])]),t._v(" "),r("div",[t._v("\n              "+t._s(t.$t("closing_time"))),r("span",[t._v(t._s(e.ctime))])])])])])})),1),t._v(" "),0===t.orderList.length?r("van-empty",{attrs:{description:t.$t("empty.order")}}):t._e()],1)],1)}),[],!1,null,"6e384a3e",null);e.default=component.exports}}]);