柒零 il y a 1 an
Parent
commit
444145ae1e
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      subpages/textStep/textStep.js

+ 2 - 3
subpages/textStep/textStep.js

@@ -546,7 +546,7 @@ Page({
         var list = this.data.physiqueData;
         var index = this.data.step - 2;
         var values = list[index].value || [];
-        if (values <= 0) {
+        if (values.length <= 0) {
           wx.showModal({
             title: '无法提交',
             content: '您还有部分题目未完成,请检查后重新提交',
@@ -713,7 +713,6 @@ Page({
 
       });
     }
-
     let surveyData = {
       hotel: this.data.hotel,
       room: this.data.room,
@@ -731,7 +730,7 @@ Page({
       //value2 保存A、B、C、D、E、F 每个的个数
       value2: JSON.stringify(countABCDEF),
       comScoreStatus: _comScoreStatus ? _comScoreStatus : '健康型',
-      comScoreIndex: comScoreIndex,
+      comScoreIndex: comScoreIndex.join(),
       comScoreDesc: _comScoreDesc,
     };
     var maxValueObj = that.findMaxValueKeyAndIndex(countABCDEF);