binding.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="container">
  3. <!-- 图片区域 -->
  4. <img src="../../static/my/shopImg2.png" />
  5. <!-- 表格区域 -->
  6. <view class="form">
  7. <view class="form_title">{{ type === '2' ? '账户解绑' : '账户绑定' }}</view>
  8. <view class="form_name">
  9. 账户
  10. <view class="name_input">
  11. <input type="text" placeholder="请输入商户超级管理员账号" />
  12. </view>
  13. </view>
  14. <view class="form_password">
  15. 密码
  16. <view class="password_input">
  17. <input type="text" placeholder="请输入商户超级管理员密码" />
  18. </view>
  19. </view>
  20. <view class="form_msg">{{ info }}</view>
  21. <view class="form_btn" @click="handleClickBtn">{{ type === '2' ? '解绑' : '绑定' }}</view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. type: '',
  30. info: '绑定失败,请输入正确的账号或者密码'
  31. }
  32. },
  33. onLoad(options) {
  34. if (options.type) {
  35. this.type = options.type
  36. uni.setNavigationBarTitle({
  37. title: '验证解绑'
  38. })
  39. }
  40. },
  41. methods: {
  42. handleClickBtn() {
  43. uni.navigateTo({
  44. url: '/pages/shopInfo/shopInfo'
  45. })
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .container {
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. height: 100vh;
  56. background-color: #fff;
  57. img {
  58. margin-top: 20rpx;
  59. width: 347rpx;
  60. height: 387rpx;
  61. }
  62. .form {
  63. box-sizing: border-box;
  64. padding: 0 30rpx;
  65. margin-top: 35rpx;
  66. width: 690rpx;
  67. height: 548rpx;
  68. border-radius: 23rpx;
  69. box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.25);
  70. .form_title {
  71. line-height: 120rpx;
  72. font-size: 32rpx;
  73. font-weight: bold;
  74. }
  75. .form_name {
  76. display: flex;
  77. align-items: center;
  78. font-size: 28rpx;
  79. .name_input {
  80. display: flex;
  81. align-items: center;
  82. box-sizing: border-box;
  83. padding: 0 24rpx;
  84. margin-left: 25rpx;
  85. width: 545rpx;
  86. height: 80rpx;
  87. border-radius: 15rpx;
  88. border: 1rpx solid #a6a6a6;
  89. input {
  90. width: 100%;
  91. }
  92. }
  93. }
  94. .form_password {
  95. display: flex;
  96. align-items: center;
  97. margin-top: 46rpx;
  98. font-size: 28rpx;
  99. .password_input {
  100. display: flex;
  101. align-items: center;
  102. box-sizing: border-box;
  103. padding: 0 24rpx;
  104. margin-left: 25rpx;
  105. width: 545rpx;
  106. height: 80rpx;
  107. border-radius: 15rpx;
  108. border: 1rpx solid #a6a6a6;
  109. input {
  110. width: 100%;
  111. }
  112. }
  113. }
  114. .form_msg {
  115. margin-top: 23rpx;
  116. color: #d43030;
  117. font-size: 24rpx;
  118. text-align: center;
  119. }
  120. .form_btn {
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. margin-top: 28rpx;
  125. width: 624rpx;
  126. height: 96rpx;
  127. border-radius: 64rpx;
  128. color: #fff;
  129. font-size: 32rpx;
  130. background-color: #096562;
  131. }
  132. }
  133. }
  134. </style>