智慧画屏客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.3 KiB

4 years ago
  1. <template>
  2. <view class="main_container">
  3. <Header></Header>
  4. <view class="login">
  5. <image class="logo" src="/static/logo.png"></image>
  6. <form @submit="formSubmit">
  7. <view class="uni-form-item uni-column">
  8. <input class="uni-input" name="phone" type="number" placeholder="登录账号" />
  9. </view>
  10. <view class="uni-form-item uni-column">
  11. <input class="uni-input" name="password" placeholder="密码" password="true" />
  12. </view>
  13. <view class="uni-btn-v"><button class="uni-login-btn" form-type="submit"> </button></view>
  14. </form>
  15. </view>
  16. <view class="login_bg"></view>
  17. </view>
  18. </template>
  19. <script>
  20. import Header from '@/pages/header.vue'
  21. export default {
  22. components: {
  23. Header
  24. },
  25. data() {
  26. return {
  27. };
  28. },
  29. methods: {
  30. formSubmit: function(e) {
  31. console.log('form发生了submit事件,携带数据为:' + JSON.stringify(e.detail.value));
  32. var formdata = e.detail.value;
  33. // uni.showModal({
  34. // content: '表单数据内容:' + JSON.stringify(formdata),
  35. // showCancel: false
  36. // });
  37. }
  38. }
  39. };
  40. </script>
  41. <style scoped>
  42. .main_container {
  43. width: 100%;
  44. height: 100vh;
  45. background: url(../../static/images/bg.png) no-repeat left top;
  46. background-size: cover;
  47. }
  48. .login_bg {
  49. position: absolute;
  50. top: 50%;
  51. left: 50%;
  52. display: block;
  53. width: 530rpx;
  54. height: 648rpx;
  55. margin: -423rpx 0 0 -265rpx;
  56. background-color: #fcf4e8;
  57. border-radius: 30rpx 30rpx 0 0;
  58. box-shadow: 0 0 24rpx 2rpx rgba(0, 0, 0, 0.15);
  59. z-index: 9;
  60. }
  61. .login {
  62. position: absolute;
  63. top: 50%;
  64. left: 50%;
  65. width: 625rpx;
  66. height: 764rpx;
  67. margin: -382rpx 0 0 -312rpx;
  68. background-color: #fff;
  69. border-radius: 30rpx;
  70. box-shadow: 0 0 24rpx 2rpx rgba(0, 0, 0, 0.15);
  71. z-index: 99;
  72. display: flex;
  73. flex-direction: column;
  74. align-items: center;
  75. justify-content: center;
  76. }
  77. .logo {
  78. width: 278rpx;
  79. height: 52rpx;
  80. margin-bottom: 69.44rpx;
  81. /* margin: 132rpx auto 70rpx auto; */
  82. }
  83. .uni-input {
  84. width: 520rpx;
  85. height: 86rpx;
  86. margin-bottom: 41.66rpx;
  87. text-align: center;
  88. border: 1px solid #cbcbcb;
  89. border-radius: 86rpx;
  90. background-color: #f6f6f6;
  91. }
  92. .fouce_txt{
  93. border-color: #363538;
  94. }
  95. .uni-login-btn {
  96. width: 520rpx;
  97. height: 86rpx;
  98. margin-top: 69.44rpx;
  99. font-size: 30.55rpx;
  100. line-height: 86rpx;
  101. background-color: #0096ff;
  102. border-radius: 86rpx;
  103. color: #fff;
  104. }
  105. </style>