|
@@ -132,7 +132,7 @@
|
|
|
<view class="ans_input" v-if="!bank.ques">
|
|
|
<view class="top flex">
|
|
|
<image :data-index="bankIndex" class="icon" @click="chooseImg(bankIndex)" src="/static/camera.png" mode=""></image>
|
|
|
- <view class="progress">{{bank.ansText.imageList.length}}/4</view>
|
|
|
+ <view class="progress">{{bank.ansText.imageList.length || '0'}}/4</view>
|
|
|
<view class="submit" :class="{disabled:!bank.ansText.text && hasImgs(bank)}" @click="submitAns(bankIndex)">确认答案</view>
|
|
|
</view>
|
|
|
<view class="textarea"><textarea v-model="bank.ansText.text" placeholder="在此输入答案"></textarea></view>
|
|
@@ -290,7 +290,7 @@
|
|
|
<view class="ans_input" v-if="!bank.ques[ansIndex]">
|
|
|
<view class="top flex">
|
|
|
<image class="icon" @click="chooseImgChild(bankIndex, ansIndex)" src="/static/08-10_032.jpg" mode=""></image>
|
|
|
- <view class="progress">{{ansItem.ansText.imageList.length}}/4</view>
|
|
|
+ <view class="progress">{{ansItem.ansText.imageList.length || '0'}}/4</view>
|
|
|
<view class="submit" @click="submitAnsChild(bankIndex, ansIndex)">确认答案</view>
|
|
|
</view>
|
|
|
<view class="textarea"><textarea v-model="ansItem.ansText.text" placeholder="在此输入答案"></textarea></view>
|
|
@@ -592,7 +592,7 @@ export default {
|
|
|
}
|
|
|
} else if (jsonItem.type == 5) {
|
|
|
console.log(jsonItem, 111);
|
|
|
- if (jsonItem.ansText.text.length || jsonItem.ansText.imageList.length) {
|
|
|
+ if (item.ques[indexs].text.length || item.ques[indexs].imageList.length) {
|
|
|
return true;
|
|
|
} else {
|
|
|
return false;
|