|
@@ -75,6 +75,7 @@ export default {
|
|
|
computed:{
|
|
|
...mapState({
|
|
|
unlicensedInfo: (state) => state.unlicensedInfo,
|
|
|
+ isLogin: (state) => state.isLogin,
|
|
|
})
|
|
|
},
|
|
|
async created() {
|
|
@@ -159,7 +160,7 @@ export default {
|
|
|
} else {
|
|
|
this.$wx.scanQRCode({
|
|
|
desc: 'scanQRCode desc',
|
|
|
- needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
|
|
+ needResult: 0, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
|
|
// scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
|
|
|
success: (res) => {
|
|
|
let path = res.resultStr.replace(/.*([a-z0-9]{6}&type)/g, '8b$1')
|
|
@@ -237,6 +238,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
goHome() {
|
|
|
+ if (this.isLogin === 'notLoggedIn' || this.isLogin === 'loginDenied') {
|
|
|
+ wx.miniProgram.redirectTo({
|
|
|
+ "url": "/pages/package-parkingFee/parkingFeeWebViewLogin?needLogin=1&fromPage=home" // 去 login 页面 1 去登录
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$router.replace({
|
|
|
path: 'home',
|
|
|
});
|