提交 e0f63721 authored 作者: lihuihui's avatar lihuihui

update

上级 a697919b
......@@ -195,14 +195,11 @@ export default {
if (res.code === 0) {
this.data.join_rand = res.data.join_rand
if (this.checkedPay) {
this.stepList.splice(this.data.num, 1)
this.stepList.splice(this.stepList.findIndex(i => i.num === this.data.num) + 1, 1)
if (this.stepList[this.stepList.length - 1].num === this.data.num) {
console.log('000')
// 完成步骤跳转
this.$router.push({ path: '/' })
} else {
console.log('111')
this.$emit('next', res.data)
}
} else {
......@@ -210,6 +207,7 @@ export default {
// 完成步骤跳转
this.$router.push({ path: '/' })
} else {
console.log(this.stepList, 'stepList')
this.$emit('next', res.data)
}
}
......
......@@ -212,7 +212,8 @@ export default {
}
},
handleNext(data) {
if (this.setpItem.num !== this.stepList.length) {
console.log(this.setpItem, '===', this.stepList.length, this.stepIndex)
if (this.setpItem.num !== this.stepList[this.stepList.length - 1].num) {
this.stepIndex++
if (data) {
this.setpItem.payData = data
......
......@@ -15,8 +15,8 @@ export default defineConfig({
},
proxy: {
'/api/register': {
target: 'http://localhost-activity-frontend.ezijing.com',
// target: 'https://activity-frontend-api.ezijing.com',
// target: 'http://localhost-activity-frontend.ezijing.com',
target: 'https://activity-frontend-api.ezijing.com',
changeOrigin: true,
rewrite: path => path.replace(/^\/api\/register/, '')
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论