(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["otherpages/verification/index/index"],{"0327":function(e,t,n){"use strict";n.r(t);var i=n("2113"),o=n.n(i);for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=o.a},2113:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("4c22"));n("bfe4");function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){Promise.all([n.e("common/vendor"),n.e("components/ns-show-toast/ns-show-toast")]).then(function(){return resolve(n("f505"))}.bind(null,n)).catch(n.oe)},r={data:function(){return{operationType:"sweepCode",verify_code:"",isFocus:!1}},components:{nsShowToast:s},onLoad:function(){},mixins:[i.default],onShow:function(){this.$langConfig.refresh(),e.getStorageSync("token")?this.checkIsVerifier():this.$util.redirectTo("/pages/member/index/index",{},"reLaunch")},methods:{focus:function(){this.isFocus=!this.isFocus},scanCode:function(){var t=this;e.scanCode({onlyFromCamera:!0,success:function(e){if("WX_CODE"==e.scanType&&"scanCode:ok"==e.errMsg)try{t.$util.redirectTo("/"+e.path)}catch(n){t.$util.showToast({title:n.message})}else t.$util.showToast({title:e.errorMsg})}})},changeOperationType:function(e){this.operationType=e},checkIsVerifier:function(){var e=this;this.$api.sendRequest({url:"/api/verify/checkisverifier",success:function(t){t.data||(e.$util.showToast({title:"非核销员无此权限"}),setTimeout((function(){e.$util.redirectTo("/pages/member/index/index",{},"reLaunch")}),1e3))}})},confirm:function(){var e=this,t=/[\S]+/;if(!t.test(this.verify_code))return this.$util.showToast({title:"请输入核销码"}),!1;this.$api.sendRequest({url:"/api/verify/verifyInfo",data:{verify_code:this.verify_code},success:function(t){t.code>=0?e.$util.redirectTo("/otherpages/verification/detail/detail",{code:e.verify_code}):e.$util.showToast({title:t.message})}})}}};t.default=r}).call(this,n("543d")["default"])},"23ae":function(e,t,n){"use strict";var i=n("5fd7"),o=n.n(i);o.a},"3a0e":function(e,t,n){"use strict";(function(e){n("6b76");i(n("66fd"));var t=i(n("c48d"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"5fd7":function(e,t,n){},7244:function(e,t,n){"use strict";var i={nsShowToast:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-show-toast/ns-show-toast")]).then(n.bind(null,"f505"))}},o=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){return e.$util.redirectTo("/otherpages/verification/list/list")})},s=[];n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}))},c48d:function(e,t,n){"use strict";n.r(t);var i=n("7244"),o=n("0327");for(var s in o)"default"!==s&&function(e){n.d(t,e,(function(){return o[e]}))}(s);n("23ae");var r,c=n("f0c5"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);t["default"]=u.exports}},[["3a0e","common/runtime","common/vendor"]]]);