address.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="address-index flex-common-css box-border-box iPhone-bottom bgc-f">
  3. <Nav title="地址管理"></Nav>
  4. <view v-if="list.length !== 0" class="scroll-view-css">
  5. <EnBlank :customSrc='true'>
  6. <template v-slot:blankImg>
  7. <image class="black-custom-img" src="@/static/img/common/no-order.png" mode=""></image>
  8. </template>
  9. </EnBlank>
  10. </view>
  11. <view v-else class="scroll-view-css box-border-box p-24 ">
  12. <view class="list-box" v-for="(item,i) in 10" :key="i" @click.stop="to(1,item)">
  13. <view class=" mb-8 display-flex">
  14. <view v-if="true" class="list-box-only fs-24 fc-FE9E11 text-align-center">默认</view>
  15. <view class="fs-34 fw-500 mr-10">重庆工商职业学校3栋1楼503重1重庆工商职业学校3栋1楼503重1</view>
  16. </view>
  17. <view class="w-520 fs-26 fc-9 align-items-center">
  18. <view class="fs-24 fc-9 mr-24">张晓鹏</view>
  19. <view class="fs-24 fc-9">18883660721</view>
  20. </view>
  21. <image src="@/static/img/common/edit.png" mode=""></image>
  22. </view>
  23. </view>
  24. <view class="box-border-box p-24" @click="to(2)">
  25. <view class="add-box text-align-center fs-34 fc-f">新增地址</view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import EnBlank from "@/components/en-utils/en-blank/en-blank";
  31. import tools from "@/service/tools.js";
  32. export default {
  33. components:{EnBlank,},
  34. data(){
  35. return{
  36. list:[],
  37. }
  38. },
  39. onShow() {
  40. },
  41. methods:{
  42. getList(){
  43. },
  44. to(type,item){
  45. if(type === 1){
  46. uni.navigateTo({
  47. url:"pages/me/address-magen/edit-add?id=" + item.id
  48. })
  49. }else{
  50. uni.navigateTo({
  51. url:"pages/me/address-magen/edit-add"
  52. })
  53. }
  54. },
  55. },
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .address-index{
  60. .w-520{
  61. width: 570rpx;
  62. }
  63. .add-box{
  64. width: 100%;
  65. height: 80rpx;
  66. line-height: 80rpx;
  67. background-color: #2F80ED;
  68. border-radius: 200rpx;
  69. }
  70. .list-box{
  71. margin-bottom: 24rpx;
  72. padding-bottom: 24rpx;
  73. border-bottom: 2rpx solid #F9F9F9;
  74. position: relative;
  75. image{
  76. width: 48rpx;
  77. height: 48rpx;
  78. position: absolute;
  79. top: 42rpx;
  80. right: 40rpx;
  81. }
  82. .del-icon{
  83. position: absolute;
  84. top: 45rpx;
  85. right: 0;
  86. }
  87. .list-box-only{
  88. width: 64rpx;
  89. height: 34rpx;
  90. line-height: 34rpx;
  91. border-radius: 8rpx;
  92. border: 2rpx solid #FE9E11;
  93. }
  94. }
  95. }
  96. </style>