| | |
| | | <template> |
| | | <view> |
| | | <!-- 设置 --> |
| | | <label class="settings"> |
| | | <uni-icons type="gear" size="30" color="#707070" @click="settings"></uni-icons> |
| | | </label> |
| | | <view class="settings"> |
| | | <view class="settings-btn"> |
| | | <uni-icons type="gear" size="30" color="#707070" @click="settings"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <!-- logo --> |
| | | <view class="head"> |
| | | <view class="logo"> |
| | | <view class="logo"> |
| | | <view class="logo-box"> |
| | | <image src="../../static/img/logo.png" mode="aspectFit"></image> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="box-text">账号:</view> |
| | | <view class="box-input"> |
| | | <input type="text"> |
| | | <input type="text" placeholder="请输入账号" placeholder-style="font-size:14px;color:#ccc;"> |
| | | </view> |
| | | <view class="box-show"></view> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="box-text">密码:</view> |
| | | <view class="box-input"> |
| | | <input type="text"> |
| | | <input password placeholder="请输入密码" placeholder-style="font-size:14px;color:#ccc;" > |
| | | </view> |
| | | <view class="box-show"> |
| | | <uni-icons type="eye-filled" size="20" color="#707070"></uni-icons> |
| | |
| | | <!-- 登录按钮 --> |
| | | <view class="submit"> |
| | | <view class="" style="width: 400rpx;"> |
| | | <button type="primary" size="default">登录</button> |
| | | <button type="primary" @click="onLogin()" :loading="load.loading">{{load.btnText}}</button> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | <uni-popup ref="inputDialog" type="dialog"> |
| | | <view class="popup"> |
| | | <!-- 标题 --> |
| | | <view class="title title-font">配置</view> |
| | | <view class="input"> |
| | | <view class="input-left">ip:</view> |
| | | <view class="input-right"><input type="text"></view> |
| | | <view class="title">配置</view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">IP:</view> |
| | | <view class="popup-item-right"><input type="text"></view> |
| | | </view> |
| | | <view class="input"> |
| | | <view class="input-left">端口:</view> |
| | | <view class="input-right"><input type="text"></view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">端口:</view> |
| | | <view class="popup-item-right"><input type="text"></view> |
| | | </view> |
| | | <view class="input"> |
| | | <view class="input-left">项目:</view> |
| | | <view class="input-right"><input type="text"></view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">项目:</view> |
| | | <view class="popup-item-right"><input type="text"></view> |
| | | </view> |
| | | <view class="btn"> |
| | | <view class="btn-left" @click="close">取消</view> |
| | |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | |
| | | |
| | | <!-- 版本号 --> |
| | | <!-- #ifdef APP-PLUS --> |
| | |
| | | data() { |
| | | return { |
| | | version: '', |
| | | value: '' |
| | | value: '', |
| | | load: { |
| | | loading: false, |
| | | btnText: '登录' |
| | | }, |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | // 设置窗口关闭按钮 |
| | | close() { |
| | | this.$refs.inputDialog.close() |
| | | }, |
| | | onLogin() { |
| | | let that = this |
| | | that.load.loading = true; |
| | | that.load.btnText = '登录中'; |
| | | setTimeout(()=> { |
| | | uni.showToast({title: '登录成功'}) |
| | | setTimeout(()=> { |
| | | uni.reLaunch({ |
| | | url: '../home/home' |
| | | }); |
| | | },300) |
| | | },700) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | @import url('../../static/css/wms.css/wms.css'); |
| | | /* 设置区域 */ |
| | | .settings { |
| | | min-height: 100rpx; |
| | | } |
| | | .settings-btn { |
| | | float: right; |
| | | margin-right: 10rpx; |
| | | } |
| | | .logo { |
| | | height: 25%; |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | .logo-box { |
| | | margin: auto 0; |
| | | } |
| | | image { |
| | | height: 300rpx; |
| | | } |
| | | /* 输入框区域 */ |
| | | .content { |
| | | min-height: 250rpx; |
| | | /* background-color: coral; */ |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | color: #606266; |
| | | } |
| | | .box { |
| | | width: 80%; |
| | | height: 100rpx; |
| | | margin-top: 30rpx; |
| | | background-color: white; |
| | | display: flex; |
| | | font-size: 14px; |
| | | align-items: center; |
| | | |
| | | } |
| | | .box-icon { |
| | | width: 80rpx; |
| | | text-align: center; |
| | | } |
| | | .box-text { |
| | | width: 100rpx; |
| | | text-align: center; |
| | | } |
| | | .box-show { |
| | | margin-left: auto; |
| | | /* margin-right: 10rpx; */ |
| | | width: 60rpx; |
| | | text-align: center; |
| | | } |
| | | input { |
| | | padding-left: 10rpx; |
| | | font-size: 14px; |
| | | color: #303133; |
| | | } |
| | | |
| | | .check { |
| | | width: 78%; |
| | | display: flex; |
| | | font-size: 12px; |
| | | color: #606266; |
| | | margin-top: 10rpx; |
| | | } |
| | | .check-right { |
| | | margin-left: auto; |
| | | } |
| | | .submit { |
| | | display: flex; |
| | | justify-content: center; |
| | | position: fixed; |
| | | width: 100%; |
| | | bottom: 100rpx; |
| | | } |
| | | .version { |
| | | position: fixed; |
| | | width: 100%; |
| | | bottom: 0; |
| | | text-align: center; |
| | | font-size: 12px; |
| | | color: #909399; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /* ------ */ |
| | | |
| | | .shadow-warp { |
| | | position: relative; |
| | | box-shadow: 0 0 10upx rgba(0, 0, 0, 0.1); |
| | | } |
| | | |
| | | .shadow-warp:before, |
| | | .shadow-warp:after { |
| | | position: absolute; |
| | | content: ""; |
| | | top: 20upx; |
| | | bottom: 30upx; |
| | | left: 20upx; |
| | | width: 50%; |
| | | box-shadow: 0 30upx 20upx rgba(0, 0, 0, 0.2); |
| | | transform: rotate(-3deg); |
| | | z-index: -1; |
| | | } |
| | | |
| | | .shadow-warp:after { |
| | | right: 20upx; |
| | | left: auto; |
| | | transform: rotate(3deg); |
| | | } |
| | | </style> |