yc-ui2 0.1.4 → 0.1.5-beta1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +12 -9
- 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/package.json
CHANGED
package/src/App.vue
CHANGED
@@ -10,15 +10,15 @@
|
|
10
10
|
<div><i class="el-icon-mobile"></i></div>
|
11
11
|
<div>
|
12
12
|
<span>客服热线</span>
|
13
|
-
<a href="tel
|
13
|
+
<a href="tel:***">***</a>
|
14
14
|
<template v-if="!['/login', '/register'].includes($route.path)">
|
15
|
-
<span style="margin-top: 10px"
|
16
|
-
<a href="tel
|
17
|
-
<a href="tel
|
15
|
+
<span style="margin-top: 10px">***服务电话</span>
|
16
|
+
<a href="tel:***">***(***)</a>
|
17
|
+
<a href="tel:***">***(***)</a>
|
18
18
|
</template>
|
19
19
|
</div>
|
20
20
|
</YcCustomerService>
|
21
|
-
<!-- <YcCA :region="region"
|
21
|
+
<!-- <YcCA :region="region" @caSuccess="login" /> -->
|
22
22
|
</div>
|
23
23
|
</template>
|
24
24
|
|
@@ -34,7 +34,6 @@ export default {
|
|
34
34
|
data() {
|
35
35
|
return {
|
36
36
|
region: void 0,
|
37
|
-
caUrl: void 0,
|
38
37
|
isShow: false,
|
39
38
|
question: {
|
40
39
|
id: 0,
|
@@ -45,8 +44,6 @@ export default {
|
|
45
44
|
created() {
|
46
45
|
setTimeout(() => {
|
47
46
|
this.region = 1
|
48
|
-
this.caUrl =
|
49
|
-
"http://120.25.167.9:9000/website/media/ce861516a25d4671ab01e150790b6111.zip"
|
50
47
|
}, 1000)
|
51
48
|
|
52
49
|
findServiceFeeAi().then(({ data }) => {
|