<view
class="uni-column"
v-for="(con, indexCon) in item.select_question"
:key="indexCon"
:class="indexCon == item.select_question.length - 1 ? '' : 'borderMin E7Bottom'"
>
<text class="conarea color-575757">{{ con.input_title }}</text>
<input
type="text"
:maxlength="item.number_of_characters"
class="moreinput"
:placeholder="con.input_title"
:value="con.value"
:disabled="dis"
:name="item.question_id"
@input="value => onKeyInputMore(value,item.question_id,item.select_question.length,indexCon)"
/>
</view>
这个_this.template[j].select_question[a] 里面添加的value字段都等于allArr[b]最后循环的值?亲问怎么修改呢,我要value里面展示不同的值,后面的值不覆盖之前的值,而是循环的给input初始值?
for (let a = 0; a < _this.template[j].select_question.length; a++) {
for (var key in _this.infoVisaValue) {
if (key == _this.template[j].question_id) {
var allArr = _this.infoVisaValue[key].split('<|>');
for (let b = 0; b < allArr.length; b++) {
_this.$set(_this.template[j].select_question[a], 'value', allArr[b]);
}
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…