mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
0bd80bef73
commit
ef9a364da5
@ -49,6 +49,9 @@
|
|||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
let that = this;
|
let that = this;
|
||||||
context.onLoad(options);
|
context.onLoad(options);
|
||||||
|
},
|
||||||
|
onShow: function() {
|
||||||
|
let that = this;
|
||||||
that.communityId = context.getUserInfo().communityId;
|
that.communityId = context.getUserInfo().communityId;
|
||||||
that.userId = context.getUserInfo().userId;
|
that.userId = context.getUserInfo().userId;
|
||||||
|
|
||||||
@ -76,9 +79,6 @@
|
|||||||
that.questions = _data.data;
|
that.questions = _data.data;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onShow: function() {
|
|
||||||
let that = this;
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
gotoDetail: function(_question) {
|
gotoDetail: function(_question) {
|
||||||
if(_question.state == '0'){
|
if(_question.state == '0'){
|
||||||
|
|||||||
@ -18,6 +18,11 @@
|
|||||||
:checked="item.radio[valueIndex].checked?true:false" :value="valueItem.valueId"></checkbox>
|
:checked="item.radio[valueIndex].checked?true:false" :value="valueItem.valueId"></checkbox>
|
||||||
</view>
|
</view>
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
|
<view v-else>
|
||||||
|
<view class="cu-form-group ">
|
||||||
|
<textarea maxlength="512" v-model="item.radio" placeholder="请回答"></textarea>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user