chuanChenRen.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. that = this;
  28. this.getContentList();
  29. },
  30. methods: {
  31. getContentList() {
  32. this.$api.getContentList(
  33. {
  34. model_id: 7 /* 模型id */,
  35. main_body_id: 1,
  36. main_body_column_id:'38',
  37. },
  38. function (res) {
  39. that.projectList = res.data.list;
  40. console.log(that.projectList, '传承人');
  41. }
  42. );
  43. },
  44. backBtn() {
  45. console.log(11111);
  46. uni.navigateBack({
  47. delta: 1
  48. });
  49. }
  50. }
  51. };
  52. </script>
  53. <style>
  54. .box {
  55. width: 100%;
  56. height: 100vh;
  57. background: linear-gradient(180deg, rgba(240, 235, 222, 0.2) 0%, #f0ebde 5%, #f0ebde 100%);
  58. }
  59. .top_bg {
  60. width: 100%;
  61. position: absolute;
  62. color: #ffffff;
  63. z-index: 1;
  64. /* 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%); */
  65. }
  66. .zj_box {
  67. width: 100%;
  68. height: 62%;
  69. position: fixed;
  70. }
  71. .back {
  72. width: 12%;
  73. height: 15%;
  74. margin-left: 5%;
  75. margin-top: -2%;
  76. cursor: pointer;
  77. font-size: 12px;
  78. color: #8e6c4f;
  79. letter-spacing: 0.3em;
  80. }
  81. .qiehuan {
  82. position: absolute;
  83. top: 42%;
  84. left: 8%;
  85. z-index: 33;
  86. display: flex;
  87. justify-content: space-between;
  88. width: 87%;
  89. height: 8%;
  90. }
  91. .qh_btn {
  92. width: 3%;
  93. height: 65%;
  94. }
  95. .img {
  96. width: 100%;
  97. height: 100%;
  98. }
  99. </style>