bind_phone.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view>
  3. <hx-navbar :status-bar="true" defaultBackUrl="phone" :fixed="true" left-icon="back" left-text="验证手机号" right-text="下一步"></hx-navbar>
  4. <view class=" msgBox mRL">
  5. <text class="text-gray ">
  6. 验证你的手机号码,{{appName}}会向你发送一条验证短信,并且会自动完成验证,整个过程你只需要耐心等待。{{appName}}不会公开你的手机号码给其他用户。
  7. </text>
  8. </view>
  9. <view class="content mRL">
  10. <view class="areaCodeBox ">
  11. <text class="areaCode">+86</text>
  12. <text class="areaText">中国大陆</text>
  13. </view>
  14. <view class="phoneBox">
  15. <input type="text" :value="phone" placeholder="你本人手机号"/>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import {
  22. mapState
  23. } from 'vuex';
  24. export default {
  25. data() {
  26. return {
  27. phone: '',
  28. appName: '',
  29. }
  30. },
  31. onLoad() {
  32. this.appName = this.$conf.appName;
  33. },
  34. computed:{
  35. ...mapState(['userData'])
  36. },
  37. methods: {
  38. },
  39. }
  40. </script>
  41. <style lang="scss">
  42. page{
  43. }
  44. .content{
  45. display: flex;
  46. flex-direction:row;
  47. justify-content: center;
  48. align-items: flex-end;
  49. height: 116upx;
  50. margin-top: 50upx;
  51. }
  52. .areaCodeBox{
  53. width: 160upx;
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. flex-direction:column;
  58. border-bottom: 1px solid #e1e1e1;
  59. padding: 8upx 0;
  60. margin-right: 24upx;
  61. }
  62. .mRL{
  63. margin-left: 40upx;
  64. margin-right: 40upx;
  65. }
  66. .msgBox{
  67. margin-top: 56upx;
  68. }
  69. .areaCode{
  70. font-size: 30upx;
  71. color: #333333;
  72. }
  73. .areaText{
  74. font-size: 16upx;
  75. color: #444444;
  76. }
  77. .phoneBox{
  78. width: 100%;
  79. border-bottom: 1px solid $base-color;
  80. font-size: 38upx;
  81. padding: 0 12upx 16upx 12upx;
  82. }
  83. </style>