智慧画屏客户端
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.

72 lines
1.6 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <view class="main_container">
  3. <Header></Header>
  4. <view class="login-bind">
  5. <view class="login">
  6. <image class="logo" src="/static/logo.png"></image>
  7. <form @submit="loginSubmit">
  8. <view class="uni-form-item uni-column">
  9. <input class="uni-input" name="phone" type="number" placeholder="登录账号" />
  10. </view>
  11. <view class="uni-form-item uni-column">
  12. <input class="uni-input" name="password" placeholder="密码" password="true" />
  13. </view>
  14. <view class="uni-btn-v"><button class="uni-login-btn" form-type="submit"> </button></view>
  15. </form>
  16. </view>
  17. </view>
  18. <view class="login_bg"></view>
  19. </view>
  20. </template>
  21. <script>
  22. import Header from '@/pages/header.vue'
  23. export default {
  24. components: {
  25. Header
  26. },
  27. data() {
  28. return {
  29. };
  30. },
  31. methods: {
  32. loginSubmit: function(e) {
  33. console.log('form发生了submit事件,携带数据为:' + JSON.stringify(e.detail.value));
  34. var formdata = e.detail.value;
  35. // uni.showModal({
  36. // content: '表单数据内容:' + JSON.stringify(formdata),
  37. // showCancel: false
  38. // });
  39. uni.navigateTo({
  40. url: '../bind/bind'
  41. });
  42. }
  43. }
  44. };
  45. </script>
  46. <style scoped>
  47. .login{
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. justify-content: center;
  52. }
  53. .logo {
  54. width: 278rpx;
  55. height: 52rpx;
  56. margin-bottom: 69.44rpx;
  57. }
  58. .login .uni-input {
  59. width: 520rpx;
  60. height: 86rpx;
  61. margin-bottom: 41.66rpx;
  62. text-align: center;
  63. border: 1px solid #cbcbcb;
  64. border-radius: 86rpx;
  65. background-color: #f6f6f6;
  66. }
  67. .fouce_txt{
  68. border-color: #363538;
  69. }
  70. </style>