H5支持微信支付

This commit is contained in:
Gaoxs
2020-08-20 17:55:27 +08:00
parent 48e073d573
commit 12238a98d6
7 changed files with 168 additions and 74 deletions

View File

@ -1,11 +1,12 @@
import Vue from 'vue'
// import MpvueRouterPatch from 'mpvue-router-patch'
// Vue.use(MpvueRouterPatch)
import {
wxappAuth,
getUserInfo
} from "@/api/user";
import store from "../store";
import store from "@/store";
import dayjs from "dayjs";
import cookie from "@/utils/store/cookie";
import stringify from "@/utils/querystring";
@ -174,7 +175,7 @@ export const login = () => {
location.replace("/pages/home/index");
});
} else {
wechat().then(() => oAuth());
// wechat().then(() => oAuth());
}
// if (!code) {
// toAuth("wxc061dee8806ff712")