移动端
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

draft.vue 5.4 KiB

2 yıl önce
2 yıl önce
2 yıl önce
2 yıl önce
2 yıl önce
2 yıl önce
2 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. @load="getList"
  19. >
  20. <!-- @load="onLoad"-->
  21. <div class="main_content_right_list" v-for="(item,index) in supplyDemandListYes" :key="index" @click="$router.push({name:'agriculturalTrusteeshipSocializationProjectEdit',query:{id:item.id}})">
  22. <div class="main_content_right_list_center">
  23. <img v-if="item.supplyMasterMap" :src="item.supplyMasterMap" style="width: 18vw;height: 18vw;">
  24. <img v-else src="../../../../static/images/agriculturalTrusteeship/zwtp.png" style="width: 18vw;height: 18vw;">
  25. <div class="main_content_right_list_content">
  26. <p class="tt">{{item.supplyDemandName}}</p>
  27. <p class="name">{{item.createTime.substr(0,10)}}</p>
  28. </div>
  29. </div>
  30. </div>
  31. </van-list>
  32. </div>
  33. <!-- 内容结束 -->
  34. </div>
  35. </template>
  36. <script>
  37. import Cookies from "js-cookie";
  38. import agr from "@/components/common/agr_footer";
  39. import dialogClose from "@/components/agriculturalTrusteeship/dialog";
  40. import {supplyDemandList} from "@/api/agriculturalTrusteeship";
  41. export default {
  42. name: "agriculturalTrusteeshipIndex",
  43. components: {
  44. agr,
  45. dialogClose
  46. },
  47. data() {
  48. return {
  49. activeKey: 0,
  50. active: 0,
  51. loading: false,
  52. finished: false,
  53. showDialog:false,
  54. supplyDemandList:[],
  55. supplyDemandListYes:[],
  56. query:{
  57. entityId:Cookies.get('ACCESS-SESSION-ID'),
  58. productType:''
  59. },
  60. };
  61. },
  62. created() {
  63. },
  64. methods: {
  65. getList(){
  66. supplyDemandList(this.query).then(response => {
  67. response.rows.map(res=>{
  68. if (res.supplyMasterMap){
  69. let supplyMasterMap = res.supplyMasterMap.split( "," )
  70. res.supplyMasterMap = '/api'+supplyMasterMap[0]
  71. }
  72. if(res.publishStatus == 2){
  73. this.supplyDemandListYes.push(res);
  74. }
  75. this.supplyDemandList.push(res);
  76. })
  77. if(this.supplyDemandList.length >= response.total){
  78. this.finished = true;
  79. return;
  80. }else{
  81. this.loading = false;
  82. this.query.pageNum += 1 ;
  83. }
  84. });
  85. },
  86. openDialog(val){
  87. this.showDialog = val
  88. },
  89. },
  90. }
  91. </script>
  92. <style scoped lang="scss">
  93. .home_wrapper{
  94. }
  95. /*头部*/
  96. .header{
  97. display: flex;
  98. align-items: end;
  99. justify-content: space-between;
  100. padding: 2vh 4% 0vh;
  101. p{
  102. &:nth-child(1){
  103. color: #334281;
  104. font-size: .45rem;
  105. }
  106. &:nth-child(2){
  107. color: #7A7A7A;
  108. margin-top: .5vh;
  109. }
  110. }
  111. }
  112. /*内容*/
  113. .main{
  114. width: 94%;
  115. margin: 0 auto;
  116. .main_content_right_list{
  117. margin-top: 2vh;
  118. padding: 1.5vh 3%;
  119. background: #ffffff;
  120. border-radius: 10PX;
  121. /*box-shadow: 0px 3PX 6PX 0px rgba(0,0,0,0.16);*/
  122. /deep/ .van-cell{
  123. padding: 0;
  124. margin-top: 8PX;
  125. }
  126. .main_content_right_list_header{
  127. display: flex;
  128. margin-bottom: 1vh;
  129. align-items: center;
  130. p{
  131. padding: 3PX 10PX;
  132. border-radius: 8PX;
  133. &:nth-child(1){background: #2B7EEC;color: #ffffff;}
  134. &:nth-child(2){background: #E2E9FD;color: #497CE8;margin-left: 10PX;}
  135. &: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}
  136. }
  137. }
  138. .main_content_right_list_center{
  139. display: flex;
  140. img{
  141. border-radius: 15PX;
  142. margin-right: 4%;
  143. }
  144. .main_content_right_list_content{
  145. display: flex;
  146. flex-direction:column;
  147. justify-content: space-between;
  148. .tt{
  149. color: #333333;
  150. font-size: .35rem;
  151. }
  152. .tab{
  153. display: flex;
  154. justify-content: space-between;
  155. p{
  156. &:nth-child(1){
  157. flex: 1;
  158. color: #FF5E00;
  159. span{
  160. font-size: .4rem;
  161. }
  162. }
  163. &:nth-child(2){
  164. span{
  165. display: inline-block;
  166. text-align: center;
  167. padding: 2PX 5PX;
  168. &:nth-child(1){
  169. color: #497CE8;
  170. background: #E2E9FD;
  171. border-top-left-radius: 10PX;
  172. }
  173. &:nth-child(2){
  174. color: #ffffff;
  175. background-image: linear-gradient(to right , #5D87FA , #5FD5F5);
  176. border-bottom-right-radius: 10PX;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. .name{
  183. color: #334281;
  184. margin-left: auto;
  185. padding:0 0 0 15PX;
  186. background: url("../../../../static/images/agriculturalTrusteeship/socialization/socialization_icon_clock.png") no-repeat left center
  187. }
  188. }
  189. }
  190. }
  191. }
  192. </style>