yc-ui2 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -9
- package/dist/yc-ui2.common.js +16 -6
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.umd.js +16 -6
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +3 -3
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +5 -8
- package/.env +0 -5
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
|
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
|
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
|
87
|
+
<a href="tel:***">***</a>
|
87
88
|
<template v-if="!['/login', '/register'].includes($route.path)">
|
88
|
-
<span style="margin-top: 10px"
|
89
|
-
<a href="tel
|
90
|
-
<a href="tel
|
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
|
-
<
|
146
|
+
<template>
|
147
|
+
<YcCA :region="region" @caSuccess="login" />
|
148
|
+
</template>
|
146
149
|
```
|
147
150
|
|
148
151
|
| Param | Type | Describe |
|
package/dist/yc-ui2.common.js
CHANGED
@@ -44259,12 +44259,22 @@ function findServiceFeeAi() {
|
|
44259
44259
|
findDataByProblem({
|
44260
44260
|
problem: msg.replace(/\n/g, ""),
|
44261
44261
|
aiServiceId: 1
|
44262
|
-
}).then(
|
44263
|
-
|
44264
|
-
|
44265
|
-
|
44266
|
-
|
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 = "") {
|