You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.8 KiB
1 lines
3.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["technician/pages/car-fare"],{"09cc":function(t,n,e){"use strict";(function(t,n){var a=e("47a9");e("7043");a(e("3240"));var i=a(e("a68f"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},1784:function(t,n,e){"use strict";e.r(n);var a=e("7712"),i=e.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(r);n["default"]=i.a},2279:function(t,n,e){"use strict";var a=e("f29e"),i=e.n(a);i.a},7712:function(t,n,e){"use strict";(function(t){var a=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("7eb4")),r=a(e("ee10")),o=e("8f59"),u=null,s={data:function(){return{startYear:"",showDate:!1,toDay:"",loading:!0,isLoad:!1,list:{data:[]},param:{start_time:"",end_time:"",name:"",page:1}}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(){this.$util.setNavigationBarColor({bg:this.primaryColor}),this.toDay=this.$util.formatTime(new Date,"YY-M-D"),this.startYear=this.$util.formatTime(new Date,"YY"),this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){var t=arguments,n=this;return(0,r.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.length>0&&void 0!==t[0]&&t[0],n.getList();case 2:case"end":return e.stop()}}),e)})))()},toSearch:function(t){var n=this;clearTimeout(u),u=setTimeout((function(){n.param.name=t,n.initRefresh()}),1e3)},onConfirm:function(t){var n=t.value[0],e=t.value[1];this.param.start_time=this.$util.DateToUnix(n),this.param.end_time=this.$util.DateToUnix(e)+86400-1,this.initRefresh()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,r.default)(i.default.mark((function n(){var e,a,r;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$util.showLoading(),e=t.list,a=t.param,n.next=4,t.$api.technician.carMoneyList(a);case 4:r=n.sent,1==t.param.page||(r.data=e.data.concat(r.data)),t.list=r,t.isLoad=!0,t.loading=!1,t.$util.hideAll();case 9:case"end":return n.stop()}}),n)})))()}},filters:{addressMatch:function(t){if(!t)return"";var n=Array.from(t.match(/.+?(省|市|自治区|自治州|县|区)/g))[1];return n}}};n.default=s}).call(this,e("df3c")["default"])},a68f:function(t,n,e){"use strict";e.r(n);var a=e("ce15"),i=e("1784");for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e("2279");var o=e("828b"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=u.exports},ce15:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return a}));var a={wPicker:function(){return e.e("components/w-picker/w-picker").then(e.bind(null,"13f3"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.isLoad?t.__map(t.list.data,(function(n,e){var a=t.__get_orig(n),i=t._f("addressMatch")(n.trip_end_address);return{$orig:a,f0:i}})):null),a=t.isLoad&&t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null,i=t.isLoad?!t.loading&&t.list.data.length<=0&&1==t.list.current_page:null;t._isMounted||(t.e0=function(n){t.showDate=!0}),t.$mp.data=Object.assign({},{$root:{l0:e,g0:a,g1:i}})},r=[]},f29e:function(t,n,e){}},[["09cc","common/runtime","common/vendor"]]]); |