| 12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/jdr/order"],{228:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(229));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},229:function(e,n,t){"use strict";t.r(n);var o=t(230),r=t(232);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t(234);var i,c=t(35),u=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);u.options.__file="pages/jdr/order.vue",n["default"]=u.exports},230:function(e,n,t){"use strict";t.r(n);var o=t(231);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},231:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return o}));try{o={uniLoadMore:function(){return t.e("components/uni-load-more/uni-load-more").then(t.bind(null,374))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.navList,(function(n,t){var o=e.__get_orig(n),r=!0===n.loaded&&0===n.orderList.length;return{$orig:o,g0:r}})));e.$mp.data=Object.assign({},{$root:{l0:t}})},a=!1,i=[];r._withStripped=!0},232:function(e,n,t){"use strict";t.r(n);var o=t(233),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},233:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(83),r=t(161),a=function(){t.e("components/uni-load-more/uni-load-more").then(function(){return resolve(t(374))}.bind(null,t)).catch(t.oe)},i=function(){t.e("components/empty").then(function(){return resolve(t(381))}.bind(null,t)).catch(t.oe)},c={components:{uniLoadMore:a,empty:i},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,a=this.tabCurrentIndex,i=this.navList[a],c=i.state;"shua"===n&&(i.loaded=!1,i.page=1,i.limit=10,i.loadingType="more",i.orderList=[]),"tabChange"===n&&!0===i.loaded||"loading"!==i.loadingType&&"noMore"!==i.loadingType&&(i.loadingType="loading",(0,o.receiving_list)({status:c,page:i.page,limit:i.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),a="";e.issm=1,o.forEach((function(n){console.log(e),"上门接送"==n&&(e.issm=2),""==a?a+=n:a=a+"/"+n})),e.servicename=a,e.time=(0,r.getTime)(e.time)})),i.orderList=i.orderList.concat(o),i.page++,i.limit!=o.length?(i.loadingType="noMore",e.hideLoading(),t.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(e){console.log(e)})))},abandonOrder:function(n){var t=this;e.showModal({title:"提示",content:"是否取消订单",success:function(r){r.confirm?(0,o.discard_orde)({},n.id).then((function(n){e.showToast({title:"放弃订单成功",icon:"success",duration:2e3}),t.loadData("shua")})):r.cancel&&console.log("用户点击取消")}})},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadData("tabChange")},tabClick:function(e){this.tabCurrentIndex=e}}};n.default=c}).call(this,t(2)["default"])},234:function(e,n,t){"use strict";t.r(n);var o=t(235),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},235:function(e,n,t){}},[[228,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/jdr/order.js.map
|