flat: 登陆对接

This commit is contained in:
Apcallover
2025-11-18 20:38:05 +08:00
parent d2e77e66fc
commit ca4b038e14
4 changed files with 10 additions and 8 deletions

11
App.vue
View File

@@ -49,7 +49,6 @@ function getUserInfo() {
lightAppJssdk.user.getUserInfoWithEncryptedParamByAppId({ lightAppJssdk.user.getUserInfoWithEncryptedParamByAppId({
appId: 'qdsrgznrgpp', // 接入方在成功创建应用后自动生成 appId: 'qdsrgznrgpp', // 接入方在成功创建应用后自动生成
success: function (data) { success: function (data) {
console.log('res', data);
if (data == '未登录') onLoginApp(); if (data == '未登录') onLoginApp();
else { else {
if (typeof data == 'string') data = JSON.parse(data); if (typeof data == 'string') data = JSON.parse(data);
@@ -106,8 +105,8 @@ function oncloseWindow() {
} }
function loginCallback(userInfo) { function loginCallback(userInfo) {
let pramams = { let params = {
token: userInfo, username: userInfo,
}; };
$api.createRequest('/app/login', params, 'post').then((resData) => { $api.createRequest('/app/login', params, 'post').then((resData) => {
useUserStore() useUserStore()
@@ -119,7 +118,9 @@ function loginCallback(userInfo) {
url: '/pages/index/index', url: '/pages/index/index',
}); });
} else { } else {
nextStep(); uni.redirectTo({
url: '/pages/login/login',
});
} }
}); });
}); });
@@ -179,4 +180,4 @@ uni-modal,
body { body {
font-family: 'PingFangSC-Regular', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'PingFangSC-Regular', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
} }
</style> </style>

View File

@@ -32,7 +32,7 @@
</template> </template>
<script setup> <script setup>
import { ref, reactive, computed, inject, nextTick, defineExpose, onMounted } from 'vue'; import { ref, reactive, computed, inject, nextTick, onMounted } from 'vue';
const { $api, navTo, setCheckedNodes, cloneDeep } = inject('globalFunction'); const { $api, navTo, setCheckedNodes, cloneDeep } = inject('globalFunction');
import useUserStore from '@/stores/useUserStore'; import useUserStore from '@/stores/useUserStore';
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';

View File

@@ -1,7 +1,8 @@
export default { export default {
// baseUrl: 'https://fw.rc.qingdao.gov.cn/rgpp-api', // 内网 // baseUrl: 'https://fw.rc.qingdao.gov.cn/rgpp-api', // 内网
baseUrl: 'https://qd.zhaopinzao8dian.com/api', // 测试 // baseUrl: 'https://qd.zhaopinzao8dian.com/api', // 测试
// baseUrl: "http://192.168.98.110:18181", // baseUrl: "http://192.168.98.110:18181",
baseUrl: "http://192.168.3.19:8080",
// sseAI+ // sseAI+
// StreamBaseURl: 'http://39.98.44.136:8000', // StreamBaseURl: 'http://39.98.44.136:8000',
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai', StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',

View File

@@ -125,7 +125,7 @@ const { getDictSelectOption, oneDictData } = useDictStore();
const openSelectPopup = inject('openSelectPopup'); const openSelectPopup = inject('openSelectPopup');
// status // status
const selectJobsModel = ref(); const selectJobsModel = ref();
const tabCurrent = ref(0); const tabCurrent = ref(1);
const salay = [2, 5, 10, 15, 20, 25, 30, 50, 80, 100]; const salay = [2, 5, 10, 15, 20, 25, 30, 50, 80, 100];
const state = reactive({ const state = reactive({
station: [], station: [],