|
|
|
@ -47,7 +47,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup name="Home"> |
|
|
|
import {getEnterpriseMerchantAuthorization,getSiqLoginAuth} from '@/api/Home'; |
|
|
|
import {getEnterpriseMerchantAuthorization,getSiqLoginAuth} from '../api/Home'; |
|
|
|
const { useCommon } = $globalStore; |
|
|
|
const router = useRouter(); |
|
|
|
const route = useRoute(); |
|
|
|
@ -123,14 +123,12 @@ const onLoad = () => { |
|
|
|
onMounted(() => { |
|
|
|
// console.log(useCommon.phonenumber) |
|
|
|
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber); |
|
|
|
// useCommon.SET_USER_ID(success.data.userId); |
|
|
|
getSiqLoginAuth({userId:"",userName:""},success =>{ |
|
|
|
getSiqLoginAuth({userId:"1608434855568265217",userName:"汤家荣"},success =>{ |
|
|
|
console.log(success.data) |
|
|
|
},error =>{ |
|
|
|
|
|
|
|
}) |
|
|
|
getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{ |
|
|
|
console.log(success) |
|
|
|
if(!(success.data == null && success.data.length == 0)){ |
|
|
|
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber); |
|
|
|
} |
|
|
|
|