entity.js 4.2 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tool/entity"],{539:function(e,n,t){"use strict";(function(e){var n=t(3);t(25);n(t(24));var o=n(t(540));wx.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["createPage"])},540:function(e,n,t){"use strict";t.r(n);var o=t(541),i=t(543);for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t(545);var a,u=t(39),c=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);c.options.__file="pages/tool/entity.vue",n["default"]=c.exports},541:function(e,n,t){"use strict";t.r(n);var o=t(542);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},542:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return o}));try{o={uniLoadMore:function(){return t.e("components/uni-load-more/uni-load-more").then(t.bind(null,322))},uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,241))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement;e._self._c},r=!1,a=[];i._withStripped=!0},543:function(e,n,t){"use strict";t.r(n);var o=t(544),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},544:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(49),i=function(){t.e("components/uni-popup/uni-popup").then(function(){return resolve(t(241))}.bind(null,t)).catch(t.oe)},r={components:{uniPopup:i},data:function(){return{height:"",type:0,code:"",password:"",uping:!1,loaded:!1,loadingType:"more",page:1,limit:100,list:[]}},onLoad:function(n){this.type=n.type,1==n.type?e.setNavigationBarTitle({title:"发放实体卡"}):e.setNavigationBarTitle({title:"核销实体卡"}),this.getBase()},onShow:function(){console.log(this.$store.state.baseURL)},onReachBottom:function(){this.getBase()},onReady:function(n){var t=this;e.getSystemInfo({success:function(n){var o=e.createSelectorQuery();o.select(".stk-list-wrap").boundingClientRect(),o.exec((function(e){t.height=n.windowHeight-e[0].top+"px"}))},fail:function(e){}})},methods:{getBase:function(e){var n=this;"reload"==e&&(n.page=1,n.loadingType="more",n.list=[]),"loading"!=n.loadingType&&"noMore"!=n.loadingType&&(n.loadingType="loading",(0,o.getStk)({page:n.page,limit:n.limit,status:n.type}).then((function(e){console.log(e),n.list=n.list.concat(e.data.list.list.data),e.data.list.list.data.length==n.limit?n.loadingType="more":n.loadingType="noMore"})))},opentc:function(){this.$refs.popupStk.open()},gonew:function(){var n=this;if(!n.uping){if(""==n.code)return n.$api.msg("请输入卡号");if(2==n.type&&""==n.password)return n.$api.msg("请输入卡密");n.uping=!0,1==n.type?(0,o.sendStk)({code:n.code}).then((function(t){n.$refs.popupStk.close(),n.code="",n.password="",n.getBase("reload"),e.showToast({title:"发放成功",duration:2e3}),n.uping=!1})).catch((function(e){n.uping=!1})):2==n.type&&(0,o.checkStk)({code:n.code,password:n.password}).then((function(t){n.$refs.popupStk.close(),n.code="",n.password="",n.getBase("reload"),e.showToast({title:"核销成功",duration:2e3}),n.uping=!1})).catch((function(e){n.uping=!1}))}}}};n.default=r}).call(this,t(1)["default"])},545:function(e,n,t){"use strict";t.r(n);var o=t(546),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},546:function(e,n,t){}},[[539,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/tool/entity.js.map