1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/clerk/index/index"],{"0d51":function(t,e,n){"use strict";(function(t){n("8748");r(n("66fd"));var e=r(n("70591"));function r(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"21d5":function(t,e,n){"use strict";n.r(e);var r=n("c19b"),o=n.n(r);for(var c in r)"default"!==c&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=o.a},"4cff":function(t,e,n){"use strict";var r=n("b020"),o=n.n(r);o.a},70591:function(t,e,n){"use strict";n.r(e);var r=n("8307"),o=n("21d5");for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("4cff");var a,i=n("f0c5"),u=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,"35574c15",null,!1,r["a"],a);e["default"]=u.exports},8307:function(t,e,n){"use strict";var r,o=function(){var t=this,e=t.$createElement;t._self._c},c=[];n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return r}))},b020:function(t,e,n){},c19b:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("101c")),o=n("2f62");function c(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return c=function(){return t},t}function a(t){if(t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var e=c();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=r?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-layout/app-layout")]).then(function(){return resolve(n("3dd6"))}.bind(null,n)).catch(n.oe)},s=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-form-id/app-form-id")]).then(function(){return resolve(n("e583"))}.bind(null,n)).catch(n.oe)},d={name:"about",components:{"app-layout":f,"app-form-id":s},data:function(){return{is_mall:!1}},computed:u({},(0,o.mapState)({theme:function(t){return t.mallConfig.theme},clerkImg:function(t){return t.mallConfig.__wxapp_img.clerk},mall:function(t){return t.mallConfig.mall}})),onLoad:function(){this.getList()},methods:{toStatic:function(){t.navigateTo({url:"/plugins/clerk/statics/statics"})},toOrder:function(){t.navigateTo({url:"/plugins/clerk/order/order?status=1"})},toCard:function(){t.navigateTo({url:"/plugins/clerk/order/order?status=2"})},scan:function(){var e=this;t.scanCode({success:function(n){var o=n.path;o=o.split("?");var c=o[1],a=new RegExp("scene=","g");c=o[1].replace(a,"");e.$request({url:e.$api.clerk.qrcode_parameter,data:{token:c}}).then((function(e){if(console.log(e),0==e.code){var n=e.data.detail,o="/"+n.path;n.data&&(o+="?"+r.objectToUrlParams(n.data)),console.log(o),t.redirectTo({url:o}),t.options=null}})).catch((function(t){}))}})},getList:function(){var e=this;e.$request({url:e.$api.clerk.info}).then((function(n){e.$hideLoading(),0==n.code?e.is_mall=n.data.is_mall:"无核销信息权限"==n.msg?t.showModal({title:"提示",content:"该帐号无核销权限",showCancel:!1,success:function(e){t.redirectTo({url:"/pages/index/index"})}}):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))}}};e.default=d}).call(this,n("543d")["default"])}},[["0d51","common/runtime","common/vendor"]]]);
|