2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/pizz_info"],{123:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var o=i(n(124));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},124:function(t,e,n){"use strict";n.r(e);var i=n(125),o=n(127);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);var c,r=n(42),s=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);s.options.__file="pages/index/pizz_info.vue",e["default"]=s.exports},125:function(t,e,n){"use strict";n.r(e);var i=n(126);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},126:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return o})),n.d(e,"staticRenderFns",(function(){return c})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"components",(function(){return i}));try{i={tnNavBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(n.bind(null,406))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var t=this,e=t.$createElement;t._self._c},a=!1,c=[];o._withStripped=!0},127:function(t,e,n){"use strict";n.r(e);var i=n(128),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},128:function(t,e,n){"use strict";(function(t,i){var o=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(33),c=o(n(30)),r={data:function(){return{show:!1,currentIndex:-1,tabbarList:[{title:"首页",activeIcon:"/static/01_1.png",inactiveIcon:"/static/01.png"},{title:"通讯录",activeIcon:"/static/02_2.png",inactiveIcon:"/static/02.png"},{title:"青企圈",activeIcon:"/static/03_3.png",inactiveIcon:"/static/03.png"},{title:"个人中心",activeIcon:"/static/04_4.png",inactiveIcon:"/static/04.png"}],topCurrent:0,swiperList:[{url:"/static/banner1.jpg"}],tab_list:[{name:"理事会"},{name:"监事会"}],list:[{name:"协会简介"},{name:"组织架构"},{name:"规章制度"},{name:"入会须知"}],current:0,cardCur:0,info:{},apiImgUrl:this.$store.state.imgUrl,qrcode_url:"",architecture:[],association_id:0,userInfo:{},type:1,tab_current:0}},onLoad:function(t){console.log(t),this.association_id=t.id,this.getAssociationInfo()},methods:{openQrcode:function(){t.showLoading({title:"生成中",mask:!0});var e=this;t.request({url:c.default.state.apiUrl+"/move/login/getUnlimitedQRCode",method:"POST",data:{path:"pages/index/index",scene:"gid="+this.association_id},responseType:"arraybuffer",arraybuffer:!0,success:function(n){var i="data:image/png;base64,"+t.arrayBufferToBase64(n.data);e.base64ToImage(i)}})},base64ToImage:function(e){var n=this,o=t.getFileSystemManager(),a=i.env.USER_DATA_PATH+"/qrcode.jpg",c=e.split(",")[1];o.writeFile({filePath:a,data:c,encoding:"base64",success:function(e){n.qrcode_url=a,console.log("图片保存成功",a),n.show=!0,t.hideLoading()},fail:function(e){console.error("图片保存失败",e),t.hideLoading()}})},saveBase64:function(){i.saveImageToPhotosAlbum({filePath:this.qrcode_url,success:function(t){i.showToast({title:"保存成功"})},fail:function(t){console.log(t,"失败")}})},tab_change:function(t){this.tab_current=t,this.type=t+1,this.architecture=[],this.getArchitectureList()},getArchitectureList:function(){var e=this;(0,a.architectureList)({association_id:this.association_id,type:this.type}).then((function(t){console.log(t),1==t.code&&(e.architecture=t.data)})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getAssociationInfo:function(){var e=this;console.log("discovery"),(0,a.associationInfo)({association_id:this.association_id}).then((function(t){if(console.log(t),1==t.code){var n=t.data;-1!=n.association_desc.indexOf("<img")&&(n.association_desc=getApp().addWidthToImages(n.association_desc)),e.info=n}})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},openUrl:function(e){t.navigateTo({url:e})},goBack:function(){getCurrentPages().length>1?t.navigateBack():t.redirectTo({url:"/pages/index/index"})},switchTabbar:function(e){console.log(e),t.$emit("depId",{index:e}),t.navigateBack()},change:function(t){this.current=t}}};e.default=r}).call(this,n(2)["default"],n(1)["default"])}},[[123,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/pizz_info.js.map
|