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 @@ @@ -10,7 +10,10 @@
<image class="avatar-img" src="{{userInfo.Avatar}}"></image>
</view>
<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">
今天是您加入的第
<rich-text class="rich" nodes="{{Days}}"></rich-text>

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

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

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

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

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

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

Loading…
Cancel
Save