Browse Source

no message

linwenxin 5 days ago
parent
commit
0b2e176dd4
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/views/mallManagement/activityOrder/detail.vue

+ 5 - 4
src/views/mallManagement/activityOrder/detail.vue

@@ -346,10 +346,9 @@ export default {
         })
         this.websitList = res.data.promotionQuestionnaireQrcodes
         this.status = res.data.status
-        res.data.items.forEach(item => {
-          item.answer = JSON.parse(item.answer)
 
-          item.answer.forEach(it => {
+        this.activeItems = res.data.items.map(item => {
+          item.answer = item.answer.map(it => {
             if (item.type == 3) {
               item.inputValue = it.option_value
             } else if (item.type == 4 || item.type == 5) {
@@ -359,10 +358,12 @@ export default {
               })
               console.log(it.option_value, img)
               item.inputValue = img
+              return { ...it }
             }
           })
+          return { ...item }
         })
-        this.activeItems = res.data.items
+        console.log(this.activeItems)
         getActiveDetail({ id: res.data.promotionQuestionnaireId }).then(res => {
           this.activeDetailData = res.data
           console.log(this.activeDetailData)