index.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <div v-if="action === 'bind'" class="p-imei">
  3. <h3 class="title">
  4. You have a Lite version of membership service to be bound
  5. </h3>
  6. <div class="form">
  7. <p class="label">IMEI</p>
  8. <p class="control">
  9. <input class="ptc-input" placeholder="please enter" />
  10. </p>
  11. <p class="tip">
  12. <span @click="$router.push('view')">How to view IMEI?</span>
  13. </p>
  14. </div>
  15. <button class="ptc-button">BIND IMEI</button>
  16. </div>
  17. <div v-else class="p-imei">
  18. <h3 class="title">View mobile IMEI</h3>
  19. <div class="guide">
  20. <div class="guide-txt">
  21. View on iPhone: Turn on the phone and click Settings-General-About this
  22. machine to check the IMEI number。
  23. </div>
  24. <div class="guide-img"></div>
  25. </div>
  26. </div>
  27. </template>
  28. <script setup lang="ts">
  29. defineProps<{ action: 'bind' | 'view' }>()
  30. </script>
  31. <style lang="scss">
  32. .p-imei {
  33. background: #f7f7f7;
  34. .title {
  35. padding: 36px 24px;
  36. line-height: 56px;
  37. font-size: 40px;
  38. font-weight: 600;
  39. color: #333;
  40. }
  41. .form {
  42. padding: 48px 36px;
  43. background: #fff;
  44. .label {
  45. font-size: 32px;
  46. color: #999;
  47. }
  48. .control {
  49. margin: 48px 0;
  50. }
  51. .tip {
  52. font-size: 32px;
  53. color: $primary-color;
  54. }
  55. }
  56. .ptc-button {
  57. display: block;
  58. margin: 48px auto 0;
  59. width: 678px;
  60. }
  61. .guide {
  62. flex: 1;
  63. padding: 48px 36px;
  64. background: #fff;
  65. &-txt {
  66. line-height: 44px;
  67. font-size: 32px;
  68. color: #333;
  69. }
  70. &-img {
  71. display: block;
  72. margin-top: 38px;
  73. height: 328px;
  74. background: #eee;
  75. }
  76. }
  77. }
  78. </style>