修改公众号微信登录授权未保存token的问题

This commit is contained in:
Gaoxs
2020-08-19 20:03:28 +08:00
parent 0c50a9ebb2
commit 48e073d573
8 changed files with 117 additions and 36 deletions

View File

@ -52,9 +52,9 @@ export default {
return;
}
login().finally(() => {
this.$yrouter.switchTab({
path: "/pages/home/index"
});
// this.$yrouter.switchTab({
// path: "/pages/home/index"
// });
});
},
methods: {

View File

@ -146,7 +146,6 @@
mapMutations,
mapActions
} from 'vuex';
import GoodList from '@/components/GoodList';
import PromotionGood from '@/components/PromotionGood';
import CouponWindow from '@/components/CouponWindow';
@ -310,7 +309,20 @@
goGoodsPromotion() {
this.$yrouter.push('/pages/shop/GoodsPromotion/index');
},
setOpenShare: function() {},
setOpenShare: function() {
if (this.$deviceType == 'weixin') {
getShare().then(res => {
var data = res.data.data;
var configAppMessage = {
desc: data.synopsis,
title: data.title,
link: location.href,
imgUrl: data.img
};
this.openShareAll(configAppMessage);
})
}
},
startQr: function() {
uni.scanCode({
success: (res) => {