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'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<text class="section-more" bindtap="goToServiceList">全部 >></text>
|
||||
</view>
|
||||
<view class="assist-grid">
|
||||
<view class="assist-item" wx:for="{{ assistServices }}" wx:key="id" bindtap="goToAssistDetail" data-id="{{ item.id }}">
|
||||
<view class="assist-item" wx:for="{{ escortServices }}" wx:key="id" bindtap="goToAssistDetail" data-id="{{ item.id }}">
|
||||
<view class="assist-icon-circle">
|
||||
<t-icon name="{{ item.icon }}" class="assist-icon" style="color: #2D6A4F;" />
|
||||
</view>
|
||||
@@ -56,7 +56,25 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 其他服务 -->
|
||||
<!-- 就诊工具 -->
|
||||
<view class="tool-section">
|
||||
<view class="section-header">
|
||||
<view class="section-title-wrap">
|
||||
<t-icon name="tools" class="section-icon" size="40rpx"/>
|
||||
<text class="section-title">就医工具</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="assist-grid">
|
||||
<view class="assist-item" wx:for="{{ tools }}" wx:key="id" bindtap="goToOtherServicesDetail" data-item="{{ item }}">
|
||||
<view class="assist-icon-circle">
|
||||
<t-icon name="{{ item.icon }}" class="assist-icon" style="color: #2D6A4F;" />
|
||||
</view>
|
||||
<text class="assist-name">{{ item.name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 其他业务 -->
|
||||
<view class="other-section">
|
||||
<view class="section-header">
|
||||
<view class="section-title-wrap">
|
||||
@@ -65,7 +83,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="assist-grid">
|
||||
<view class="assist-item" wx:for="{{ otherServices }}" wx:key="id" bindtap="goToOtherServicesDetail" data-id="{{ item.id }}">
|
||||
<view class="assist-item" wx:for="{{ otherServices }}" wx:key="id" bindtap="goToOtherServicesDetail" data-item="{{ item }}">
|
||||
<view class="assist-icon-circle">
|
||||
<t-icon name="{{ item.icon }}" class="assist-icon" style="color: #2D6A4F;" />
|
||||
</view>
|
||||
@@ -73,4 +91,5 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
@@ -174,7 +174,7 @@ page {
|
||||
|
||||
/* 助诊服务 */
|
||||
.assist-section {
|
||||
background: #F0F8F2;
|
||||
background: #FFFFFF;
|
||||
padding: 50rpx 32rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
@@ -185,6 +185,12 @@ page {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.tool-section {
|
||||
background: #FFFFFF;
|
||||
padding: 50rpx 32rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user