移动端
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.

189 lines
4.0 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar title="B村" left-arrow fixed placeholder @click-left="$router.push({path:'/contracted/index'})" />
  4. <div class="tap_block">
  5. <p class="active">承包方</p>
  6. <p @click="$router.push({path:'/contracted/village/employer'})">发包方</p>
  7. <p @click="$router.push({path:'/contracted/village/massif'})">地块</p>
  8. <p @click="$router.push({path:'/contracted/village/map'})">地图</p>
  9. </div>
  10. <div class="search_main">
  11. <van-search
  12. v-model="value"
  13. shape="round"
  14. background="transparent"
  15. placeholder="请输入姓名搜索"
  16. @search="onSearch"
  17. ></van-search>
  18. <div class="search_btn">
  19. <p class="active"> + 新增</p>
  20. </div>
  21. </div>
  22. <div class="second_tap">
  23. <p class="active">待调查 1553</p>
  24. <p>挂起 527</p>
  25. <p>已完成 321</p>
  26. </div>
  27. <div class="list_main">
  28. <van-row style="color: #888888;font-size: 14px;">
  29. <van-col span="5">姓名</van-col>
  30. <van-col span="14">证件号</van-col>
  31. <van-col span="5">成员数</van-col>
  32. </van-row>
  33. <van-swipe-cell v-for="(item,index) in 50">
  34. <van-row @click="goDetail">
  35. <van-col span="5">张三</van-col>
  36. <van-col span="14">230381199770511239</van-col>
  37. <van-col span="5" style="color: #f78200">7</van-col>
  38. </van-row>
  39. <template #right>
  40. <van-button square type="danger" text="删除" />
  41. </template>
  42. </van-swipe-cell>
  43. </div>
  44. </div>
  45. </template>
  46. <script>
  47. import Cookies from "js-cookie";
  48. export default {
  49. name: "contractedVillageContractor",
  50. data() {
  51. return {
  52. loading:false,
  53. finished:true,
  54. value:''
  55. };
  56. },
  57. created() {
  58. },
  59. methods: {
  60. getList(){
  61. },
  62. onSearch(){
  63. },
  64. goDetail(){
  65. this.$router.push({path:'/contracted/village/contractorDetail'});
  66. }
  67. },
  68. };
  69. </script>
  70. <style scoped lang="scss">
  71. .app-container{
  72. background: #fff url("../../../../../static/images/contracted/contracted_index_bg.png") no-repeat center;
  73. background-size: 100% 100%;
  74. height: 100vh;
  75. padding: 0 4vw;
  76. }
  77. /deep/ .van-nav-bar{
  78. background: transparent;
  79. }
  80. /deep/ .van-nav-bar .van-icon{
  81. color: #000000;
  82. }
  83. /deep/ .van-hairline--bottom::after{
  84. border: none;
  85. }
  86. /deep/ .van-search__content{
  87. background: rgba(255,255,255,.5);
  88. }
  89. /deep/ .van-search{
  90. padding: 0;
  91. flex: 1;
  92. }
  93. .tap_block{
  94. width: 100%;
  95. display: flex;
  96. justify-content: space-between;
  97. background: #ebfaf2;
  98. padding: 2PX 4PX;
  99. border-radius: 10PX;
  100. margin-top: 1vh;
  101. .active{
  102. background-image: linear-gradient(to right,#c6fe8b,#48e5a2);
  103. box-shadow: 0 0 10PX #cccccc;
  104. color: #333333;
  105. }
  106. p{
  107. width: 25%;
  108. text-align: center;
  109. padding: 5PX 0;
  110. border-radius: 10PX;
  111. color: #666666;
  112. }
  113. }
  114. .search_main{
  115. display: flex;
  116. margin-top: 2vh;
  117. .search_btn{
  118. background: rgba(255,255,255,.5);
  119. width: 25%;
  120. border-radius: 50PX;
  121. margin-left: 10PX;
  122. padding: 2PX;
  123. .active{
  124. background-image: linear-gradient(to right,#c6fe8b,#48e5a2);
  125. color: #333333;
  126. border-radius: 50PX;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. height: 100%;
  131. }
  132. }
  133. }
  134. .second_tap{
  135. display: flex;
  136. align-items: center;
  137. margin-top: 1vh;
  138. p{
  139. background: #dbf1ea;
  140. border: 1px solid #cdcdcd;
  141. color: #5f5f5f;
  142. padding: 5PX 15PX;
  143. margin-right: 3vw;
  144. border-radius: 50PX;
  145. }
  146. .active{
  147. background: #99eecb;
  148. border-color: #48e5a2;
  149. color: #333333;
  150. }
  151. }
  152. .list_main{
  153. margin-top: 2vh;
  154. overflow-y: scroll;
  155. text-align: center;
  156. background: #ffffff;
  157. border-top-left-radius: 10PX;
  158. border-top-right-radius: 10PX;
  159. height: 77vh;
  160. overflow-y: scroll;
  161. .van-col{
  162. padding: 15PX 0;
  163. }
  164. }
  165. </style>