Browse Source

激素 bugfix

dev
kola-web 2 months ago
parent
commit
cb0edcb0af
  1. 5
      src/patient/pages/hormones/index.scss
  2. 5
      src/patient/pages/hormones/index.ts
  3. 4
      src/patient/pages/hormonesStart/index.ts
  4. 2
      src/patient/pages/index/index.wxml

5
src/patient/pages/hormones/index.scss

@ -138,10 +138,15 @@ page {
min-width: 3em; min-width: 3em;
max-width: 4em; max-width: 4em;
color: #211D2E; color: #211D2E;
font-size: 40rpx;
} }
.palce-input{ .palce-input{
color: #ADACB2; color: #ADACB2;
} }
.sub{
font-size: 40rpx;
color: #211D2E;
}
} }
.description { .description {
margin-top: 32rpx; margin-top: 32rpx;

5
src/patient/pages/hormones/index.ts

@ -83,9 +83,14 @@ Page({
focus: false, focus: false,
}, },
onLoad(options) { onLoad(options) {
console.log("DEBUGPRINT[139]: index.ts:85: options=", options)
app.waitLogin({ type: [1] }).then(() => { app.waitLogin({ type: [1] }).then(() => {
this.getBaseInfo() this.getBaseInfo()
if (Number(options.id) > 0) { if (Number(options.id) > 0) {
wx.showToast({
icon: 'none',
title: '每日仅录入1次,您可修改已录信息',
})
this.getDetail(options.id) this.getDetail(options.id)
} }
}) })

4
src/patient/pages/hormonesStart/index.ts

@ -7,10 +7,6 @@ Page({
onLoad(options) { onLoad(options) {
app.waitLogin({ type: [1] }).then(() => { app.waitLogin({ type: [1] }).then(() => {
if (options.id) { if (options.id) {
wx.showToast({
icon: 'none',
title: '每日仅录入1次,您可修改已录信息',
})
this.setData({ this.setData({
id: options.id, id: options.id,
}) })

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

@ -90,7 +90,7 @@
最近一次录入时间 {{hormoneDetail.createTime}} 最近一次录入时间 {{hormoneDetail.createTime}}
</view> </view>
<view <view
wx:if="{{hormoneDetail.recordId}}" wx:if="{{hormoneDetail.recordId>0}}"
class="btn" class="btn"
catch:tap="routerTo" catch:tap="routerTo"
data-url="/patient/pages/hormones/index?id={{hormoneDetail.recordId}}" data-url="/patient/pages/hormones/index?id={{hormoneDetail.recordId}}"

Loading…
Cancel
Save