diff --git a/src/assets/images/peoSuggestion/1.png b/src/assets/images/peoSuggestion/1.png index 5962bf5..440fd2c 100644 Binary files a/src/assets/images/peoSuggestion/1.png and b/src/assets/images/peoSuggestion/1.png differ diff --git a/src/assets/images/peoSuggestion/14.png b/src/assets/images/peoSuggestion/14.png new file mode 100644 index 0000000..3d64f05 Binary files /dev/null and b/src/assets/images/peoSuggestion/14.png differ diff --git a/src/assets/images/peoSuggestion/9.png b/src/assets/images/peoSuggestion/9.png index 253c84f..24ea168 100644 Binary files a/src/assets/images/peoSuggestion/9.png and b/src/assets/images/peoSuggestion/9.png differ diff --git a/src/utils/jweixin.js b/src/utils/jweixin.js index 64303e2..8c94c23 100644 --- a/src/utils/jweixin.js +++ b/src/utils/jweixin.js @@ -12,4 +12,21 @@ export const setConfig = function (jsApiList = []) { openTagList:['wx-open-launch-weapp'] }) }) + wx.ready(function(){ + wx.updateAppMessageShareData({ + title: '人民建议征集', // 分享标题 + desc: '倾听民声,汇集民智,期待您的好建议、金点子。', // 分享描述 + link: `${location.href.split('#')[0]+"#/peoSuggestion?appId=wx1078fa1e99424de9&&type=add"}`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 + imgUrl: 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet-saas/prod/20241223/0b3fb8a6d64a4f39a14e00a7f8641a00.png', // 分享图标 + success: function () { + // alert("陈工") + // 设置成功 + }, + fail:function(){ + console.log("出错了"); + } + + }); + // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。 + }); } diff --git a/src/views/home/index.vue b/src/views/home/index.vue index bc448bd..040cedc 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -52,7 +52,7 @@ -