|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
var answersArr = []
|
|
|
for (var i = 0; i < this.questions.length; i++) answersArr.push(this.answers[i] || '')
|
|
|
var answersJson = JSON.stringify(answersArr)
|
|
|
- if (!answersJson) { uni.showToast({ title: '请至少选择一道题', icon: 'none' }); return }
|
|
|
+ if (!this.templateId || !this.questions.length) { uni.showToast({ title: '问卷未加载,请从调研列表进入', icon: 'none' }); return }
|
|
|
this.isSubmitting = true
|
|
|
try {
|
|
|
var d = { memberId: memberId, templateId: this.templateId, answersJson: answersJson }
|