|
@@ -5,7 +5,7 @@ import { mapState } from 'vuex';
|
|
import { initWxJsSdkConfig } from '@/utils/login';
|
|
import { initWxJsSdkConfig } from '@/utils/login';
|
|
import { getPlatform,requestInit } from '@/utils/index';
|
|
import { getPlatform,requestInit } from '@/utils/index';
|
|
import { wxToLoginCallback, getUrlParams } from '@/utils';
|
|
import { wxToLoginCallback, getUrlParams } from '@/utils';
|
|
-
|
|
|
|
|
|
+import {getAccessH5} from '@/utils/api-crm-member'
|
|
const app = {
|
|
const app = {
|
|
globalData: {
|
|
globalData: {
|
|
regSource: '',
|
|
regSource: '',
|
|
@@ -17,6 +17,7 @@ import uni from '@/utils/uniHooks';
|
|
// import officeBlueCom from '../components/officeBlue/home.vue';
|
|
// import officeBlueCom from '../components/officeBlue/home.vue';
|
|
// import purpleCom from '../components/purple/home.vue';
|
|
// import purpleCom from '../components/purple/home.vue';
|
|
import { parkingLots, qrCodes, unlicensedCarCheckIn } from '@/api/parking';
|
|
import { parkingLots, qrCodes, unlicensedCarCheckIn } from '@/api/parking';
|
|
|
|
+import { reject } from 'lodash';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -463,8 +464,32 @@ export default {
|
|
uni.removeStorageSync('passLogin');
|
|
uni.removeStorageSync('passLogin');
|
|
this.$router.push({ path: 'vehicleManagement' });
|
|
this.$router.push({ path: 'vehicleManagement' });
|
|
},
|
|
},
|
|
|
|
+ async jumpToPreJudgmentOfParkingInvoice() {
|
|
|
|
+ return new Promise(async (resolve) => {
|
|
|
|
+ try {
|
|
|
|
+ // 判断是否启用停车发票
|
|
|
|
+ uni.showLoading()
|
|
|
|
+ const res = await getAccessH5(`${this.mallId}-invoice`);
|
|
|
|
+ if(res?.data === 1) {
|
|
|
|
+ // 提示用户
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title:'尽请期待!'
|
|
|
|
+ })
|
|
|
|
+ resolve(true)
|
|
|
|
+ }
|
|
|
|
+ resolve(false)
|
|
|
|
+ } catch (err) {
|
|
|
|
+ console.log(err);
|
|
|
|
+ resolve(false)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // return false
|
|
|
|
+ },
|
|
//停车发票
|
|
//停车发票
|
|
- doRouter1: function () {
|
|
|
|
|
|
+ doRouter1: async function () {
|
|
|
|
+ const isJump = await this.jumpToPreJudgmentOfParkingInvoice();
|
|
|
|
+ if(isJump) return
|
|
|
|
+ uni.hideLoading()
|
|
uni.removeStorageSync('invoiceindex');
|
|
uni.removeStorageSync('invoiceindex');
|
|
this.$store.dispatch('clearUnlicensed');
|
|
this.$store.dispatch('clearUnlicensed');
|
|
window?.toWXSendMsg({
|
|
window?.toWXSendMsg({
|