hengmei-two/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/personalPoster/personalPoster.js.map

1 line
13 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesB/personalPoster/personalPoster.vue?10cf","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesB/personalPoster/personalPoster.vue?441c","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesB/personalPoster/personalPoster.vue?ee8e","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesB/personalPoster/personalPoster.vue?2943","uni-app:///pagesB/personalPoster/personalPoster.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,yH,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,uBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAA2H;AAC3H;AACkE;AACL;;;AAG7D;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,yFAAM;AACR,EAAE,kGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,6FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACnBA;AAAA;AAAA;AAAA;AAA21B,CAAgB,4yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyC/2B,uE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,aADA,EAEA,yCAFA,EAGA,UAHA,EAIA,cAJA,EAKA,aALA,EAMA,eANA,CAMA;AANA,MAQA,CAVA,EAWA,YACA;AACA,aAFA,uBAEA,CACA,mCACA,CAJA,EAKA;AACA,cANA,wBAMA,CACA,iCACA,CARA,EASA,YATA,0BASA,CACA,sCACA,CAXA,EAXA,EAwBA,MAxBA,kBAwBA,OAxBA,EAwBA,CACA,sFACA;AACA;AAAA,WACA,kBACA,mBACA,CACA,CA/BA,EAgCA,WACA,WADA,yBACA;AACA,2DACA,oBACA,gCACA,uCACA,uCACA,CAFA,EAGA,CACA,CANA,MAMA,wCACA,CARA,EAQA,6DARA,EASA,CAXA,EAYA,SAZA,qBAYA,KAZA,EAYA;AACA,uBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAHA,EAGA,KAHA,CAGA,mBAHA;AAIA;AACA,SANA,MAMA;AACA;AACA;AACA;AACA,OAXA,EAWA,KAXA,CAWA,0DAXA;AAYA,KA5BA;AA6BA,WA7BA,qBA6BA;AACA;AACA;AACA;AACA;AACA,2BADA;AAEA;AACA;AACA;AACA;AACA;AACA,WAPA;AAQA;AACA;AACA,WAVA;;AAYA,OAdA,MAcA;AACA,KA9CA;AA+CA,aA/CA,uBA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAHA,EAGA,KAHA,CAGA,mBAHA;AAIA,WALA;AAMA;AACA;AACA,SAZA,MAYA;AACA,OAfA,EAeA,8DAfA;AAgBA,KAnEA;AAoEA,YApEA,sBAoEA;AACA;AACA,KAtEA,EAhCA,E","file":"pagesB/personalPoster/personalPoster.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/personalPoster/personalPoster.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./personalPoster.vue?vue&type=template&id=bb8ea2e8&\"\nvar renderjs\nimport script from \"./personalPoster.vue?vue&type=script&lang=js&\"\nexport * from \"./personalPoster.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/personalPoster/personalPoster.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personalPoster.vue?vue&type=template&id=bb8ea2e8&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n $event.stopPropagation()\n _vm.showBtn = false\n }\n\n _vm.e1 = function($event) {\n $event.stopPropagation()\n _vm.showBtn = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personalPoster.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personalPoster.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<!-- 状态栏 -->\n\t\t<status-nav :titleVal=\"'二维码海报'\" :statusTitle=\"true\"></status-nav>\n\t\t<!-- 自定义二级分类 -->\n\t\t<!-- 列表 -->\n\t\t<view :style=\"{paddingTop: statusHeight+'px'}\" class=\"pad-zy20 pad-x180\">\n\t\t\t<view class=\"tc mar-s20 col6 fon28\">请选择海报背景后分享</view>\n\t\t\t<view v-if=\"imgList.length!=0\">\n\t\t\t\t<view class=\"mar-s20 disjbac fw\">\n\t\t\t\t\t<image lazy-load @tap=\"chooseImg(index)\" v-for=\"(item,index) in imgList\" :key=\"index\" class=\"width100 radius20 mar-x20\" :src=\"item\" style=\"width: 48.5%;max-height: 474rpx\" mode=\"aspectFill\" lazy-load></image>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 50%;\">\n\t\t\t\t<image class=\"zanw-img mar-x50\" src=\"/static/public/zanwn.png\" mode=\"aspectFill\"></image>\n\t\t\t\t<view class=\"fon24 col3 mar-s50\" style=\"margin-top: 30%;\">暂无内容</view>\n\t\t\t</view>\n\t\t\t<!-- 预览弹框 -->\n\t\t\t<view v-if=\"showBtn\" @tap.stop=\"showBtn=false\" class=\"posAll disjcac fc pad-zy50\" style=\"z-index: 11;\">\n\t\t\t\t<image lazy-load :src=\"imgSrc\" @tap.stop=\"showBtn=true\" class=\"radius20\" style=\"width: 80%;\" mode=\"widthFix\"></image>\n\t\t\t\t<!-- 分享按钮 -->\n\t\t\t\t<view @tap.stop=\"shareEv\" class=\"disjcac radius20 posixzy\" style=\"height: 90rpx;margin: 20rpx 80rpx;background-color: #38CE51;line-height: 90rpx;bottom: 40rpx;\">\n\t\t\t\t\t<view class=\"disac\">\n\t\t\t\t\t\t<image src=\"/static/public/sharef.png\" style=\"width: 54rpx;height: 54rpx;\" mode=\"\"></image>\n\t\t\t\t\t\t<view class=\"fon40 bold colf mar-z10\">分享给好友</view>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</view> \n\t\t</view>\n\t\t<!-- 弹框 -->\n\t\t<pu-po :isShowT=\"imgList.length==0 && isHaib\" :contentVal=\"'立即生成创意海报'\" :clearVal=\"'暂不生成'\" :comfrimVal=\"'立即生成'\" @comfirmev=\"comfirmev\" @cancleev=\"cancleev\"></pu-po>\n\t\t<!-- 底部客服 -->\n\t\t<!-- <public-customer :nbottom=\"100\"></public-customer> -->\n\t\t<!-- 用户信息授权,手机号授权 -->\n\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\n\t\t<!-- 底部tab -->\n\t\t<foot-tab :titleList=\"titleList\" :imgList=\"tabimgList\" :newcurrent='-1'></foot-tab>\n\t</view>\n</template>\n\n<script>\n\timport {base64ToPath} from '@/jsFile/base64-src.js';\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tisShowT:true,\n\t\t\t\timgList:uni.getStorageSync('imgSrcList'),\n\t\t\t\timgSrc:'',\n\t\t\t\tshowBtn:false,\n\t\t\t\tisHaib:false,\n\t\t\t\tshareFlag:true//是否允许点击分享\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 底部标题\n\t\t\ttitleList() {\n\t\t\t\treturn this.$store.state.titleList \n\t\t\t},\n\t\t\t// 底部图标\n\t\t\ttabimgList() {\n\t\t\t\treturn this.$store.state.imgList\n\t\t\t},\n\t\t\tstatusHeight() {\n\t\t\t\treturn this.$store.state.statusHeight\n\t\t\t}\n\t\t},\n\t\tonLoad(options) {\n\t\t\tif(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){\n\t\t\t\t//如果还没有生成海报\n\t\t\t\tif(uni.getStorageSync('imgSrcList')!='') this.imgSrcList = uni.getStorageSync('imgSrcList')//弹框关闭\n\t\t\t\telse this.imgList = []\n\t\t\t\tthis.checkPoster();\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tcheckPoster(){//查询海报模板\n\t\t\t\tthis.$requst.get('user/poster').then(res=>{\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tif(res.data.list.length!=0){\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\n\t\t\t\t\t\t\t\tthis.imgList.push(this.$http + item);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t} else this.$toolAll.tools.showToast(res.msg);\n\t\t\t\t},error=>{this.$toolAll.tools.showToast(error.msg);})\n\t\t\t},\n\t\t\tchooseImg(index){//选择海报模板,并生成海报\n\t\t\t\tthis.imgSrc = '';\n\t\t\t\tthis.showBtn = true;\n\t\t\t\tthis.$toolAll.tools.showToast('正在生成海报...','loading',10000);\n\t\t\t\tthis.$requst.post('user/poster-info',{poster_src:this.imgList[index]}).then(res=>{\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tbase64ToPath(res.data.poster).then(path => {\n\t\t\t\t\t\t\tthis.imgSrc = path;\n\t\t\t\t\t\t\tuni.setStorageSync('imgSrcP',path);\n\t\t\t\t\t\t}).catch(error => {})\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('海报生成成功','none',1500);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('海报生成失败','none',1500);\n\t\t\t\t\t\tthis.showBtn = false;\n\t\t\t\t\t} \n\t\t\t\t}).catch(err=>{this.$toolAll.tools.showToast(err.msg);})\n\t\t\t},\n\t\t\tshareEv(){\n\t\t\t\tthis.$toolAll.tools.showToast('正在调起分享...');\n\t\t\t\tif(this.shareFlag){\n\t\t\t\t\tthis.shareFlag = false;\n\t\t\t\t\twx.showShareImageMenu({\n\t\t\t\t\t path: this.imgSrc,\n\t\t\t\t\t\tsuccess:(res=>{\n\t\t\t\t\t\t\tthis.shareFlag = true;\n\t\t\t\t\t\t\tthis.$requst.post('user/record',{type:'other',action:'share',id:''}).then(res=>{console.log('分享成功:',res);},error=>{})\n\t\t\t\t\t\t\t// 调用tools.js中的种植埋点事件\n\t\t\t\t\t\t\tthis.$toolAll.tools.plantPoint(4);\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tfail:(err=>{\n\t\t\t\t\t\t\tthis.shareFlag = true;\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t} else {this.$toolAll.tools.showToast('请勿重复点击');}\n\t\t\t},\n\t\t\tcomfirmev(){//立即生成事件\n\t\t\t\tthis.$toolAll.tools.showToast('生成中...')\n\t\t\t\tthis.isShowT = false\n\t\t\t\t// 单张海报\n\t\t\t\tthis.$requst.get('user/personal-poster').then(res=>{\n\t\t\t\t\t// console.log('生成个人海报成功:',res);\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tlet newArr = [];\n\t\t\t\t\t\tnewArr.push(res.data.poster)\n\t\t\t\t\t\tuni.hideToast()\n\t\t\t\t\t\tnewArr.forEach(item=>{\n\t\t\t\t\t\t\tbase64ToPath(item).then(path => {\n\t\t\t\t\t\t\t\tthis.imgList.push(path)\n\t\t\t\t\t\t\t\tuni.setStorageSync('imgSrcList',this.imgList)\n\t\t\t\t\t\t\t}).catch(error => {})\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('生成海报成功');\n\t\t\t\t\t\tthis.isHaib = false\n\t\t\t\t\t} else this.$toolAll.tools.showToast(res.msg);\n\t\t\t\t},error=>{this.$toolAll.tools.showToast(error.msg);})\n\t\t\t},\n\t\t\tcancleev(){//暂不生成事件\n\t\t\t\tuni.navigateBack({delta:1})\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style>\n</style>\n"],"sourceRoot":""}