2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/packageA/user/my_invite"],{203:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var i=o(t(204));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},204:function(e,n,t){"use strict";t.r(n);var o=t(205),i=t(207);for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t(209);var r,s=t(42),u=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"30362723",null,!1,o["components"],r);u.options.__file="pages/packageA/user/my_invite.vue",n["default"]=u.exports},205:function(e,n,t){"use strict";t.r(n);var o=t(206);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"]}))},206:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return r})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"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))},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))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.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},a=!1,r=[];i._withStripped=!0},207:function(e,n,t){"use strict";t.r(n);var o=t(208),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},208:function(e,n,t){"use strict";(function(e,o){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t(18)),r=t(33),s=i(t(30)),u={data:function(){return{apiImgUrl:this.$store.state.imgUrl,apiUpUrl:this.$store.state.apiUrl,show:!1,topCurrent:0,uid:0,userInfo:{},qrcode_url:"",inviteList:[],inviteCount:0,page:1}},onShareAppMessage:function(){return{title:this.userInfo.nikename+"邀请你加入【"+this.userInfo.association_name+"】",path:"/pages/index/index?id="+this.uid,imageUrl:this.apiImgUrl+this.userInfo.association_image}},onShareTimeline:function(){return{title:this.userInfo.nikename+"邀请你加入【"+this.userInfo.association_name+"】",path:"/pages/index/index?id="+this.uid,imageUrl:this.apiImgUrl+this.userInfo.association_image}},onLoad:function(){var n=e.getStorageSync("uid");this.uid=n,this.getUserInfo(),this.getList()},onReachBottom:function(){this.page+=1,this.getList()},methods:{saveBase64:function(){o.saveImageToPhotosAlbum({filePath:this.qrcode_url,success:function(e){o.showToast({title:"保存成功"})},fail:function(e){console.log(e,"失败")}})},openQrcode:function(){e.showLoading({title:"生成中",mask:!0});var n=this;e.request({url:s.default.state.apiUrl+"/move/login/getUnlimitedQRCode",method:"POST",data:{path:"pages/index/apply_in",scene:"id="+this.uid+"&association_id="+this.userInfo.association_id},responseType:"arraybuffer",arraybuffer:!0,success:function(t){var o="data:image/png;base64,"+e.arrayBufferToBase64(t.data);n.base64ToImage(o)}})},base64ToImage:function(n){var t=this,i=e.getFileSystemManager(),a=o.env.USER_DATA_PATH+"/qrcode.jpg",r=n.split(",")[1];i.writeFile({filePath:a,data:r,encoding:"base64",success:function(n){t.qrcode_url=a,console.log("图片保存成功",a),t.show=!0,e.hideLoading()},fail:function(n){console.error("图片保存失败",n),e.hideLoading()}})},getUserInfo:function(){var n=this;(0,r.getUserIndex)({member_b_id:this.uid,member_id:this.uid}).then((function(e){console.log(e),1==e.code&&(n.userInfo=e.data)})).catch((function(n){e.showToast({title:n,icon:"none",duration:2e3})}))},getList:function(){var n=this;console.log(1),(0,r.getrecommendationList)({page:this.page,size:10}).then((function(e){var t;(console.log(e),1==e.code)&&((t=n.inviteList).push.apply(t,(0,a.default)(e.data.ret)),n.inviteCount=e.data.count)})).catch((function(n){e.showToast({title:n,icon:"none",duration:2e3})}))},tn:function(n){e.navigateTo({url:n})},goBack:function(){getCurrentPages().length>1?e.navigateBack():e.redirectTo({url:"/pages/index/index"})}}};n.default=u}).call(this,t(2)["default"],t(1)["default"])},209:function(e,n,t){"use strict";t.r(n);var o=t(210),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},210:function(e,n,t){}},[[203,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/packageA/user/my_invite.js.map
|