Browse Source

微信登录

master
陈裕财 4 years ago
parent
commit
201afece0a
  1. 3
      src/views/layout/components/Navbar.vue
  2. 3
      src/views/login/components/login.vue

3
src/views/layout/components/Navbar.vue

@ -224,7 +224,8 @@ export default {
logout() { logout() {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
//location.reload()// In order to re-instantiate the vue-router object to avoid bugs //location.reload()// In order to re-instantiate the vue-router object to avoid bugs
this.$router.push({path:'/login'})
//this.$router.replace({path:'/login'})
location.replace('/');
}) })
}, },
showSelectShopMethod() { showSelectShopMethod() {

3
src/views/login/components/login.vue

@ -328,7 +328,8 @@ export default {
this.handleLogin(); this.handleLogin();
}, },
weixinLogin(){ weixinLogin(){
var mdpRedirectUri="https://www.qingqinkj.com/xm/m1/"
var curlDomain=window.location.protocol+"//"+window.location.host; //
var mdpRedirectUri=curlDomain+"/"+process.env.CONTEXT+"/"+process.env.VERSION+"/"
getTpaState().then(res=>{ getTpaState().then(res=>{
var tips = res.data.tips; var tips = res.data.tips;
if(tips.isOk){ if(tips.isOk){

Loading…
Cancel
Save