Browse Source

修改i深圳登录

master
蟑螂恶霸 2 years ago
parent
commit
347f60a34f
  1. 2
      src/api/Home.js
  2. 16
      src/views/Home.vue
  3. 8
      src/views/enforceHome.vue

2
src/api/Home.js

@ -11,6 +11,6 @@ export const getDict = (params, success, error) => _get("/system/dict/data/query
export const getEnterpriseMerchantAuthorization = (params, success, error) => _get("/code/authorization/queryList",params,success,error);
//深i企登录
export const getSiqLoginAuth = (params, success, error) => _get("/thirdLogin/siqLogin",params,success,error);
export const getSiqLoginAuth = (params, success, error) => _post("/thirdLogin/siqLogin",params,success,error);

16
src/views/Home.vue

@ -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 =>{
})
});

8
src/views/enforceHome.vue

@ -89,17 +89,17 @@ const toScanCodeView = async() =>{
};
const toRegistrationListView = async() =>{
router.push({
router.push({
path: "/historyCheck",
});
}
const toComplaintView = async() =>{
router.push({
router.push({
path: "/enterprise/complaint",
});
}
const toAnalyseView = async() =>{
router.push({
router.push({
path: "/analyse",
});
}
@ -128,7 +128,7 @@ onMounted(() => {
getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{
if(!(success.data == null && success.data.length == 0)){
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber);
}
}
},error =>{
})
});

Loading…
Cancel
Save