My.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. <view class="align-items" style="margin-top: 80rpx;">
  4. <back></back>
  5. </view>
  6. <view v-for="(item,index) in list" :key="index">
  7. <view @click="gotopage(item)">
  8. <view class="type">
  9. <view class="justify-content">
  10. <view class="font-forty blue" >
  11. 类别:{{name}}
  12. </view>
  13. <view class="font-twenty-eight gray">
  14. {{item.time}}
  15. </view>
  16. </view>
  17. <view class="font-thirty-six black" style="margin: 30rpx 0;">
  18. {{item.house}}
  19. </view>
  20. <view class="font-thirty-six black" style="margin: 30rpx 0;">
  21. 备注:
  22. <text v-if="item.remark != null">
  23. {{item.remark}}
  24. </text>
  25. <text v-else>
  26. </text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import service from '@/api/index.js'
  35. export default {
  36. data(){
  37. return {
  38. list:[],
  39. name:'',
  40. }
  41. },
  42. onLoad(e) {
  43. console.log('e',e)
  44. this.id = e.id;
  45. this.name = e.name;
  46. this.address = e.address;
  47. this.getListAll();
  48. },
  49. methods:{
  50. getListAll() {
  51. service.getListAll({serviceType: this.id}).then(res => {
  52. this.list = res
  53. })
  54. },
  55. gotopage(item){
  56. uni.navigateTo({
  57. url:`/pages/noLogin/Myphoto?id=${item.id}`,
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .type {
  65. margin: 20rpx;
  66. padding: 20rpx;
  67. background: #FFFFFF;
  68. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  69. border-radius: 10rpx;
  70. }
  71. </style>