Commit 74b71b22 authored by 郭志伟's avatar 郭志伟 Committed by 郝聪敏

fix: 联调

parent e96cb24d
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
...mapState(["showAuthXyqb"]) ...mapState(["showAuthXyqb"])
}, },
methods: { methods: {
...mapActions(["setShowAuthXyqb"]) ...mapActions(["setAuthXyqb"])
} }
}; };
</script> </script>
......
...@@ -9,7 +9,7 @@ export default new Vuex.Store({ ...@@ -9,7 +9,7 @@ export default new Vuex.Store({
activeIdx: 0, activeIdx: 0,
isLoading: false, isLoading: false,
isShowLogin: false, isShowLogin: false,
showAuthXyqb: "init" // init 已获取信息未授权,pending 授权弹框 showAuthXyqb: "init" // init 已获取信息未授权,pending 授权弹框, reject 拒绝授权,resolve允许授权
}, },
mutations: { mutations: {
setActiveIdx(state, value) { setActiveIdx(state, value) {
...@@ -21,7 +21,7 @@ export default new Vuex.Store({ ...@@ -21,7 +21,7 @@ export default new Vuex.Store({
setIsShowLogin(state, value) { setIsShowLogin(state, value) {
state.isShowLogin = value; state.isShowLogin = value;
}, },
authXyqb(state, value) { setAuthXyqb(state, value) {
state.showAuthXyqb = value; state.showAuthXyqb = value;
} }
}, },
...@@ -35,8 +35,8 @@ export default new Vuex.Store({ ...@@ -35,8 +35,8 @@ export default new Vuex.Store({
setIsShowLogin({ commit }, args) { setIsShowLogin({ commit }, args) {
commit("setIsShowLogin", args); commit("setIsShowLogin", args);
}, },
setsuthXyqb({ commit }, args) { setAuthXyqb({ commit }, args) {
commit("setShowAuthXyqb", args); commit("setAuthXyqb", args);
} }
}, },
modules: { modules: {
......
...@@ -234,7 +234,7 @@ export default { ...@@ -234,7 +234,7 @@ export default {
async goPay() { async goPay() {
const res = await goPay({ tradeType: this.tradeType }); const res = await goPay({ tradeType: this.tradeType });
if (res) { if (res) {
payByWay(this.tradeType, res).then(() => { payByWay(this.tradeType, res.payInfo).then(() => {
this.$notify({ type: "success", message: "支付成功" }); this.$notify({ type: "success", message: "支付成功" });
setTimeout(() => { setTimeout(() => {
// this.$router.push("/consultant/success"); // this.$router.push("/consultant/success");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment