yc-ui2 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -13,8 +13,9 @@ Vue.use(Ycui2)
13
13
  # 组件
14
14
  | Name | Describe |
15
15
  | --------------------------------------------------------------------- | -------- |
16
- | [YcSlideVerify](#yc-slide-verify) | 滑动验证 |
16
+ | [YcSlideVerify](#yc-slide-verify) | 滑动验证 |
17
17
  | [YcCustomerService](#yc-customer-service) [YcQuestion](#yc-question) | 小优客服 |
18
+ | [YcCA](#YcCA) | CA组件 |
18
19
 
19
20
 
20
21
  #### yc-slide-verify
@@ -26,7 +27,7 @@ Vue.use(Ycui2)
26
27
  proxy: {
27
28
  // 在proxy中添加以下代码
28
29
  ['/cloud-img']: {
29
- target: `http://113.219.171.47:6610/cloud-img/`,
30
+ target: `http://***:***/cloud-img/`,
30
31
  changeOrigin: true,
31
32
  pathRewrite: {
32
33
  ["^/cloud-img"]: "",
@@ -48,7 +49,7 @@ proxy: {
48
49
  | isShow | `Boolean` | 是否显示 |
49
50
  | success | `Function` | 成功回调 |
50
51
  | close | `Function` | 关闭显示 |
51
-
52
+ -------------
52
53
 
53
54
 
54
55
  #### yc-customer-service
@@ -60,7 +61,7 @@ proxy: {
60
61
  proxy: {
61
62
  // 在proxy中添加以下代码
62
63
  ['/customer-api']: {
63
- target: `http://58.20.153.230:7080`,
64
+ target: `http://***:***`,
64
65
  changeOrigin: true,
65
66
  pathRewrite: {
66
67
  ["^/customer-api"]: "",
@@ -83,11 +84,11 @@ proxy: {
83
84
  <div>
84
85
  <!-- 第二个div内容 鼠标放入第一个div会提示以下部分 -->
85
86
  <span>客服热线</span>
86
- <a href="tel:4000770168">400 0770 168</a>
87
+ <a href="tel:***">***</a>
87
88
  <template v-if="!['/login', '/register'].includes($route.path)">
88
- <span style="margin-top: 10px">银行服务电话</span>
89
- <a href="tel:13973004180">13973004180(蒋行长)</a>
90
- <a href="tel:15773001997">15773001997(彭经理)</a>
89
+ <span style="margin-top: 10px">***服务电话</span>
90
+ <a href="tel:***">***(***)</a>
91
+ <a href="tel:***">***(***)</a>
91
92
  </template>
92
93
  </div>
93
94
  </yc-customer-service>
@@ -142,7 +143,9 @@ const whiteList = ['/login', '......', '/question']
142
143
  > CA组件
143
144
 
144
145
  ```html
145
- <YcCA :region="region" @caSuccess="login" />
146
+ <template>
147
+ <YcCA :region="region" @caSuccess="login" />
148
+ </template>
146
149
  ```
147
150
 
148
151
  | Param | Type | Describe |
@@ -44259,12 +44259,22 @@ function findServiceFeeAi() {
44259
44259
  findDataByProblem({
44260
44260
  problem: msg.replace(/\n/g, ""),
44261
44261
  aiServiceId: 1
44262
- }).then(res => {
44263
- if (res && res.data && res.data.answer && res.data.based) {
44264
- this.add(res.data.answer || "您好", 'admin', null, res.data.based);
44265
- } else {
44266
- this.add("您好", 'admin', null, "");
44267
- }
44262
+ }).then(({
44263
+ data
44264
+ }) => {
44265
+ this.add((() => {
44266
+ if (data) {
44267
+ return data.length > 1 ? data.reduce((prev, curr) => [...prev, curr.problem], []) : data[0].answer || "您好";
44268
+ } else {
44269
+ return "您好";
44270
+ }
44271
+ })(), 'admin', null, (() => {
44272
+ if (data && data.length == 1) {
44273
+ return data[0].based;
44274
+ } else {
44275
+ return "";
44276
+ }
44277
+ })());
44268
44278
  });
44269
44279
  },
44270
44280
  add(msg, id = "personal", fun, based = "") {