choose.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="web_box">
  3. <view class="logo vflex acenter jcenter">
  4. <image src="/static/images/logo.jpg" style="width: 170rpx;height:170rpx"></image>
  5. <view class="name">
  6. 嘉兴拓新科技服务有限公司
  7. </view>
  8. </view>
  9. <view class="btnGroup">
  10. <view class="btn1">
  11. <u-button shape="circle" @click="register" text="新用户注册"></u-button>
  12. </view>
  13. <view class="btn2">
  14. <u-button shape="circle" @click="login" color="linear-gradient(135deg, #53BDFF 0%, #57BBF0 29%, #3B86FE 72%, #2988FE 100%)" text="账号登录"></u-button>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. }
  24. },
  25. onLoad() {
  26. },
  27. methods: {
  28. // 新用户注册
  29. register() {
  30. uni.navigateTo({
  31. url: '/pages/login/register'
  32. })
  33. },
  34. // 账号登录
  35. login() {
  36. uni.navigateTo({
  37. url: '/pages/login/login'
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .web_box::v-deep {
  45. background: url('@/static/images/login/choose-bg.png') no-repeat;
  46. background-size: 100%;
  47. padding: 0 100rpx;
  48. .logo {
  49. width: 100%;
  50. box-sizing: border-box;
  51. padding: 238rpx 0 0;
  52. }
  53. .name {
  54. padding-top: 32rpx;
  55. font-size: 32rpx;
  56. font-weight: 500;
  57. color: #333333;
  58. }
  59. .btnGroup {
  60. width: 100%;
  61. padding-top: 210rpx;
  62. }
  63. .btn1 {
  64. width: 578rpx;
  65. height: 80rpx;
  66. font-size: 28px;
  67. font-weight: 500;
  68. color: #333333;
  69. }
  70. .btn2 {
  71. width: 578rpx;
  72. height: 80rpx;
  73. font-size: 28px;
  74. font-weight: 500;
  75. color: #FFFFFF;
  76. margin-top: 68rpx !important;
  77. }
  78. .u-button {
  79. box-shadow: 1px 1px 4px 0px rgba(129,129,129,0.5);
  80. }
  81. }
  82. </style>