|
@@ -402,21 +402,13 @@ export default {
|
|
|
buildPlanContent: function() {
|
|
buildPlanContent: function() {
|
|
|
var sb = []
|
|
var sb = []
|
|
|
if (this.planData.overview) {
|
|
if (this.planData.overview) {
|
|
|
- sb.push('## 方案概述
|
|
|
|
|
-
|
|
|
|
|
-' + this.planData.overview + '
|
|
|
|
|
-
|
|
|
|
|
-')
|
|
|
|
|
|
|
+ sb.push('## 方案概述\n\n' + this.planData.overview + '\n\n')
|
|
|
}
|
|
}
|
|
|
var titles = { nutrition: '营养补充建议', diet: '饮食建议', exercise: '运动计划' }
|
|
var titles = { nutrition: '营养补充建议', diet: '饮食建议', exercise: '运动计划' }
|
|
|
var self = this
|
|
var self = this
|
|
|
this.sectionKeys.forEach(function(key) {
|
|
this.sectionKeys.forEach(function(key) {
|
|
|
if (self.sections[key].content) {
|
|
if (self.sections[key].content) {
|
|
|
- sb.push('## ' + (titles[key] || key) + '
|
|
|
|
|
-
|
|
|
|
|
-' + self.sections[key].content + '
|
|
|
|
|
-
|
|
|
|
|
-')
|
|
|
|
|
|
|
+ sb.push('## ' + (titles[key] || key) + '\n\n' + self.sections[key].content + '\n\n')
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
return sb.join('')
|
|
return sb.join('')
|
|
@@ -455,9 +447,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
reCreate: function() {
|
|
reCreate: function() {
|
|
|
this.step = 1
|
|
this.step = 1
|
|
|
|
|
+ this.viewMode = false
|
|
|
this.planId = null
|
|
this.planId = null
|
|
|
this.planDetail = null
|
|
this.planDetail = null
|
|
|
this.taskSubmitted = false
|
|
this.taskSubmitted = false
|
|
|
|
|
+ this.editing = false
|
|
|
|
|
+ this.sectionFeedback = ''
|
|
|
this.planData = {}
|
|
this.planData = {}
|
|
|
this.sections = {
|
|
this.sections = {
|
|
|
nutrition: { content: '', confirmed: false },
|
|
nutrition: { content: '', confirmed: false },
|