bug修改

This commit is contained in:
姚亚男
2021-11-01 09:24:11 +08:00
parent b966b650b8
commit 180ea3f9cc
9 changed files with 75 additions and 40 deletions
+15 -2
View File
@@ -74,6 +74,19 @@ Page({
this.setData({
isDisabled: false
})
// 性别处理
if (this.data.form.gender == '1') {
this.data.sexArr[0].checked = "true"
this.setData({
sexArr: this.data.sexArr,
})
}
if (this.data.form.gender == '2') {
this.data.sexArr[1].checked = "true"
this.setData({
sexArr: this.data.sexArr,
})
}
},
// 提交
formSubmit(e) {
@@ -193,13 +206,13 @@ Page({
form: res.result
})
// 性别处理
if (this.data.form.gender === '1') {
if (this.data.form.gender == '1') {
this.data.sexArr[0].checked = "true"
this.setData({
sexArr: this.data.sexArr,
})
}
if (this.data.form.gender === '2') {
if (this.data.form.gender == '2') {
this.data.sexArr[1].checked = "true"
this.setData({
sexArr: this.data.sexArr,
+1 -1
View File
@@ -32,7 +32,7 @@
<radio-group class="flex-center" name="gender">
<label class="flex-center" wx:for="{{sexArr}}" wx:for-item="item" wx:key="value">
<view class="">
<radio value="{{item.value}}" checked="{{item.checked}}" />
<radio value="{{item.value}}" checked="{{item.checked}}" color="#069F99" />
</view>
<view class="">{{item.name}}</view>
</label>
+4 -1
View File
@@ -11,7 +11,7 @@
height: 40px;
justify-content: flex-end;
align-items: center;
color: #07c160;
color: #069F99;
}
.list{
padding: 15px;
@@ -59,4 +59,7 @@
width: 11px;
height: 11px;
margin-right: 10px;
}
.btn-area button{
background-color: #069F99 !important;
}