|
|
@@ -42,7 +42,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getUserIntent } from '../../utils/api.js'
|
|
|
-import { updateUserIntentStage } from '../../utils/api.js'
|
|
|
+import { confirmProblemPlan } from '../../utils/api.js'
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
@@ -100,10 +100,11 @@ export default {
|
|
|
confirmPlan() {
|
|
|
var self = this
|
|
|
uni.showLoading({ title: '处理中...', mask: true })
|
|
|
- updateUserIntentStage(6).then(function(res) {
|
|
|
+ // 方案确认:后端生成方案任务(memberOnly=1)并推进旅程 stage=6
|
|
|
+ confirmProblemPlan('').then(function(res) {
|
|
|
uni.hideLoading()
|
|
|
if (res && (res.code === 0 || res.code === 200)) {
|
|
|
- uni.showToast({ title: '方案已确认', icon: 'success' })
|
|
|
+ uni.showToast({ title: '方案已确认,任务已生成', icon: 'success' })
|
|
|
setTimeout(function() {
|
|
|
uni.navigateTo({ url: '/pages/tasks/tasks' })
|
|
|
}, 500)
|