slc-tools
v1.0.1
Published
Private toolkit including project components and common methods
Downloads
9
Readme
my-tools
Project Desc
- 这个项目是私人项目,主要是自己的工具库,组件库
- 基于 vue 开发,依赖[email protected]
组件
通用弹窗 commonDialog
- params visiable Boolean
- params title String "请输入用户信息"
- params btn Object
{ style: { background: 'red', color: 'white' }, text: '确定' }
- params loading Boolean
- 表单验证通过 @valid="cb"
页面初始弹窗 initDialog
params loading 周五好累,以后完善
params visiable Boolean
params mainImg String require('/static/img/200-301.jpg')
slot title ` 少时诵诗书 libai 不急网络挣我钱
方法
checkNumber
- @param {string} type - The type of data to retrieve (options: "phone","whatsapp").
- @param {string} phone_number - The phone number to validate.(example: "15812341929")
- @param {string} country_code - The country code of the phone number. (example: "CN")
- @return {Promise} A promise that resolves to the retrieved data.
getIP
- @return {Promise<string>} The IP address as a string.
getActiveTopText
- @return {Promise<string>} 活动顶部文案
通用数据
countryData 全球国家代码信息
{
english_name: "United Arab Emirates",
chinese_name: "阿拉伯联合酋长国",
country_code: "AE",
phone_code: "971",
},
版本说明
1.0.0 初始功能版本 1.0.1 添加落地页活动顶部文案接口