### 登錄組件
```
<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
- 注冊組件
- 忘記密碼