#
whycq
2023-02-09 b0b1d97f04f70a2b5edc731e68803c31835842ee
pages/login/login.vue
@@ -1,21 +1,27 @@
<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 shadow-warp">
      <view class="box shadow-warp">
         <view></view>
         <view>
            <input type="text">
         </view>
      </view>
      <!-- <view class="">
      <view class="box shadow-warp">
         <view></view>
         <view>
            <input type="text">
         </view>
      </view>
      <view class="">
         <input type="text">
      </view> -->
   </view>
   <view class="submit">
      <view class="" style="width: 400rpx;">
@@ -23,17 +29,63 @@
      </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 setup lang="ts">
   // 这里编写ts代码
<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">
   .display-grid {
      display: grid;
   .settings {
      width: 60rpx;
      height: 60rpx;
      position: fixed;
      right: 20rpx;
      top: 10rpx;
   }
   .head {
      height: 400rpx;
      width: 100%;
@@ -51,22 +103,20 @@
   }
   .content {
      height: 400rpx;
      height: 240rpx;
      width: 100%;
      // background-color: bisque;
      display: grid;
      grid-template-columns: 1fr;
      justify-items: center;
      align-items: center;
      .input {
         padding: 50rpx;
         border-radius: 6rpx;
         background-color: #ffffff;
         color: #666666;
         margin-top: 30rpx;
         width: 60%;
         height: 0rpx;
      .box {
         width: 70%;
         height: 80rpx;
         background-color: #FFFFFF;
         padding: 1upx 30upx;
         display: flex;
         align-items: center;
         justify-content: space-between;
      }
   }
@@ -78,4 +128,10 @@
      grid-template-columns: 1fr;
      justify-items: center;
   }
   .version {
      position: fixed;
      width: 100%;
      bottom: 0;
      text-align: center;
   }
</style>