niiwoo-register
v1.0.4
Published
`npm install niiwoo-register --save` ```html <niiwoo-register :registerData="registerData"></niiwoo-register> ``` ```javascript data() { return { registerData: { bgColor: "", //模块背景颜色 urlHeaderImg: "",
Downloads
9
Readme
Installation
npm install niiwoo-register --save
<niiwoo-register :registerData="registerData"></niiwoo-register>
data() {
return {
registerData: {
bgColor: "", //模块背景颜色
urlHeaderImg: "", //头部图片地址
mobileStyle: {
num: "13512341234", //手机号码,可以不传
readonly: false, //手机号码是否可编辑,不可编辑传true
blurEvent: (num) => { //用户名文本框失去焦点事件
console.log(num);
}
},
agreementStyle: { //你我金融注册协议
btnColor: "", //链接文字文案
oColor: "", //其他文字文案
url: "" //链接地址,默认为:https://www.niiwoo.com/h5/agreements/h5.html
},
loginStyle: { //设置登录
isShow: true, //是否显示登录,默认不显示,传true时显示
btnColor: "", //登录的文字颜色
oColor: "", //登录的其他颜色
_clickEvent: () => {
//点击登录执行的事件
console.log("click login");
}
},
codeStyle: { //设置短信验证码
color: "", //获取验证码颜色
borderColor: "" //验证码左边竖线的颜色
},
showPwd_icon: { //设置明文密码图标
backgroundImage: "", //background-image,eg:"url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_5606e8f.png)"
backgroundPosition: "" //background-position,eg: "0 0"
},
hidePwd_icon: { //密文密码图标
backgroundImage: "", //background-image,eg:"url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_5606e8f.png)"
backgroundPosition: "" //background-position,eg: "0 0"
},
inviterInfo: { //邀请人信息,没有则不传
type: "", //0代码ID,1代表手机号
value: "" //手机号码或者userId
},
registerStyle: {
color: "", //注册按钮文字颜色
bgColor: "", //注册按钮背景颜色
params: { //注册接口除了UserName,PassWord,MsgCode,RegType,InviteUserPhone,InviteUserId之外的其他参数
// DevType: "",
// userChannelURL: ""
},
successCallback: () => {
//注册成功后的回调
console.log("register success");
}
}
}
}
}