(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{523:function(t,e,r){var content=r(599);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("b010b71e",content,!0,{sourceMap:!1})},595:function(t,e,r){t.exports=r.p+"img/icon_sort.4053957.png"},598:function(t,e,r){"use strict";r(523)},599:function(t,e,r){(e=r(5)(!1)).push([t.i,".delete-button[data-v-25bb5882]{height:100%}.van-cell__right-icon[data-v-25bb5882]{font-size:14px}.van-field[data-v-25bb5882]{line-height:32px;padding:8px 15px}",""]),t.exports=e},692:function(t,e,r){"use strict";r.r(e);r(155),r(63),r(69);var n,c,o=r(8),l=(r(485),r(488)),f=r.n(l),d=r(38),h=r(596),v=r.n(h);function y(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 O(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var j={components:(n={},Object(o.a)(n,f.a.name,f.a),Object(o.a)(n,"draggable",v.a),n),i18n:{messages:{zh:{title:"自定义排序",left:"货币",right:"拖动排序"},en:{title:"Custom Sort",left:"Currency",right:"Drag Sort"}}},data:function(){return{list:[]}},computed:O({},Object(d.d)({currency:function(t){return t.currency}})),created:function(){this.loadTickerList()},beforeDestroy:function(){c&&c()},methods:O(O({},Object(d.b)({getTickerList:"ticker/getTickerList",sortTicker:"ticker/sortTicker"})),{},{loadTickerList:function(){var t=this,e={currency:this.currency.name,order:"price",order_type:"desc"};this.getTickerList(e).then((function(e){var data=e.data;t.list=data.list,c=t.$watch("list",t.onSortChange)}))},onSortChange:function(t,e){var r=t.map((function(t){return t.id}));this.sortTicker({ids:r.join(",")})}})},k=(r(598),r(43)),component=Object(k.a)(j,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-nav-bar",{attrs:{title:t.$t("title"),"left-arrow":""},on:{"click-left":function(e){return t.$router.back()}}}),t._v(" "),n("van-cell",{attrs:{title:t.$t("left"),value:t.$t("right")}}),t._v(" "),n("draggable",{model:{value:t.list,callback:function(e){t.list=e},expression:"list"}},[n("transition-group",t._l(t.list,(function(e){return n("div",{key:e.id},[n("van-cell",{attrs:{border:!1,center:"",title:e.coin+"/"+e.currency,label:e.exchange_name},scopedSlots:t._u([{key:"right-icon",fn:function(){return[n("img",{attrs:{src:r(595),width:"20",height:"20"}})]},proxy:!0}],null,!0)})],1)})),0)],1)],1)}),[],!1,null,"25bb5882",null);e.default=component.exports}}]);