unbind.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="zx-container unbind-page">
  3. <view class="zx-wrap car-info-wrap">
  4. <image :src="icons.carImg" class="car-img" />
  5. <view class="car-name">
  6. {{ '智能电动摩托车智驾 M7' }}
  7. </view>
  8. </view>
  9. <view class="zx-wrap input-wrap">
  10. <view class="title">{{ $t('输入注册账号的密码即可解绑') }}</view>
  11. <ZxInput
  12. v-model="passwd"
  13. :placeholder="$t('请输入密码')"
  14. background="#F3F8FF"
  15. is-password
  16. />
  17. </view>
  18. <view class="tips-wrap">
  19. <view class="title">{{ $t('提示信息') }}</view>
  20. <view class="text">
  21. <text>1、</text>
  22. 解绑后,您将失去当前设备的控制权,其他人可以连接绑定您的设备。
  23. </view>
  24. <view class="text">
  25. <text>2、</text>
  26. 解绑后将立即删除家庭账号,感应解锁等数据。
  27. </view>
  28. </view>
  29. <view
  30. style="margin-top: 40rpx;"
  31. :class="[
  32. 'zx-form-btn',
  33. passwd && 'is-submit'
  34. ]"
  35. @tap="unbindTap"
  36. >
  37. {{ $t('完成并解绑') }}
  38. </view>
  39. <Confirm
  40. v-model="showConfirm"
  41. :dialog-info="{
  42. text: $t('是否确定解除绑定'),
  43. showCancelButton: true
  44. }"
  45. @confirm="unbindSubmit"
  46. />
  47. </view>
  48. </template>
  49. <script>
  50. import Confirm from '@/component/comPopup/Confirm'
  51. import ZxInput from '../loginRegister/components/ZxInput.vue'
  52. import { QINIU_URL } from '@/common/constant'
  53. const ICONS = {
  54. carImg: `${QINIU_URL}Fr7v719WrP6TmCfGtvJd-nAHhiCj`
  55. }
  56. export default {
  57. components: {
  58. Confirm,
  59. ZxInput
  60. },
  61. data() {
  62. return {
  63. icons: ICONS,
  64. showConfirm: false,
  65. passwd: ''
  66. }
  67. },
  68. methods: {
  69. unbindTap() {
  70. if (!this.passwd) {
  71. return
  72. }
  73. this.showConfirm = true
  74. },
  75. unbindSubmit() {
  76. console.log('解除绑定', this.passwd)
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. @import "@/libs/css/layout.scss";
  83. .unbind-page {
  84. .car-info-wrap {
  85. padding: 0 32rpx 40rpx;
  86. .car-img {
  87. width: 100%;
  88. height: 492rpx;
  89. }
  90. .car-name {
  91. text-align: center;
  92. color: #060809;
  93. font-weight: bold;
  94. font-size: 34rpx;
  95. }
  96. }
  97. .input-wrap {
  98. margin: 20rpx 0 40rpx;
  99. .title {
  100. font-family: PingFangSC, PingFang SC;
  101. font-weight: 400;
  102. font-size: 36rpx;
  103. color: #060809;
  104. margin-bottom: 40rpx;
  105. }
  106. }
  107. .tips-wrap {
  108. padding: 0 32rpx;
  109. .title {
  110. font-size: 32rpx;
  111. color: #060809;
  112. font-weight: bold;
  113. margin-bottom: 20rpx;
  114. }
  115. .text {
  116. font-weight: 400;
  117. font-size: 24rpx;
  118. color: #828DA2;
  119. line-height: 36rpx;
  120. display: flex;
  121. }
  122. }
  123. }
  124. </style>