bug修改
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user