重构完大部分页面了

This commit is contained in:
lik
2026-10-06 17:58:18 +08:00
parent 530135fce3
commit 40d0df3330
28 changed files with 412 additions and 537 deletions
+4 -58
View File
@@ -77,65 +77,11 @@ Page({
},
// 复制内容到剪贴板
onCopy(e) {
const content = e.currentTarget.dataset.content;
wx.setClipboardData({
data: content,
success: () => {
wx.showToast({
title: '已复制',
icon: 'success',
duration: 1500
});
},
fail: () => {
wx.showToast({
title: '复制失败',
icon: 'none',
duration: 1500
});
}
});
},
// 拨打电话
onCallPhone(e) {
const phone = e.currentTarget.dataset.phone;
wx.makePhoneCall({
phoneNumber: phone,
fail: () => {
wx.showToast({
title: '拨号失败',
icon: 'none',
duration: 1500
});
}
});
},
// 点击用户协议
onTapAgreement() {
// 跳转「联系我们」页:本页不再平铺联系方式,四项内容与那一页重合,
// 且那一页每行还带「拨打」「复制」动作词,是更完整的一份
goToContact() {
wx.navigateTo({
url: '/pages/escort/agreement'
});
},
// 点击隐私政策
onTapPrivacy() {
wx.showToast({
title: '功能开发中',
icon: 'none',
duration: 1500
});
},
// 点击更新日志
onTapUpdateLog() {
wx.showToast({
title: '功能开发中',
icon: 'none',
duration: 1500
url: '/pages/mine/contact'
});
}
});