移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

171 lines
4.4 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <!-- 头部开始 -->
  4. <van-nav-bar
  5. title="草稿箱"
  6. fixed
  7. placeholder
  8. left-arrow
  9. @click-left="onClickLeft"
  10. />
  11. <!-- 头部结束 -->
  12. <!-- 内容开始 -->
  13. <div class="main">
  14. <van-list
  15. v-model="loading"
  16. :finished="finished"
  17. finished-text="没有更多了"
  18. >
  19. <!-- @load="onLoad"-->
  20. <div class="main_content_right_list" v-for="item in 10" :key="item" @click="$router.push({name:'agriculturalTrusteeshipSocializationDraftEdit'})">
  21. <div class="main_content_right_list_center">
  22. <img src="../../../../static/images/agriculturalTrusteeship/index/test.png" width="80">
  23. <div class="main_content_right_list_content">
  24. <p class="tt">如果只有一行就空着啊啊啊啊啊啊啊啊啊啊啊啊</p>
  25. <p class="name">2022.03.15</p>
  26. </div>
  27. </div>
  28. </div>
  29. </van-list>
  30. </div>
  31. <!-- 内容结束 -->
  32. </div>
  33. </template>
  34. <script>
  35. import Cookies from "js-cookie";
  36. import agr from "@/components/common/agr_footer";
  37. import dialogClose from "@/components/agriculturalTrusteeship/dialog";
  38. export default {
  39. name: "agriculturalTrusteeshipIndex",
  40. components: {
  41. agr,
  42. dialogClose
  43. },
  44. data() {
  45. return {
  46. activeKey: 0,
  47. active: 0,
  48. loading: false,
  49. finished: false,
  50. showDialog:false
  51. };
  52. },
  53. created() {
  54. },
  55. methods: {
  56. openDialog(val){
  57. this.showDialog = val
  58. },
  59. },
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .home_wrapper{
  64. }
  65. /*头部*/
  66. .header{
  67. display: flex;
  68. align-items: end;
  69. justify-content: space-between;
  70. padding: 2vh 4% 0vh;
  71. p{
  72. &:nth-child(1){
  73. color: #334281;
  74. font-size: .45rem;
  75. }
  76. &:nth-child(2){
  77. color: #7A7A7A;
  78. margin-top: .5vh;
  79. }
  80. }
  81. }
  82. /*内容*/
  83. .main{
  84. width: 94%;
  85. margin: 0 auto;
  86. .main_content_right_list{
  87. margin-top: 2vh;
  88. padding: 1.5vh 3%;
  89. background: #ffffff;
  90. border-radius: 10PX;
  91. /*box-shadow: 0px 3PX 6PX 0px rgba(0,0,0,0.16);*/
  92. /deep/ .van-cell{
  93. padding: 0;
  94. margin-top: 8PX;
  95. }
  96. .main_content_right_list_header{
  97. display: flex;
  98. margin-bottom: 1vh;
  99. align-items: center;
  100. p{
  101. padding: 3PX 10PX;
  102. border-radius: 8PX;
  103. &:nth-child(1){background: #2B7EEC;color: #ffffff;}
  104. &:nth-child(2){background: #E2E9FD;color: #497CE8;margin-left: 10PX;}
  105. &:nth-child(3){color: #334281;margin-left: auto;padding:0 0 0 15PX;background: url("../../../../static/images/agriculturalTrusteeship/socialization/socialization_icon_clock.png") no-repeat left center}
  106. }
  107. }
  108. .main_content_right_list_center{
  109. display: flex;
  110. img{
  111. border-radius: 15PX;
  112. margin-right: 4%;
  113. }
  114. .main_content_right_list_content{
  115. display: flex;
  116. flex-direction:column;
  117. justify-content: space-between;
  118. .tt{
  119. color: #333333;
  120. font-size: .35rem;
  121. }
  122. .tab{
  123. display: flex;
  124. justify-content: space-between;
  125. p{
  126. &:nth-child(1){
  127. flex: 1;
  128. color: #FF5E00;
  129. span{
  130. font-size: .4rem;
  131. }
  132. }
  133. &:nth-child(2){
  134. span{
  135. display: inline-block;
  136. text-align: center;
  137. padding: 2PX 5PX;
  138. &:nth-child(1){
  139. color: #497CE8;
  140. background: #E2E9FD;
  141. border-top-left-radius: 10PX;
  142. }
  143. &:nth-child(2){
  144. color: #ffffff;
  145. background-image: linear-gradient(to right , #5D87FA , #5FD5F5);
  146. border-bottom-right-radius: 10PX;
  147. }
  148. }
  149. }
  150. }
  151. }
  152. .name{
  153. color: #334281;
  154. margin-left: auto;
  155. padding:0 0 0 15PX;
  156. background: url("../../../../static/images/agriculturalTrusteeship/socialization/socialization_icon_clock.png") no-repeat left center
  157. }
  158. }
  159. }
  160. }
  161. }
  162. </style>