### 登录组件
```
<template name="login">
<view>
<form @submit="formLogin">
<view class="tui-login-from">
<view class="tui-line-cell">
<tui-icon name="mobile" size="20" color='#5677fc'></tui-icon>
<input placeholder-class="phcolor" class="tui-input" name="mobile" placeholder="请输入手机号码" maxlength="11" v-model="mobile"
type="number" />
</view>
<view class="tui-line-cell tui-top28">
<tui-icon name="pwd" size="20" color='#5677fc'></tui-icon>
<input placeholder-class="phcolor" class="tui-input" name="smsCode" placeholder="请输入验证码" maxlength="6" />
<tui-button size="mini" :type="type" shape="circle" :plain="true" :disabled="disabled" @click="btnSend">{{btnText}}</tui-button>
</view>
<button class="btn-primary tui-btn-submit" hover-class="btn-hover" form-type="submit">登录</button>
<view class="tui-protocol" hover-class="opcity" :hover-stay-time="150">点击"登录"即表示已同意
<text class="tui-protocol-red" @tap="protocol">《用户协议》</text>
</view>
</view>
</form>
</view>
</template>
<script>
export default {
name: "login",
//属性
props: {
item: {
type: String,//属性类型
value: "1"
},
// ......
},
//组件生命周期
created:function(e){
},
methods: {
formLogin(){
console.log(this.$url)
}
}
}
</script>
<style>
page {
background: #fff;
}
.tui-bg-box {
width: 100%;
box-sizing: border-box;
position: relative;
padding-top: 44upx;
}
.tui-photo {
height: 138upx;
width: 138upx;
display: block;
margin: 10upx auto 0 auto;
border-radius: 50%;
}
.tui-login-name {
width: 128upx;
height: 40upx;
font-size: 30upx;
color: #fff;
margin: 36upx auto 0 auto;
text-align: center;
}
.tui-bg-img {
width: 100%;
height: 346upx;
display: block;
position: absolute;
top: 0;
z-index: -1;
}
.tui-login-from {
width: 100%;
padding: 128upx 104upx 0 104upx;
box-sizing: border-box;
}
.tui-input {
font-size: 32upx;
flex: 1;
display: inline-block;
padding-left: 32upx;
box-sizing: border-box;
overflow: hidden;
}
.tui-line-cell {
padding: 27upx 0;
display: -webkit-flex;
display: flex;
-webkiit-align-items: center;
align-items: center;
position: relative;
box-sizing: border-box;
overflow: hidden;
}
.tui-line-cell::after {
content: '';
position: absolute;
border-bottom: 1upx solid #e0e0e0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
bottom: 0;
right: 0;
left: 0;
}
.tui-top28 {
margin-top: 28upx;
}
.tui-btn-class {
width: 196upx !important;
height: 54upx !important;
border-radius: 27upx !important;
font-size: 28upx !important;
padding: 0 !important;
line-height: 54upx !important;
}
.tui-btn-submit {
margin-top: 100upx;
}
.tui-protocol {
color: #333;
font-size: 24upx;
text-align: center;
width: 100%;
margin-top: 29upx;
}
.tui-protocol-red {
color: #f54f46;
}
</style>
```
- 序言介绍
- 个人介绍
- sql文件建表语句
- 后端开发
- 后台登录
- 后台登录页面
- 后台登录控制器代码
- 验证器
- 后台管理员模型
- 商品管理
- 添加商品
- 修改商品
- 删除商品
- 列表
- 后台商品控制器
- 后台商品模型
- 后台商品验证码器
- 拼团活动
- 添加拼团活动
- 修改拼团活动
- 删除活动
- 活动列表
- 分类管理
- 添加分类
- 修改分类
- 删除分类
- 分类列表
- 广告管理
- 添加广告
- 修改广告
- 删除广告
- 广告列表
- 订单管理
- 订单列表
- 用户管理
- 用户列表
- 图片上传
- 图片上传控制器
- 数据管理
- 导出表格功能
- 后台首页
- 首页控制器
- 后台首页模板
- 后台修改密码
- 公共页面
- 公共头部
- 公共左边部分
- 后台公共页面模板
- api接口文档目录
- api-用户注册
- api-用户登录
- api-用户中心
- api-用户基本信息
- api-安全设置
- api-登录密码修改
- api-支付密码修改
- api-拼团
- api-参团
- api-开团
- api-订单详情
- api-收货地址管理
- api-新增收货地址
- api-修改收货地址
- api-删除收货地址
- api-收货地址列表
- api-购物车
- api-购物车列表
- api-购物车商品详情
- api-商城
- api-商品列表
- api-商品详情
- api-商品分类列表
- 跨域
- app前端开发
- app-会员
- app-注册
- app-会员登录
- app-找回密码
- app-商品
- app-商品列表页
- app-商品详情页
- app-商品分类页
- app-用户
- app-个人资料
- app-安全设置
- app-登录密码修改页
- app-支付密码修改页
- app-订单
- app-订单列表页面
- app-订单详情页
- app-收货地址
- app-收货地址列表
- app-添加收货地址
- app-修改收货地址
- app-删除收货地址
- app-购物车列表页
- 全局函数
- 扫码
- 升级检查
- 底部导航
- 组件
- 登录组件
- 登录组件1
- 注册组件
- 忘记密码
