| | |
| | | <template> |
| | | <view class="main"> |
| | | <!-- 设置按钮 --> |
| | | <uni-icons type="gear" size="30" color="#b1b3b8" class="setting"></uni-icons> |
| | | <uni-icons type="gear" size="30" color="#b1b3b8" class="setting" @click="settings"></uni-icons> |
| | | <view class="left"> |
| | | <!-- logo --> |
| | | <view class="logo-box"> |
| | |
| | | <switch :checked='remberPassword' color="#FFCC33" style="zoom:.5" @change="remberChange"/> |
| | | </view> |
| | | </view> |
| | | <view class="button"> |
| | | <view class="button" @click="login"> |
| | | 登录 |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <!-- 设置弹窗区域 --> |
| | | <uni-popup ref="settings" type="dialog" style="height: 100%;width: 100%;background-color: aqua;"> |
| | | <view class="popup"> |
| | | <!-- 标题 --> |
| | | <view class="title">配置</view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">IP:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="url.ip"></view> |
| | | </view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">端口:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="url.port"></view> |
| | | </view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">项目:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="url.project"></view> |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | | |
| | | <!-- 版本号 --> |
| | | <!-- #ifdef APP-PLUS --> |
| | | <view class="version"> |
| | |
| | | data() { |
| | | return { |
| | | version: '', |
| | | remberPassword: true |
| | | remberPassword: true, |
| | | url: { |
| | | ip: '', |
| | | port: '', |
| | | project: '' |
| | | }, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | methods: { |
| | | remberChange() { |
| | | |
| | | }, |
| | | settings() { |
| | | this.$refs.settings.open() |
| | | }, |
| | | login() { |
| | | let path = 'bf' |
| | | uni.navigateTo({ |
| | | url: `/pages/project/${path}/home/home`, |
| | | fail(res) { |
| | | console.log(`没有${path}项目,请联系管理元`); |
| | | } |
| | | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | font-size: 10px; |
| | | color: #909399; |
| | | } |
| | | |
| | | .popup { |
| | | background-color: #fff; |
| | | width: 100%; |
| | | } |
| | | </style> |