提交 48f76f6a authored 作者: lihuihui's avatar lihuihui

update

上级 5b66bd6d
......@@ -254,10 +254,9 @@ export default {
// 完成步骤跳转
this.$router.push({ path: '/' })
} else {
if (!window.sessionStorage.openId) {
if (!window.localStorage.openId) {
this.wxAuthorize(res => {
window.sessionStorage.openId = res.openid
this.$emit('next', res.data)
window.localStorage.openId = res.openid
})
} else {
this.$emit('next', res.data)
......@@ -268,10 +267,9 @@ export default {
// 完成步骤跳转
this.$router.push({ path: '/' })
} else {
if (!window.sessionStorage.openId) {
if (!window.localStorage.openId) {
this.wxAuthorize(res => {
window.sessionStorage.openId = res.openid
this.$emit('next', res.data)
window.localStorage.openId = res.openid
})
} else {
this.$emit('next', res.data)
......
......@@ -290,14 +290,14 @@ export default {
if (this.isWx && parseInt(this.payMode) === 1) {
params.pay_type = '3'
// 没有openid去授权获取
if (!window.sessionStorage.openId) {
if (!window.localStorage.openId) {
this.wxAuthorize(res => {
params.openid = res.openid
window.sessionStorage.openId = res.openid
window.localStorage.openId = res.openid
this.getPayInfo(params)
})
} else {
params.openid = window.sessionStorage.openId
params.openid = window.localStorage.openId
this.getPayInfo(params)
}
} else {
......
......@@ -241,10 +241,10 @@ export default {
},
handleNext(data) {
if (this.setpItem.num !== this.stepList[this.stepList.length - 1].num) {
this.stepIndex++
if (data) {
this.setpItem.payData = data
}
this.stepIndex++
const stringData = {
index: this.stepIndex,
stepList: this.stepList
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论