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.

148 lines
3.1 KiB

  1. <template>
  2. <view class="app-container">
  3. <view class="login-content">
  4. <view class="login-font">
  5. <image style="width: 364rpx;height: 200rpx;" src="/static/login/merchant-copy.png" alt="" />
  6. </view>
  7. <view class="login-main">
  8. <view class="login-item">
  9. <input type="text" class="log-phone" placeholder="请输入手机号"/>
  10. </view>
  11. <view class="login-item">
  12. <input type="text" class="log-phone log-code" placeholder="请输入验证码"/>
  13. <view class="getCode" @click="getCode">
  14. 获取验证码
  15. </view>
  16. </view>
  17. <view class="login-btn">
  18. <button size="default" type="default" @click="btnLogin"
  19. style="color:#ffffff;backgroundColor:#F52F3E;borderColor:#F52F3EF;border-radius: 50rpx;height: 88rpx;line-height: 88rpx;"
  20. >登录</button>
  21. </view>
  22. <view class="login-sign">
  23. <u-radio-group v-model="value">
  24. <u-radio labelSize="13" size="20" label="我同意"></u-radio>
  25. </u-radio-group>
  26. <view class="log-link" @click="handlerApply">
  27. 排队支付商户用户服务协议
  28. </view>
  29. <view class="log-link" @click="handlerProtect">
  30. 隐私保护协议
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <u-toast ref="uToast"></u-toast>
  36. <u-modal :show="show" @confirm="confirm" :title="title" :content='content'></u-modal>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. bgColor: '#bgColor',
  44. value: 1,
  45. show:false,
  46. title:'',
  47. content:''
  48. };
  49. },
  50. methods: {
  51. getCode() {
  52. this.$refs.uToast.show({
  53. message: '短信已发送'
  54. })
  55. },
  56. handlerApply() {
  57. this.show = true;
  58. this.title = '排队支付代理用户服务协议';
  59. this.content = '排队支付代理用户服务协议';
  60. },
  61. handlerProtect() {
  62. this.show = true;
  63. this.title = '隐私保护协议';
  64. this.content = '隐私保护协议';
  65. },
  66. confirm() {
  67. this.show = false;
  68. },
  69. btnLogin() {
  70. uni.navigateTo({
  71. url: '/pages/index/index'
  72. });
  73. }
  74. }
  75. }
  76. </script>
  77. <style lang="scss">
  78. .login-content {
  79. width: 100%;
  80. height: 1600rpx;
  81. padding-left: 30rpx;
  82. padding-right: 30rpx;
  83. background: url(../../static/login/merchant-bg.png) no-repeat center center;
  84. background-size: cover;
  85. box-sizing: border-box;
  86. .login-font {
  87. width: 364rpx;
  88. height: 200rpx;
  89. padding-top: 80rpx;
  90. }
  91. .login-main {
  92. margin-top: 120rpx;
  93. .login-item {
  94. position: relative;
  95. margin-top: 40rpx;
  96. .log-phone {
  97. width: 100%;
  98. height: 88rpx;
  99. line-height: 88rpx;
  100. padding-left: 50rpx;
  101. border-radius: 44rpx;
  102. border: none;
  103. box-sizing: border-box;
  104. background-color: #fff;
  105. font-size: 16px;
  106. color: #454545;
  107. }
  108. .getCode {
  109. position: absolute;
  110. right: 50rpx;
  111. top: 30rpx;
  112. font-size: 12px;
  113. color: #454545;
  114. cursor: pointer;
  115. }
  116. }
  117. .login-btn {
  118. margin-top: 80rpx;
  119. }
  120. .login-sign {
  121. display: flex;
  122. justify-content: flex-start;
  123. margin-top: 30rpx;
  124. padding-left: 20rpx;
  125. .u-radio-group {
  126. flex-grow: 0;
  127. margin-right: 60rpx;
  128. }
  129. .log-link {
  130. height: 40rpx;
  131. line-height: 40rpx;
  132. font-size: 12px;
  133. }
  134. }
  135. }
  136. }
  137. </style>