Update WeChat MiniProgram share config and improve Download Web page logic for HarmonyOS detection
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
|
||||
import { config } from '../../config';
|
||||
|
||||
Page({
|
||||
onLoad() {
|
||||
wx.showShareMenu({
|
||||
withShareTicket: true,
|
||||
menus: ['shareAppMessage', 'shareTimeline']
|
||||
});
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return config.share;
|
||||
},
|
||||
onShareTimeline() {
|
||||
return config.share;
|
||||
},
|
||||
|
||||
data: {
|
||||
categories: ['长度', '面积', '体积', '重量', '温度'],
|
||||
categoryIndex: 0,
|
||||
|
||||
Reference in New Issue
Block a user