index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <div class="container">
  3. <div class="content">
  4. <div class="card-box">
  5. <div class="card-title">选择网络</div>
  6. <div class="card-input" style="justify-content: space-between;">
  7. <div class="card-input-lf">
  8. <svg-icon style="width: 30px; height: 30px;" name="acc" />
  9. <div class="card-text">STT</div>
  10. </div>
  11. <svg-icon style="width: 16px; height: 16px;" name="right1" />
  12. </div>
  13. </div>
  14. <div class="card-box">
  15. <div class="card-title">地址名称</div>
  16. <div class="card-input">
  17. <van-field v-model="addressName" placeholder="请输入地址名称" />
  18. </div>
  19. </div>
  20. <div class="card-box">
  21. <div class="card-title">输入地址</div>
  22. <div class="card-input" style="height:100%">
  23. <van-field
  24. type="textarea"
  25. v-model="walletAddress"
  26. placeholder="请输入收货地址"
  27. rows="1"
  28. :autosize="true"
  29. >
  30. <template #right-icon>
  31. <svg-icon style="width: 16px; height: 16px;" name="sm" />
  32. </template>
  33. </van-field>
  34. </div>
  35. </div>
  36. </div>
  37. <van-button class="footer-btn" type="primary" size="large">确认</van-button>
  38. </div>
  39. </template>
  40. <script setup>
  41. import { useRouter } from 'vue-router'
  42. const router = useRouter();
  43. const addressName = ref('')
  44. const walletAddress = ref('')
  45. </script>
  46. <style lang="less" scoped>
  47. .container{
  48. display: flex;
  49. flex-direction: column;
  50. height: calc(100vh - 44px);
  51. padding: 17px 17px 33px;
  52. box-sizing: border-box;
  53. .content{
  54. flex: 1;
  55. .card-box{
  56. margin-bottom: 25px;
  57. .card-title{
  58. font-family: PingFang SC, PingFang SC;
  59. font-weight: 500;
  60. font-size: 12px;
  61. color: #8D8D8D;
  62. margin-bottom: 6px;
  63. display: flex;
  64. align-items: center;
  65. justify-content: space-between;
  66. }
  67. .card-input{
  68. background: #F2F2F2;
  69. border-radius: 8px;
  70. border: 1px solid #D8D8D8;
  71. display: flex;
  72. align-items: center;
  73. padding: 18px 17px;
  74. height: 56px;
  75. box-sizing: border-box;
  76. font-family: PingFang SC, PingFang SC;
  77. font-weight: 400;
  78. font-size: 15px;
  79. color: #000000;
  80. .card-input-lf{
  81. display: flex;
  82. align-items: center;
  83. .card-text{
  84. margin-left: 8px;
  85. font-weight: 500;
  86. }
  87. }
  88. :deep(.van-cell) {
  89. background:#F2F2F2 !important;
  90. padding: 0 !important;
  91. }
  92. :deep(.van-field__control) {
  93. font-family: PingFang SC, PingFang SC;
  94. font-weight: 400;
  95. font-size: 15px;
  96. color: #000000;
  97. }
  98. }
  99. }
  100. }
  101. .footer-btn{
  102. height: 40px !important;
  103. line-height: 40px !important;
  104. background: linear-gradient( 90deg, @theme-color1 0%, #40A4FB 100%) !important;
  105. border-radius:51px;
  106. font-family: PingFang SC, PingFang SC;
  107. font-weight: 500;
  108. font-size: 15px;
  109. padding: 9px 0;
  110. box-sizing: border-box;
  111. color: #fff;
  112. }
  113. }
  114. :deep(.van-button--primary){
  115. border: none !important;
  116. }
  117. </style>