diff --git a/.env.development b/.env.development index 6eee888..cf5888c 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ ENV = 'development' # 接口地址 -VUE_APP_BASE_API = 'https://lczqvideodev.test.upchina.com' +VUE_APP_BASE_API = 'http://8.138.144.54:8080' VUE_APP_WS_API = 'ws://localhost:8000' # 是否启用 babel-plugin-dynamic-import-node插件 diff --git a/src/api/circle.js b/src/api/circle.js new file mode 100644 index 0000000..f536d4b --- /dev/null +++ b/src/api/circle.js @@ -0,0 +1,145 @@ +import request from "@/utils/request"; + +// 后台查询交易圈列表 +export function getCircleList(data) { + return request({ + url: "/admin/group/info/list", + method: "post", + data + }); +} + +// 后台保存交易圈 +export function saveCircle(data) { + return request({ + url: "/admin/group/info/save", + method: "post", + data + }); +} + +// 后台更新交易圈 +export function updateCircle(data) { + return request({ + url: "/admin/group/info/update", + method: "post", + data + }); +} + +// 后台更新交易圈状态 +export function updateCircleStatus(data) { + return request({ + url: "/admin/group/info/updateStatus", + method: "post", + data + }); +} + +// 后台查询交易圈详情 +export function getCircleDetail(data) { + return request({ + url: "/admin/group/info/get", + method: "post", + data + }); +} + +// 设置互动状态 +export function setInteractiveStatus(data) { + return request({ + url: "/admin/group/message/setInteractiveStatus", + method: "post", + data + }); +} + +// 设置私聊状态 +export function setPrivateStatus(data) { + return request({ + url: "/admin/group/message/setPrivateStatus", + method: "post", + data + }); +} + +// 设置显示圈子人数 +export function setShowMemberCount(data) { + return request({ + url: "/admin/group/message/setShowMemberCount", + method: "post", + data + }); +} + +// 后台更新互动消息状态 +export function updateMessageStatus(data) { + return request({ + url: "/admin/group/message/updateStatus", + method: "post", + data + }); +} + +// 设置显示昵称 +export function setShowNickName(data) { + return request({ + url: "/admin/group/message/setShowNickName", + method: "post", + data + }); +} + +// 设置先审后发 +export function setFirstAudit(data) { + return request({ + url: "/admin/group/message/setFirstAudit", + method: "post", + data + }); +} + +// 后台获取互动消息 +export function getMessageList(data) { + return request({ + url: "/admin/group/message/getMessageList", + method: "post", + data + }); +} + +// 后台发送互动消息 +export function sendAdvisorMessage(data) { + return request({ + url: "/admin/group/message/sendAdvisorMessage", + method: "post", + data + }); +} + +// 后台获取私聊列表 +export function getPrivateChatList(data) { + return request({ + url: "/admin/group/message/getPrivateChatList", + method: "post", + data + }); +} + +// 后台设置消息精选 +export function setMessageRecommend(data) { + return request({ + url: "/admin/group/message/setMessageRecommend", + method: "post", + data + }); +} + +// 后台设置交易圈公告 +export function setNotice(data) { + return request({ + url: "/admin/group/info/setNotice", + method: "post", + data + }); +} diff --git a/src/api/videoLive.js b/src/api/videoLive.js index 958f755..d62ae52 100644 --- a/src/api/videoLive.js +++ b/src/api/videoLive.js @@ -1,654 +1,663 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // export function getInfoList(data) { return request({ - url: '/admin/video/live/info/list', - method: 'post', + url: "/admin/video/live/info/list", + method: "post", data - }) + }); } // 后台查询专栏列表 export function getColumnList(data) { return request({ - url: '/admin/video/live/column/list', - method: 'post', + url: "/admin/video/live/column/list", + method: "post", data - }) + }); } // 后台创建视频直播 export function save(data) { return request({ - url: '/admin/video/live/info/save', - method: 'post', + url: "/admin/video/live/info/save", + method: "post", data - }) + }); } export function batchSave(data) { return request({ - url: '/admin/video/live/info/batchSave', - method: 'post', + url: "/admin/video/live/info/batchSave", + method: "post", data - }) + }); } // 后台更新视频信息 export function update(data) { return request({ - url: '/admin/video/live/info/update', - method: 'post', + url: "/admin/video/live/info/update", + method: "post", data - }) + }); } // 后台标签列表 export function tagList(data) { return request({ - url: '/admin/common/tag/list', - method: 'post', + url: "/admin/common/tag/list", + method: "post", data - }) + }); } // 后台标签列表 export function uploadSign(data) { return request({ - url: '/admin/video/live/uploadSign', - method: 'get', + url: "/admin/video/live/uploadSign", + method: "get", data - }) + }); } // 后台标签列表 export function librarySave(data) { return request({ - url: '/admin/video/live/library/save', - method: 'post', + url: "/admin/video/live/library/save", + method: "post", data - }) + }); } // 后台标签列表 export function livePlayInfo(params) { return request({ - url: '/admin/video/live/playInfo', - method: 'get', + url: "/admin/video/live/playInfo", + method: "get", params - }) + }); } // 后台标签列表 export function infoSubmit(data) { return request({ - url: '/admin/video/live/info/submit', - method: 'post', + url: "/admin/video/live/info/submit", + method: "post", data - }) + }); } // 行为数据统计 export function cartList(params) { return request({ - url: '/app/video/live/cartList', - method: 'get', + url: "/app/video/live/cartList", + method: "get", params - }) + }); } export function infoGet(params) { return request({ - url: '/admin/video/live/info/get', - method: 'get', + url: "/admin/video/live/info/get", + method: "get", params - }) + }); } // 后台撤回操作 export function infoRecall(data) { return request({ - url: '/admin/video/live/info/recall', - method: 'post', + url: "/admin/video/live/info/recall", + method: "post", data - }) + }); } export function behaviorStatistic(params) { return request({ - url: '/admin/video/live/behavior-statistic', - method: 'get', + url: "/admin/video/live/behavior-statistic", + method: "get", params - }) + }); } // 客户数据统计 export function behaviorUser(data) { return request({ - url: '/admin/video/live/behavior-user-of-one', - method: 'post', + url: "/admin/video/live/behavior-user-of-one", + method: "post", data - }) + }); } // 行为数据统计详情(某直播客户统计) export function behaviorStaff(data) { return request({ - url: '/admin/video/live/behavior-staff-of-one', - method: 'post', + url: "/admin/video/live/behavior-staff-of-one", + method: "post", data - }) + }); } // 后台审核视频直播 export function updateStatus(data) { return request({ - url: '/admin/video/live/info/updateStatus', - method: 'post', + url: "/admin/video/live/info/updateStatus", + method: "post", data - }) + }); } // 后台保存推荐位 export function recommendSave(data) { return request({ - url: '/admin/video/live/info/recommend', - method: 'post', + url: "/admin/video/live/info/recommend", + method: "post", data - }) + }); } // 后台保存推荐位 export function rLiveWsConfig(params) { return request({ - url: '/admin/common/getWebSocketConf', - method: 'get', + url: "/admin/common/getWebSocketConf", + method: "get", params - }) + }); } export function uVideoControl(data) { return request({ - url: '/admin/video/live/info/control', - method: 'post', + url: "/admin/video/live/info/control", + method: "post", data - }) + }); } export function getPlayerSign(data) { return request({ - url: '/admin/video/playerSign', - method: 'post', + url: "/admin/video/playerSign", + method: "post", data - }) + }); } export function videoMessage(data) { return request({ - url: '/admin/video/live/message/list', - method: 'post', + url: "/admin/video/live/message/list", + method: "post", data - }) + }); } // 后台删除互动消息 export function messageDelete(data) { return request({ - url: '/admin/video/live/message/delete', - method: 'post', + url: "/admin/video/live/message/delete", + method: "post", data - }) + }); } // 后台发送互动消息 export function messageSend(data) { return request({ - url: '/admin/video/live/message/send', - method: 'post', + url: "/admin/video/live/message/send", + method: "post", data - }) + }); } // 添加用户禁言 export function addCommentBlack(data) { return request({ - url: '/admin/comment/addCommentBlack', - method: 'post', + url: "/admin/comment/addCommentBlack", + method: "post", data - }) + }); } // 解除用户禁言 export function removeCommentBlack(params) { return request({ - url: '/admin/comment/removeCommentBlack', - method: 'get', + url: "/admin/comment/removeCommentBlack", + method: "get", params - }) + }); +} + +// 中台查询禁言列表 +export function queryCommentBlackList(params) { + return request({ + url: "/admin/comment/queryCommentBlackList", + method: "get", + params + }); } // 购物车上下架 export function cartUpdateStatus(data) { return request({ - url: '/admin/video/live/cart/updateStatus', - method: 'post', + url: "/admin/video/live/cart/updateStatus", + method: "post", data - }) + }); } // 购物车修改可销售数量 export function updateSaleLimit(data) { return request({ - url: '/admin/video/live/cart/updateSaleLimit', - method: 'post', + url: "/admin/video/live/cart/updateSaleLimit", + method: "post", data - }) + }); } // 后台停止互动 export function messageForbidden(data) { return request({ - url: '/admin/video/live/message/forbidden', - method: 'post', + url: "/admin/video/live/message/forbidden", + method: "post", data - }) + }); } // 后台查询观点包列表 export function packageList(data) { return request({ - url: '/admin/view/package/list', - method: 'post', + url: "/admin/view/package/list", + method: "post", data - }) + }); } // 购物车推荐 export function cartRecommend(data) { return request({ - url: '/admin/video/live/cart/recommend', - method: 'post', + url: "/admin/video/live/cart/recommend", + method: "post", data - }) + }); } // 后台推荐产品消息 export function productMessage(data) { return request({ - url: '/admin/video/live/message/productMessage', - method: 'post', + url: "/admin/video/live/message/productMessage", + method: "post", data - }) + }); } // 后台查询专栏详情 export function columnGet(params) { return request({ - url: '/admin/video/live/column/get', - method: 'get', + url: "/admin/video/live/column/get", + method: "get", params - }) + }); } // 后台查询专栏列表 export function columnList(data) { return request({ - url: '/admin/video/live/column/list', - method: 'post', + url: "/admin/video/live/column/list", + method: "post", data - }) + }); } // 后台创建视频专栏 export function columnSave(data) { return request({ - url: '/admin/video/live/column/save', - method: 'post', + url: "/admin/video/live/column/save", + method: "post", data - }) + }); } // 后台推荐视频专栏 export function columnRecommend(data) { return request({ - url: '/admin/video/live/column/recommend', - method: 'post', + url: "/admin/video/live/column/recommend", + method: "post", data - }) + }); } // 专栏状态修改 export function columnUpdateStatus(data) { return request({ - url: '/admin/video/live/column/updateStatus', - method: 'post', + url: "/admin/video/live/column/updateStatus", + method: "post", data - }) + }); } // 风控列表 export function riskList(data) { return request({ - url: '/admin/video/live/risk-list', - method: 'post', + url: "/admin/video/live/risk-list", + method: "post", data - }) + }); } // 直播活动列表 export function activityList(data) { return request({ - url: '/admin/video/live/activity/list', - method: 'post', + url: "/admin/video/live/activity/list", + method: "post", data - }) + }); } // 新增活动 export function activitySave(data) { return request({ - url: '/admin/video/live/activity/save', - method: 'post', + url: "/admin/video/live/activity/save", + method: "post", data - }) + }); } // 活动状态修改 export function activityUpdateStatus(data) { return request({ - url: '/admin/video/live/activity/updateStatus', - method: 'post', + url: "/admin/video/live/activity/updateStatus", + method: "post", data - }) + }); } // 后台部门(营业部、分公司)列表查询 export function deptColumnList(params) { return request({ - url: '/admin/rbac/dept/common/list', - method: 'get', + url: "/admin/rbac/dept/common/list", + method: "get", params - }) + }); } // 视频直播数据概况(已对接订单) export function dataOverview(params) { return request({ - url: '/admin/video/live/data-overview', - method: 'get', + url: "/admin/video/live/data-overview", + method: "get", params - }) + }); } // 视频直播实时趋势 export function nowTrend(params) { return request({ - url: '/admin/video/live/nowTrend', - method: 'get', + url: "/admin/video/live/nowTrend", + method: "get", params - }) + }); } // 客户管理列表 export function customerList(data) { return request({ - url: '/admin/video/live/customer/list', - method: 'post', + url: "/admin/video/live/customer/list", + method: "post", data - }) + }); } // 客户详情 export function customerDetails(params) { return request({ - url: '/admin/video/live/customer/details', - method: 'get', + url: "/admin/video/live/customer/details", + method: "get", params - }) + }); } // 直播观看记录 export function videoReadRecord(data) { return request({ - url: '/admin/video/live/customer/video-read-record', - method: 'post', + url: "/admin/video/live/customer/video-read-record", + method: "post", data - }) + }); } // 公开、关闭消息 export function messageOpen(data) { return request({ - url: '/admin/chat/message/open', - method: 'post', + url: "/admin/chat/message/open", + method: "post", data - }) + }); } // 关键行为提醒列表 export function notifyList(data) { return request({ - url: '/admin/video/live/behavior/notify/list', - method: 'post', + url: "/admin/video/live/behavior/notify/list", + method: "post", data - }) + }); } // 创建问卷 export function questionSave(data) { return request({ - url: '/admin/video/live/question/save', - method: 'post', + url: "/admin/video/live/question/save", + method: "post", data - }) + }); } // 问卷列表 export function questionList(data) { return request({ - url: '/admin/video/live/question/list', - method: 'post', + url: "/admin/video/live/question/list", + method: "post", data - }) + }); } // 问卷状态修改 export function questionUpdateStatus(data) { return request({ - url: '/admin/video/live/question/updateStatus', - method: 'post', + url: "/admin/video/live/question/updateStatus", + method: "post", data - }) + }); } // 问卷详情 export function questionDetails(params) { return request({ - url: '/admin/video/live/question/details', - method: 'get', + url: "/admin/video/live/question/details", + method: "get", params - }) + }); } // 问卷导出 export function questionExport(params) { return request({ - url: '/admin/video/live/question/export', - method: 'get', + url: "/admin/video/live/question/export", + method: "get", params - }) + }); } // 视频直播开启消息审核 export function openMessAudit(data) { return request({ - url: '/admin/video/live/openMessAudit', - method: 'post', + url: "/admin/video/live/openMessAudit", + method: "post", data - }) + }); } // 生成短链 export function urlResize(data) { return request({ - url: '/admin/url/resize', - method: 'post', + url: "/admin/url/resize", + method: "post", data - }) + }); } // 查询历史消息数 export function messageCountApi(params) { return request({ - url: '/admin/chat/message/count', - method: 'get', + url: "/admin/chat/message/count", + method: "get", params - }) + }); } // 查询腾讯云在线人数 export function txonline(params) { return request({ - url: '/admin/video/live/txonline', - method: 'get', + url: "/admin/video/live/txonline", + method: "get", params - }) + }); } // 点击转码直播视频 export function liveProcess(params) { return request({ - url: '/admin/video/live/process', - method: 'get', + url: "/admin/video/live/process", + method: "get", params - }) + }); } // 转码视频下载地址 export function videoDownload(params) { return request({ - url: '/admin/video/download', - method: 'get', + url: "/admin/video/download", + method: "get", params - }) + }); } // 查询视频转码进度 export function videoDownProgress(params) { return request({ - url: '/admin/video/live/download/progress', - method: 'get', + url: "/admin/video/live/download/progress", + method: "get", params - }) + }); } // 获取投顾互动消息 export function advisorMessageList(data) { return request({ - url: '/admin/video/live/advisorMessage/list', - method: 'post', + url: "/admin/video/live/advisorMessage/list", + method: "post", data - }) + }); } // 后台查询课程列表 export function courseInfoList(data) { return request({ - url: '/admin/course/info/list', - method: 'post', + url: "/admin/course/info/list", + method: "post", data - }) + }); } // 后台查询合集列表 export function serialInfoList(data) { return request({ - url: '/admin/serial/info/list', - method: 'post', + url: "/admin/serial/info/list", + method: "post", data - }) + }); } // 修改互动类型 export function updateInteractType(data) { return request({ - url: '/admin/video/live/updateInteractType', - method: 'post', + url: "/admin/video/live/updateInteractType", + method: "post", data - }) + }); } // 设置首页参数 export function setMainPageParam(data) { return request({ - url: '/admin/video/live/setMainPageParam', - method: 'post', + url: "/admin/video/live/setMainPageParam", + method: "post", data - }) + }); } // 修改二维码开关 export function updateQWParam(data) { return request({ - url: '/admin/video/live/updateQWParam', - method: 'post', + url: "/admin/video/live/updateQWParam", + method: "post", data - }) + }); } // 购物车产品推送 export function cartPush(data) { return request({ - url: '/admin/video/live/cart/push', - method: 'post', + url: "/admin/video/live/cart/push", + method: "post", data - }) + }); } // 终端类型统计 export function queryUserClientType(params) { return request({ - url: '/admin/video/live/clientType', - method: 'get', + url: "/admin/video/live/clientType", + method: "get", params - }) + }); } // 查询上次转推信息 export function getLastPush(params) { return request({ - url: '/admin/video/live/getLastPush', - method: 'get', + url: "/admin/video/live/getLastPush", + method: "get", params - }) + }); } // 删除转推信息 export function deletePush(data) { return request({ - url: '/admin/video/live/deletePush', - method: 'post', + url: "/admin/video/live/deletePush", + method: "post", data - }) + }); } // 保存转推信息 export function savePush(data) { return request({ - url: '/admin/video/live/savePush', - method: 'post', + url: "/admin/video/live/savePush", + method: "post", data - }) + }); } // 保存转推信息 export function cancelPush(params) { return request({ - url: '/admin/video/live/cart/cancelPush', - method: 'get', + url: "/admin/video/live/cart/cancelPush", + method: "get", params - }) + }); } // 查询混流详情 export function getMixData(data) { return request({ - url: '/admin/video/mix/get', - method: 'post', + url: "/admin/video/mix/get", + method: "post", data - }) + }); } // 保存混流信息 export function saveMixData(data) { return request({ - url: '/admin/video/mix/save', - method: 'post', + url: "/admin/video/mix/save", + method: "post", data - }) + }); } // 修改混流主画面显示 export function updateMixShowMain(data) { return request({ - url: '/admin/video/mix/updateShowMain', - method: 'post', + url: "/admin/video/mix/updateShowMain", + method: "post", data - }) + }); } // 修改混流连麦状态 export function updateMixStatus(data) { return request({ - url: '/admin/video/mix/updateStatus', - method: 'post', + url: "/admin/video/mix/updateStatus", + method: "post", data - }) + }); } // 修改是否显示完整昵称 export function showNickname(data) { return request({ - url: '/admin/video/live/showNickname', - method: 'post', + url: "/admin/video/live/showNickname", + method: "post", data - }) -} \ No newline at end of file + }); +} diff --git a/src/assets/images/defaultAvatar/assistant.png b/src/assets/images/defaultAvatar/assistant.png new file mode 100644 index 0000000..092471a Binary files /dev/null and b/src/assets/images/defaultAvatar/assistant.png differ diff --git a/src/assets/images/defaultAvatar/student.png b/src/assets/images/defaultAvatar/student.png new file mode 100644 index 0000000..7f7b226 Binary files /dev/null and b/src/assets/images/defaultAvatar/student.png differ diff --git a/src/assets/images/defaultAvatar/teacher.png b/src/assets/images/defaultAvatar/teacher.png new file mode 100644 index 0000000..112c982 Binary files /dev/null and b/src/assets/images/defaultAvatar/teacher.png differ diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index e1d620a..c51e6d5 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -1,6 +1,14 @@ -import variables from '@/assets/styles/element-variables.scss' -import defaultSettings from '@/settings' -const { tagsView, fixedHeader, sidebarLogo, showFooter, footerTxt, caseNumber } = defaultSettings +import Config from "@/config"; +import variables from "@/assets/styles/element-variables.scss"; +import defaultSettings from "@/settings"; +const { + tagsView, + fixedHeader, + sidebarLogo, + showFooter, + footerTxt, + caseNumber +} = defaultSettings; const state = { theme: variables.theme, @@ -10,27 +18,27 @@ const state = { sidebarLogo: sidebarLogo, showFooter: showFooter, footerTxt: footerTxt, - caseNumber: caseNumber -} + caseNumber: caseNumber, + settingToC: Config.settingToC +}; const mutations = { CHANGE_SETTING: (state, { key, value }) => { if (state.hasOwnProperty(key)) { - state[key] = value + state[key] = value; } } -} +}; const actions = { changeSetting({ commit }, data) { - commit('CHANGE_SETTING', data) + commit("CHANGE_SETTING", data); } -} +}; export default { namespaced: true, state, mutations, actions -} - +}; diff --git a/src/store/modules/user.js b/src/store/modules/user.js index c277029..cc217ad 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -4,6 +4,7 @@ import { getToken, setToken, removeToken } from "@/utils/auth"; // import checkPermission from '@/utils/permission' import { decrypt } from "@/utils/rsaEncrypt"; import { Message } from "element-ui"; +import router from "@/router/routers"; export const setUserInfo = (res, commit) => { // 如果没有任何权限,则赋予一个默认的权限,避免请求死循环 @@ -62,6 +63,7 @@ const user = { actions: { // 登录 Login({ commit }, userInfo) { + debugger; // console.log('userInfo ==>', userInfo) const { loginName, @@ -127,9 +129,10 @@ const user = { commit("SET_SYSTEM_SAFETY", {}); localStorage.setItem("isFirst", 0); removeToken(); - location.href = `${window.config.webAuthUrl}?redirecturl=${ - location.origin - }/syzbadmin`; + // location.href = `${window.config.webAuthUrl}?redirecturl=${ + // location.origin + // }/syzbadmin`; + router.push("/login"); resolve(); } catch (error) { reject(error); diff --git a/src/utils/auth.js b/src/utils/auth.js index dfa16bb..3712111 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -4,8 +4,8 @@ import Config from "@/settings"; const TokenKey = Config.TokenKey; export function getToken() { - // return Cookies.get(TokenKey) - return "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiYWNrZW5kVXNlciI6IntcImRlcHRJZFwiOlwiMVwiLFwibG9naW5JZFwiOjEsXCJyb2xlc1wiOlsxXSxcInVzZXJJZFwiOjEsXCJ1c2VyTmFtZVwiOlwiYWRtaW5cIn0iLCJleHAiOjE3Mzg1MDYxNDd9.jRG7GUOTYi9xOy15hA5Wbm4eqe13Ao643vx20W1BJD8"; + return Cookies.get(TokenKey); + // return "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiYWNrZW5kVXNlciI6IntcImRlcHRJZFwiOlwiMVwiLFwibG9naW5JZFwiOjEsXCJyb2xlc1wiOlsxXSxcInVzZXJJZFwiOjEsXCJ1c2VyTmFtZVwiOlwiYWRtaW5cIn0iLCJleHAiOjE3Mzg2NjgzNDN9.1M4z2E4gSBmqAvkX6qJNHNTG5DXDJs0SC14qH-3jC9Y"; } export function setToken(token, rememberMe) { diff --git a/src/utils/request.js b/src/utils/request.js index 71de71d..081deba 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,6 +1,6 @@ import axios from "axios"; import router from "@/router/routers"; -import { Notification } from "element-ui"; +import { Notification, Message } from "element-ui"; import store from "../store"; import { getToken } from "@/utils/auth"; import Config from "@/settings"; diff --git a/src/utils/rsaEncrypt.js b/src/utils/rsaEncrypt.js index 1948ddd..e2429d4 100644 --- a/src/utils/rsaEncrypt.js +++ b/src/utils/rsaEncrypt.js @@ -1,14 +1,31 @@ -import JSEncrypt from 'jsencrypt/bin/jsencrypt.min' +import JSEncrypt from "jsencrypt/bin/jsencrypt"; // 密钥对生成 http://web.chacuo.net/netrsakeypair -const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n' + - '2iRe41HdTNF8RUhNnHit5NpMNtGL0NPTSSpPjjI1kJfVorRvaQerUgkCAwEAAQ==' +const publicKey = + "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n" + + "2iRe41HdTNF8RUhNnHit5NpMNtGL0NPTSSpPjjI1kJfVorRvaQerUgkCAwEAAQ=="; + +const privateKey = + "MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEA0vfvyTdGJkdbHkB8\n" + + "mp0f3FE0GYP3AYPaJF7jUd1M0XxFSE2ceK3k2kw20YvQ09NJKk+OMjWQl9WitG9p\n" + + "B6tSCQIDAQABAkA2SimBrWC2/wvauBuYqjCFwLvYiRYqZKThUS3MZlebXJiLB+Ue\n" + + "/gUifAAKIg1avttUZsHBHrop4qfJCwAI0+YRAiEA+W3NK/RaXtnRqmoUUkb59zsZ\n" + + "UBLpvZgQPfj1MhyHDz0CIQDYhsAhPJ3mgS64NbUZmGWuuNKp5coY2GIj/zYDMJp6\n" + + "vQIgUueLFXv/eZ1ekgz2Oi67MNCk5jeTF2BurZqNLR3MSmUCIFT3Q6uHMtsB9Eha\n" + + "4u7hS31tj1UWE+D+ADzp59MGnoftAiBeHT7gDMuqeJHPL4b+kC+gzV4FGTfhR9q3\n" + + "tTbklZkD2A=="; // 加密 export function encrypt(txt) { - const encryptor = new JSEncrypt() - encryptor.setPublicKey(publicKey) // 设置公钥 - return encryptor.encrypt(txt) // 对需要加密的数据进行加密 + const encryptor = new JSEncrypt(); + encryptor.setPublicKey(publicKey); // 设置公钥 + return encryptor.encrypt(txt); // 对需要加密的数据进行加密 } +// 解密 +export function decrypt(txt) { + const encryptor = new JSEncrypt(); + encryptor.setPrivateKey(privateKey); + return encryptor.decrypt(txt); +} diff --git a/src/views/adviser/components/select.vue b/src/views/adviser/components/select.vue index 09e38b0..05d7756 100644 --- a/src/views/adviser/components/select.vue +++ b/src/views/adviser/components/select.vue @@ -1,18 +1,31 @@ diff --git a/src/views/circle/detail/components/messageSend.vue b/src/views/circle/detail/components/messageSend.vue index c04be68..a58573f 100644 --- a/src/views/circle/detail/components/messageSend.vue +++ b/src/views/circle/detail/components/messageSend.vue @@ -1,7 +1,12 @@ diff --git a/src/views/circle/detail/components/privateChat.vue b/src/views/circle/detail/components/privateChat.vue index 193e2be..01f349c 100644 --- a/src/views/circle/detail/components/privateChat.vue +++ b/src/views/circle/detail/components/privateChat.vue @@ -5,17 +5,26 @@ 返回群聊 -
凌琳(131212)
+
{{ userInfo.userName }}
私聊中
- + diff --git a/src/views/circle/detail/index.vue b/src/views/circle/detail/index.vue index 9e7f95e..408b803 100644 --- a/src/views/circle/detail/index.vue +++ b/src/views/circle/detail/index.vue @@ -2,68 +2,105 @@

圈子消息

- - - - - - + + + - - - - - + + - - - - + + + + + + - 切换 + 切换
- +
-

独立团专栏

-

这里是介绍这是介绍是的是的

+

{{ detail.name }}

+

{{ detail.remark }}

- + +
- + +
- + +
- + +
- - - +
    -
  • 老师
  • -
  • 全部
  • -
  • 精选
  • +
  • + {{ item.name }} +
- + - + - 搜索 + 搜索
- +
- +
  • 私聊列表
  • -
  • 禁言列表
  • +
  • + 禁言列表 +
- - - + + +
-
+
- -

萨达鲁大师克拉岛奥德赛拉

-

[图片]

+ +

{{ replyMsg.content }}

+

[图片]

- +