|
@@ -84,6 +84,7 @@ export default {
|
|
|
member: (state) => state.member,
|
|
|
mobile: (state) => state.mobile,
|
|
|
source: (state) => state.source,
|
|
|
+ isLogin: (state) => state.isLogin,
|
|
|
}),
|
|
|
},
|
|
|
created() {
|
|
@@ -119,7 +120,7 @@ export default {
|
|
|
const invoiceindex = Number.parseInt(uni.getStorageSync('invoiceindex') || 1)
|
|
|
this.$store.dispatch('clearUnlicensed');
|
|
|
// 如果用户登录时 或者 是浦东和静安访问的话,展示开票内容
|
|
|
- if (JSON.stringify(this.member) !== '{}' || ['JINGAN', 'PUDONG'].indexOf(this.source) > -1) {
|
|
|
+ if (this.isLogin === 'haveLoggedIn' || ['JINGAN', 'PUDONG'].indexOf(this.source) > -1) {
|
|
|
this.invoice(invoiceindex);
|
|
|
} else {
|
|
|
wxToLoginCallback('parkingReceipt', () => {
|