加油站付款小程序,打印小票
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.

146 lines
2.5 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 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. 欢迎使用车队佳油
  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. },
  56. //打开应用配置
  57. openConfigDetail(key){
  58. this.$refs.popup.open(key)
  59. }
  60. }
  61. }
  62. </script>
  63. <style scoped lang="scss">
  64. .login{
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. height: 80vh;
  69. flex-direction: column;
  70. position: relative;
  71. .logo{
  72. height: 80rpx;
  73. width: 80rpx;
  74. padding: 40rpx 30rpx;
  75. background-color: #ddd;
  76. border-radius: 70rpx;
  77. image{
  78. width: 80rpx;
  79. height: 80rpx;
  80. }
  81. margin-bottom: 20rpx;
  82. }
  83. .title{
  84. position: relative;
  85. font-weight: 900;
  86. font-size: 45rpx;
  87. &::after{
  88. content: '';
  89. position: absolute;
  90. left: 0;
  91. top: 100%;
  92. display: block;
  93. height: 8rpx;
  94. width: 210rpx;
  95. background: linear-gradient(to right,#00aaff, #fff);
  96. }
  97. }
  98. .btn{
  99. width: 80%;
  100. height: 100rpx;
  101. background-color: #00aaff;
  102. color: #fff;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. margin: 20rpx 0;
  107. border-radius: 20rpx;
  108. .icon{
  109. margin-right: 10rpx;
  110. image{
  111. width: 40rpx;
  112. height: 35rpx;
  113. }
  114. }
  115. }
  116. .b2{
  117. background-color: #3c69f122;
  118. color: #3c69f1;
  119. }
  120. .mt{
  121. margin-top: 200rpx;
  122. }
  123. .config{
  124. position: absolute;
  125. bottom: 0;
  126. font-size: 22rpx;
  127. text-align: center;
  128. line-height: 40rpx;
  129. text{
  130. color: #00aaff;
  131. }
  132. }
  133. }
  134. </style>