一、预期成果
首页作为用户登陆后最先接触的页面,我们希望除了最基本的患者进行医疗查询等功能外,还能进一步接触到健康方面的知识。
- 轮播图
- 功能跳转
- 健康咨询
二、头部及尾部组件
由于需要做多个页面,我把header和footer进行了封装,放入了component下:
MyHeader.wxml
<view class="header">
<view class="container hdCon">
<navigator class="logo" open-type="switchTab" url="/pages/index/index">
<image class="pic" src="/images/logo.jpg" mode="heightFix"></image>
</navigator>
<view class="kefu">
<button class="btn" open-type="contact"></button>
<image class="pic" src="/images/kefu.jpg" mode="heightFix"></image>
</view></