jufubao-forms 1.0.9-beta6 → 1.0.9-beta8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-forms",
3
- "version": "1.0.9-beta6",
3
+ "version": "1.0.9-beta8",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -33,7 +33,7 @@
33
33
  <xd-font-icon icon="iconquanbudingdan1" :size="24" color="#32C93A"></xd-font-icon>
34
34
  </view>
35
35
  答对 {{item.right_number}}题
36
- <text v-if="item.score" class="score_text">得分 {{item.score}}分</text>
36
+ <text v-if="item.score!==''||item.score!==undefined" class="score_text">得分 {{item.score}}分</text>
37
37
  </view>
38
38
  </view>
39
39
  </view>
@@ -68,14 +68,14 @@
68
68
  <view class="qa_explain">
69
69
  <view class="answer_right">
70
70
  <view class="flex-center">
71
- <xd-font-icon v-if="item.isRight" icon="icondui_fill" size="32" :color="mainColor" style="margin-right: 6rpx;"></xd-font-icon>
71
+ <xd-font-icon v-if="item.is_right" icon="icondui_fill" size="32" :color="mainColor" style="margin-right: 6rpx;"></xd-font-icon>
72
72
  <xd-font-icon v-else icon="iconshibai" size="32" color="#FF7063" style="margin-right: 6rpx;"></xd-font-icon>
73
- {{ item.isRight ? '回答正确' : '回答错误' }}
73
+ {{ item.is_right ? '回答正确' : '回答错误' }}
74
74
  </view>
75
- <view v-if="item.score">得分{{ item.score }}分</view>
75
+ <view v-if="item.user_score!==''||item.user_score!==undefined">得分{{ item.user_score }}分</view>
76
76
  <view class="is_right">正确答案: {{ item.answer_right_abc }}</view>
77
77
  </view>
78
- <view v-if="!item.isRight && item.answer_analysis" class="answer_analysis">
78
+ <view v-if="!item.is_right && item.answer_analysis" class="answer_analysis">
79
79
  <view class="_title">
80
80
  <xd-font-icon icon="icondanghang" size="32" style="margin-right: 6rpx;"></xd-font-icon>
81
81
  答案解析</view>
@@ -141,7 +141,7 @@
141
141
  },
142
142
  computed: {
143
143
  showFormList(){
144
- return this.isOnlyError ? this.formList.filter(item => !item.isRight) : this.formList;
144
+ return this.isOnlyError ? this.formList.filter(item => !item.is_right) : this.formList;
145
145
  },
146
146
  hasNoErrorQuestions(){
147
147
  return this.isOnlyError && this.showFormList.length === 0;
@@ -189,7 +189,6 @@
189
189
  this.formList = res.list.map((item, index) => {
190
190
  let defaultValue = JSON.parse(item.default);
191
191
  item.rightValue = item.answer;
192
- item.isRight = this.isSameArray(defaultValue, item.answer);
193
192
  item.field_type_name = fileTypes[item.field_type];
194
193
  item.key = index + 1;
195
194