|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<!-- <Loading class="loading-div" type="spinner" v-show="isLoading" color="#1989fa"/> --> |
|
|
|
<!-- v-if="!isLoading" --> |
|
|
|
<div class="home app_content"> |
|
|
|
<Loading class="loading-div" type="spinner" v-show="isLoading" color="#1989fa"/> |
|
|
|
<div class="home app_content" v-if="!isLoading"> |
|
|
|
<!-- <div class="home app_content">--> |
|
|
|
<!-- 导航栏 --> |
|
|
|
<!-- <div class="header_body">--> |
|
|
|
<!-- <header-nav :leftArrow="false" titelText="执法监督码"></header-nav>--> |
|
|
|
@ -52,9 +52,8 @@ |
|
|
|
import Vconsolefrom from 'vconsole'; |
|
|
|
import * as w6s from 'szient-js-sdk'; |
|
|
|
import sha1 from 'crypto-js/sha1'; |
|
|
|
import { Loading } from 'vant'; |
|
|
|
import {getEnterpriseMerchantAuthorization, getSiqLoginAuth, getSiqLoginAuthTest, siqCode} from '../api/Home'; |
|
|
|
import {showSuccessToast} from "vant"; |
|
|
|
import {Loading, showFailToast, showSuccessToast} from "vant"; |
|
|
|
import 'vant/es/toast/style'; |
|
|
|
const {useCommon} = $globalStore; |
|
|
|
const router = useRouter(); |
|
|
|
@ -181,16 +180,15 @@ |
|
|
|
// console.log(success.data); |
|
|
|
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
|
|
|
// useCommon.SET_USER_ID(success.data.userId); |
|
|
|
// console.log("-----> success.data: ", success.data); |
|
|
|
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
|
|
|
// useCommon.SET_TOKEN(success.data.token); |
|
|
|
// console.log(useCommon.userId); |
|
|
|
// console.log(useCommon.firstLoad); |
|
|
|
// if(useCommon.firstLoad){ |
|
|
|
// isLoading.value = false; |
|
|
|
// } |
|
|
|
// console.log("-----> useCommon.userId: ", useCommon.userId); |
|
|
|
// console.log("-----> useCommon.firstLoad: ", useCommon.firstLoad); |
|
|
|
// //设置已经初始化 |
|
|
|
// useCommon.SET_IS_FIRST_LOAD(false) |
|
|
|
// getEnterpriseMerchant(success.data.phonenumber.toString()); |
|
|
|
// isLoading.value = false; |
|
|
|
// }, error => { |
|
|
|
// }) |
|
|
|
|
|
|
|
@ -234,9 +232,7 @@ |
|
|
|
//设置已经初始化 |
|
|
|
useCommon.SET_IS_FIRST_LOAD(false) |
|
|
|
getEnterpriseMerchant(success.data.phonenumber.toString()); |
|
|
|
if(useCommon.firstLoad){ |
|
|
|
isLoading.value = false; |
|
|
|
} |
|
|
|
isLoading.value = false; |
|
|
|
}, error => { |
|
|
|
console.log("error : " + error) |
|
|
|
}) |
|
|
|
@ -295,10 +291,10 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.boutique_box { |
|
|
|
position: fixed; |
|
|
|
position: absolute; |
|
|
|
width: 100%; |
|
|
|
bottom: calc(1.67rem + constant(safe-area-inset-bottom)); |
|
|
|
bottom: calc(1.67rem + env(safe-area-inset-bottom)); |
|
|
|
bottom: calc(0.5rem + constant(safe-area-inset-bottom)); |
|
|
|
bottom: calc(0.5rem + env(safe-area-inset-bottom)); |
|
|
|
|
|
|
|
.boutique_body { |
|
|
|
padding: 0 0 0.27rem 0; |
|
|
|
|