(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/jdr/order"],{"1a6d":function(e,n,t){},"2a84":function(e,n,t){"use strict";var o=t("1a6d"),a=t.n(o);a.a},"51dd":function(e,n,t){"use strict";t.r(n);var o=t("8074"),a=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=a.a},8074:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("40f0"),a=t("22f1"),i={components:{uniLoadMore:function(){t.e("components/uni-load-more/uni-load-more").then(function(){return resolve(t("de04"))}.bind(null,t)).catch(t.oe)},empty:function(){t.e("components/empty").then(function(){return resolve(t("f3ad"))}.bind(null,t)).catch(t.oe)}},data:function(){return{tabCurrentIndex:0,navList:[{state:1,text:"进行中",loadingType:"more",orderList:[],page:1,limit:10},{state:2,text:"待确认",loadingType:"more",orderList:[],page:1,limit:10},{state:3,text:"已完成",loadingType:"more",orderList:[],page:1,limit:10}]}},onLoad:function(e){this.tabCurrentIndex=e.state,0==e.state&&this.loadData()},filters:{moneyNum:function(e){return+e}},methods:{call:function(n){console.log(n.phone),e.makePhoneCall({phoneNumber:n.phone})},moneyNum:function(e){return+e},navTo:function(n){e.navigateTo({url:n})},loadData:function(n){var t=this,i=this.tabCurrentIndex,r=this.navList[i],c=r.state;"shua"===n&&(r.loaded=!1,r.page=1,r.limit=10,r.loadingType="more",r.orderList=[]),"tabChange"===n&&!0===r.loaded||"loading"!==r.loadingType&&"noMore"!==r.loadingType&&(r.loadingType="loading",(0,o.receiving_list)({status:c,page:r.page,limit:r.limit}).then((function(n){var o=n.data;o.forEach((function(e){void 0!=e.remarks&&"undefined"!=e.remarks||(e.remarks="无");var n=Object.keys(e.cate),t="";n.forEach((function(e){""==t?t+=e:t=t+"/"+e})),e.catename=t;var o=Object.keys(e.service),i="";e.issm=1,o.forEach((function(n){console.log(e),"上门接送"==n&&(e.issm=2),""==i?i+=n:i=i+"/"+n})),e.servicename=i,e.time=(0,a.getTime)(e.time)})),r.orderList=r.orderList.concat(o),r.page++,r.limit!=o.length?(r.loadingType="noMore",e.hideLoading(),t.$set(r,"loaded",!0)):r.loadingType="more"})).catch((function(e){console.log(e)})))},abandonOrder:function(n){var t=this;e.showModal({title:"提示",content:"是否取消订单",success:function(a){a.confirm?(0,o.discard_orde)({},n.id).then((function(n){e.showToast({title:"放弃订单成功",icon:"success",duration:2e3}),t.loadData("shua")})):a.cancel&&console.log("用户点击取消")}})},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadData("tabChange")},tabClick:function(e){this.tabCurrentIndex=e}}};n.default=i}).call(this,t("543d")["default"])},af2f:function(e,n,t){"use strict";t.r(n);var o=t("f9c4"),a=t("51dd");for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(i);t("2a84");var r=t("f0c5"),c=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},f9c4:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var o={uniLoadMore:function(){return t.e("components/uni-load-more/uni-load-more").then(t.bind(null,"de04"))}},a=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.navList,(function(n,t){var o=e.__get_orig(n),a=!0===n.loaded&&0===n.orderList.length;return{$orig:o,g0:a}})));e.$mp.data=Object.assign({},{$root:{l0:t}})},i=[]},f9ec:function(e,n,t){"use strict";(function(e,n){var o=t("4ea4");t("3e59");o(t("66fd"));var a=o(t("af2f"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])}},[["f9ec","common/runtime","common/vendor"]]]);