MrShi
3 天以前 bfd70830b78bc42e0a284baa044efacc29897cd5
1
2
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/write-off/write-off"],{378:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(30);o(n(25));var r=o(n(379));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},379:function(e,t,n){"use strict";n.r(t);var o=n(380),r=n(382);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(384);var c,a=n(41),s=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"4a22f55d",null,!1,o["components"],c);s.options.__file="shop/pages/write-off/write-off.vue",t["default"]=s.exports},380:function(e,t,n){"use strict";n.r(t);var o=n(381);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"]}))},381: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={uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,498))}}}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;e._self._c;e._isMounted||(e.e0=function(t){e.show1=!1})},i=!1,c=[];r._withStripped=!0},382:function(e,t,n){"use strict";n.r(t);var o=n(383),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},383: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(34)),i=o(n(36)),c=o(n(11)),a=n(37);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={computed:u({},(0,a.mapState)(["navHeight","statusbarHeight","shopInfo","shopToken"])),data:function(){return{code:null,show1:!1,loading:!1,id:null,info:{}}},onShow:function(){this.loading=!1,this.show1=!1,this.info={},this.code="",this.checkShopLogin()},onLoad:function(e){},methods:{scanCodeDo:function(){this.code="";var t=this;e.scanCode({success:function(e){console.log("条码类型:"+e.scanType),console.log("条码内容:"+e.result),t.code=e.result,t.confirmDo()},fail:function(t){e.showToast({title:"扫码失败",icon:"error"})}})},confirmDo:function(){var e=this;return(0,i.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.code&&e.getShopDetail();case 1:case"end":return t.stop()}}),t)})))()},jumpWriteoffA:function(t){this.info&&this.info.id&&e.navigateTo({url:"/shop/pages/write-off-a/write-off-a?id="+this.info.id+"&type="+t})},jumpBack:function(){e.navigateBack({delta:1})},getShopDetail:function(){var e=this;if(!this.loading){this.loading=!0;var t=this;try{t.$u.api.shopOrderDetail({verifyCode:this.code,tokenType:1}).then((function(n){console.log(n),200===n.code&&(t.info=n.data,1===n.data.status||5===n.data.status||4===n.data.status||3===n.data.status?t.jumpWriteoffA(0):e.show1=!e.show1),e.loading=!1}))}catch(n){this.loading=!1}}},checkShopLogin:function(){null!=this.shopInfo&&null!=this.shopToken&&""!=this.shopToken||e.navigateTo({url:"/shop/pages/login/login"})}}};t.default=f}).call(this,n(2)["default"])},384:function(e,t,n){"use strict";n.r(t);var o=n(385),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},385:function(e,t,n){}},[[378,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/shop/pages/write-off/write-off.js.map