yc-ui2 0.1.2-beta02 → 0.1.2-beta04
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/.env +2 -2
- package/README.md +99 -6
- package/dist/yc-ui2.common.js +9 -4
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.css +1 -1
- package/dist/yc-ui2.umd.js +9 -4
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/vue.config.js +1 -1
- package/md/CustomerService.md +0 -70
- package/md/YcSlideVerify.md +0 -16
package/.env
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
VUE_APP_BASE_API =
|
2
|
-
VUE_APP_PATH =
|
1
|
+
VUE_APP_BASE_API = http://113.219.171.47:6610
|
2
|
+
VUE_APP_PATH = /cloud-img
|
package/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
安装命令:`npm install yc-ui2`
|
4
4
|
|
5
|
-
|
5
|
+
***main.js 导入***
|
6
6
|
```javascript
|
7
7
|
import Ycui2 from 'yc-ui2'
|
8
8
|
import "yc-ui2/dist/yc-ui2.css"
|
@@ -10,7 +10,7 @@ import "yc-ui2/dist/yc-ui2.css"
|
|
10
10
|
Vue.use(Ycui2)
|
11
11
|
```
|
12
12
|
|
13
|
-
|
13
|
+
***vue.config.js***
|
14
14
|
|
15
15
|
```javascript
|
16
16
|
proxy: {
|
@@ -26,8 +26,101 @@ proxy: {
|
|
26
26
|
```
|
27
27
|
|
28
28
|
# 组件
|
29
|
+
| Name | Describe |
|
30
|
+
| --------------------------------------------------------------------- | -------- |
|
31
|
+
| [YcSlideVerify](#yc-slide-verify) | 滑动验证 |
|
32
|
+
| [YcCustomerService](#yc-customer-service) [YcQuestion](#yc-question) | 小优客服 |
|
29
33
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
+
|
35
|
+
#### yc-slide-verify
|
36
|
+
> 滑动验证
|
37
|
+
|
38
|
+
```html
|
39
|
+
<yc-slide-verify
|
40
|
+
:isShow="isShow"
|
41
|
+
@success="handleLogin"
|
42
|
+
@close="isShow = false"
|
43
|
+
/>
|
44
|
+
```
|
45
|
+
|
46
|
+
| Param | Type | Describe |
|
47
|
+
| ------- | ---------- | -------- |
|
48
|
+
| title | `String` | 滑动验证 |
|
49
|
+
| isShow | `Boolean` | 是否显示 |
|
50
|
+
| success | `Function` | 成功回调 |
|
51
|
+
| close | `Function` | 关闭显示 |
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
#### yc-customer-service
|
56
|
+
> 小优客服右角展示
|
57
|
+
|
58
|
+
```html
|
59
|
+
<yc-customer-service
|
60
|
+
title="小优客服【38号为您服务】"
|
61
|
+
jumpPage="/question"
|
62
|
+
:json="JSON.stringify(require('@/assets/questions.js').default)"
|
63
|
+
:regular="['发票增值税率', '城市维护建设税', '教育费附加征收率']"
|
64
|
+
>
|
65
|
+
<!-- 定制化插槽部分 -->
|
66
|
+
<div>
|
67
|
+
<!-- 第一个div内容 右下角显示图片 -->
|
68
|
+
<i class="el-icon-mobile"></i>
|
69
|
+
</div>
|
70
|
+
<div>
|
71
|
+
<!-- 第二个div内容 鼠标放入第一个div会提示以下部分 -->
|
72
|
+
<span>客服热线</span>
|
73
|
+
<a href="tel:4000770168">400 0770 168</a>
|
74
|
+
<template v-if="!['/login', '/register'].includes($route.path)">
|
75
|
+
<span style="margin-top: 10px">银行服务电话</span>
|
76
|
+
<a href="tel:13973004180">13973004180(蒋行长)</a>
|
77
|
+
<a href="tel:15773001997">15773001997(彭经理)</a>
|
78
|
+
</template>
|
79
|
+
</div>
|
80
|
+
</yc-customer-service>
|
81
|
+
```
|
82
|
+
|
83
|
+
| Param | Type | Describe |
|
84
|
+
| -------- | -------- | ---------------- |
|
85
|
+
| title | `String` | 标题 |
|
86
|
+
| jumpPage | `String` | 展开跳转客服页面 |
|
87
|
+
| json | `String` | 问题库 |
|
88
|
+
| regular | `Array` | 常见问题 |
|
89
|
+
-------------
|
90
|
+
|
91
|
+
|
92
|
+
#### yc-question
|
93
|
+
> 小优客服页面
|
94
|
+
>
|
95
|
+
> 需要在白名单中添加 /question 页面;有的在 permission.js 有的在router中
|
96
|
+
```javascript
|
97
|
+
const whiteList = ['/login', '......', '/question']
|
98
|
+
```
|
99
|
+
> 路由中需要配置 yc-customer-service组件中jumpPage参数跳转的页面
|
100
|
+
> router/index.js 路由中添加以下部分
|
101
|
+
|
102
|
+
```javascript
|
103
|
+
{
|
104
|
+
path: "/question", //yc-customer-service组件中jumpPage参数保持一致
|
105
|
+
component: (resolve) => require(["@/views/question"], resolve),
|
106
|
+
hidden: true,
|
107
|
+
},
|
108
|
+
```
|
109
|
+
|
110
|
+
> 根据自己编写的路由文件创建文件:views/question.vue
|
111
|
+
> 新创建的question.vue 中加入以下代码
|
112
|
+
```html
|
113
|
+
<template>
|
114
|
+
<YcQuestion
|
115
|
+
title="小优客服"
|
116
|
+
commit="小优为您提供24小时服务"
|
117
|
+
:json="JSON.stringify(require('@/assets/files/questions.js').default)"
|
118
|
+
></YcQuestion>
|
119
|
+
</template>
|
120
|
+
```
|
121
|
+
|
122
|
+
| Param | Type | Describe |
|
123
|
+
| ------ | -------- | -------- |
|
124
|
+
| title | `String` | 标题 |
|
125
|
+
| commit | `String` | 描述 |
|
126
|
+
| json | `String` | 问题库 |
|
package/dist/yc-ui2.common.js
CHANGED
@@ -1673,7 +1673,7 @@ if (typeof window !== 'undefined') {
|
|
1673
1673
|
// Indicate to webpack that this file can be concatenated
|
1674
1674
|
/* harmony default export */ var setPublicPath = (null);
|
1675
1675
|
|
1676
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=template&id=
|
1676
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=template&id=576db1f2&scoped=true&
|
1677
1677
|
var render = function render() {
|
1678
1678
|
var _vm = this,
|
1679
1679
|
_c = _vm._self._c;
|
@@ -1741,6 +1741,11 @@ var es_array_push = __webpack_require__(7658);
|
|
1741
1741
|
return list;
|
1742
1742
|
}
|
1743
1743
|
},
|
1744
|
+
watch: {
|
1745
|
+
isShow(newVal) {
|
1746
|
+
newVal && this.$refs.slideblock.reset();
|
1747
|
+
}
|
1748
|
+
},
|
1744
1749
|
created() {},
|
1745
1750
|
methods: {
|
1746
1751
|
onSuccess() {
|
@@ -1757,10 +1762,10 @@ var es_array_push = __webpack_require__(7658);
|
|
1757
1762
|
});
|
1758
1763
|
;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=script&lang=js&
|
1759
1764
|
/* harmony default export */ var components_YcSlideVerifyvue_type_script_lang_js_ = (YcSlideVerifyvue_type_script_lang_js_);
|
1760
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=style&index=0&id=
|
1765
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=style&index=0&id=576db1f2&prod&lang=scss&scoped=true&
|
1761
1766
|
// extracted by mini-css-extract-plugin
|
1762
1767
|
|
1763
|
-
;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=style&index=0&id=
|
1768
|
+
;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=style&index=0&id=576db1f2&prod&lang=scss&scoped=true&
|
1764
1769
|
|
1765
1770
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1766
1771
|
/* globals __VUE_SSR_CONTEXT__ */
|
@@ -1875,7 +1880,7 @@ var component = normalizeComponent(
|
|
1875
1880
|
staticRenderFns,
|
1876
1881
|
false,
|
1877
1882
|
null,
|
1878
|
-
"
|
1883
|
+
"576db1f2",
|
1879
1884
|
null
|
1880
1885
|
|
1881
1886
|
)
|