|
|
|
@ -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(); |
|
|
|
@ -85,22 +85,22 @@ const toRegisterView = async() =>{ |
|
|
|
if(useCommon.enterpriseNumber == null || useCommon.enterpriseNumber == ""){ |
|
|
|
router.push({ path: "/enterprise/register" }); |
|
|
|
}else{ |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
path: "/enterprise/qrCode", |
|
|
|
query: { |
|
|
|
enterpriseNumber: useCommon.enterpriseNumber, |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
const toRegistrationListView = async() =>{ |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
path: "/enterprise/registrationList", |
|
|
|
}); |
|
|
|
} |
|
|
|
const toComplaintView = async() =>{ |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
path: "/enterprise/complaint", |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -123,17 +123,15 @@ 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); |
|
|
|
} |
|
|
|
} |
|
|
|
},error =>{ |
|
|
|
}) |
|
|
|
}); |
|
|
|
|