houDong.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="box">
  3. <view class="top_bg">
  4. <topBox></topBox>
  5. <view @click="backBtn" class="back" tabindex="0">返回上一级</view>
  6. </view>
  7. <view class="zj_box">
  8. <commonItems :projectList="projectList" class="box_item"></commonItems>
  9. </view>
  10. <!-- <view class="qiehuan">
  11. <view class="qh_btn">
  12. <image class="img" src="/static/img/left.png"></image>
  13. </view>
  14. <view class="qh_btn">
  15. <image class="img" src="/static/img/right.png"></image>
  16. </view>
  17. </view> -->
  18. </view>
  19. </template>
  20. <script>
  21. let that;
  22. export default {
  23. data() {
  24. return { projectList: [] };
  25. },
  26. onLoad(o) {
  27. console.log(o);
  28. that = this;
  29. this.getContentList();
  30. },
  31. methods: {
  32. getContentList(o) {
  33. this.$api.getContentList(
  34. {
  35. model_id: 18 /* 模型id */,
  36. main_body_id: 1,
  37. main_body_column_id: 290,
  38. page: '1',
  39. pageSize: '10'
  40. },
  41. function (res) {
  42. that.projectList = res.data.list;
  43. console.log(that.projectList, '内容列表更多');
  44. }
  45. );
  46. },
  47. backBtn() {
  48. console.log(11111);
  49. uni.navigateBack({
  50. delta: 1
  51. });
  52. }
  53. }
  54. };
  55. </script>
  56. <style>
  57. .box {
  58. width: 100%;
  59. height: 100vh;
  60. background: linear-gradient(180deg, rgba(240, 235, 222, 0.2) 0%, #f0ebde 5%, #f0ebde 100%);
  61. }
  62. .top_bg {
  63. width: 100%;
  64. position: absolute;
  65. color: #ffffff;
  66. z-index: 1;
  67. /* background: linear-gradient(10deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2) 100%); */
  68. }
  69. .zj_box {
  70. width: 100%;
  71. height: 60%;
  72. position: fixed;
  73. }
  74. .back {
  75. width: 12%;
  76. height: 15%;
  77. margin-left: 5%;
  78. margin-top: -2%;
  79. cursor: pointer;
  80. font-size: 12px;
  81. color: #8e6c4f;
  82. letter-spacing: 0.3em;
  83. }
  84. .qiehuan {
  85. position: absolute;
  86. top: 42%;
  87. left: 8%;
  88. z-index: 33;
  89. display: flex;
  90. justify-content: space-between;
  91. width: 87%;
  92. height: 8%;
  93. }
  94. .qh_btn {
  95. width: 3%;
  96. height: 65%;
  97. }
  98. .img {
  99. width: 100%;
  100. height: 100%;
  101. }
  102. </style>