Files
wxapp_escort/pages/home/index.js
2026-05-29 20:30:42 +08:00

56 lines
1.6 KiB
JavaScript

Page({
data: {
assistServices: [
{ id: 1, name: '陪诊', icon: 'heart-filled', iconColor: '#2D6A4F' },
{ id: 2, name: '代办问诊', icon: 'chat-heart', iconColor: '#2D6A4F' },
{ id: 3, name: '代办买药', icon: 'cart-filled', iconColor: '#2D6A4F' },
{ id: 4, name: '代取结果', icon: 'draft-filled', iconColor: '#2D6A4F' },
{ id: 5, name: '检查预约', icon: 'calendar-1', iconColor: '#2D6A4F' },
{ id: 6, name: '出入院办理', icon: 'bridge', iconColor: '#2D6A4F' },
{ id: 7, name: 'vip陪诊', icon: 'user-vip-filled', iconColor: '#2D6A4F' },
{ id: 8, name: '其他助诊', icon: 'app-filled', iconColor: '#2D6A4F' }
],
otherServices: [
{ id: 1, name: '代探望', icon: 'apple', iconColor: '#D4A853' },
{ id: 2, name: '企业陪诊', icon: 'city-8', iconColor: '#D4A853' },
{ id: 3, name: '陪诊师入驻', icon: 'usergroup', iconColor: '#D4A853' },
{ id: 4, name: '商务合作', icon: 'command', iconColor: '#D4A853' },
]
},
async onLoad() {
},
goToAiChat() {
wx.switchTab({
url: '/pages/ai/aichat'
});
},
goToContact() {
wx.makePhoneCall({
phoneNumber: '18618162956'
});
},
goToServiceList() {
wx.navigateTo({
url: '/pages/escort/itemlist'
});
},
goToAssistDetail(e) {
const id = e.currentTarget.dataset.id;
wx.navigateTo({
url: `/pages/escort/itemlist?assistId=${id}`
});
},
goToOtherServicesDetail(e) {
wx.showToast({
title: '建设中, 请电话联系!',
icon: 'none'
});
}
});