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

fix: 联调

parent e96cb24d
......@@ -22,7 +22,7 @@ export default {
...mapState(["showAuthXyqb"])
},
methods: {
...mapActions(["setShowAuthXyqb"])
...mapActions(["setAuthXyqb"])
}
};
</script>
......
......@@ -9,7 +9,7 @@ export default new Vuex.Store({
activeIdx: 0,
isLoading: false,
isShowLogin: false,
showAuthXyqb: "init" // init 已获取信息未授权,pending 授权弹框
showAuthXyqb: "init" // init 已获取信息未授权,pending 授权弹框, reject 拒绝授权,resolve允许授权
},
mutations: {
setActiveIdx(state, value) {
......@@ -21,7 +21,7 @@ export default new Vuex.Store({
setIsShowLogin(state, value) {
state.isShowLogin = value;
},
authXyqb(state, value) {
setAuthXyqb(state, value) {
state.showAuthXyqb = value;
}
},
......@@ -35,8 +35,8 @@ export default new Vuex.Store({
setIsShowLogin({ commit }, args) {
commit("setIsShowLogin", args);
},
setsuthXyqb({ commit }, args) {
commit("setShowAuthXyqb", args);
setAuthXyqb({ commit }, args) {
commit("setAuthXyqb", args);
}
},
modules: {
......
......@@ -234,7 +234,7 @@ export default {
async goPay() {
const res = await goPay({ tradeType: this.tradeType });
if (res) {
payByWay(this.tradeType, res).then(() => {
payByWay(this.tradeType, res.payInfo).then(() => {
this.$notify({ type: "success", message: "支付成功" });
setTimeout(() => {
// 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