信达小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

504 lines
21 KiB

1 month ago
<view class="page">
<image wx:if="{{theme === 'DRUG'}}" class="drug-bg" src="{{imageUrl}}za-images/1/my-bg.png?t={{Timestamp}}"></image>
<image wx:else class="bg" mode="widthFix" src="{{imageUrl}}za-images/1/index-bg.png?t={{Timestamp}}"></image>
<view class="page-container">
<pageNavbar drug="{{theme === 'DRUG'}}"></pageNavbar>
<view class="user" wx:if="{{userInfo.UserType!=1}}">
<image class="avatar" src="{{userInfo.UserImg}}" bind:tap="routerTo" data-url="/pages/getUserInfo/index"></image>
<view class="content">
<view class="name">{{today}}</view>
<view class="info" wx:if="{{userInfo.UserType>=3}}">
今天是重症肌无力加油站陪伴你的第
<text class="num">{{userInfo.JoinDays}}</text>
</view>
</view>
</view>
<view wx:if="{{userInfo.UserType>=3}}" class="referral" bind:tap="routerTo" data-url="/pages/referral/index">
<image class="referral-img" src="{{imageUrl}}za-images/5/referral-card.png?t={{Timestamp}}"></image>
</view>
<view
class="doctor {{theme === 'DRUG' && 'doctor-drugs'}}"
wx:if="{{userInfo.ExclusiveDoctorId}}"
style="background: url({{imageUrl}}za-images/2/doctor-home{{theme === 'DRUG' ? '-drug':''}}-bg.png?t={{Timestamp}}) no-repeat 16rpx 9rpx/606rpx 173rpx,{{theme === 'DRUG'? 'linear-gradient( 360deg, #25D9C8 0%, #25D9C8 73%, #B5EFEA 100%)':'linear-gradient( 360deg, #CF5375 0%, #CF5375 74%, #EE9FB9 100%) no-repeat top center/100% 100%'}}"
bind:tap="routerTo"
data-url="/pages/interactivePatient/index"
>
<view class="container">
<view class="avatar">
<image class="a-img" mode="aspectFill" src="{{userInfo.ExclusiveDoctorImg}}" alt=""></image>
</view>
<view class="wrap">
<view class="name-wrap">
<view class="name">
<view class="n-content">{{userInfo.ExclusiveDoctorName}}</view>
<image wx:if="{{unreadCount}}" class="icon" src="{{imageUrl}}za-images/icon5.png?t={{Timestamp}}"></image>
</view>
</view>
<view class="content" wx:if="{{unreadCount}}">医生给您留言了,记得查看!</view>
<view class="hostipal" wx:else>
<view class="h-content">{{userInfo.ExclusiveDoctorHospitalName}}</view>
<view
class="tag"
wx:if="{{userInfo.ExclusiveDoctorHospitalClassificationName || userInfo.ExclusiveDoctorHospitalLevelName}}"
>
{{userInfo.ExclusiveDoctorHospitalClassificationName}}{{userInfo.ExclusiveDoctorHospitalLevelName}}
</view>
</view>
</view>
<view class="btn">
{{unreadCount ? '去看看':'去咨询'}}
<van-icon name="arrow" />
</view>
</view>
</view>
<block wx:for="{{configList}}" wx:key="index" wx:for-item="card" wx:for-index="cIndex">
<view
class="banner"
wx:if="{{(card.code == 'spread1' || card.code == 'spread2') && card.showStatus == 1 && card.subList.length}}"
bind:tap="handleMp"
data-code="{{card.code}}"
>
<swiper
class="swiper"
indicator-active-color="rgba(39, 58, 101, 0.5)"
indicator-color="rgba(39, 58, 101, 0.2)"
indicator-dots="{{card.subList.length > 1}}"
autoplay
interval="{{3000}}"
circular
>
<swiper-item class="swiper-item" wx:for="{{card.subList}}" wx:key="index">
<image
wx:if="{{ (item.linkUrl=== 'MINIDOCTOR' || item.linkUrl=== 'MINIDOCTOR-1.0') && userInfo.UserType >= 3}}"
class="swiper-item-img"
mode="aspectFill"
src="{{item.img}}"
bind:tap="handleMiniDoctor"
data-link="{{item.linkUrl}}"
></image>
<image
wx:else
class="swiper-item-img"
mode="aspectFill"
src="{{item.img}}"
bind:tap="routerTo"
data-url="{{item.linkUrl}}"
></image>
</swiper-item>
</swiper>
</view>
<view class="adl {{theme === 'DRUG' && 'adl-drugs'}}" wx:if="{{card.code == 'adl' && card.showStatus == 1}}">
<image
class="adl-bg"
src="{{imageUrl}}za-images/double-standard/{{theme === 'DRUG'?'home-adl-drug-bg':'home-adl-bg'}}.png?t={{Timestamp}}"
></image>
<view class="adl-container">
<view
class="other"
catch:tap="routerTo"
data-url="/gift/pages/myHealthRecord/index"
data-code="{{card.code}}"
>
<image
class="adl-title"
src="{{imageUrl}}za-images/double-standard/home-adl-title{{theme === 'DRUG'?'-drug':''}}.png?t={{Timestamp}}"
></image>
<!-- <view class="title">自在生活<text class="blod">“双达标”</text></view> -->
<!-- <view class="num">控制症状 减少副作用</view> -->
<view
class="status"
wx:if="{{adlNewRecord.TotalScore}}"
catch:tap="routerTo"
data-url="/pages/adl/index"
data-code="{{card.code}}"
>
最近一次测评 {{adlNewRecord.newCreateTime}}
</view>
<view class="btn" wx:else catch:tap="routerTo" data-url="/pages/adl/index" data-code="{{card.code}}">
立即自测
<image
wx:if="{{theme === 'DRUG'}}"
class="icon"
src="{{imageUrl}}za-images/1.5/btn-drug.png?t={{Timestamp}}"
></image>
<image wx:else class="icon" src="{{imageUrl}}za-images/1/arrow-right.png?t={{Timestamp}}"></image>
</view>
<view class="o-aside">
<image
class="badge"
src="{{imageUrl}}za-images/double-standard/{{theme === 'DRUG'?'home-adl-drug-badge':'home-adl-badge'}}.png?t={{Timestamp}}"
></image>
</view>
</view>
</view>
</view>
<view class="drug-record" wx:if="{{card.code == 'drugs' && card.showStatus == 1}}">
<block wx:if="{{detail.Id}}">
<view class="d-header">
<view class="status">
<view class="icons">
<image class="icon" src="{{imageUrl}}za-images/1.5/drug-icon.png?t={{Timestamp}}"></image>
</view>
<view class="name">连续治疗 {{detail.Times}} 次</view>
</view>
<view
class="more"
catch:tap="routerTo"
data-url="/gift/pages/myHealthRecord/index"
data-code="{{card.code}}"
>
查看健康档案
<van-icon name="arrow" />
</view>
</view>
<view class="d-line"></view>
<view class="date">
<view class="d-name">上次治疗日期</view>
<view class="d-str">
{{detail.InjectionDate}}
<view class="week">{{detail.weekName}}</view>
</view>
</view>
<view class="d-card">
<view class="dc-header">距离上次用药</view>
<view class="dc-content">
<view class="c-l today" wx:if="{{detail.days == 0}}">
<view class="box">今天治疗</view>
</view>
<view class="c-l" wx:else>
<view class="box">{{detail.days}}</view>
<view class="sub">天</view>
</view>
<view class="more" catch:tap="routerTo" data-url="/pages/drugRecord/index" data-code="{{card.code}}">
更新记录
<van-icon name="arrow" />
</view>
</view>
</view>
</block>
<view class="d-noraml" wx:else>
<view class="n-left">
<view class="title">
<view>展示您的注射信息</view>
<view>开启您的专属服务</view>
</view>
<view class="btn" catch:tap="routerTo" data-url="/pages/drugRecord/index" data-code="{{card.code}}">
开始记录
<image class="icon" src="{{imageUrl}}za-images/1.5/btn-drug.png?t={{Timestamp}}"></image>
</view>
</view>
<view class="n-right">
<view class="item">
<view class="icon">
<image src="{{imageUrl}}za-images/1.5/d1.png?t={{Timestamp}}"></image>
</view>
<view class="name">ADL提醒</view>
</view>
<view class="item">
<view class="icon">
<image src="{{imageUrl}}za-images/1.5/d2.png?t={{Timestamp}}"></image>
</view>
<view class="name">随访服务</view>
</view>
<view class="item">
<view class="icon">
<image src="{{imageUrl}}za-images/1.5/d3.png?t={{Timestamp}}"></image>
</view>
<view class="name">健康报告</view>
</view>
</view>
</view>
</view>
<view class="live" wx:if="{{card.code == 'activity1' && card.showStatus == 1 }}">
<view class="header" wx:if="{{card.name}}">
<view class="title">{{card.name}}</view>
<view class="more" bind:tap="routerTo" data-url="/pages/live/index" data-active="1" data-code="{{card.code}}">
查看全部
<van-icon name="arrow" />
</view>
</view>
<view class="live-container">
<view class="scroll">
<view
class="live-item"
wx:for="{{liveDownList}}"
wx:key="index"
bind:tap="routerTo"
data-url="/pages/liveDetail/index?id={{item.Id}}"
data-code="{{card.code}}"
>
<image class="live-img" mode="aspectFill" src="{{item.IntroductionUrl}}"></image>
</view>
</view>
</view>
</view>
<!-- 隐藏老的直播模块 -->
<view class="live-up" wx:if="{{card.code == 'activity2' && card.showStatus == 1 && false }}">
<view class="header" wx:if="{{card.name}}">
<view class="title">{{card.name}}</view>
<view class="more" bind:tap="routerTo" data-url="/pages/live/index" data-active="0" data-code="{{card.code}}">
查看全部
<van-icon name="arrow" />
</view>
</view>
<view class="live-container {{theme === 'DRUG' && 'live-container-drugs'}}">
<view class="scroll">
<view class="live-item" bind:tap="routerTo" data-url="/pages/live/index?index=0" data-code="{{card.code}}">
<image class="live-img" mode="aspectFill" src="{{imageUrl}}za-images/1/3.png?t={{Timestamp}}"></image>
</view>
<view
class="item"
wx:for="{{liveList}}"
wx:key="index"
bind:tap="routerTo"
data-url="/pages/liveDetail/index?id={{item.Id}}"
data-code="{{card.code}}"
>
<view class="photo-wrap">
<image class="photo" src="{{item.IntroductionUrl}}"></image>
<view class="status {{item.Status != 2 && 'bad'}}">
<view class="dot"></view>
{{liveStatus[item.Status]}}
</view>
<!-- <view class="date"> -->
<!-- <view class="d-title"> -->
<!-- <van-icon class="icon" name="play" /> -->
<!-- 会议时间 -->
<!-- </view> -->
<!-- <block wx:if="{{item.isDay}}"> -->
<!-- <view class="ymd">{{item.BeginDate}}</view> -->
<!-- <view class="hm">{{item.BeginHm}}-{{item.EndHm}}</view> -->
<!-- </block> -->
<!-- <block wx:else> -->
<!-- <view class="ymd">{{item.BeginTime}}</view> -->
<!-- <view class="hm">{{item.EndTime}}</view> -->
<!-- </block> -->
<!-- </view> -->
</view>
<view class="content">
<view class="name">{{item.MasterName}}</view>
<view class="labels">
<!-- <view class="label" wx:for="{{item.Labels}}" wx:for-item="label" wx:key="index">{{label}}</view> -->
<view class="label">{{item.MasterTitle}}</view>
</view>
<view class="btn">
<image
class="icon"
src="{{imageUrl}}za-images/{{theme === 'DRUG'?1.5:1}}/live-play.png?t={{Timestamp}}"
></image>
{{item.Status==2?'参会':'查看'}}
</view>
</view>
</view>
</view>
</view>
</view>
<view class="live-up-new" wx:if="{{card.code == 'activity2' && card.showStatus == 1 }}">
<view class="l-banner" bind:tap="routerTo" data-url="/pages/live/index?index=0" data-code="{{card.code}}">
<image class="live-img" mode="aspectFill" src="{{imageUrl}}za-images/live-banner.png?t={{Timestamp}}"></image>
</view>
<view
class="item"
wx:for="{{liveList}}"
wx:key="index"
bind:tap="routerTo"
data-url="/pages/liveDetail/index?id={{item.Id}}"
data-code="{{card.code}}"
>
<view class="photo-wrap">
<image class="photo" src="{{item.PosterUrl}}"></image>
<view class="status {{item.Status == 2 && 'active'}}">
<image wx:if="{{item.Status==2}}" class="icon" src="{{imageUrl}}za-images/icon2.png?t={{Timestamp}}"></image>
{{liveStatus[item.Status]}}
</view>
<!-- <view class="date"> -->
<!-- <view class="d-title"> -->
<!-- <van-icon class="icon" name="play" /> -->
<!-- 会议时间 -->
<!-- </view> -->
<!-- <block wx:if="{{item.isDay}}"> -->
<!-- <view class="ymd">{{item.BeginDate}}</view> -->
<!-- <view class="hm">{{item.BeginHm}}-{{item.EndHm}}</view> -->
<!-- </block> -->
<!-- <block wx:else> -->
<!-- <view class="ymd">{{item.BeginTime}}</view> -->
<!-- <view class="hm">{{item.EndTime}}</view> -->
<!-- </block> -->
<!-- </view> -->
</view>
<view class="content">
<view class="name">{{item.Name}}</view>
<view class="labels" wx:if="{{item.doctorName}}">
{{item.doctorName}}{{item.hospitalName ? ' | ' + item.hospitalName : ''}}
</view>
<view class="c-footer">
<view class="date">{{item.BeginTime}}</view>
<view class="btn">
<image class="icon" src="{{imageUrl}}za-images/icon1.png?t={{Timestamp}}"></image>
{{item.Status==2?'参会':'查看'}}
</view>
</view>
</view>
</view>
</view>
<view class="story" wx:if="{{card.code == 'story' && card.showStatus == 1}}">
<view class="header" wx:if="{{card.name}}">
<view class="title">{{card.name}}</view>
<view class="more" bind:tap="routerTo" data-url="/pages/story/index" data-code="{{card.code}}">
查看全部
<van-icon name="arrow" />
</view>
</view>
<view class="story-container {{theme === 'DRUG' && 'story-container-drugs'}}">
<view class="scroll">
<view
class="story-item"
wx:for="{{storyList}}"
bind:tap="routerTo"
data-url="/pages/publishStoryDetail/index?id={{item.Id}}"
data-code="{{card.code}}"
>
<image class="story-img" mode="aspectFill" src="{{item.ListPicLink}}"></image>
<view class="story-content">{{item.Title}}</view>
</view>
</view>
</view>
</view>
<view class="server" wx:if="{{card.code == 'serviceConf' && card.showStatus == 1}}">
<view class="header" wx:if="{{card.name}}">
<view class="title">{{card.name}}</view>
</view>
<view class="server-container">
<view class="two" wx:if="{{card.showType==1}}">
<block wx:for="{{card.subList}}" wx:key="index">
<!-- <view class="item" bind:tap="handleMiniDoctor" wx:if="{{item.showStatus==1 && index == 0}}"> -->
<!-- <image class="item-bg" src="{{item.img}}"></image> -->
<!-- </view> -->
<view class="item" bind:tap="routerTo" data-url="{{item.linkUrl}}" data-code="{{card.code}}">
<image class="item-bg" src="{{item.img}}"></image>
</view>
</block>
</view>
<view class="four" wx:if="{{card.showType==2}}">
<block wx:for="{{card.subList}}" wx:key="index">
<!-- <view class="item" bind:tap="handleMiniDoctor" wx:if="{{item.showStatus==1 && index==0}}"> -->
<!-- <image class="icon" src="{{item.img}}"></image> -->
<!-- <view class="name">{{item.title}}</view> -->
<!-- </view> -->
<view class="item" bind:tap="routerTo" data-url="{{item.linkUrl}}" data-code="{{card.code}}">
<image class="icon" src="{{item.img}}"></image>
<view class="name">{{item.title}}</view>
</view>
</block>
</view>
</view>
</view>
<view class="book" wx:if="{{card.code == 'article' && card.showStatus == 1 && infoList.length}}">
<view class="header" wx:if="{{card.name}}">
<view class="title">{{card.name}}</view>
<view bind:tap="routerTo" class="more" data-url="/pages/repository/index" data-code="{{card.code}}">
查看全部
<van-icon name="arrow" />
</view>
</view>
<!-- style="height:{{infoList[0].length * 240}}rpx" -->
<swiper
class="swiper"
indicator-active-color="rgba(39, 58, 101, 0.5)"
indicator-color="rgba(39, 58, 101, 0.2)"
indicator-dots="{{infoList.length > 1}}"
>
<swiper-item class="swiper-item" wx:for="{{infoList}}" wx:for-item="info" wx:key="index">
<view class="book-list">
<view
class="card"
wx:for="{{info}}"
wx:key="index"
bind:tap="routerTo"
data-url="/pages/repositoryDetail/index?id={{item.ArticleId}}"
data-code="{{card.code}}"
>
<view class="cover">
<image class="photo" mode="aspectFill" src="{{item.TitlePicLink}}"></image>
<view class="label">{{item.CateName}}</view>
</view>
<view class="content">
<view class="title">{{item.Title}}</view>
</view>
</view>
</view>
</swiper-item>
</swiper>
</view>
</block>
</view>
<view
class="reg"
wx:if="{{regGuide && anyWhere && (userInfo.UserType==1 || (userInfo.UserType==2 && userInfo.AuditStatus==0))}}"
bind:tap="handleReg"
>
<text class="blod">注册</text>
后享受全面重症肌无力患者服务
<van-icon name="arrow" />
<image catch:tap="handleRegClose" class="reg-close" src="{{imageUrl}}za-images/5/reg-close.png?t={{Timestamp}}"></image>
</view>
<view
class="reg-audit"
wx:elif="{{regGuide && anyWhere && userInfo.UserType==2 && (userInfo.AuditStatus==1 || userInfo.AuditStatus==2 )}}"
bind:tap="handleReg"
>
您的认证正在审核中,审核通过后获取全部服务
<van-icon name="arrow" />
<image catch:tap="handleRegClose" class="reg-close" src="{{imageUrl}}za-images/5/reg-close.png?t={{Timestamp}}"></image>
</view>
<view wx:elif="{{!anyWhere && publicCard}}" class="public" bind:tap="handlePublic">
<image class="logo" src="{{imageUrl}}za-images/5/logo1.png?t={{Timestamp}}"></image>
<view class="wrap">
<view class="title">关注公众号</view>
<view class="content">重要提醒不丢失~</view>
</view>
<view class="btn">去关注</view>
<image catch:tap="handlePublicClose" class="close" src="{{imageUrl}}za-images/5/close1.png?t={{Timestamp}}"></image>
</view>
</view>
<movable-area class="slidearea">
<movable-view
direction="vertical"
x="{{-800}}"
y="{{sliderTop}}"
class="mview"
bind:tap="handleMiniDoctor"
wx:if="{{systemConfig.NrdlActivitySwitch==='1'}}"
>
<image
wx:if="{{userInfo.UserType==3}}"
class="slidebar"
mode="wdithFix"
src="{{imageUrl}}za-images/nrdl/home1.gif?t={{Timestamp}}"
></image>
<image
wx:if="{{theme === 'DRUG'}}"
class="slidebar"
mode="wdithFix"
src="{{imageUrl}}za-images/nrdl/home2.gif?t={{Timestamp}}"
></image>
</movable-view>
</movable-area>
<!-- <view class="question" bind:tap="handleQuestion"> -->
<!-- <image class="question-img" src="{{imageUrl}}za-images/1.5/hoem-question.png?t={{Timestamp}}"></image> -->
<!-- </view> -->
<toast
bind:cancel="handleToastCancel"
bind:ok="handleToastOk"
show="{{toastShow}}"
type="{{toastType}}"
params="{{toastParams}}"
></toast>
<referralFrom model:show="{{referralFromShow}}"></referralFrom>