🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

emfooter

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emfooter

em C 端公共底部业务组件

latest
npmnpm
Version
1.8.2
Version published
Weekly downloads
26
420%
Maintainers
1
Weekly downloads
 
Created
Source

底部弹框组件

Vue.js 2.x C端的业务组件。

emfooter

Sauce Labs Test Status (for master branch)

安装

$ yarn add emfooter

底部弹框(wap)

基于Vue.js 的 前端业务组件。

投诉

0.5.0 新增。添加属性 complaint 即可。

浏览器手机模式在线预览

投诉

<w-footer-wap
  mode="none"
  logoColor="white"
  complaint
  complaintLink="https://www.evente.cn"
/>

没有主办图片的

浏览器手机模式在线预览

只有底部图片

<w-footer-wap
  centerLink="https://www.baidu.com"
  orderLink="https://www.qq.com"
  orgid="100015"
  :loginAction="loginAction"
  :countrycodeAction="countrycodeAction"
  :sendAction="sendAction"
/>

主办图片

浏览器手机模式在线预览

只有底部图片

<w-footer-wap
  centerLink="https://www.baidu.com"
  orderLink="https://www.qq.com"
  orgid="100015"
  orgImg="https://2img.evente.cn/7b/7b/81/a9b42253e54228e580d3b898be.jpg"
  :loginAction="loginAction"
  :countrycodeAction="countrycodeAction"
  :sendAction="sendAction"
/>

只有底部图片

浏览器手机模式在线预览

只需添加 mode="none" 即可。

只有底部图片

<w-footer-wap mode="none" />

API

参数说明类型是否必填默认值
centerText个人中心文案String个人中心
centerLink个人中心链接String|Numberwap/personal
orderText我的订单文案String我的订单
orderLink我的订单链接String|Numberwap/orderlist
exitText退出账号文案String退出账号
logoutAction退出账号的接口String
domain退出账号清除cookie的主域String根据 env 的 NODE_ENV ,对不同环境进行判断
env环境(process.env)用于连接跳转Object
zIndexModal确认弹框的层级Number99
zIndexLogin登录弹框的层级Number99
orgid主办 idString|Number
orgImg主办 定制白标String
useRouter是否用 vue-router 跳转Boolean
loginClose登录弹框关闭Function() => {}
loginSuccess登录成功Function() => {}
mode底部的模式,可选: all, none 。 all展示主办图片和快捷入口,none只展示。 0.3.0 新增Stringall
logoColor活动易提供技术支持的颜色设置,可选值: white | gray 。0.4.0 新增Stringgray
complaint是否显示投诉入口 0.5.0 新增Boolean
complaintLink投诉链接定义 0.5.0 新增String
productId产品 ID 0.6.0 新增String | Number
productType产品类型 0.6.0 新增String
userId用户 ID 0.7.0 新增String
modalTitle退出文案提示 1.0.0 新增String提示
modalContent退出内容文案提示 1.0.0 新增String确定退出当前账号吗?

方法

参数说明返回值
logout退出成功的回调
login点击登录

需要的环境

  • node.js >= 9.0.0
  • npm >= 5.0.0

说明

本仓库是用脚手架 fecli,结合 component-template 模板生成的。

FAQs

Package last updated on 22 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts