|
|
@@ -78,6 +78,7 @@ export default {
|
|
|
created() {
|
|
|
getTicketFun(['onMenuShareAppMessage']).then((res) => {
|
|
|
this.wx.ready(() => {
|
|
|
+ console.log('this.wx.ready');
|
|
|
this.wx.onMenuShareAppMessage({
|
|
|
title: '企业微信',
|
|
|
desc: '让每个企业都有自己的微信',
|
|
|
@@ -86,27 +87,15 @@ export default {
|
|
|
'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
|
|
|
success() {
|
|
|
// 用户确认分享后回调
|
|
|
+ console.log('用户确认分享后回调');
|
|
|
},
|
|
|
cancel() {
|
|
|
// 用户取消分享后回调
|
|
|
+ console.log('用户取消分享后回调');
|
|
|
},
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
- getTicketFun(['onMenuShareAppMessage'], 'agentConfig').then(() => {
|
|
|
- this.wx.onMenuShareAppMessage({
|
|
|
- title: '企业微信',
|
|
|
- desc: '让每个企业都有自己的微信',
|
|
|
- link: 'https://work.weixin.qq.com/',
|
|
|
- imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
|
|
|
- success() {
|
|
|
- // 用户确认分享后回调
|
|
|
- },
|
|
|
- cancel() {
|
|
|
- // 用户取消分享后回调
|
|
|
- },
|
|
|
- });
|
|
|
- });
|
|
|
this.getDict();
|
|
|
},
|
|
|
mounted() {},
|