0.2.1-beta5 • Published 2 months ago

yc-ui2 v0.2.1-beta5

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

使用

安装命令:npm install yc-ui2

main.js 导入

import Ycui2 from 'yc-ui2'
import "yc-ui2/dist/yc-ui2.css"

Vue.use(Ycui2)

组件

NameDescribe
YcSlideVerify滑动验证
YcCustomerService YcQuestion小优客服
YcCACA组件

yc-slide-verify

滑动验证

vue.config.js

proxy: {
  // 在proxy中添加以下代码
  ['/cloud-img']: {
    target: `http://***:***/cloud-img/`,
    changeOrigin: true,
    pathRewrite: {
      ["^/cloud-img"]: "",
    },
  },
}
<yc-slide-verify
      :isShow.sync="isShow"
      @success="handleLogin"
    />
ParamTypeDescribe
titleString滑动验证
isShowBoolean是否显示
successFunction成功回调
closeFunction关闭显示

yc-customer-service

小优客服右角展示

vue.config.js

proxy: {
  // 在proxy中添加以下代码
  ['/customer-api']: {
    target: `http://***:***`,
    changeOrigin: true,
    pathRewrite: {
      ["^/customer-api"]: "",
    },
  },
}
<yc-customer-service
      :id=""
      :title=""
      :tokenName=""
      jumpPage="/question"
      hotlineService="客服热线" // 可不传,默认:客服热线
    >
      <!-- 定制化插槽部分 -->
      <div>
        <!-- 第一个div内容 右下角显示图片 -->
        <i class="el-icon-mobile"></i>
      </div>
      <div>
        <!-- 第二个div内容 鼠标放入第一个div会提示以下部分 -->
        <span>客服热线</span>
        <a href="tel:***">***</a>
        <template v-if="!['/login', '/register'].includes($route.path)">
          <span style="margin-top: 10px">***服务电话</span>
          <a href="tel:***">***(***)</a>
          <a href="tel:***">***(***)</a>
        </template>
      </div>
    </yc-customer-service>
ParamTypeDescribe
idNumber服务id
titleString服务标题
tokenNameStringtoken名称
jumpPageString展开跳转客服页面
hotlineServiceString右下角显示文字(可不传,默认:客服热线)

yc-question

小优客服页面

需要在白名单中添加 /question 页面;有的在 permission.js 有的在router中

const whiteList = ['/login', '......', '/question']

路由中需要配置 yc-customer-service组件中jumpPage参数跳转的页面 router/index.js 路由中添加以下部分

{
    path: "/question", //yc-customer-service组件中jumpPage参数保持一致
    component: (resolve) => require(["@/views/question"], resolve),
    hidden: true,
  },

根据自己编写的路由文件创建文件:views/question.vue 新创建的question.vue 中加入以下代码

<template>
  <YcQuestion
      :id=""
      :title=""
      :commit=""
      :tokenName=""
</YcQuestion>
</template>
ParamTypeDescribe
idNumber服务id
titleString服务Name
commitString描述
tokenNameStringtoken名称

YcCA

CA组件

<template>
  <YcCA :region="region" @caSuccess="login" />
</template>
ParamTypeDescribe
regionNumberCA地区类型
caSuccessFunctionCA成功回调方法
0.2.1-beta4

2 months ago

0.2.1-beta5

2 months ago

0.2.1-beta2

2 months ago

0.2.1-beta3

2 months ago

0.2.1-beta1

2 months ago

0.2.0-beta19

4 months ago

0.2.0-beta11

4 months ago

0.2.0-beta10

4 months ago

0.2.0-beta15

4 months ago

0.2.0-beta14

4 months ago

0.2.0-beta13

4 months ago

0.2.0-beta12

4 months ago

0.2.0-beta18

4 months ago

0.2.0-beta17

4 months ago

0.2.0-beta16

4 months ago

0.2.0-beta9

4 months ago

0.2.0-beta5

5 months ago

0.2.0-beta6

5 months ago

0.2.0-beta4

5 months ago

0.2.0-beta7

5 months ago

0.2.0-beta8

5 months ago

0.2.0-beta3

5 months ago

0.2.0-beta2

5 months ago

0.1.2-beta26

6 months ago

0.1.1-beta04

7 months ago

0.1.1-beta03

7 months ago

0.1.2-beta24

6 months ago

0.1.1-beta02

7 months ago

0.1.2-beta25

6 months ago

0.1.1-beta01

7 months ago

0.1.1-beta08

7 months ago

0.1.1-beta07

7 months ago

0.1.2-beta28

6 months ago

0.1.1-beta06

7 months ago

0.1.2-beta29

6 months ago

0.1.1-beta05

7 months ago

0.1.9-beta1

6 months ago

0.1.9-beta2

6 months ago

0.1.3-beta1

6 months ago

0.1.2-beta22

6 months ago

0.1.3-beta2

6 months ago

0.1.2-beta23

6 months ago

0.1.9-beta3

6 months ago

0.1.3-beta3

6 months ago

0.1.2-beta20

6 months ago

0.1.9-beta4

6 months ago

0.1.3-beta4

6 months ago

0.1.2-beta21

6 months ago

0.1.3-beta5

6 months ago

0.1.3-beta6

6 months ago

0.1.3-beta7

6 months ago

0.1.3-beta8

6 months ago

0.1.1-beta09

7 months ago

0.1.2-beta04

7 months ago

0.1.2-beta05

7 months ago

0.1.2-beta02

7 months ago

0.1.2-beta03

7 months ago

0.1.2-beta08

7 months ago

0.1.2-beta09

7 months ago

0.1.2-beta06

7 months ago

0.1.2-beta07

7 months ago

0.1.2-beta01

7 months ago

0.1.3-beta15

6 months ago

0.1.2-beta15

6 months ago

0.1.1-beta15

7 months ago

0.1.0-beta16

7 months ago

0.1.2-beta16

6 months ago

0.1.1-beta14

7 months ago

0.1.0-beta15

7 months ago

0.1.2-beta13

6 months ago

0.1.1-beta13

7 months ago

0.1.0-beta18

7 months ago

0.1.3-beta16

6 months ago

0.1.2-beta14

6 months ago

0.1.1-beta12

7 months ago

0.1.0-beta17

7 months ago

0.1.2-beta19

6 months ago

0.1.1-beta19

7 months ago

0.1.0-beta12

7 months ago

0.1.1-beta18

7 months ago

0.1.0-beta11

7 months ago

0.1.2-beta17

6 months ago

0.1.1-beta17

7 months ago

0.1.0-beta14

7 months ago

0.1.2-beta18

6 months ago

0.1.1-beta16

7 months ago

0.1.0-beta13

7 months ago

0.1.3-beta11

6 months ago

0.1.2-beta11

7 months ago

0.1.1-beta11

7 months ago

0.1.3-beta10

6 months ago

0.1.2-beta12

7 months ago

0.1.1-beta10

7 months ago

0.1.3-beta13

6 months ago

0.1.3-beta12

6 months ago

0.1.2-beta10

7 months ago

0.1.6-beta1

6 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.7-beta1

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.9

5 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.2.0-beta1

5 months ago

0.1.5-beta2

6 months ago

0.1.5-beta1

6 months ago

0.1.0-beta10

7 months ago

0.1.0-beta9

7 months ago

0.1.0-beta8

7 months ago

0.1.0-beta7

7 months ago

0.1.0-beta6

7 months ago

0.1.0-beta5

7 months ago

0.1.0-beta4

7 months ago

0.1.0-beta3

7 months ago

0.1.0-beta2

7 months ago

0.1.0-beta1

7 months ago

0.1.0

7 months ago