modify.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view class="wrap">
  3. <view class="top">
  4. <view class="item">
  5. <view class="left">收货人</view>
  6. <input type="text" placeholder-class="line" placeholder="请填写收货人姓名" />
  7. </view>
  8. <view class="item">
  9. <view class="left">手机号码</view>
  10. <input type="text" placeholder-class="line" placeholder="请填写收货人手机号" />
  11. </view>
  12. <view class="item" @tap="showRegionPicker">
  13. <view class="left">所在地区</view>
  14. <input disabled type="text" placeholder-class="line" placeholder="省市区县、乡镇等" />
  15. </view>
  16. <view class="item address">
  17. <view class="left">详细地址</view>
  18. <textarea type="text" placeholder-class="line" placeholder="街道、楼牌等" />
  19. </view>
  20. </view>
  21. <view class="bottom">
  22. <view class="tag">
  23. <view class="left">标签</view>
  24. <view class="right">
  25. <text class="tags">家</text>
  26. <text class="tags">公司</text>
  27. <view class="tags plus"><u-icon size="22" name="plus"></u-icon></view>
  28. </view>
  29. </view>
  30. <view class="default">
  31. <view class="left">
  32. <view class="set">设置默认地址</view>
  33. <view class="tips">提醒:每次默认推荐该地址</view>
  34. </view>
  35. <view class="right"><switch color="#0095FF" @change="setDefault" /></view>
  36. </view>
  37. </view>
  38. <u-picker mode="region" ref="uPicker" v-model="show" />
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. show: false
  46. };
  47. },
  48. methods: {
  49. setDefault() {},
  50. showRegionPicker() {
  51. this.show = true;
  52. }
  53. }
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. /deep/ .line {
  58. color: $u-light-color;
  59. font-size: 28rpx;
  60. }
  61. .wrap {
  62. background-color: #f2f2f2;
  63. .top {
  64. background-color: #ffffff;
  65. border-top: solid 2rpx $u-border-color;
  66. padding: 22rpx;
  67. .item {
  68. display: flex;
  69. font-size: 32rpx;
  70. line-height: 100rpx;
  71. align-items: center;
  72. border-bottom: solid 2rpx $u-border-color;
  73. .left {
  74. width: 180rpx;
  75. }
  76. input {
  77. text-align: left;
  78. }
  79. }
  80. .address {
  81. padding: 20rpx 0;
  82. textarea {
  83. // width: 100%;
  84. height: 150rpx;
  85. background-color: #f7f7f7;
  86. line-height: 60rpx;
  87. margin: 40rpx auto;
  88. padding: 20rpx;
  89. }
  90. }
  91. .site-clipboard {
  92. padding-right: 40rpx;
  93. textarea {
  94. // width: 100%;
  95. height: 150rpx;
  96. background-color: #f7f7f7;
  97. line-height: 60rpx;
  98. margin: 40rpx auto;
  99. padding: 20rpx;
  100. }
  101. .clipboard {
  102. display: flex;
  103. justify-content: center;
  104. align-items: center;
  105. font-size: 26rpx;
  106. color: $u-tips-color;
  107. height: 80rpx;
  108. .icon {
  109. margin-top: 6rpx;
  110. margin-left: 10rpx;
  111. }
  112. }
  113. }
  114. }
  115. .bottom {
  116. margin-top: 20rpx;
  117. padding: 40rpx;
  118. padding-right: 0;
  119. background-color: #ffffff;
  120. font-size: 28rpx;
  121. .tag {
  122. display: flex;
  123. .left {
  124. width: 160rpx;
  125. }
  126. .right {
  127. display: flex;
  128. flex-wrap: wrap;
  129. .tags {
  130. width: 140rpx;
  131. padding: 16rpx 8rpx;
  132. border: solid 2rpx $u-border-color;
  133. text-align: center;
  134. border-radius: 50rpx;
  135. margin: 0 10rpx 20rpx;
  136. display: flex;
  137. font-size: 28rpx;
  138. align-items: center;
  139. justify-content: center;
  140. color: $u-content-color;
  141. line-height: 1;
  142. }
  143. .plus {
  144. //padding: 10rpx 0;
  145. }
  146. }
  147. }
  148. .default {
  149. margin-top: 50rpx;
  150. display: flex;
  151. justify-content: space-between;
  152. border-bottom: solid 2rpx $u-border-color;
  153. line-height: 64rpx;
  154. .tips {
  155. font-size: 24rpx;
  156. }
  157. .right {
  158. }
  159. }
  160. }
  161. }
  162. </style>