1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/sharingCenter/sharingCenter.vue?a894","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/sharingCenter/sharingCenter.vue?68cb","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/sharingCenter/sharingCenter.vue?a768","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/sharingCenter/sharingCenter.vue?d7af","uni-app:///pagesB/sharingCenter/sharingCenter.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,sH,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,sBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAA0H;AAC1H;AACiE;AACL;;;AAG5D;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,wFAAM;AACR,EAAE,iGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,4FAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACbA;AAAA;AAAA;AAAA;AAA0rB,CAAgB,yqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsC9sB;AACA,MADA,kBACA;AACA;AACA,0DADA;AAEA,oDAFA,EAEA;AACA,oBAHA;AAIA,yCAJA;AAKA;AACA,+BADA;AAEA,gCAFA;AAGA,iCAHA,CALA;;AAUA,4CAVA;AAWA,mBAXA,EAWA;AACA,iBAZA,EAYA;AACA,qBAbA;;AAeA,GAjBA;AAkBA,mBAlBA,6BAkBA,OAlBA,EAkBA;AACA;AACA;AACA,mBADA,EACA;AACA,wGAFA,EAEA;AACA,yBAHA,EAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAVA;AAWA;AACA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA,OAlBA;;AAoBA;AACA,GAzCA;AA0CA,QA1CA,kBA0CA,OA1CA,EA0CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDADA;AAEA,4DAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aA1BA;AA2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAvCA,EAuCA,mBAvCA;AAwCA,GArFA;AAsFA;AACA,WADA,qBACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA,8BADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aARA;AASA;AACA;AACA;AACA,aAZA;;AAcA,SAhBA,MAgBA;AACA;AACA,KAxBA;AAyBA,UAzBA,kBAyBA,KAzBA,EAyBA;AACA;AACA;AACA;AACA,mBADA;;AAGA,KA/BA,EAtFA,E","file":"pagesB/sharingCenter/sharingCenter.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/sharingCenter/sharingCenter.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./sharingCenter.vue?vue&type=template&id=3a902ae0&\"\nvar renderjs\nimport script from \"./sharingCenter.vue?vue&type=script&lang=js&\"\nexport * from \"./sharingCenter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HbuilderX/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/sharingCenter/sharingCenter.vue\"\nexport default component.exports","export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sharingCenter.vue?vue&type=template&id=3a902ae0&\"","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 _vm.isShowT = false\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sharingCenter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sharingCenter.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<status-nav :titleVal=\"'分享中心'\" :statusTitle=\"true\"></status-nav>\r\n\t\t<!-- 自定义二级分类 -->\r\n\t\t<!-- 列表 -->\r\n\t\t<view :style=\"{paddingTop: statusHNH+'px'}\" class=\"pad-zy32\">\r\n\t\t\t<view class=\"radius20 pad20 bacf mar-s20 col3\">\r\n\t\t\t\t<view class=\"fon28 bold mar-x40 pad-z10\">我的分享</view>\r\n\t\t\t\t<view class=\"disja\">\r\n\t\t\t\t\t<view @tap=\"goPage(index)\" class=\"disac fc flexs width33\" v-for=\"(item,index) in dataList\" :key=\"index\">\r\n\t\t\t\t\t\t<view class=\"fon36 bold clips1\">{{item.num}}</view>\r\n\t\t\t\t\t\t<view class=\"fon26 mar-s25\">{{item.title}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 分享按钮 -->\r\n\t\t\t<view @tap=\"shareEv\" class=\"disjcac radius20 posir\" style=\"height: 90rpx;margin: 70rpx 80rpx;background-color: #38CE51;line-height: 90rpx;\">\r\n\t\t\t\t<view class=\"disac\"> \r\n\t\t\t\t\t<image src=\"/static/public/sharef.png\" style=\"width: 54rpx;height: 54rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t<view class=\"fon40 bold colf mar-z10\">分享给好友</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- <button open-type=\"share\" class=\"posia width100\" style=\"opacity: 0;\">分享给好友</button> -->\r\n\t\t\t\t<!-- <button @tap=\"shareEv\" class=\"posia width100\" style=\"opacity: 0;\">分享给好友</button> -->\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 弹框 -->\r\n\t\t<pu-po :isShowT=\"isShowT\" :contentVal=\"'暂未开放此功能,请耐心等候'\" :isCenter=\"true\" :comfrimVal=\"'好的'\" @comfirmev=\"isShowT=false\"></pu-po>\r\n\t\t<!-- 底部客服 -->\r\n\t\t<!-- <public-customer :nbottom=\"100\"></public-customer> -->\r\n\t\t<!-- 用户信息授权,手机号授权 -->\r\n\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\r\n\t\t<!-- 底部tab -->\r\n\t\t<foot-tab :titleList=\"titleList\" :imgList=\"imgList\" :newcurrent='-1'></foot-tab>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHNH:uni.getStorageSync('electric_nav_height'),\r\n\t\t\t\tpublicColor:uni.getStorageSync('publicColor'),//主题颜色\r\n\t\t\t\tisShowT:false,\r\n\t\t\t\timgSrc:'/static/public/shareh.png',\r\n\t\t\t\tdataList:[\r\n\t\t\t\t\t{num:'0',title:'积分'},\r\n\t\t\t\t\t{num:'0',title:'分享人'},\r\n\t\t\t\t\t{num:'0',title:'分享订单'},\r\n\t\t\t\t],\r\n\t\t\t\timgSrcP:uni.getStorageSync('imgSrcP'),\r\n\t\t\t\ttitleList:[],//tab标题\r\n\t\t\t\timgList:[],//tab图标\r\n\t\t\t\tshareFlag:true\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShareAppMessage(options) {\r\n\t\t var ya = this;\r\n\t\t \tvar shareObj = {\r\n\t\t title: '恒美植发', // 默认是小程序的名称(可以写slogan等)\r\n\t\t path: `/pagesB/sharingCenter/sharingCenter?invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径\r\n\t\t imageUrl: ya.imgSrc, //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4\r\n\t\t success: function(res){\r\n\t\t // 转发成功之后的回调\r\n\t\t if(res.errMsg == 'shareAppMessage:ok'){\r\n\t\t\t\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\t\t\t\tthis.$toolAll.tools.plantPoint(4);\r\n\t\t }\r\n\t\t },\r\n\t\t fail: function(res){\r\n\t\t // 转发失败之后的回调\r\n\t\t if(res.errMsg == 'shareAppMessage:fail cancel'){\r\n\t\t // 用户取消转发\r\n\t\t }else if(res.errMsg == 'shareAppMessage:fail'){\r\n\t\t // 转发失败,其中 detail message 为详细失败信息\r\n\t\t }\r\n\t\t }\r\n\t\t };\r\n\t\t return shareObj;\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tif(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){this.$toolAll.tools.isLogin()}\r\n\t\t\tuni.getStorageSync('shareAll')!='' ? this.dataList[1].num = uni.getStorageSync('shareAll').share_users.total : this.dataList[1].num = 0\r\n\t\t\tthis.$requst.post('index/mini-program-setting').then(res=>{\r\n\t\t\t\t// log('数据:',res);\r\n\t\t\t\tif(res.code==0){\r\n\t\t\t\t\tif(res.data.length!=0){\r\n\t\t\t\t\t\tif(res.data.footBar.length!=0){//底部导航\r\n\t\t\t\t\t\t\tres.data.footBar.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet newName = item.name\r\n\t\t\t\t\t\t\t\tlet newObj = {\r\n\t\t\t\t\t\t\t\t\ticonPath:this.$http + item.icon[0],\r\n\t\t\t\t\t\t\t\t\tselectedIconPath:this.$http + item.icon[1],\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"home\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[0] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[0] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"category\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[1] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[1] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"service\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[2] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[2] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"shop\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[3] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[3] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"my\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[4] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[4] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tuni.setStorageSync('footTitle',this.titleList)\r\n\t\t\t\t\t\t\tuni.setStorageSync('footimg',this.imgList)\r\n\t\t\t\t\t\t\tthis.titleList = uni.getStorageSync('footTitle')\r\n\t\t\t\t\t\t\tthis.imgList = uni.getStorageSync('footimg')\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},error=>{})\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tshareEv(){//分享事件\r\n\t\t\t\tif(this.imgSrcP==''){\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('请先前往个人海报申请海报')\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('正在调起分享...','none',200000);\r\n\t\t\t\t\tif(this.shareFlag){\r\n\t\t\t\t\t\tthis.shareFlag = false;\r\n\t\t\t\t\t\twx.showShareImageMenu({\r\n\t\t\t\t\t\t path: this.imgSrcP,\r\n\t\t\t\t\t\t\tsuccess:(res=>{\r\n\t\t\t\t\t\t\t\tuni.hideToast();\r\n\t\t\t\t\t\t\t\tthis.shareFlag = true;\r\n\t\t\t\t\t\t\t\tthis.$requst.post('user/record',{type:'other',action:'share',id:''}).then(res=>{console.log('分享成功:',res);},error=>{})\r\n\t\t\t\t\t\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.plantPoint(4);\r\n\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\tfail:(err=>{\r\n\t\t\t\t\t\t\t\tuni.hideToast();\r\n\t\t\t\t\t\t\t\tthis.shareFlag = true;\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {this.$toolAll.tools.showToast('请勿重复点击');}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tgoPage(index){\r\n\t\t\t\tlet newUrl = ''\r\n\t\t\t\tif(index==1) newUrl = '/pagesB/mysharer/mysharer'\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:newUrl\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n</style>\r\n"],"sourceRoot":""} |