address.vue 2.4 KB

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