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.
2 lines
5.6 KiB
2 lines
5.6 KiB
10 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPackages/order/orderDetail"],{208:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var r=o(n(209));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},209:function(e,t,n){"use strict";n.r(t);var o=n(210),r=n(212);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(215);var c,d=n(32),a=Object(d["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"0d6c4dc4",null,!1,o["components"],c);a.options.__file="subPackages/order/orderDetail.vue",t["default"]=a.exports},210:function(e,t,n){"use strict";n.r(t);var o=n(211);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"]}))},211:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return c})),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,217))}}}catch(d){if(-1===d.message.indexOf("Cannot find module")||-1===d.message.indexOf(".vue"))throw d;console.error(d.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,"WAIT_PAYMENT"==e.info.status?e.info.close_time.slice(-8):null),o=e.isQrcode?e.__map(e.info.order_child,(function(t,n){var o=e.__get_orig(t),r=["WAIT_REFUND","REFUND_SUCCESS","WAIT_COMMENT","COMPLETE"].includes(t.status);return{$orig:o,g1:r}})):null,r=["WAIT_REFUND","REFUND_SUCCESS","WAIT_COMMENT","COMPLETE","CLOSED"].includes(e.info.status);e._isMounted||(e.e0=function(t){return e.$refs.popup.close()}),e.$mp.data=Object.assign({},{$root:{g0:n,l0:o,g2:r}})},i=!1,c=[];r._withStripped=!0},212:function(e,t,n){"use strict";n.r(t);var o=n(213),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},213:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(214)),i={data:function(){return{order_id:"",info:{},foodInfo:{},current:0,isQrcode:!1,remainNum:0,postInfo:[]}},onLoad:function(e){this.order_id=e.id,this.getDetail()},onShow:function(){},methods:{getDetail:function(){var t=this;this.Post({order_id:this.order_id,lon:e.getStorageSync("location").lon||"110.43785794300781",lat:e.getStorageSync("location").lat||"36.95286642085422"},"/api/order/orderDetail").then((function(e){if(t.info=e.data,["PAYMENT_SUCCESSFULLY","WAIT_REFUND","REFUND_SUCCESS","WAIT_COMMENT","COMPLETED"].includes(t.info.status)){t.isQrcode=!0;for(var n=0;n<t.info.order_child.length;n++)t.getCodeImg(t.info.order_child[n].third_order_id||t.info.order_child[n].child_id,n),"SUCCESS"==t.info.order_child[n].status&&(t.remainNum+=1)}else if(!["WAIT_PAYMENT","CLOSED"].includes(t.info.status))for(var o=0;o<t.info.order_child.length;o++)t.info.order_child[o].is_display_order_qrcode&&(t.isQrcode=!0,t.getCodeImg(t.info.order_child[o].third_order_id||t.info.order_child[o].child_id,o),"SUCCESS"==t.info.order_child[o].status&&(t.remainNum+=1))}))},getCodeImg:function(e,t){var n=this;console.log(e,t),new r.default("qrcodeT"+t,{text:e,width:150,height:150,padding:2,colorDark:"rgb(0,0,0)",colorLight:"rgb(255,255,255)",correctLevel:r.default.CorrectLevel.M,callback:function(e){console.log(e),n.$set(n.info.order_child[t],"qrcodeimg",e.path),console.log(n.info.order_child),n.$forceUpdate()}})},swiperChange:function(e){var t=e.detail,n=t.current,o=t.source;"autoplay"!==o&&"touch"!==o||(this.current=n)},clickCo
|
||
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/subPackages/order/orderDetail.js.map
|