yc-ui2 0.2.2-beta2 → 0.2.2-beta4
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/.env +0 -7
- package/babel.config.js +0 -5
- package/jsconfig.json +0 -19
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -20
- package/src/App.vue +0 -70
- package/src/api/customerService.js +0 -56
- package/src/assets/ca/ca-bg.png +0 -0
- package/src/assets/ca/caBg.png +0 -0
- package/src/assets/customerService/admin.jpg +0 -0
- package/src/assets/customerService/chatTop.png +0 -0
- package/src/assets/customerService/ellipticalWenh.png +0 -0
- package/src/assets/customerService/enlarge.png +0 -0
- package/src/assets/customerService/personal.jpg +0 -0
- package/src/assets/customerService/personal1.jpg +0 -0
- package/src/assets/customerService/personal2.jpg +0 -0
- package/src/assets/slideVerify/1.jpg +0 -0
- package/src/assets/slideVerify/2.jpg +0 -0
- package/src/assets/slideVerify/3.jpg +0 -0
- package/src/assets/slideVerify/4.jpg +0 -0
- package/src/assets/slideVerify/5.jpg +0 -0
- package/src/assets/slideVerify/6.jpg +0 -0
- package/src/assets/slideVerify/7.jpg +0 -0
- package/src/assets/slideVerify/8.jpg +0 -0
- package/src/components/YcCA/index.vue +0 -536
- package/src/components/YcCustomerService/chat.vue +0 -337
- package/src/components/YcCustomerService/chatMixin.js +0 -128
- package/src/components/YcCustomerService/index.vue +0 -272
- package/src/components/YcQuestion/index.vue +0 -535
- package/src/components/YcSlideVerify/index.vue +0 -104
- package/src/main.js +0 -19
- package/src/packages/index.js +0 -29
- package/src/router/index.js +0 -20
- package/src/utils/auth.js +0 -6
- package/src/utils/mTokenPlugin/base64.js +0 -148
- package/src/utils/mTokenPlugin/base64_backups.js +0 -146
- package/src/utils/mTokenPlugin/hunca_mToken_core.js +0 -1447
- package/src/utils/mTokenPlugin/hunca_mToken_core2.js +0 -1455
- package/src/utils/mTokenPlugin/hunca_mToken_core_backups.js +0 -1425
- package/src/utils/mTokenPlugin/mToken.js +0 -3211
- package/src/utils/mTokenPlugin/mToken_backups.js +0 -3202
- package/src/utils/mTokenPluginBeijin/formateTime.js +0 -10
- package/src/utils/mTokenPluginBeijin/xtxasyn.js +0 -1156
- package/src/utils/request.js +0 -50
- package/src/views/question.vue +0 -32
- package/vue.config.js +0 -41
package/package.json
CHANGED
package/.env
DELETED
package/babel.config.js
DELETED
package/jsconfig.json
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"target": "es5",
|
4
|
-
"module": "esnext",
|
5
|
-
"baseUrl": "./",
|
6
|
-
"moduleResolution": "node",
|
7
|
-
"paths": {
|
8
|
-
"@/*": [
|
9
|
-
"src/*"
|
10
|
-
]
|
11
|
-
},
|
12
|
-
"lib": [
|
13
|
-
"esnext",
|
14
|
-
"dom",
|
15
|
-
"dom.iterable",
|
16
|
-
"scripthost"
|
17
|
-
]
|
18
|
-
}
|
19
|
-
}
|
package/public/favicon.ico
DELETED
Binary file
|
package/public/index.html
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
7
|
-
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
8
|
-
<title><%= htmlWebpackPlugin.options.title %></title>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<noscript>
|
12
|
-
<strong
|
13
|
-
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
|
14
|
-
properly without JavaScript enabled. Please enable it to
|
15
|
-
continue.</strong
|
16
|
-
>
|
17
|
-
</noscript>
|
18
|
-
<div id="yc-ui2"></div>
|
19
|
-
</body>
|
20
|
-
</html>
|
package/src/App.vue
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div id="yc-ui2">
|
3
|
-
<yc-slide-verify :isShow.sync="isShow" />
|
4
|
-
<router-view></router-view>
|
5
|
-
<YcCustomerService
|
6
|
-
:id="question.id"
|
7
|
-
:title="question.serviceName"
|
8
|
-
tokenName="tokenName"
|
9
|
-
jumpPage="/question"
|
10
|
-
>
|
11
|
-
<div><i class="el-icon-mobile"></i></div>
|
12
|
-
<div>
|
13
|
-
<span>客服热线</span>
|
14
|
-
<a href="tel:***">***</a>
|
15
|
-
<template v-if="!['/login', '/register'].includes($route.path)">
|
16
|
-
<span style="margin-top: 10px">***服务电话</span>
|
17
|
-
<a href="tel:***">***(***)</a>
|
18
|
-
<a href="tel:***">***(***)</a>
|
19
|
-
</template>
|
20
|
-
</div>
|
21
|
-
</YcCustomerService>
|
22
|
-
<YcCA :region="region" @caSuccess="login" />
|
23
|
-
</div>
|
24
|
-
</template>
|
25
|
-
|
26
|
-
<script>
|
27
|
-
// import { findServiceFeeAi } from "api/customerService"
|
28
|
-
export default {
|
29
|
-
name: "App",
|
30
|
-
components: {
|
31
|
-
YcSlideVerify: () => import("comp/YcSlideVerify"),
|
32
|
-
YcCustomerService: () => import("comp/YcCustomerService"),
|
33
|
-
YcCA: () => import("comp/YcCA"),
|
34
|
-
},
|
35
|
-
data() {
|
36
|
-
return {
|
37
|
-
region: void 0,
|
38
|
-
isShow: false,
|
39
|
-
question: {
|
40
|
-
id: 0,
|
41
|
-
serviceName: "",
|
42
|
-
},
|
43
|
-
};
|
44
|
-
},
|
45
|
-
created() {
|
46
|
-
setTimeout(() => {
|
47
|
-
this.region = 1;
|
48
|
-
}, 1000);
|
49
|
-
|
50
|
-
// findServiceFeeAi().then(({ data }) => {
|
51
|
-
// this.question = data
|
52
|
-
// })
|
53
|
-
},
|
54
|
-
methods: {
|
55
|
-
login(value, back) {
|
56
|
-
console.log(value, back);
|
57
|
-
// CA 登录成功回调
|
58
|
-
back(value);
|
59
|
-
},
|
60
|
-
},
|
61
|
-
};
|
62
|
-
</script>
|
63
|
-
|
64
|
-
<style>
|
65
|
-
html,
|
66
|
-
body {
|
67
|
-
padding: 0px;
|
68
|
-
margin: 0px;
|
69
|
-
}
|
70
|
-
</style>
|
@@ -1,56 +0,0 @@
|
|
1
|
-
|
2
|
-
import request from '@/utils/request'
|
3
|
-
|
4
|
-
/**
|
5
|
-
* 获取问题类型及问题(父子级)
|
6
|
-
* @param {number} aiServiceId
|
7
|
-
* @returns {[]}
|
8
|
-
*/
|
9
|
-
export function getProblemTypeAndProblem(aiServiceId) {
|
10
|
-
return request({
|
11
|
-
url: '/aiService/discourse/getProblemTypeAndProblem/'+aiServiceId,
|
12
|
-
method: 'GET',
|
13
|
-
// params: query
|
14
|
-
})
|
15
|
-
}
|
16
|
-
|
17
|
-
/**
|
18
|
-
* 提问并获取回答
|
19
|
-
* @param {{
|
20
|
-
* problem: string,
|
21
|
-
* aiServiceId: number
|
22
|
-
* }} query
|
23
|
-
* @returns {{}}
|
24
|
-
*/
|
25
|
-
export function findDataByProblem(data) {
|
26
|
-
return request({
|
27
|
-
url: '/aiService/discourse/findDataByProblem',
|
28
|
-
method: 'POST',
|
29
|
-
data
|
30
|
-
})
|
31
|
-
}
|
32
|
-
|
33
|
-
/**
|
34
|
-
* 根据客服ID 查询提问次数最多的问题
|
35
|
-
* @param {{
|
36
|
-
* aiServiceId: number
|
37
|
-
* }} query
|
38
|
-
* @returns
|
39
|
-
*/
|
40
|
-
export function findMaxNumData(aiServiceId) {
|
41
|
-
return request({
|
42
|
-
url: '/aiService/discourse/findMaxNumData/'+aiServiceId,
|
43
|
-
method: 'GET',
|
44
|
-
})
|
45
|
-
}
|
46
|
-
|
47
|
-
/**
|
48
|
-
* 获取交易服务费客服信息
|
49
|
-
* @returns
|
50
|
-
*/
|
51
|
-
export function findServiceFeeAi() {
|
52
|
-
return request({
|
53
|
-
url: '/aiService/service/findServiceFeeAi',
|
54
|
-
method: 'GET',
|
55
|
-
})
|
56
|
-
}
|
package/src/assets/ca/ca-bg.png
DELETED
Binary file
|
package/src/assets/ca/caBg.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|