require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageOne/mes/orderList"],{243:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var r=o(n(244));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},244:function(e,t,n){"use strict";n.r(t);var o=n(245),r=n(247);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(249);var s,a=n(32),c=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);c.options.__file="pageOne/mes/orderList.vue",t["default"]=c.exports},245:function(e,t,n){"use strict";n.r(t);var o=n(246);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},246:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return i})),n.d(t,"components",(function(){return o}));try{o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,457))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.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,t=e.$createElement,n=(e._self._c,e.orders.length),o=n>0?e.__map(e.orders,(function(t,n){var o=e.__get_orig(t),r=e.__map(t.shop,(function(t,n){var o=e.__get_orig(t),r=e.$tools.oss(t.image);return{$orig:o,g1:r}}));return{$orig:o,l0:r}})):null;e._isMounted||(e.e0=function(t,n){var o=arguments[arguments.length-1].currentTarget.dataset,r=o.eventParams||o["event-params"];n=r.item;return e.$tools.goNext("/pageOne/mes/orderDetail?id="+n.id)}),e.$mp.data=Object.assign({},{$root:{g0:n,l1:o}})},i=!1,s=[];r._withStripped=!0},247:function(e,t,n){"use strict";n.r(t);var o=n(248),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},248:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{list:[{id:66,name:"全部"},{id:0,name:"待付款"},{id:1,name:"待发货"},{id:2,name:"待收货"},{id:4,name:"已完成"}],selects:0,orders:[],ids:"",payList:[{id:1,name:"微信支付",status:!0,icon:"/static/images/icon_7wx.png"},{id:2,name:"余额支付",status:!1,icon:"/static/images/044vef.png"}],order_number:"",payId:1}},onShow:function(){this.orderList()},onLoad:function(e){this.ids=e.id},methods:{onSels:function(e,t){this.selects=e,this.ids=t,this.orderList()},selpay:function(e){this.payId=e.id,this.payList.forEach((function(e){e.status=!1})),e.status=!0},orderList:function(){var e=this;this.$tools.axiosFromToken("POST","order/orderList",{type:this.ids}).then((function(t){e.orders=t.data}))},cancelOrder:function(t){var n=this;e.showModal({title:"提示",content:"确定要取消订单吗？",success:function(e){e.confirm&&n.$tools.axiosFromToken("POST","order/cancelOrder",{id:t}).then((function(e){n.$tools.showtt(e.msg),1==e.code&&n.orderList()}))}})},deliveryOrder:function(t){var n=this;e.showModal({title:"提示",content:"确定要确认收货吗？",success:function(e){e.confirm&&n.$tools.axiosFromToken("POST","order/deliveryOrder",{id:t}).then((function(e){n.$tools.showtt(e.msg),1==e.code&&n.orderList()}))}})},open:function(e){this.order_number=e,this.$refs["popup"].open()},close:function(){this.$refs.popup.close()},create:function(){this.$refs.popup.close();var t=this;e.showModal({title:"提示",content:"确定要支付吗？",success:function(n){n.confirm&&t.$tools.axiosFromToken("POST","pay/shopPay",{order_number:t.order_number,pay_type:t.payId}).then((function(n){if(1==n.code)if(1==t.payId)e.requestPayment({timeStamp:n.data.info.timeStamp,nonceStr:n.data.info.nonceStr,package:n.data.info.package,signType:n.data.info.signType,paySign:n.data.info.paySign,success:function(e){t.$tools.showtt("支付成功"),t.orderList()},fail:function(e){t.$tools.showtt("支付失败")}});else{if(t.$tools.showtt(n.msg),1!=n.code)return;t.orderList()}else t.$tools.showtt(n.msg)}))}})}}};t.default=n}).call(this,n(2)["default"])},249:function(e,t,n){"use strict";n.r(t);var o=n(250),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},250:function(e,t,n){}},[[243,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageOne/mes/orderList.js.map