my.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <route lang="json5" type="page">
  2. {
  3. style: { navigationBarTitleText: '欢迎登录' },
  4. }
  5. </route>
  6. <template>
  7. <view class="text-center container">
  8. <view class="px-10 pt-20 pb-20 top-box">
  9. <view class="con-top">
  10. <view class="h1 mb-8 mt-10">科湃腾肉牛系统</view>
  11. <view class="h3 mb-10 pt-4">简化牧场管理,从这里开始!</view>
  12. </view>
  13. <view class="btn mt-10 user">用户一键登录</view>
  14. <view class="btn mt-10 tel" @click="getPhone">手机号安全登录</view>
  15. <text class="mt-10 title">
  16. <wd-radio :value="1">我已认真阅读并同意《服务协议》、《隐私政策》</wd-radio>
  17. </text>
  18. </view>
  19. </view>
  20. </template>
  21. <script lang="ts" setup>
  22. defineOptions({
  23. name: 'Login',
  24. })
  25. const getPhone = () => {
  26. uni.navigateTo({ url: '/pages/telPhone/telPhone' })
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. //
  31. .con-top {
  32. color: #f59e0b;
  33. font-size: 56rpx;
  34. }
  35. .h3 {
  36. font-size: 36rpx;
  37. }
  38. .btn {
  39. color: #fff;
  40. border-radius: 60rpx;
  41. height: 80rpx;
  42. line-height: 80rpx;
  43. font-size: 36rpx;
  44. margin: 30rpx auto;
  45. }
  46. .user {
  47. background-color: #eea441;
  48. margin-bottom: 50rpx;
  49. }
  50. .tel {
  51. background-color: #2a9d8f;
  52. }
  53. .container {
  54. // background-color: #fafafa;
  55. height: 100vh;
  56. }
  57. .top-box {
  58. background-color: #fff;
  59. }
  60. </style>