Update WeChat MiniProgram share config and improve Download Web page logic for HarmonyOS detection
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
import { config } from '../../config';
|
||||
|
||||
Page({
|
||||
data: {
|
||||
version: '1.0.0'
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
wx.showShareMenu({
|
||||
withShareTicket: true,
|
||||
menus: ['shareAppMessage', 'shareTimeline']
|
||||
});
|
||||
},
|
||||
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '道棋百宝箱 - 您的日常计算好帮手'
|
||||
}
|
||||
return config.share;
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
return config.share;
|
||||
},
|
||||
|
||||
goToPrivacy() {
|
||||
|
||||
Reference in New Issue
Block a user