1 line
11 KiB
Plaintext
1 line
11 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","data","isShowT","imgSrc","dataList","num","title","imgSrcP","shareFlag","computed","titleList","imgList","statusHeight","onShareAppMessage","path","imageUrl","success","fail","onShow","onLoad","uni","methods","shareEv","type","action","id","console","goPage","url"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,sBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCsC9sB;EACAC;IACA;MACAC;MACAC;MACAC,WACA;QAAAC;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,EACA;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACAC;MACA;IACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IACA;IACA;MACAP;MAAA;MACAQ;MAAA;MACAC;MAAA;MACAC;QACA;QACA;UACA;UACA;QACA;MACA;MACAC;QACA;QACA;UACA;QAAA,CACA;UACA;QAAA;MAEA;IACA;IACA;EACA;EACAC,2BAEA;EACAC;IACAC;EACA;EACAC;IACAC;MAAA;MAAA;MACA;QACA;MACA;QACA;QACA;UACA;UACA1B;YACAkB;YACAE;cACAI;cACA;cACA;gBAAAG;gBAAAC;gBAAAC;cAAA;gBAAAC;cAAA;cACA;cACA;YACA;YACAT;cACAG;cACA;YACA;UACA;QACA;UAAA;QAAA;MACA;IACA;IACAO;MACA;MACA;MACAP;QACAQ;MACA;IACA;EACA;AACA;AAAA,2B","file":"pagesB/sharingCenter/sharingCenter.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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: statusHeight+'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\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\tshareFlag:true\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\t// 底部标题\r\n\t\t\ttitleList() {\r\n\t\t\t\treturn this.$store.state.titleList \r\n\t\t\t},\r\n\t\t\t// 底部图标\r\n\t\t\timgList() {\r\n\t\t\t\treturn this.$store.state.imgList\r\n\t\t\t},\r\n\t\t\tstatusHeight() {\r\n\t\t\t\treturn this.$store.state.statusHeight\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\tonShow() {\r\n\t\t\t\r\n\t\t},\r\n\t\tonLoad(options) {\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},\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":""} |