优化代码

This commit is contained in:
java110 2021-05-24 13:11:04 +08:00
parent 0bd80bef73
commit ef9a364da5
2 changed files with 8 additions and 3 deletions

View File

@ -49,6 +49,9 @@
onLoad: function(options) {
let that = this;
context.onLoad(options);
},
onShow: function() {
let that = this;
that.communityId = context.getUserInfo().communityId;
that.userId = context.getUserInfo().userId;
@ -76,9 +79,6 @@
that.questions = _data.data;
})
},
onShow: function() {
let that = this;
},
methods: {
gotoDetail: function(_question) {
if(_question.state == '0'){

View File

@ -18,6 +18,11 @@
:checked="item.radio[valueIndex].checked?true:false" :value="valueItem.valueId"></checkbox>
</view>
</checkbox-group>
<view v-else>
<view class="cu-form-group ">
<textarea maxlength="512" v-model="item.radio" placeholder="请回答"></textarea>
</view>
</view>
</view>