用户信息加密方法待更新
This commit is contained in:
@@ -17,12 +17,12 @@
|
||||
placeholder="输入视频名称"
|
||||
placeholder-class="inputplace"
|
||||
/>
|
||||
<uni-icons
|
||||
v-if="searchKeyword"
|
||||
class="clear-icon"
|
||||
type="clear"
|
||||
size="24"
|
||||
color="#999"
|
||||
<uni-icons
|
||||
v-if="searchKeyword"
|
||||
class="clear-icon"
|
||||
type="clear"
|
||||
size="24"
|
||||
color="#999"
|
||||
@click="clearSearch"
|
||||
/>
|
||||
</view>
|
||||
@@ -35,16 +35,16 @@
|
||||
<view class="title-line"></view>
|
||||
</view>
|
||||
<view class="video-grid" v-if="dataList.length>0">
|
||||
<view
|
||||
v-for="video in dataList"
|
||||
<view
|
||||
v-for="video in dataList"
|
||||
:key="video.id || video.videoId"
|
||||
class="video-item"
|
||||
:style="getItemBackgroundStyle('video-bg.png')"
|
||||
@click="playVideo(video)"
|
||||
>
|
||||
<view class="video-cover">
|
||||
<image
|
||||
:src="trainVideoImgUrl+ video.cover"
|
||||
<image
|
||||
:src="trainVideoImgUrl+ video.cover"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
</view>
|
||||
@@ -63,6 +63,7 @@ import { inject, ref, reactive } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
const { $api, navTo, navBack } = inject('globalFunction');
|
||||
import config from "@/config.js"
|
||||
import CryptoJS from 'crypto-js'
|
||||
|
||||
// state
|
||||
const title = ref('');
|
||||
@@ -133,7 +134,7 @@ function getDataList(type = 'add') {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 播放视频
|
||||
async function playVideo(video) {
|
||||
@@ -155,6 +156,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",
|
||||
|
||||
Reference in New Issue
Block a user