modify.vue 3.5 KB

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