You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
19 KiB
1 lines
19 KiB
{"version":3,"sources":["webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/components/wanl-share/wanl-share.vue?e30c","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/components/wanl-share/wanl-share.vue?e497","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/components/wanl-share/wanl-share.vue?128b","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/components/wanl-share/wanl-share.vue?a203","uni-app:///components/wanl-share/wanl-share.vue","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/components/wanl-share/wanl-share.vue?df24","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/components/wanl-share/wanl-share.vue?9332"],"names":["name","props","scrollAnimation","type","default","shareType","shareTitle","shareText","image","href","isReport","data","providerList","created","uni","service","success","fail","content","showCancel","methods","share","e","shareOPtions","provider","scene","pages","page","id","path","webUrl","close","complaint"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;AACa;;;AAGtE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAomB,CAAgB,8nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4BxnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA,eAaA;EACAA;EACAC;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;IACAM;MACAP;MACAC;IACA;EACA;EACAO;IACA;MACAC;IACA;EACA;EACAC;IAAA;IACAC;MACAC;MACAC;QACA;QA8CAL;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;QAAA,CACA;QACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;QAAA;QAEA;UACA;QACA;MACA;MACAM;QACAH;UACAI;UACAC;QACA;MACA;IACA;EACA;EACAC;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA,MACAC;kBAAA;kBAAA;gBAAA;gBACA;gBAAA;gBAAA;cAAA;gBAAA,MACAA;kBAAA;kBAAA;gBAAA;gBACA;gBAAA;gBAAA;cAAA;gBAAA,MACAA;kBAAA;kBAAA;gBAAA;gBACA;gBAAA;gBAAA;cAAA;gBAAA,MAEA;kBAAA;kBAAA;gBAAA;gBACAR;kBACAI;kBACAC;gBACA;gBAAA;cAAA;gBAAA,MAIA;kBAAA;kBAAA;gBAAA;gBACAL;kBACAI;kBACAC;gBACA;gBAAA;cAAA;gBAIA;gBACAI;kBACAC;kBACAC;kBAAA;kBACAtB;kBACAa;oBACAF;sBACAI;sBACAC;oBACA;kBACA;kBACAF;oBACAH;sBACAI;sBACAC;oBACA;kBACA;gBACA;gBAAA,cAEA;gBAAA,gCACA,yBAMA,yBAGA,yBAGA;gBAAA;cAAA;gBAXAI;gBACAA;gBACAA;gBACAA;gBAAA;cAAA;gBAGAA;gBAAA;cAAA;gBAGAA;gBAAA;cAAA;gBAGAG;gBACAC;gBACAJ;gBACAA;gBACAA;kBACAK;kBACAC;kBAAA;kBACAC;kBACA3B;gBACA;gBAAA;cAAA;gBAAA;cAAA;gBAKA;gBACA;gBACA;gBACA;kBAAA;kBACAoB;kBACAA;gBACA;gBACAT;cAAA;gBAEA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAiB;MACA;IACA;IACA;IACAC;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACnQA;AAAA;AAAA;AAAA;AAAs3B,CAAgB,u3BAAG,EAAC,C;;;;;;;;;;;ACA14B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/wanl-share/wanl-share.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./wanl-share.vue?vue&type=template&id=c414f0f8&\"\nvar renderjs\nimport script from \"./wanl-share.vue?vue&type=script&lang=js&\"\nexport * from \"./wanl-share.vue?vue&type=script&lang=js&\"\nimport style0 from \"./wanl-share.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\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 = \"components/wanl-share/wanl-share.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./wanl-share.vue?vue&type=template&id=c414f0f8&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./wanl-share.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./wanl-share.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<view class=\"wanl-share\">\r\n\t\t\t<view class=\"head\">\r\n\t\t\t\t<view class=\"content\"><view class=\"text-lg\">分享到</view></view>\r\n\t\t\t</view>\r\n\t\t\t<scroll-view class=\"scroll-x solid-bottom\" scroll-x=\"true\" show-scrollbar=\"false\" :scroll-left=\"scrollAnimation\" scroll-with-animation>\r\n\t\t\t\t<!-- #ifdef MP -->\r\n\t\t\t\t<view class=\"scroll-item\">\r\n\t\t\t\t\t<button open-type=\"share\">\r\n\t\t\t\t\t\t<view class=\"icons bg-green\"><text class=\"wlIcon-31fenxiang\"></text></view>\r\n\t\t\t\t\t\t<view class=\"project text-sm\"><text>分享</text></view>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- #endif -->\r\n\t\t\t\t<view class=\"scroll-item\" v-for=\"(value, index) in providerList\" :key=\"index\" v-if=\"value\" @tap=\"share(value)\">\r\n\t\t\t\t\t<view class=\"icons\" :class=\"value.background\"><text :class=\"value.icon\"></text></view>\r\n\t\t\t\t\t<view class=\"project text-sm\">\r\n\t\t\t\t\t\t<text>{{ value.name }}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n\t\t\t<view class=\"footer\" @tap=\"close\"><text>取消</text></view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t/**\r\n\t * WanlShare 分享 \r\n\t * @description 分享组件 深圳前海万联科技有限公司 https://www.wanlshop.com(除万联官方内嵌系统,未经授权严禁使用)\r\n\t * @著作权:WanlShop 登记号:2020SR0255711 版本:V1.0.0\r\n\t * @property {Number} scrollAnimation 滚动位置\r\n\t * @property {Number} shareType 分享类型 0.图文 1.纯文字 2.纯图片 5.小程序\r\n\t * @property {String} shareTitle 分享标题\r\n\t * @property {String} shareText 分享详情\r\n\t * @property {String} image 分享图片 如果是图文分享,且是ios平台,20kb\r\n\t * @property {String} href 分享链接\r\n\t * @event {Function} change 关闭弹窗\r\n\t * @example <wanl-share :scrollAnimation=\"scrollAnimation\" shareTitle=\"\" shareText=\"\" image=\"\" href=\"\" @change=\"hideModal\"/>\r\n\t */\r\n\texport default {\r\n\t\tname: 'WanlShare',\r\n\t\tprops: {\r\n\t\t\tscrollAnimation: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 300\r\n\t\t\t},\r\n\t\t\tshareType: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tshareTitle: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tshareText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\timage: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\thref: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tisReport: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tproviderList: []\r\n\t\t\t};\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tuni.getProvider({\r\n\t\t\t\tservice: 'share',\r\n\t\t\t\tsuccess: e => {\r\n\t\t\t\t\tlet data = [];\r\n\t\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\t\tfor (let i = 0; i < e.provider.length; i++) {\r\n\t\t\t\t\t\tswitch (e.provider[i]) {\r\n\t\t\t\t\t\t\tcase 'weixin':\r\n\t\t\t\t\t\t\t\tdata.push(\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tname: '微信好友',\r\n\t\t\t\t\t\t\t\t\t\tid: 'weixin',\r\n\t\t\t\t\t\t\t\t\t\ticon: 'wlIcon-WeChat',\r\n\t\t\t\t\t\t\t\t\t\tbackground: 'bg-green',\r\n\t\t\t\t\t\t\t\t\t\tsort: 0\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tname: '微信朋友圈',\r\n\t\t\t\t\t\t\t\t\t\tid: 'weixin',\r\n\t\t\t\t\t\t\t\t\t\ticon: 'wlIcon-pengyouquan',\r\n\t\t\t\t\t\t\t\t\t\tbackground: 'bg-green',\r\n\t\t\t\t\t\t\t\t\t\ttype: 'WXSenceTimeline',\r\n\t\t\t\t\t\t\t\t\t\tsort: 1\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'sinaweibo':\r\n\t\t\t\t\t\t\t\tdata.push({\r\n\t\t\t\t\t\t\t\t\tname: '新浪微博',\r\n\t\t\t\t\t\t\t\t\tid: 'sinaweibo',\r\n\t\t\t\t\t\t\t\t\ticon: 'wlIcon-WeiBo',\r\n\t\t\t\t\t\t\t\t\tbackground: 'red',\r\n\t\t\t\t\t\t\t\t\tsort: 2\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'qq':\r\n\t\t\t\t\t\t\t\tdata.push({\r\n\t\t\t\t\t\t\t\t\tname: 'QQ',\r\n\t\t\t\t\t\t\t\t\tid: 'qq',\r\n\t\t\t\t\t\t\t\t\ticon: 'wlIcon-QQ',\r\n\t\t\t\t\t\t\t\t\tbackground: 'blue',\r\n\t\t\t\t\t\t\t\t\tsort: 3\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\tdata.push(\r\n\t\t\t\t\t\t// {\r\n\t\t\t\t\t\t// \tname: '生成海报',\r\n\t\t\t\t\t\t// \tid: 'poster',\r\n\t\t\t\t\t\t// \ticon: 'wlIcon-classify',\r\n\t\t\t\t\t\t// \tbackground: 'gray',\r\n\t\t\t\t\t\t// \tsort: 4\r\n\t\t\t\t\t\t// },\r\n\t\t\t\t\t\t// {\r\n\t\t\t\t\t\t// \tname: '链接',\r\n\t\t\t\t\t\t// \tid: 'link',\r\n\t\t\t\t\t\t// \ticon: 'wlIcon-lianjie',\r\n\t\t\t\t\t\t// \tbackground: 'gray',\r\n\t\t\t\t\t\t// \tsort: 5\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t);\r\n\t\t\t\t\tif(this.isReport){\r\n\t\t\t\t\t\t// data.push(\r\n\t\t\t\t\t\t// \t{\r\n\t\t\t\t\t\t// \t\tname: '举报',\r\n\t\t\t\t\t\t// \t\tid: 'report',\r\n\t\t\t\t\t\t// \t\ticon: 'wlIcon-jubao',\r\n\t\t\t\t\t\t// \t\tbackground: 'gray',\r\n\t\t\t\t\t\t// \t\tsort: 6\r\n\t\t\t\t\t\t// \t}\r\n\t\t\t\t\t\t// );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.providerList = data.sort((x, y) => {\r\n\t\t\t\t\t\treturn x.sort - y.sort;\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tfail: e => {\r\n\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\tcontent: '获取分享通道失败',\r\n\t\t\t\t\t\tshowCancel: false\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync share(e) {\r\n\t\t\t\tif (e.id == 'poster') {\r\n\t\t\t\t\tthis.$wanlshop.to('/pages/user/qrcode/qrcode?url='+encodeURIComponent(this.href));\r\n\t\t\t\t} else if (e.id == 'link') {\r\n\t\t\t\t\tthis.$wanlshop.copy(this.href);\r\n\t\t\t\t} else if (e.id == 'report') {\r\n\t\t\t\t\tthis.complaint();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!this.shareTitle && (this.shareType === 1 || this.shareType === 0)) {\r\n\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\tcontent: '分享内容不能为空',\r\n\t\t\t\t\t\t\tshowCancel: false\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!this.image && (this.shareType === 2 || this.shareType === 0)) {\r\n\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\tcontent: '分享图片不能为空',\r\n\t\t\t\t\t\t\tshowCancel: false\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// 开始分享\r\n\t\t\t\t\tlet shareOPtions = {\r\n\t\t\t\t\t\tprovider: e.id,\r\n\t\t\t\t\t\tscene: e.type && e.type === 'WXSenceTimeline' ? 'WXSenceTimeline' : 'WXSceneSession', //WXSceneSession”分享到聊天界面,“WXSenceTimeline”分享到朋友圈,“WXSceneFavorite”分享到微信收藏 \r\n\t\t\t\t\t\ttype: this.shareType,\r\n\t\t\t\t\t\tsuccess: (e) => {\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\tcontent: '已分享',\r\n\t\t\t\t\t\t\t\tshowCancel:false\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tfail: (e) => {\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\tcontent: e.errMsg,\r\n\t\t\t\t\t\t\t\tshowCancel:false\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch (this.shareType){\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\tshareOPtions.summary = this.shareText;\r\n\t\t\t\t\t\t\tshareOPtions.imageUrl = this.image;\r\n\t\t\t\t\t\t\tshareOPtions.title = this.shareTitle;\r\n\t\t\t\t\t\t\tshareOPtions.href = this.href;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tshareOPtions.summary = this.shareText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tshareOPtions.imageUrl = this.image;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\t\tvar pages = getCurrentPages(); \r\n\t\t\t\t\t\t\tvar page = (pages[pages.length - 1]).route; \r\n\t\t\t\t\t\t\tshareOPtions.imageUrl = this.image ? this.image : $wanlshop.appstc('/qrcode/logo.png');\r\n\t\t\t\t\t\t\tshareOPtions.title = this.shareTitle;\r\n\t\t\t\t\t\t\tshareOPtions.miniProgram = {\r\n\t\t\t\t\t\t\t\tid: this.$store.state.common.appConfig.mp_weixin_id,\r\n\t\t\t\t\t\t\t\tpath: page, //微信小程序ID\r\n\t\t\t\t\t\t\t\twebUrl: this.href,\r\n\t\t\t\t\t\t\t\ttype:0\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if(shareOPtions.type === 0 && plus.os.name === 'iOS'){//如果是图文分享,且是ios平台,则压缩图片 \r\n\t\t\t\t\t// \tshareOPtions.imageUrl = await this.compress();\r\n\t\t\t\t\t// }\r\n\t\t\t\t\tif(shareOPtions.type === 1 && shareOPtions.provider === 'qq'){//如果是分享文字到qq,则必须加上href和title\r\n\t\t\t\t\t\tshareOPtions.href = this.href;\r\n\t\t\t\t\t\tshareOPtions.title = this.shareTitle;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.share(shareOPtions);\r\n\t\t\t\t}\r\n\t\t\t\tthis.close();\r\n\t\t\t},\r\n\t\t\t// 关闭模态框\r\n\t\t\tclose() {\r\n\t\t\t\tthis.$emit('change');\r\n\t\t\t},\r\n\t\t\t// 举报商品\r\n\t\t\tcomplaint(){\r\n\t\t\t\tthis.$emit('change','complaint');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n</script>\r\n<style>\r\n\t/* 分享 */\r\n\t.wanl-share {\r\n\t\tmin-height: 50rpx;\r\n\t\tpadding-bottom: 0px;\r\n\t\tpadding-bottom: env(safe-area-inset-bottom);\r\n\t}\r\n\t.wanl-share .head {\r\n\t\tpadding: 25rpx 25rpx 10rpx 25rpx;\r\n\t}\r\n\t.wanl-share .head .content {\r\n\t\tjustify-content: left;\r\n\t\tmargin-left: 16rpx;\r\n\t}\r\n\t.wanl-share .scroll-x {\r\n\t\twhite-space: nowrap;\r\n\t\twidth: 100%;\r\n\t\tpadding: 32rpx 0;\r\n\t\ttext-align: left;\r\n\t\theight: 250rpx;\r\n\t\t\r\n\t}\r\n\t.wanl-share .scroll-x .scroll-item {\r\n\t\tdisplay: inline-block;\r\n\t\tfont-size: 36rpx;\r\n\t\tmargin-left: 36rpx;\r\n\t\ttext-align: center;\r\n\t}\r\n\r\n\t.wanl-share .scroll-x .scroll-item button {\r\n\t\tline-height: 1;\r\n\t\tbackground-color: rgba(0, 0, 0, 0);\r\n\t\tborder: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n\r\n\t.wanl-share .scroll-x .scroll-item button:after {\r\n\t\tborder: 0;\r\n\t}\r\n\r\n\t.wanl-share .scroll-x .scroll-item:last-child {\r\n\t\tmargin-right: 36rpx;\r\n\t}\r\n\r\n\t.wanl-share .scroll-x .scroll-item .icons {\r\n\t\twidth: 100rpx;\r\n\t\theight: 100rpx;\r\n\t\tline-height: 100rpx;\r\n\t\tborder-radius: 9999rpx;\r\n\t\tmargin: 0 auto;\r\n\t\tfont-size: 40rpx;\r\n\t\tdisplay: block;\r\n\t}\r\n\t.wanl-share .scroll-x .scroll-item .icons.gray {\r\n\t\tcolor: #606060;\r\n\t\tbackground-color: #f5f5f5;\r\n\t}\r\n\t.wanl-share .scroll-x .scroll-item .icons.red {\r\n\t\tcolor: #ffffff;\r\n\t\tbackground-color: #e6162c;\r\n\t}\r\n\t.wanl-share .scroll-x .scroll-item .icons.blue {\r\n\t\tcolor: #ffffff;\r\n\t\tbackground-color: #3e92e8;\r\n\t}\r\n\r\n\t.wanl-share .scroll-x .scroll-item .project {\r\n\t\tmargin-top: 25rpx;\r\n\t}\r\n\t.wanl-share .footer {\r\n\t\theight: 90rpx;\r\n\t\tline-height: 90rpx;\r\n\t\tfont-size: 30rpx;\r\n\t}\r\n</style>\r\n","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./wanl-share.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./wanl-share.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699454304023\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |