diff --git a/App.vue b/App.vue
index 8f20c16..9a66f58 100644
--- a/App.vue
+++ b/App.vue
@@ -43,23 +43,21 @@ onHide(() => {
function getUserInfo() {
lightAppJssdk.user.getUserInfoWithEncryptedParamByAppId({
- appId: 'qdsrgznrgpp', // 接入方在成功创建应用后自动生成
+ appId: config.appInfo.loveShandong, // 接入方在成功创建应用后自动生成
success: function (data) {
if (data == '未登录') onLoginApp();
else {
if (typeof data == 'string') data = JSON.parse(data);
-
- const sm2_privateKey = '7e14966df4ecd4241ed082ef716d82b52113cb5899ebdc704a98844d0a32b0dc';
+ const sm2_privateKey = config.appInfo.sm2PrivateKey;
let sm2_encrypt_result = data.data;
let sm2_decrypt_result = sm2_Decrypt(sm2_encrypt_result, sm2_privateKey);
-
+ console.log(sm2_decrypt_result);
if (typeof sm2_decrypt_result == 'string') sm2_decrypt_result = JSON.parse(sm2_decrypt_result);
// 其次,对sm2解密后的结果进行 aes解密
// aes解密需要用到 appword , 为固定值,使用示例代码中的即可
let aes_encrypt_result = sm2_decrypt_result.data;
let aes_decrypt_result = aes_Decrypt(aes_encrypt_result, appword);
-
// 加密
loginCallback(aes_decrypt_result);
}
diff --git a/common/globalFunction.js b/common/globalFunction.js
index e67a461..a4bf4bd 100644
--- a/common/globalFunction.js
+++ b/common/globalFunction.js
@@ -1,3 +1,4 @@
+import '@/lib/encryption/sm4.min.js'
import useUserStore from "../stores/useUserStore";
import {
createRequest,
@@ -7,9 +8,6 @@ import streamRequest, {
chatRequest
} from "../utils/streamRequest.js";
-const sm4 = typeof window.sm4 !== 'undefined' ? window.sm4 :
- (typeof window.smCrypto !== 'undefined' ? window.smCrypto.sm4 : null);
-
export const CloneDeep = (props) => {
if (typeof props !== 'object' || props === null) {
return props
@@ -564,7 +562,6 @@ function aes_Decrypt(word, key) {
})
return decrypt.toString(CryptoJS.enc.Utf8)
}
-
export function sm2_Decrypt(word, key) {
return SM.decrypt(word, key);
}
@@ -588,7 +585,7 @@ export function sm4Decrypt(key, value, mode = "hex") {
return decrypted
} catch (e) {
- console.log('解密失败')
+ console.log('解密失败', e)
}
}
diff --git a/components/renderCompanyCollectionRecord/renderCompanyCollectionRecord.vue b/components/renderCompanyCollectionRecord/renderCompanyCollectionRecord.vue
new file mode 100644
index 0000000..e07ec8c
--- /dev/null
+++ b/components/renderCompanyCollectionRecord/renderCompanyCollectionRecord.vue
@@ -0,0 +1,157 @@
+
+
+
+
+ {{ company.name }}
+
+
+
+ {{company.industry}}
+ {{company.scale }}
+
+
+
+ 在招职位·
+ {{ company.totalRecruitment || '-' }}
+ 个
+
+
+
+
+
+ {{company.nature}}
+
+
+
+
+
+ {{ company.name }}
+
+
+
+ {{company.industry}}
+ {{company.scale }}
+
+
+
+ 在招职位·
+ {{ company.totalRecruitment || '-' }}
+ 个
+
+
+
+
+
+ {{company.nature}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/renderCompanys/renderCompanys.vue b/components/renderCompanys/renderCompanys.vue
index 5a1456d..1234a2d 100644
--- a/components/renderCompanys/renderCompanys.vue
+++ b/components/renderCompanys/renderCompanys.vue
@@ -130,4 +130,4 @@ function nextDetail(company) {
.ris{
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
}
-
+
\ No newline at end of file
diff --git a/components/renderCompanysOutData/renderCompanysOutData.vue b/components/renderCompanysOutData/renderCompanysOutData.vue
new file mode 100644
index 0000000..87f22fa
--- /dev/null
+++ b/components/renderCompanysOutData/renderCompanysOutData.vue
@@ -0,0 +1,142 @@
+
+
+
+
+ {{ job.gsmc }}
+
+
+
+
+ {{job.gsxy}}
+
+
+
+ 在招职位·
+ {{ job.zzgwsl || '-' }}
+ 个
+
+
+
+
+
+
+
+
+
+ {{ vacanciesTo(job.vacancies) }}
+
+
+ {{job.qyxz}}
+
+
+
+
+
+
+
+
+
diff --git a/components/renderDeliveryRecord/renderDeliveryRecord.vue b/components/renderDeliveryRecord/renderDeliveryRecord.vue
new file mode 100644
index 0000000..07967ef
--- /dev/null
+++ b/components/renderDeliveryRecord/renderDeliveryRecord.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+ {{ job.jobTitle }}
+
+
+
+
+ {{ job.companyName }}
+
+
+ {{job.education == '不限' ? '学历不限' : job.education}}
+
+
+ {{job.experience == '不限' ? '经验不限' : job.experience}}
+
+
+ {{ vacanciesTo(job.vacancies) }}
+
+
+
+ {{ parseDateTime(job.createTime).date }}
+
+
+
+
+
+
+
+
+
+ {{ job.jobTitle }}
+
+
+
+
+ {{ job.companyName }}
+
+
+
+
+
+
+
+
+ {{ vacanciesTo(job.vacancies) }}
+
+
+
+ {{ job.postingDate }}
+
+
+
+
+
+
+
+
+ {{ job.title }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/renderJobCollectionRecord/renderJobCollectionRecord.vue b/components/renderJobCollectionRecord/renderJobCollectionRecord.vue
new file mode 100644
index 0000000..c1f6888
--- /dev/null
+++ b/components/renderJobCollectionRecord/renderJobCollectionRecord.vue
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+ {{ job.jobTitle }}
+
+
+
+
+ {{ job.companyName }}
+
+
+ {{job.education == '不限' ? '学历不限' : job.education}}
+
+
+ {{job.experience == '不限' ? '经验不限' : job.experience}}
+
+
+ {{ vacanciesTo(job.vacancies) }}
+
+
+
+ {{ parseDateTime(job.createTime).date }}
+
+
+
+
+
+
+
+
+
+ {{ job.jobTitle }}
+
+
+
+
+ {{ job.companyName }}
+
+
+ {{job.education == '不限' ? '学历不限' : job.education}}
+
+
+ {{job.experience == '不限' ? '经验不限' : job.experience}}
+
+
+ {{ vacanciesTo(job.vacancies) }}
+
+
+
+ {{ job.postingDate }}
+
+
+
+
+
+
+
+
+ {{ job.title }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/renderJobViewRecord/renderJobViewRecord.vue b/components/renderJobViewRecord/renderJobViewRecord.vue
new file mode 100644
index 0000000..111a610
--- /dev/null
+++ b/components/renderJobViewRecord/renderJobViewRecord.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+ {{ job.jobTitle }}
+
+
+
+
+ {{ job.companyName }}
+
+
+ {{job.education == '不限' ? '学历不限' : job.education}}
+
+
+ {{job.experience == '不限' ? '经验不限' : job.experience}}
+
+
+ {{ vacanciesTo(job.vacancies) }}
+
+
+
+ {{ parseDateTime(job.createTime).date }}
+
+
+
+
+
+
+
+
+
+ {{ job.jobTitle }}
+
+
+
+
+ {{ job.companyName }}
+
+
+ {{job.education == '不限' ? '学历不限' : job.education}}
+
+
+ {{job.experience == '不限' ? '经验不限' : job.experience}}
+
+
+ {{ vacanciesTo(job.vacancies) }}
+
+
+
+ {{ job.postingDate }}
+
+
+
+
+
+
+
+
+ {{ job.title }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/renderJobs/renderJobs.vue b/components/renderJobs/renderJobs.vue
index 08372b6..c2d0623 100644
--- a/components/renderJobs/renderJobs.vue
+++ b/components/renderJobs/renderJobs.vue
@@ -7,7 +7,7 @@
- {{ job.companyName }}
+ {{ job.gwmc }}
@@ -77,7 +77,7 @@ function nextDetail(job) {
const recordData = recommedIndexDb.JobParameter(job);
recommedIndexDb.addRecord(recordData);
}
- navTo(`/packageA/pages/post/post?jobId=${btoa(job.jobId)}`);
+ navTo(`/packageA/pages/post/post?jobId=${btoa(job.jobId)}&dataType=1`);
}
diff --git a/components/renderJobsOutData/renderJobsOutData.vue b/components/renderJobsOutData/renderJobsOutData.vue
new file mode 100644
index 0000000..ba50080
--- /dev/null
+++ b/components/renderJobsOutData/renderJobsOutData.vue
@@ -0,0 +1,167 @@
+
+
+
+
+ {{ job.gwmc }}
+
+
+
+
+ {{ job.gsmc }}
+
+
+ {{job.xlyq == '不限' ? '学历不限' : job.xlyq}}
+
+
+ {{job.gwgzjy == '不限' ? '经验不限' : job.gwgzjy}}
+
+
+ {{ vacanciesTo(job.zprs) }}
+
+
+
+ {{ parseDateTime(job.createTime).date }}
+
+
+
+
+
+
+ {{ job.title }}
+
+
+
+
+
+
+
diff --git a/config.js b/config.js
index 9d75c81..6b16e54 100644
--- a/config.js
+++ b/config.js
@@ -1,8 +1,7 @@
export default {
// baseUrl: 'https://fw.rc.qingdao.gov.cn/rgpp-api/api', // 内网
baseUrl: 'https://qd.zhaopinzao8dian.com/api', // 测试
- // baseUrl: "http://192.168.98.110:18181",
- // baseUrl: "http://192.168.3.19:8080",
+ // baseUrl: 'http://192.168.3.29:8081',
// sseAI+
// StreamBaseURl: 'http://39.98.44.136:8000',
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
@@ -22,6 +21,10 @@ export default {
appInfo: {
// 应用名称
name: "青岛市就业服务",
+ // 爱山东应用标识
+ loveShandong: 'szjxrgznqzzp',
+ // 爱山东应用Key
+ sm2PrivateKey: '0d152c849f10e4469f2af8cedea62004e4f1db7be23c2f7270c1441d8050799d',
// 地区名
areaName: '青岛市',
// AI名称
diff --git a/index.html b/index.html
index a8102dd..0a4ef1f 100644
--- a/index.html
+++ b/index.html
@@ -24,19 +24,13 @@
-
-
-
+
-
-
-
-
-
+
-
-
-
+
+
+