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

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