|
@@ -110,7 +110,7 @@ export function getTicketFun(jsApiList = ['getLocation'], configType = 'config')
|
|
|
timestamp: qiyeData.timestamp, // 必填,生成签名的时间戳
|
|
timestamp: qiyeData.timestamp, // 必填,生成签名的时间戳
|
|
|
nonceStr: qiyeData.nonceStr, // 必填,生成签名的随机串
|
|
nonceStr: qiyeData.nonceStr, // 必填,生成签名的随机串
|
|
|
signature: qiyeData.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法
|
|
signature: qiyeData.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法
|
|
|
- jsApiList: ['ready', 'onMenuShareAppMessage', ...jsApiList], // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
|
|
|
|
|
|
|
+ jsApiList: ['ready', ...jsApiList], // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
|
|
|
});
|
|
});
|
|
|
console.log('获取签名成功');
|
|
console.log('获取签名成功');
|
|
|
resolve('获取签名成功');
|
|
resolve('获取签名成功');
|
|
@@ -125,6 +125,19 @@ export function getTicketFun(jsApiList = ['getLocation'], configType = 'config')
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
console.log('获取签名成功');
|
|
console.log('获取签名成功');
|
|
|
resolve('获取签名成功');
|
|
resolve('获取签名成功');
|
|
|
|
|
+ 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() {
|
|
|
|
|
+ // 用户取消分享后回调
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
fail: function (res) {
|
|
fail: function (res) {
|
|
|
if (res.errMsg.indexOf('function not exist') > -1) {
|
|
if (res.errMsg.indexOf('function not exist') > -1) {
|