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

update

上级 48f76f6a
...@@ -255,8 +255,9 @@ export default { ...@@ -255,8 +255,9 @@ export default {
this.$router.push({ path: '/' }) this.$router.push({ path: '/' })
} else { } else {
if (!window.localStorage.openId) { if (!window.localStorage.openId) {
this.wxAuthorize(res => { this.wxAuthorize(resId => {
window.localStorage.openId = res.openid window.localStorage.openId = resId.openid
console.log(res.data, 1)
}) })
} else { } else {
this.$emit('next', res.data) this.$emit('next', res.data)
...@@ -268,8 +269,10 @@ export default { ...@@ -268,8 +269,10 @@ export default {
this.$router.push({ path: '/' }) this.$router.push({ path: '/' })
} else { } else {
if (!window.localStorage.openId) { if (!window.localStorage.openId) {
this.wxAuthorize(res => { this.wxAuthorize(resId => {
window.localStorage.openId = res.openid window.localStorage.openId = resId.openid
// this.$emit('next', res.data)
console.log(res.data, 2)
}) })
} else { } else {
this.$emit('next', res.data) this.$emit('next', res.data)
......
...@@ -241,10 +241,10 @@ export default { ...@@ -241,10 +241,10 @@ export default {
}, },
handleNext(data) { handleNext(data) {
if (this.setpItem.num !== this.stepList[this.stepList.length - 1].num) { if (this.setpItem.num !== this.stepList[this.stepList.length - 1].num) {
this.stepIndex++
if (data) { if (data) {
this.setpItem.payData = data this.setpItem.payData = data
} }
this.stepIndex++
const stringData = { const stringData = {
index: this.stepIndex, index: this.stepIndex,
stepList: this.stepList stepList: this.stepList
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论