更新记录

1.0.0(2021-01-04) 下载此版本

初次提交


平台兼容性

前言

简介:账号密码登录通用组件,可自定义主题色,主题logo,直接引用

有疑问

微信搜索“慢慢向好”小程序,找客服反馈,相应问题。

素材

图片资源

开始使用

下载源码解压,复制/components 下的组件至项目根目录的 /components 文件夹下

index.vuescript加入如下部分:

import loginPassword from '@/components/ay-login/login-password.vue';
    export default {
        components: {
            loginPassword,

        },
        data() {
            return {
                themeColor : '#33CCCC',
                logoUrl:'https://cdn.pixabay.com/photo/2016/11/23/17/55/beach-1854072__340.jpg',

            }
        },
        onLoad() {
            let that = this;

        },

        methods: {
            loginFun(e){
                console.log('登录'+ JSON.stringify(e))
            },
        }
    }

index.vuetemplate加入如下部分:

<view >
        <loginPassword :themeColor="themeColor" :logoUrl="logoUrl"  @loginFun="loginFun"></loginPassword>

    </view>

引入阿里矢量图,复制示例源码/style 下的/iconfont.css至项目根目录的 /style 文件夹下(APP需在地址前加https:),内容如下:

@font-face {font-family: "iconfont";
  src: url('//at.alicdn.com/t/font_2190080_5t8zjsl434i.eot?t=1609760820846'); /* IE9 */
  src: url('//at.alicdn.com/t/font_2190080_5t8zjsl434i.eot?t=1609760820846#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAlQAAsAAAAAElQAAAkBAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFDAqUUJByATYCJANACyIABCAFhG0HgU0biQ8jETaDknIl+2uMiQx1PaTdqYqtltBQsRZCwr5uAon3jDncSwEtNJrIQgHwYABOAvcPhIA/AQAAAIAMojNncdhT9GB7+QJmvgAc1Ir/NLdhGvKFgjcSja719N/mb/axXOmB/7lca5AssHAC/VEbJ/WiNewONDwOJLD45qwhPO0G+TqBmR2hk9MnlD1pHt5u79/dWpDIacKRJG1tCQSYeOBxmgRWEmA5cM8/n95rXlJ6mMGJ04ewtr57nZqs4EchD6uCVwZwMLn/v/3a11lUQxHPGxLUNPeJz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C/ETjQUdYnAstWKldhT3NJMor9UJV0p1ey+RBY0W8go1mU4tXpvRLezvMfP+zqDWI/tbqP8hXPIyV5ZaVYZED9yYVhUD7Fa05zuFTQ2U7y3h2IrWzeGckIa6eAjS9CPj1XOr2+JAi0ln7vyAiTSKlSExkVKld3DdzokSXO1GmKpaoyaTcyTqPnnpIEQAyGuMlEk5bEinLEZvZfC/ZHN9HiZIo7yyZ0GCJmrphck5d2uigndSM1bdiKGzoglSjwONhbqt23rMAI9rY+mZh9HYrwZpbKIGHAVmzz1vSMB5r7uKAlnYisLUVh3izwMFUbx+MZQUobxZorLHVl6RZHumXre3gQN9GgQNTpdSI1iapHaGlj3sHFhT88q3p2s9fkBDLaPWOCSfuD6TWiNcu5JBVdgfXmRVOE55K/16eQnu9hfRENLwGOaGskCTTjSB0t2+VIFZrrX2D+tJRNrFQW1e2PryY2OWZZ3j6JlWf66QsyYqq6YZp2Y7r+YyC1hLr4huhCBcPZo8V1kUrQU7FcmlgI4uGRh0UO0WMCVrPMfbqLeCGkT480kV4UOmMda8LvGhlE2t8o/jLWKm2xjkNN1uIKuaoRjV08RbPiEDpSH1uBkjPhooAAAA=') format('woff2'),
  url('//at.alicdn.com/t/font_2190080_5t8zjsl434i.woff?t=1609760820846') format('woff'),
  url('//at.alicdn.com/t/font_2190080_5t8zjsl434i.ttf?t=1609760820846') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  url('//at.alicdn.com/t/font_2190080_5t8zjsl434i.svg?t=1609760820846#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-xuanzhong:before {
  content: "\e607";
}

.icon-icon-eye-open:before {
  content: "\e612";
}

.icon-icon-eye-close:before {
  content: "\e613";
}

.icon-weixuan:before {
  content: "\e65d";
}

.icon-gengduo2:before {
  content: "\e736";
}

.icon-sousuo:before {
  content: "\e66d";
}

.icon-shang3:before {
  content: "\e689";
}

.icon-xia:before {
  content: "\e65a";
}

.icon-you:before {
  content: "\e600";
}

.icon-tubiaozhizuo-:before {
  content: "\e605";
}

.icon-time:before {
  content: "\e619";
}

.icon-xiaoxi:before {
  content: "\e615";
}

.icon-daohangdizhi:before {
  content: "\e65e";
}

.icon-gouxuan:before {
  content: "\e6ce";
}

.icon-icon_fuben:before {
  content: "\e611";
}

页面App.vue 引入css

<style>
    /*每个页面公共css */
    @import './style/iconfont.css';
</style>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问