Browse Source

2.0bug处理

2.0
kola-web 2 weeks ago
parent
commit
b0f09e41da
  1. 5
      src/patient/pages/index/index.wxml
  2. 2
      src/patient/pages/my/index.wxml
  3. 7
      src/patient/pages/userInfo/index.scss
  4. 8
      src/patient/pages/userInfo/index.wxml

5
src/patient/pages/index/index.wxml

@ -10,7 +10,10 @@
<image class="avatar-img" src="{{userInfo.Avatar}}"></image> <image class="avatar-img" src="{{userInfo.Avatar}}"></image>
</view> </view>
<view class="wrap"> <view class="wrap">
<view class="name">Hi!{{userInfo.PatientName}}</view> <view class="name">
Hi!{{userInfo.PatientName}}
<block wx:if="{{userInfo.RelationType == 2}}">亲友</block>
</view>
<view class="content"> <view class="content">
今天是您加入的第 今天是您加入的第
<rich-text class="rich" nodes="{{Days}}"></rich-text> <rich-text class="rich" nodes="{{Days}}"></rich-text>

2
src/patient/pages/my/index.wxml

@ -8,7 +8,7 @@
</button> </button>
<view class="wrap"> <view class="wrap">
<view class="name"> <view class="name">
<text class="nickname">{{userInfo.PatientName}}</text> <text class="nickname">{{userInfo.PatientName}}<block wx:if="{{userInfo.RelationType == 2}}">亲友</block></text>
</view> </view>
<view class="day"> <view class="day">
今天是陪伴您的第 今天是陪伴您的第

7
src/patient/pages/userInfo/index.scss

@ -56,6 +56,13 @@ page {
} }
} }
} }
&.form-family{
.row{
.label{
width: 7em;
}
}
}
} }
.login-out { .login-out {
margin-top: 72rpx; margin-top: 72rpx;

8
src/patient/pages/userInfo/index.wxml

@ -1,7 +1,7 @@
<view class="page"> <view class="page">
<view class="form"> <view class="form {{userInfo.RelationType == 2 && 'form-family'}}">
<view class="row"> <view class="row">
<view class="label">我的姓名</view> <view class="label">{{userInfo.RelationType == 1 ? '我的' : '亲友'}}姓名</view>
<view class="container"> <view class="container">
<input <input
type="text" type="text"
@ -14,7 +14,7 @@
</view> </view>
</view> </view>
<view class="row"> <view class="row">
<view class="label">出生年月</view> <view class="label">{{userInfo.RelationType == 1 ? '' : '亲友'}}出生年月</view>
<view class="container"> <view class="container">
<picker class="picker" mode="date" model:value="{{birthMonth}}" fields="month" bind:change="handleUpdate"> <picker class="picker" mode="date" model:value="{{birthMonth}}" fields="month" bind:change="handleUpdate">
<view class="picker-content"> <view class="picker-content">
@ -24,7 +24,7 @@
</view> </view>
</view> </view>
<view class="row"> <view class="row">
<view class="label">所在地</view> <view class="label">{{userInfo.RelationType == 1 ? '' : '亲友'}}所在地</view>
<view class="container"> <view class="container">
<pickerArea class="picker-area" value="{{cityId}}" level="{{2}}" bind:change="handleAreaChange"> <pickerArea class="picker-area" value="{{cityId}}" level="{{2}}" bind:change="handleAreaChange">
<view class="picker-content"> <view class="picker-content">

Loading…
Cancel
Save