upload project
This commit is contained in:
commit
06961cae04
422 changed files with 110626 additions and 0 deletions
88
subpackages/settings/about/about.js
Normal file
88
subpackages/settings/about/about.js
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
// pages/settings/about/about.js
|
||||
const app = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
version: '1.0.0',
|
||||
appName: 'FindMe'
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 页面显示时执行
|
||||
},
|
||||
|
||||
// 检查更新
|
||||
checkUpdate() {
|
||||
wx.showLoading({
|
||||
title: '检查中...',
|
||||
});
|
||||
|
||||
// 模拟检查更新
|
||||
setTimeout(() => {
|
||||
wx.hideLoading();
|
||||
wx.showModal({
|
||||
title: '检查更新',
|
||||
content: '当前已是最新版本',
|
||||
showCancel: false
|
||||
});
|
||||
}, 1500);
|
||||
},
|
||||
|
||||
// 显示更新日志
|
||||
showUpdateLog() {
|
||||
wx.navigateTo({
|
||||
url: '/subpackages/settings/about/update-log/update-log'
|
||||
});
|
||||
},
|
||||
|
||||
// 发送日志
|
||||
sendLog() {
|
||||
wx.showLoading({
|
||||
title: '发送中...',
|
||||
});
|
||||
|
||||
// 模拟发送日志
|
||||
setTimeout(() => {
|
||||
wx.hideLoading();
|
||||
wx.showToast({
|
||||
title: '日志发送成功',
|
||||
icon: 'success'
|
||||
});
|
||||
}, 2000);
|
||||
},
|
||||
|
||||
// 打开隐私政策
|
||||
openPrivacyPolicy() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/webview/webview?url=https://www.findme.cn/privacy'
|
||||
});
|
||||
},
|
||||
|
||||
// 打开使用条款
|
||||
openTermsOfService() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/webview/webview?url=https://www.findme.cn/terms'
|
||||
});
|
||||
},
|
||||
|
||||
// 打开社区规范
|
||||
openCommunityRules() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/webview/webview?url=https://www.findme.cn/community'
|
||||
});
|
||||
},
|
||||
|
||||
// 分享功能
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: 'FindMe - 发现身边的朋友',
|
||||
path: '/pages/map/map',
|
||||
imageUrl: '/images/findme-logo.png'
|
||||
};
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue