代码偏译

master
wujingling0908 2 weeks ago
parent efdcf4fd2f
commit a46b274612
  1. 4
      src/components/chat-new.vue
  2. 4
      src/components/leave-message.vue
  3. 2
      src/components/notice-bar.vue
  4. 2
      src/main.js
  5. 6
      src/utils/config.js
  6. 4
      src/utils/index.js
  7. 8
      src/utils/sm4.js
  8. 6
      src/utils/utils.js
  9. 2
      src/utils/websocket.js

@ -4,7 +4,7 @@ defineOptions({
name: 'chat-new', name: 'chat-new',
}) })
const welcomeWord = ref('下午好,张先生') const welcomeWord = ref('下午好,张先生')
const welcomeSubWord = ref('我是您的服务管家小蓝') const welcomeSubWord = ref('我是您的服务管家皮卡丘')
const abstractList = ref([ const abstractList = ref([
{ {
title: '保障状态', title: '保障状态',
@ -43,7 +43,7 @@ const askList = ref(['贷款到期可以先还利息吗?', '查询已交费总
</div> </div>
<div class="abstract-con"> <div class="abstract-con">
<div class="title"> <div class="title">
<span>今日小蓝摘要</span><img src="@/assets/images/chat/star.svg" alt="" srcset="" /> <span>今日皮卡丘摘要</span><img src="@/assets/images/chat/star.svg" alt="" srcset="" />
</div> </div>
<div class="list"> <div class="list">
<div <div

@ -8,7 +8,7 @@
> >
<div class="leave-message-box"> <div class="leave-message-box">
<div class="leave-message-cont"> <div class="leave-message-cont">
<div class="leave-message-title">感谢您选择太平洋寿险,<br />请输入您的留言:</div> <div class="leave-message-title">感谢您选择神厨小福贵,<br />请输入您的留言:</div>
<div class="leave-message-textarea"> <div class="leave-message-textarea">
<textarea <textarea
class="input-textarea" class="input-textarea"
@ -43,7 +43,7 @@
<div class="success-tips"> <div class="success-tips">
<template v-if="weappSource.includes(source)"> <template v-if="weappSource.includes(source)">
<div class="success-tips-title">留言已提交,感谢您的关注。</div> <div class="success-tips-title">留言已提交,感谢您的关注。</div>
您可在 <span class="bold">2个自然日</span> 内点击太平洋寿险小程序 -<span 您可在 <span class="bold">2个自然日</span> 内点击神厨小福贵小程序 -<span
class="highlight-blue" class="highlight-blue"
>【我的】</span >【我的】</span
>- 右上角<span class="highlight-blue">【消息】</span>模块查看回复内容。 >- 右上角<span class="highlight-blue">【消息】</span>模块查看回复内容。

@ -155,7 +155,7 @@ function handleHide() {
async function replaceDomainDev(txt) { async function replaceDomainDev(txt) {
if (window.location.href.indexOf('localhost') !== -1) { if (window.location.href.indexOf('localhost') !== -1) {
txt = txt.replace('../', '//ssp-dev.cpic.com.cn/') txt = txt.replace('../', '//ssp-dev.trace.com.cn/')
} }
const imgRegex = /<img[^>]+src=["']([^"']+)["'][^>]*>/gi const imgRegex = /<img[^>]+src=["']([^"']+)["'][^>]*>/gi
const matches = [] const matches = []

@ -13,7 +13,7 @@ import "@/assets/font/iconfont.css"
const shouldEnableVConsole = import.meta.env.VITE_ENABLE_TEST === 'true' const shouldEnableVConsole = import.meta.env.VITE_ENABLE_TEST === 'true'
// 根据域名判断是否启用 VConsole // 根据域名判断是否启用 VConsole
const enableVConsoleDomains = ['aioblu-sit.cpic.com.cn', 'aioblu-dev.cpic.com.cn'] const enableVConsoleDomains = ['aioblu-sit.trace.com.cn', 'aioblu-dev.trace.com.cn']
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
window.navigator.userAgent, window.navigator.userAgent,
) )

@ -14,7 +14,7 @@ let envType = '';
//开发环境 //开发环境
if(localhostPaht.indexOf("localhost") >=0 || localhostPaht.indexOf("172.16") >=0){ if(localhostPaht.indexOf("localhost") >=0 || localhostPaht.indexOf("172.16") >=0){
baseUrl = '/api'; baseUrl = '/api';
WSURL = `${isWs}://${host}/api/liics_api/webSocket/`; //ws://ssp-dev.cpic.com.cn/liics_api/webSocket/ WSURL = `${isWs}://${host}/api/liics_api/webSocket/`; //ws://ssp-dev.trace.com.cn/liics_api/webSocket/
envType = 'dev'; envType = 'dev';
//测试环境 //测试环境
@ -25,12 +25,12 @@ if(localhostPaht.indexOf("localhost") >=0 || localhostPaht.indexOf("172.16") >=0
localhostPaht.includes("-pt") localhostPaht.includes("-pt")
){ ){
baseUrl = localhostPaht; baseUrl = localhostPaht;
WSURL = `${isWs}://${host}/liics_api/webSocket/`; //ws://ssp-dev.cpic.com.cn/liics_api/webSocket/ WSURL = `${isWs}://${host}/liics_api/webSocket/`; //ws://ssp-dev.trace.com.cn/liics_api/webSocket/
envType = 'sit'; envType = 'sit';
//生产环境 //生产环境
}else{ }else{
baseUrl = localhostPaht; baseUrl = localhostPaht;
WSURL = `${isWs}://${host}/liics_api/webSocket/`; //ws://ssp-dev.cpic.com.cn/liics_api/webSocket/ WSURL = `${isWs}://${host}/liics_api/webSocket/`; //ws://ssp-dev.trace.com.cn/liics_api/webSocket/
envType = 'production'; envType = 'production';
} }

@ -361,7 +361,7 @@ export function getHost() {
var hostName = ''; var hostName = '';
if (host.indexOf("localhost") >= 0) { if (host.indexOf("localhost") >= 0) {
hostName = `https://ssp-dev.cpic.com.cn` hostName = `https://ssp-dev.trace.com.cn`
} else { } else {
hostName = `..` hostName = `..`
} }
@ -401,5 +401,5 @@ export function isDev() {
} }
export function isProd() { export function isProd() {
return window.location.host.includes('sxznjh.cpic.com.cn') || window.location.host.includes('ssp.cpic.com.cn') || window.location.host.includes('dev.cpic.com.cn') return window.location.host.includes('sxznjh.trace.com.cn') || window.location.host.includes('ssp.trace.com.cn') || window.location.host.includes('dev.trace.com.cn')
} }

@ -6,16 +6,16 @@ const currentHostname = window.location.hostname
export const SM4_SAMPLE_CONFIG = { export const SM4_SAMPLE_CONFIG = {
cipherTextBase64: 'At1K/lI9/xqGNOqc7LMKVw==', cipherTextBase64: 'At1K/lI9/xqGNOqc7LMKVw==',
keyHex: stringToHex( keyHex: stringToHex(
currentHostname.includes('localhost') || currentHostname.includes('aioblu-dev.cpic.com.cn') currentHostname.includes('localhost') || currentHostname.includes('aioblu-dev.trace.com.cn')
? '0123456789abcdef' || 'a1b2c3d4e5f67890' ? '0123456789abcdef' || 'a1b2c3d4e5f67890'
: currentHostname.includes('aioblu-sit.cpic.com.cn') : currentHostname.includes('aioblu-sit.trace.com.cn')
? '9f8e7d6c5b4a3210' ? '9f8e7d6c5b4a3210'
: '7h9k2m5n8p1q4r6s', : '7h9k2m5n8p1q4r6s',
), ),
ivHex: stringToHex( ivHex: stringToHex(
currentHostname.includes('localhost') || currentHostname.includes('aioblu-dev.cpic.com.cn') currentHostname.includes('localhost') || currentHostname.includes('aioblu-dev.trace.com.cn')
? 'abcdef0123456789' || '1a2b3c4d5e6f7089' ? 'abcdef0123456789' || '1a2b3c4d5e6f7089'
: currentHostname.includes('aioblu-sit.cpic.com.cn') : currentHostname.includes('aioblu-sit.trace.com.cn')
? '0123456789abcdef' ? '0123456789abcdef'
: '3t6w9z2b5e8h1k4n', : '3t6w9z2b5e8h1k4n',
), ),

@ -465,7 +465,7 @@ export default {
} else { } else {
// 浦发银行返回按钮跳转到基座 // 浦发银行返回按钮跳转到基座
if (appStore().source === '95410000') { if (appStore().source === '95410000') {
window.location.href = `https://${location.origin.includes("-dev") || location.origin.includes("-sit") || location.origin.includes("-uat") || location.origin.includes("-pt") ? 'life-open-sit' : 'life-open'}.cpic.com.cn/web-guard-h5/`; window.location.href = `https://${location.origin.includes("-dev") || location.origin.includes("-sit") || location.origin.includes("-uat") || location.origin.includes("-pt") ? 'life-open-sit' : 'life-open'}.trace.com.cn/web-guard-h5/`;
return return
} }
if (window.wxx && typeof (window.wxx.back) == 'function') { if (window.wxx && typeof (window.wxx.back) == 'function') {
@ -502,7 +502,7 @@ export default {
var img = new Image(); var img = new Image();
if (localhostPaht.indexOf("localhost") >= 0) { if (localhostPaht.indexOf("localhost") >= 0) {
img.src = `https://ssp-dev.cpic.com.cn${projectName}/favicon.ico?v=${Date.now()}`; img.src = `https://ssp-dev.trace.com.cn${projectName}/favicon.ico?v=${Date.now()}`;
} else { } else {
img.src = `${localhostPaht}${projectName}/favicon.ico?v=${Date.now()}`; img.src = `${localhostPaht}${projectName}/favicon.ico?v=${Date.now()}`;
} }
@ -685,7 +685,7 @@ export default {
//官网: //官网:
// { // {
// "appId":"com.cpic.app.rnbxx" // "appId":"com.trace.app.rnbxx"
// "appType":"reactnative" // "appType":"reactnative"
// "url":"/pages/screen/main/Initialize.js" // "url":"/pages/screen/main/Initialize.js"
// "params": // "params":

@ -20,7 +20,7 @@ let wssHref = "wss" + href.substring(5);
// this.connectTimes= connectTimes // this.connectTimes= connectTimes
// this.sceneType= sceneType // this.sceneType= sceneType
// this._this = _this // this._this = _this
// this.trainWebsocket = new WebSocket('wss://newtec-sit.cpic.com.cn/nls/nls/transcription'); // this.trainWebsocket = new WebSocket('wss://newtec-sit.trace.com.cn/nls/nls/transcription');
// this.trainWebsocket.binaryType = "arraybuffer"; // 传输数据类型:ArrayBuffer // this.trainWebsocket.binaryType = "arraybuffer"; // 传输数据类型:ArrayBuffer
// this.trainWebsocket.onopen = (evt) => websocketOnOpen.call(this, evt); // this.trainWebsocket.onopen = (evt) => websocketOnOpen.call(this, evt);
// this.trainWebsocket.onmessage = (evt) => websocketOnMessage.call(this, evt); // this.trainWebsocket.onmessage = (evt) => websocketOnMessage.call(this, evt);

Loading…
Cancel
Save