tmp
This commit is contained in:
@@ -1,21 +1,23 @@
|
||||
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' }
|
||||
escortServices: [
|
||||
{ id: 1, name: '陪诊', icon: 'heart', url: '', type: '' },
|
||||
{ id: 2, name: '代问诊', icon: 'chat-heart', url: '', type: '' },
|
||||
{ id: 3, name: '代预约', icon: 'draft', url: '', type: '' },
|
||||
{ id: 4, name: '其他助诊', icon: 'cooperate', url: '', type: '' },
|
||||
],
|
||||
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' },
|
||||
]
|
||||
{ id: 1, name: '代探望', icon: 'apple', url: '', type: '' },
|
||||
{ id: 2, name: '企业陪诊', icon: 'city-8', url: '', type: '' },
|
||||
{ id: 3, name: '陪诊师入驻', icon: 'usergroup', url: '', type: '' },
|
||||
{ id: 4, name: '商务合作', icon: 'command', url: '', type: '' },
|
||||
],
|
||||
tools: [
|
||||
{ id: 1, name: '医院电话', icon: 'call', url: 'pages/hospital/contact', type: 'page' },
|
||||
{ id: 2, name: '科室排行', icon: 'ai-coordinate-system', url: '', type: '' },
|
||||
{ id: 3, name: '医保备案', icon: 'system-code', url: '', type: '' },
|
||||
{ id: 4, name: '医疗影像', icon: 'film-1', url: '', type: '' }
|
||||
]
|
||||
},
|
||||
|
||||
async onLoad() {
|
||||
@@ -47,9 +49,29 @@ Page({
|
||||
},
|
||||
|
||||
goToOtherServicesDetail(e) {
|
||||
wx.showToast({
|
||||
title: '建设中, 请电话联系!',
|
||||
icon: 'none'
|
||||
});
|
||||
const item = e.currentTarget.dataset.item;
|
||||
if (!item || !item.type || !item.url) {
|
||||
wx.showToast({
|
||||
title: '建设中, 请电话联系!',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
switch (item.type) {
|
||||
case 'page':
|
||||
wx.navigateTo({ url: '/' + item.url });
|
||||
break;
|
||||
case 'tab':
|
||||
wx.switchTab({ url: '/' + item.url });
|
||||
break;
|
||||
case 'website':
|
||||
wx.navigateTo({ url: '/pages/webview/index?url=' + encodeURIComponent(item.url) });
|
||||
break;
|
||||
default:
|
||||
wx.showToast({
|
||||
title: '建设中, 请电话联系!',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user