艺易修小程序24.08.21
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.

149 lines
2.6 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="login">
  3. <view class="logo">
  4. <!-- <image src="/static/image/login/logo.png" mode=""></image> -->
  5. </view>
  6. <view class="title">
  7. 欢迎使用xx报修
  8. </view>
  9. <view class="btn mt">
  10. <view class="icon">
  11. <!-- <image src="/static/image/login/wx.png" mode=""></image> -->
  12. </view>
  13. <view class=""
  14. @click="wxLogin">
  15. 微信授权登录
  16. </view>
  17. </view>
  18. <!-- <view class="btn b2">
  19. 使用短信验证登录
  20. </view> -->
  21. <view class="config">
  22. <uv-checkbox-group
  23. v-model="checkboxValue"
  24. shape="circle">
  25. <view class="content">
  26. <view
  27. style="display: flex;">
  28. <uv-checkbox
  29. size="30rpx"
  30. :name="1"
  31. ></uv-checkbox>
  32. 阅读并同意我们的<text @click="openConfigDetail('privacyAgreement')">服务协议与隐私条款</text>
  33. </view>
  34. <view class="">
  35. 以及<text @click="openConfigDetail('userAgreement')">个人信息保护指引</text>
  36. </view>
  37. </view>
  38. </uv-checkbox-group>
  39. </view>
  40. <configPopup ref="popup"></configPopup>
  41. </view>
  42. </template>
  43. <script>
  44. import configPopup from '../../components/config/configPopup.vue';
  45. export default {
  46. name : 'Login',
  47. data() {
  48. return {
  49. checkboxValue : []
  50. }
  51. },
  52. methods: {
  53. wxLogin(){
  54. // this.$store.commit('login')
  55. uni.switchTab({
  56. url: '/pages/repair/repair'
  57. })
  58. },
  59. //打开应用配置
  60. openConfigDetail(key){
  61. this.$refs.popup.open(key)
  62. }
  63. }
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. .login{
  68. display: flex;
  69. justify-content: center;
  70. align-items: center;
  71. height: 80vh;
  72. flex-direction: column;
  73. position: relative;
  74. .logo{
  75. height: 80rpx;
  76. width: 80rpx;
  77. padding: 40rpx 30rpx;
  78. background-color: #ddd;
  79. border-radius: 70rpx;
  80. image{
  81. width: 80rpx;
  82. height: 80rpx;
  83. }
  84. margin-bottom: 20rpx;
  85. }
  86. .title{
  87. position: relative;
  88. font-weight: 900;
  89. font-size: 45rpx;
  90. &::after{
  91. content: '';
  92. position: absolute;
  93. left: 0;
  94. top: 100%;
  95. display: block;
  96. height: 8rpx;
  97. width: 210rpx;
  98. background: linear-gradient(to right,#00aaff, #fff);
  99. }
  100. }
  101. .btn{
  102. width: 80%;
  103. height: 100rpx;
  104. background-color: #00aaff;
  105. color: #fff;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. margin: 20rpx 0;
  110. border-radius: 20rpx;
  111. .icon{
  112. margin-right: 10rpx;
  113. image{
  114. width: 40rpx;
  115. height: 35rpx;
  116. }
  117. }
  118. }
  119. .b2{
  120. background-color: #3c69f122;
  121. color: #3c69f1;
  122. }
  123. .mt{
  124. margin-top: 200rpx;
  125. }
  126. .config{
  127. position: absolute;
  128. bottom: 0;
  129. font-size: 22rpx;
  130. text-align: center;
  131. line-height: 40rpx;
  132. text{
  133. color: #00aaff;
  134. }
  135. }
  136. }
  137. </style>