2025-03-21 16:50:18 +08:00

2 lines
5.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/packageA/user/my_vip"],{249:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var i=o(t(250));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},250:function(n,e,t){"use strict";t.r(e);var o=t(251),i=t(253);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);t(255);var s,a=t(42),c=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);c.options.__file="pages/packageA/user/my_vip.vue",e["default"]=c.exports},251:function(n,e,t){"use strict";t.r(e);var o=t(252);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},252:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return i})),t.d(e,"staticRenderFns",(function(){return s})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([t.e("common/vendor"),t.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(t.bind(null,406))},tnTabs:function(){return Promise.all([t.e("common/vendor"),t.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(t.bind(null,428))},tnButton:function(){return Promise.all([t.e("common/vendor"),t.e("tuniao-ui/components/tn-button/tn-button")]).then(t.bind(null,420))},tnPopup:function(){return Promise.all([t.e("common/vendor"),t.e("tuniao-ui/components/tn-popup/tn-popup")]).then(t.bind(null,391))},lPainter:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter/l-painter")]).then(t.bind(null,588))},lPainterQrcode:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter-qrcode/l-painter-qrcode")]).then(t.bind(null,599))}}}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 i=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.show=!1})},r=!1,s=[];i._withStripped=!0},253:function(n,e,t){"use strict";t.r(e);var o=t(254),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=i.a},254:function(n,e,t){"use strict";(function(n){var o=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(t(18)),r=t(33),s=o(t(30)),a={data:function(){return{current:0,show:!1,qrcode_url:"",list:[],page:1,type:0,apiImgUrl:this.$store.state.imgUrl,sp_list:[],code:0}},onLoad:function(){this.getbusinesstypeList(),this.getbusinessList(),this.setHandleMembercode()},methods:{change:function(n){this.current=n;var e=this.list[n];this.type=e.id,this.page=1,this.sp_list=[],this.getbusinessList()},setHandleMembercode:function(){var e=this,t=n.getStorageSync("userInfo");(0,r.handleMembercode)({member_id:t.id}).then((function(t){console.log(t),1==t.code?e.code=t.data.member_code:n.showModal({title:"提示",content:t.msg,showCancel:!1,success:function(n){that.goBack()}})})).catch((function(e){n.showToast({title:e,icon:"none",duration:2e3})}))},getbusinessList:function(){var e=this,t=n.getStorageSync("userInfo");(0,r.businessList)({business_type:this.type,association_id:t.association_id,page:this.page,size:10}).then((function(n){var t;(console.log(n),1==n.code)&&(t=e.sp_list).push.apply(t,(0,i.default)(n.data.list))})).catch((function(e){n.showToast({title:e,icon:"none",duration:2e3})}))},getbusinesstypeList:function(){var e=this;(0,r.businesstypeList)().then((function(n){if(console.log(n),1==n.code){var t=n.data;t.unshift({id:0,type_name:"全部"}),e.list=n.data}})).catch((function(e){n.showToast({title:e,icon:"none",duration:2e3})}))},generateUUIDv4:function(){for(var n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],e="",t=0;t<18;t++){var o=Math.ceil(35*Math.random());e+=n[o]}return e},openQrcode:function(){var e=this,t=n.getStorageSync("userInfo");this.qrcode_url=s.default.state.imgUrl+"?type=2&key="+this.code+"&association_id="+t.association_id+"&random_number="+this.generateUUIDv4(),setTimeout((function(){e.show=!0}),500)},tn:function(e){n.navigateTo({url:e})},goBack:function(){getCurrentPages().length>1?n.navigateBack():n.redirectTo({url:"/pages/index/index"})}}};e.default=a}).call(this,t(2)["default"])},255:function(n,e,t){"use strict";t.r(e);var o=t(256),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=i.a},256:function(n,e,t){}},[[249,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/packageA/user/my_vip.js.map