Update WeChat MiniProgram share config and improve Download Web page logic for HarmonyOS detection
This commit is contained in:
@@ -34,6 +34,21 @@ Component({
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onLoad() {
|
||||
wx.showShareMenu({
|
||||
withShareTicket: false,
|
||||
menus: ['shareAppMessage', 'shareTimeline'] // 需要在 Component 中定义 onShareAppMessage
|
||||
});
|
||||
},
|
||||
|
||||
onShareAppMessage() {
|
||||
return config.share;
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
return config.share;
|
||||
},
|
||||
|
||||
updateGreeting() {
|
||||
const hour = new Date().getHours();
|
||||
let greeting = '';
|
||||
|
||||
Reference in New Issue
Block a user