select-address.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view>
  3. <uni-popup ref="popupAddress" type="bottom">
  4. <view class="pop-address box-border-box p-24">
  5. <view class="text-align-center fs-36 fw-600 box-title mb-32">
  6. 选择收获地址
  7. <uni-icons @click="closeCoupon" class="box-close" type="closeempty" size="20"></uni-icons>
  8. </view>
  9. <view class="scroll-view-css">
  10. <view class="item-box flex-justify-space align-items-center mb-20" v-for="(item,index) in 10" :key="index">
  11. <image v-if="id==i" class="s-icon" src="@/static/img/common/y-select.png" mode=""></image>
  12. <image v-else class="s-icon"src="@/static/img/common/n-select.png" mode=""></image>
  13. <view class="">
  14. <view class="fs-34 fw-600 w556 mb-12">
  15. <span class="list-box-only fs-24 fc-FE9E11 text-align-center mr-8">默认</span>
  16. 重庆工商职业学校3栋1楼503重1重庆工商职业学校3栋1楼503重1重庆工商职业学校3栋1楼503重1
  17. </view>
  18. <view class="p-b-20">
  19. <span class="mr-24 fs-28 fc-9">张晓鹏</span><span class="fs-28 fc-9">18883660721</span>
  20. </view>
  21. </view>
  22. <image class="edit-img" src="@/static/img/common/edit.png" mode="" @click="toEdit(1)"></image>
  23. </view>
  24. </view>
  25. <view class="box-border-box p-24 bgc-f" @click="toEdit(2)">
  26. <view class="add-box text-align-center fs-34 fc-f">新增地址</view>
  27. </view>
  28. </view>
  29. </uni-popup>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data(){
  35. return{
  36. }
  37. },
  38. methods:{
  39. getList(){
  40. this.openPop();
  41. },
  42. openPop(){
  43. this.$refs.popupAddress.open();
  44. },
  45. closeCoupon(){
  46. this.$refs.popupAddress.close();
  47. },
  48. toEdit(type,item){
  49. if(type === 1){
  50. uni.navigateTo({
  51. url:"pages-address/edit-add?id=" + item.id
  52. })
  53. }else{
  54. uni.navigateTo({
  55. url:"pages-address/edit-add"
  56. })
  57. }
  58. },
  59. },
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .add-box{
  64. width: 100%;
  65. height: 80rpx;
  66. line-height: 80rpx;
  67. background-color: #2F80ED;
  68. border-radius: 200rpx;
  69. }
  70. .w556{
  71. width: 556rpx;
  72. }
  73. .list-box-only{
  74. width: 64rpx;
  75. height: 34rpx;
  76. line-height: 34rpx;
  77. border-radius: 8rpx;
  78. border: 2rpx solid #FE9E11;
  79. }
  80. .item-box{
  81. border-bottom: 1rpx solid #f9f9f9;
  82. .s-icon{
  83. width: 32rpx;
  84. height: 32rpx;
  85. }
  86. .edit-img{
  87. width: 48rpx;
  88. height: 48rpx;
  89. }
  90. }
  91. .pop-address{
  92. width: 100%;
  93. height: 50vh;
  94. background-color: #fff;
  95. border-radius: 24rpx 24rpx 0rpx 0rpx;
  96. padding-top: 32rpx !important;
  97. display: flex;
  98. flex-direction: column;
  99. .box-title{
  100. position: relative;
  101. .box-close{
  102. position: absolute;
  103. right: 22rpx;
  104. }
  105. }
  106. }
  107. </style>