Browse Source

fix(patient/noteAdd): 修复基准照选择逻辑并更新复选框样式

修复基准照选择逻辑,检查数组长度而非布尔值
为选中状态的复选框添加渐变背景色
dev
kola-web 1 week ago
parent
commit
847838f3c5
  1. 3
      src/patient/pages/noteAdd/index.scss
  2. 2
      src/patient/pages/noteAdd/index.ts

3
src/patient/pages/noteAdd/index.scss

@ -15,6 +15,9 @@ page {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
} }
.wx-checkbox-input-checked{
background: linear-gradient(0deg, #e98ff8 0%, #b073ff 100%);
}
} }
} }
.form { .form {

2
src/patient/pages/noteAdd/index.ts

@ -171,7 +171,7 @@ Page({
// 是否设置为基准照 // 是否设置为基准照
onBaselineChange(e: any) { onBaselineChange(e: any) {
this.setData({ this.setData({
isBaseline: e.detail.value ? 1 : 0, isBaseline: e.detail.value.length > 0 ? 1 : 0,
}) })
}, },

Loading…
Cancel
Save