用户信息加密方法待更新
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="btns" @click="jumps('/packageB/train/mockExam/examList')">
|
||||
<image src="/packageB/static/images/train/mnks-k.png" mode=""></image>
|
||||
@@ -33,7 +33,7 @@
|
||||
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<!-- <view class="btns" @click="jumps('/packageB/train/wrongAnswer/mistakeNotebook')">
|
||||
<image src="/packageB/static/images/train/ctb-k.png" mode=""></image>
|
||||
@@ -44,7 +44,7 @@
|
||||
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
@@ -57,6 +57,7 @@ import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction');
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
import useDictStore from '@/stores/useDictStore';
|
||||
import CryptoJS from 'crypto-js'
|
||||
|
||||
onLoad(() => {
|
||||
thirdLogin()
|
||||
@@ -81,6 +82,12 @@ async function thirdLogin(){
|
||||
contactperson: "",
|
||||
contactphone: "",
|
||||
}
|
||||
//用户信息加密方法待更新
|
||||
// let key = '9zS+DFKrzxvosO82mTcPJQ=='
|
||||
// let secretKey = CryptoJS.enc.Utf8.parse(key);//key 为你的秘钥
|
||||
// let srcs = CryptoJS.enc.Utf8.parse(form.idno);
|
||||
// let encrypted = CryptoJS.AES.encrypt(srcs, secretKey, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}).toString()
|
||||
// form.idno=encrypted
|
||||
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
||||
form={
|
||||
usertype: "2",
|
||||
@@ -181,7 +188,7 @@ async function thirdLogin(){
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user