From b0b1d97f04f70a2b5edc731e68803c31835842ee Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期四, 09 二月 2023 17:03:54 +0800 Subject: [PATCH] # --- pages/login/login.vue | 154 ++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 110 insertions(+), 44 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index b4686a7..360cf21 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,71 +1,137 @@ <template> + <view class="settings"> + <uni-icons type="gear" size="30" color="#c5c5c5" @click="settings"></uni-icons> + </view> <view class="head"> <view class="logo"> - + <image src="../../static/img/logo.png" mode="aspectFit"></image> </view> </view> <view class="content"> - <view class="input"> - <view class=""> - - </view> - <view class=""> + <view class="box shadow-warp"> + <view></view> + <view> <input type="text"> </view> - + </view> - - <view class="input"> - <view class=""> - - </view> - <view class=""> + <view class="box shadow-warp"> + <view></view> + <view> <input type="text"> </view> - + </view> - </view> + <view class="submit"> + <view class="" style="width: 400rpx;"> + <button type="primary" size="default">鐧诲綍</button> + </view> + + </view> + + <!-- 寮圭獥鍖哄煙 --> + + <view> + <!-- 杈撳叆妗嗙ず渚� --> + <uni-popup ref="inputDialog" type="dialog"> + <uni-popup-dialog ref="inputClose" mode="input" title="杈撳叆鍐呭" value="瀵硅瘽妗嗛缃彁绀哄唴瀹�!" + placeholder="璇疯緭鍏ュ唴瀹�" @confirm="dialogInputConfirm"></uni-popup-dialog> + <uni-popup-dialog ref="inputClose" mode="input" title="杈撳叆鍐呭" value="瀵硅瘽妗嗛缃彁绀哄唴瀹�!" + placeholder="璇疯緭鍏ュ唴瀹�" @confirm="dialogInputConfirm"></uni-popup-dialog> + </uni-popup> + </view> + + + <!-- 鐗堟湰鍙� --> + <!-- #ifdef APP-PLUS --> + <view class="version"> + 褰撳墠鐗堟湰:{{version}} + </view> + <!-- #endif --> </template> -<script lang="ts"> -// 杩欓噷缂栧啓ts浠g爜 - let s:string = "123" - console.log(s) +<script> + export default { + data() { + return { + version: '', + value: '' + } + }, + onLoad() { + // #ifdef APP-PLUS + var that = this + plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) { + that.version = wgtinfo.version + }); + // #endif + }, + methods: { + settings() { + this.$refs.inputDialog.open() + }, + dialogInputConfirm() { + this.$refs.inputDialog.close() + } + } + } </script> <style lang="less"> - .head { - height: 200rpx; - width: 100%; - background-color: aquamarine; - display: grid; - grid-template-columns: 1fr; - justify-items: center; - align-items: center; - .logo { - width: 10%; - height: 90%; - background-color: red; - } + .settings { + width: 60rpx; + height: 60rpx; + position: fixed; + right: 20rpx; + top: 10rpx; } - .content { + .head { height: 400rpx; width: 100%; - margin-top: 10rpx; - background-color: bisque; + display: grid; + grid-template-columns: 1fr; + // background-color: aqua; + justify-items: center; + align-items: center; + + .logo { + image { + height: 300rpx; + } + } + } + + .content { + height: 240rpx; + width: 100%; + // background-color: bisque; display: grid; grid-template-columns: 1fr; justify-items: center; - align-items: center; - .input { - width: 50%; - height: 30%; - background-color: #fff; - display: grid; - grid-template-columns: 1fr; - justify-items: center; + .box { + width: 70%; + height: 80rpx; + background-color: #FFFFFF; + padding: 1upx 30upx; + display: flex; align-items: center; + justify-content: space-between; } } -</style> \ No newline at end of file + + .submit { + position: fixed; + width: 100%; + bottom: 200rpx; + display: grid; + grid-template-columns: 1fr; + justify-items: center; + } + .version { + position: fixed; + width: 100%; + bottom: 0; + text-align: center; + } +</style> -- Gitblit v1.9.1