|
|
|
@ -1,5 +1,6 @@ |
|
|
|
<template> |
|
|
|
<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="header_body">--> |
|
|
|
<!-- <header-nav :leftArrow="false" titelText="执法监督码"></header-nav>--> |
|
|
|
@ -53,11 +54,11 @@ |
|
|
|
import {getEnterpriseMerchantAuthorization, getSiqLoginAuth, getSiqLoginAuthTest, siqCode} from '../api/Home'; |
|
|
|
import {showSuccessToast} from "vant"; |
|
|
|
import 'vant/es/toast/style'; |
|
|
|
|
|
|
|
const {useCommon} = $globalStore; |
|
|
|
const router = useRouter(); |
|
|
|
const route = useRoute(); |
|
|
|
let carouselList = reactive([]); // 轮播列表 |
|
|
|
const isLoading = ref(true); |
|
|
|
let freshMap = reactive({ |
|
|
|
refreshLoad: false, // 是否刷新 |
|
|
|
listLoading: false, // 是否加载中 |
|
|
|
@ -147,12 +148,12 @@ |
|
|
|
onMounted(() => { |
|
|
|
// console.log(useCommon.phonenumber) |
|
|
|
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber); |
|
|
|
// new Vconsolefrom(); |
|
|
|
new Vconsolefrom(); |
|
|
|
|
|
|
|
// const access_key = '6374106c5eb449a4ad6c2430f30796e6'; |
|
|
|
// const access_secret = '434fec85aa5846e88bbeb8fac6cf6d7f'; |
|
|
|
// generateRandomNumber() |
|
|
|
|
|
|
|
isLoading.value = useCommon.firstLoad; |
|
|
|
siqCode(null, success => { |
|
|
|
let access_key = ""; |
|
|
|
let access_secret = ""; |
|
|
|
@ -172,14 +173,17 @@ |
|
|
|
const signature = sha1(str).toString().toLowerCase(); |
|
|
|
|
|
|
|
//深i企鉴权测试 |
|
|
|
getSiqLoginAuthTest({userId: "1608644307579883522", userName: "汪鑫"}, success => { |
|
|
|
// getSiqLoginAuthTest({userId: "1795031916332843009", userName: "陈瑞"}, success => { |
|
|
|
// getSiqLoginAuthTest({userId: "1608644307579883522", userName: "汪鑫"}, success => { |
|
|
|
getSiqLoginAuthTest({userId: "1795031916332843009", userName: "陈瑞"}, success => { |
|
|
|
console.log(success.data); |
|
|
|
useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
|
|
|
useCommon.SET_USER_ID(success.data.userId); |
|
|
|
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
|
|
|
useCommon.SET_TOKEN(success.data.token); |
|
|
|
console.log(useCommon.userId); |
|
|
|
if(useCommon.firstLoad){ |
|
|
|
isLoading.value = false; |
|
|
|
} |
|
|
|
getEnterpriseMerchant(success.data.phonenumber.toString()); |
|
|
|
}, error => { |
|
|
|
}) |
|
|
|
@ -212,6 +216,9 @@ |
|
|
|
// useCommon.SET_USER_ID(success.data.userId); |
|
|
|
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
|
|
|
// getEnterpriseMerchant(success.data.phonenumber.toString()); |
|
|
|
// if(useCommon.firstLoad){ |
|
|
|
// isLoading.value = false; |
|
|
|
// } |
|
|
|
// }, error => { |
|
|
|
// console.log("error : " + error) |
|
|
|
// }) |
|
|
|
|