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.
Files changed (47) hide show
  1. package/package.json +1 -1
  2. package/.env +0 -7
  3. package/babel.config.js +0 -5
  4. package/jsconfig.json +0 -19
  5. package/public/favicon.ico +0 -0
  6. package/public/index.html +0 -20
  7. package/src/App.vue +0 -70
  8. package/src/api/customerService.js +0 -56
  9. package/src/assets/ca/ca-bg.png +0 -0
  10. package/src/assets/ca/caBg.png +0 -0
  11. package/src/assets/customerService/admin.jpg +0 -0
  12. package/src/assets/customerService/chatTop.png +0 -0
  13. package/src/assets/customerService/ellipticalWenh.png +0 -0
  14. package/src/assets/customerService/enlarge.png +0 -0
  15. package/src/assets/customerService/personal.jpg +0 -0
  16. package/src/assets/customerService/personal1.jpg +0 -0
  17. package/src/assets/customerService/personal2.jpg +0 -0
  18. package/src/assets/slideVerify/1.jpg +0 -0
  19. package/src/assets/slideVerify/2.jpg +0 -0
  20. package/src/assets/slideVerify/3.jpg +0 -0
  21. package/src/assets/slideVerify/4.jpg +0 -0
  22. package/src/assets/slideVerify/5.jpg +0 -0
  23. package/src/assets/slideVerify/6.jpg +0 -0
  24. package/src/assets/slideVerify/7.jpg +0 -0
  25. package/src/assets/slideVerify/8.jpg +0 -0
  26. package/src/components/YcCA/index.vue +0 -536
  27. package/src/components/YcCustomerService/chat.vue +0 -337
  28. package/src/components/YcCustomerService/chatMixin.js +0 -128
  29. package/src/components/YcCustomerService/index.vue +0 -272
  30. package/src/components/YcQuestion/index.vue +0 -535
  31. package/src/components/YcSlideVerify/index.vue +0 -104
  32. package/src/main.js +0 -19
  33. package/src/packages/index.js +0 -29
  34. package/src/router/index.js +0 -20
  35. package/src/utils/auth.js +0 -6
  36. package/src/utils/mTokenPlugin/base64.js +0 -148
  37. package/src/utils/mTokenPlugin/base64_backups.js +0 -146
  38. package/src/utils/mTokenPlugin/hunca_mToken_core.js +0 -1447
  39. package/src/utils/mTokenPlugin/hunca_mToken_core2.js +0 -1455
  40. package/src/utils/mTokenPlugin/hunca_mToken_core_backups.js +0 -1425
  41. package/src/utils/mTokenPlugin/mToken.js +0 -3211
  42. package/src/utils/mTokenPlugin/mToken_backups.js +0 -3202
  43. package/src/utils/mTokenPluginBeijin/formateTime.js +0 -10
  44. package/src/utils/mTokenPluginBeijin/xtxasyn.js +0 -1156
  45. package/src/utils/request.js +0 -50
  46. package/src/views/question.vue +0 -32
  47. package/vue.config.js +0 -41
@@ -1,50 +0,0 @@
1
- import axios from "axios";
2
- import { Message } from "element-ui";
3
- import {getCookie} from '@/utils/auth';
4
-
5
- axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
6
- // 创建axios实例
7
- const service = axios.create({
8
- // axios中请求配置有baseURL选项,表示请求URL公共部分
9
- baseURL: process.env.VUE_APP_CUSTOMER_PATH,
10
- // 超时
11
- timeout: 10000,
12
- });
13
-
14
- // request拦截器
15
- service.interceptors.request.use(
16
- (config) => {
17
- const token = getCookie(sessionStorage.getItem(process.env.VUE_APP_TOKEN_NAME))
18
- if (token) {
19
- config.headers["Authorization"] = "Bearer " + token; // 让每个请求携带自定义token 请根据实际情况自行修改
20
- }
21
- return config;
22
- },
23
- (error) => {
24
- Promise.reject(error);
25
- }
26
- );
27
-
28
- // 响应拦截器
29
- service.interceptors.response.use(
30
- (res) => {
31
- return res.data;
32
- },
33
- (error) => {
34
- let { message } = error;
35
- if (message == "Network Error") {
36
- message = "后端接口连接异常";
37
- } else if (message.includes("timeout")) {
38
- message = "系统接口请求超时";
39
- } else if (message.includes("Request failed with status code")) {
40
- message = "系统接口" + message.substr(message.length - 3) + "异常";
41
- }
42
- Message({
43
- message: message,
44
- type: "error",
45
- duration: 5 * 1000,
46
- });
47
- return Promise.reject(error);
48
- }
49
- );
50
- export default service;
@@ -1,32 +0,0 @@
1
- <template>
2
- <div>
3
- <YcQuestion
4
- :id="question.id"
5
- :title="question.serviceName"
6
- :commit="question.serviceName + '为您提供24小时服务'"
7
- tokenName="tokenName"
8
- ></YcQuestion>
9
- </div>
10
- </template>
11
-
12
- <script>
13
- import { findServiceFeeAi } from "api/customerService";
14
- export default {
15
- name: "QuestionPage",
16
- components: {
17
- YcQuestion: () => import("comp/YcQuestion"),
18
- },
19
- data() {
20
- return {
21
- question: {},
22
- };
23
- },
24
- created() {
25
- console.log("QuestionPage");
26
- findServiceFeeAi().then(({ data }) => {
27
- this.question = data;
28
- });
29
- },
30
- };
31
- </script>
32
- <style lang="scss" scoped></style>
package/vue.config.js DELETED
@@ -1,41 +0,0 @@
1
- const { defineConfig } = require("@vue/cli-service")
2
-
3
- let path = require("path")
4
-
5
- function resolve(dir) {
6
- return path.join(__dirname, dir)
7
- }
8
-
9
- module.exports = defineConfig({
10
- transpileDependencies: true,
11
- chainWebpack: (config) => {
12
- config.resolve.alias
13
- .set("@", resolve("src"))
14
- .set("assets", resolve("src/assets"))
15
- .set("comp", resolve("src/components"))
16
- .set("views", resolve("src/views"))
17
- .set("utils", resolve("src/utils"))
18
- .set("api", resolve("src/api"))
19
- },
20
- // 前端代理服务器
21
- devServer: {
22
- proxy: {
23
- [process.env.VUE_APP_CUSTOMER_PATH]: {
24
- target: `http://${process.env.VUE_APP_CUSTOMER_API}`,
25
- changeOrigin: true,
26
- pathRewrite: {
27
- ["^"+process.env.VUE_APP_CUSTOMER_PATH]: "",
28
- },
29
- },
30
- [process.env.VUE_APP_IMG_PATH]: {
31
- target: `http://${process.env.VUE_APP_IMG_API+process.env.VUE_APP_IMG_PATH}`,
32
- changeOrigin: true,
33
- pathRewrite: {
34
- ["^"+process.env.VUE_APP_IMG_PATH]: "",
35
- },
36
- },
37
- },
38
- historyApiFallback: true,
39
- allowedHosts: "all"
40
- },
41
- })