移动端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

377 Zeilen
9.2 KiB

  1. <template>
  2. <div class="app-container">
  3. <div class="header_main">
  4. 查肥料
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. <div class="jg"></div>
  7. </div>
  8. <div class="main">
  9. <div class="main_box">
  10. <van-field v-model="queryParams.recordCode" :border="false" label="登记证号" placeholder="请输入登记证号" input-align="right" />
  11. <van-field v-model="queryParams.factory" :border="false" label="企业名称" placeholder="请输入企业名称" input-align="right" />
  12. <van-field v-model="queryParams.productName" :border="false" label="产品通用名称" placeholder="请输入产品通用名称" input-align="right" />
  13. <van-field v-model="queryParams.productGoodsName" :border="false" label="产品商品名称" placeholder="请输入产品商品名称" input-align="right" />
  14. </div>
  15. <p class="submitButton" @click="getList('search')">立即查询</p>
  16. <div class="scroll_box">
  17. <van-list
  18. v-model="loading"
  19. :finished="finished"
  20. finished-text="没有更多了"
  21. @load="getList"
  22. >
  23. <div class="list_box" v-for="(item,index) in list" :key="index">
  24. <van-cell center :to="{name:'lawEnforcementFertilizerDetail', query: {content:item}}">
  25. <template #title>
  26. <div class="tt">
  27. <span>{{item.productName}}</span>
  28. <span>{{item.agent}}</span>
  29. </div>
  30. <div class="first">
  31. <span>{{item.recordCode}}</span>
  32. <span>{{item.productGoodsName}}</span>
  33. </div>
  34. </template>
  35. <template #label>
  36. <div class="label">
  37. <p>{{item.factory}}</p>
  38. <p>{{item.effectiveDate}}</p>
  39. </div>
  40. </template>
  41. </van-cell>
  42. </div>
  43. </van-list>
  44. </div>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. import { listFertilizer } from "@/api/lawEnforcement/index";
  50. export default {
  51. name: "programmeDetail",
  52. data() {
  53. return {
  54. loading: false,
  55. finished: false,
  56. form:{},
  57. value:'',
  58. showCategory:false,
  59. showAgent:false,
  60. queryParams: {
  61. // 分页
  62. pageNum: 1,
  63. pageSize: 10,
  64. // 查询排序
  65. orderByColumn: "id",
  66. isAsc: "desc",
  67. recordCode: null, // 查询参数-登记证号
  68. factory: null, // 查询参数-企业名称
  69. productName: null, // 查询参数-通用名称
  70. productGoodsName: null, // 查询参数-商品名称
  71. },
  72. list:[],
  73. categoryOptions:[],
  74. agentOptions:[],
  75. category: null, // 查询参数-农药种类
  76. agent: null, // 查询参数-剂型
  77. };
  78. },
  79. created() {
  80. // this.getDictionaries()
  81. },
  82. methods: {
  83. getList(type){
  84. var _this = this;
  85. if (type == 'search'){
  86. this.list = [];
  87. this.queryParams.pageNum = 1 ;
  88. }
  89. listFertilizer(_this.queryParams).then(response => {
  90. response.rows.map(res=>{
  91. this.list.push(res);
  92. })
  93. console.log(this.list.length)
  94. if(this.list.length >= response.total){
  95. this.finished = true;
  96. return;
  97. }else{
  98. this.loading = false;
  99. this.queryParams.pageNum += 1 ;
  100. }
  101. });
  102. },
  103. },
  104. }
  105. </script>
  106. <style scoped lang="scss">
  107. .jg{
  108. height: 180PX;
  109. }
  110. .app-container {
  111. }
  112. .top_box{
  113. line-height: 1;
  114. text-align: left;
  115. width: 85%;
  116. margin: 0 auto;
  117. padding-bottom: 10PX;
  118. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_14.png') no-repeat right bottom;
  119. .top_01{
  120. display: flex;
  121. align-items: center;
  122. font-size: 0.4rem;
  123. margin-top: 15PX;
  124. img{
  125. margin-right: 10PX;
  126. }
  127. }
  128. .tt{
  129. font-size: 0.7rem;
  130. margin-top: 15PX;
  131. }
  132. .top_02{
  133. display: flex;
  134. align-items: center;
  135. font-size: 0.3rem;
  136. margin-top: 15PX;
  137. i{
  138. display: inline-block;
  139. width: 15PX;
  140. height: 15PX;
  141. margin-right: 3PX;
  142. }
  143. p{
  144. display: flex;
  145. align-items: center;
  146. margin-right: 10PX;
  147. &:nth-child(1){
  148. i{
  149. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_11.png') no-repeat center;
  150. background-size: auto 15PX;
  151. }
  152. }
  153. &:nth-child(2){
  154. i{
  155. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_12.png') no-repeat center;
  156. background-size: auto 15PX;
  157. }
  158. }
  159. &:nth-child(3){
  160. i{
  161. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_13.png') no-repeat center;
  162. background-size: auto 15PX;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. .main{
  169. position: relative;
  170. top: -150PX;
  171. }
  172. .center_box{
  173. text-align: center;
  174. padding: 30PX 0!important;
  175. p{
  176. margin-top: 15PX;
  177. &:nth-child(2){
  178. font-size: 0.4rem;
  179. color: #59C145;
  180. }
  181. &:nth-child(3){
  182. font-size: 0.4rem;
  183. color: #B4B0B0;
  184. display: inline-block;
  185. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_16.png') no-repeat left center;
  186. padding-left: 20PX;
  187. }
  188. }
  189. }
  190. /deep/ .van-cell{
  191. padding-bottom: 0;
  192. padding-top: 0;
  193. margin-bottom: 10PX;
  194. &:last-child{
  195. margin-bottom: 0;
  196. }
  197. }
  198. .header_main{
  199. /*height: 116px;*/
  200. background: url('../../../../static/images/lawEnforcement/new/header_bg.png') no-repeat;
  201. background-size: 100% 100%;
  202. /*position: fixed;*/
  203. top: 0;
  204. left: 0;
  205. width: 100%;
  206. font-size: 36px;
  207. line-height: 116px;
  208. text-align: center;
  209. color: #fff;
  210. z-index: 999;
  211. .return_btn{
  212. width: 24px;
  213. height: 43.2px;
  214. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  215. background-size: 20px 36px;
  216. position: absolute;
  217. left: 38px;
  218. top: 36px;
  219. }
  220. .add_btn{
  221. width: 56.4px;
  222. height: 40.8px;
  223. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  224. background-size: 47px 34px;
  225. position: absolute;
  226. right: 38px;
  227. top: 36px;
  228. }
  229. }
  230. /deep/ .van-radio--horizontal{
  231. margin-left: 0.32rem;
  232. margin-right: 0;
  233. }
  234. .peopleList{
  235. padding-right: 3%;
  236. .van-row{
  237. margin-bottom: 10PX;
  238. .van-col{
  239. text-align: center;
  240. font-size: 14PX;
  241. }
  242. &:first-child{
  243. .van-col{
  244. color: #1D6FE9;
  245. }
  246. }
  247. }
  248. }
  249. .main_title{
  250. font-size: 0.4rem;
  251. color: #1D6FE9;
  252. margin: 0.2rem 6%;
  253. margin-top: 0;
  254. position: relative;
  255. }
  256. .main_box{
  257. width: 90%;
  258. margin: 0 auto;
  259. border-radius: 10PX;
  260. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  261. overflow: hidden;
  262. background-color: #FFF;
  263. padding: 20PX 5PX;
  264. .van-icon{
  265. vertical-align: middle;
  266. }
  267. .custom-title{
  268. font-size: 17PX;
  269. color: #333333;
  270. vertical-align: middle;
  271. line-height: 1;
  272. position: relative;
  273. }
  274. .tap{
  275. color: #1D6FE9;
  276. }
  277. .bgBlue{
  278. display: block;
  279. position: absolute;
  280. width: 17PX;
  281. height: 17PX;
  282. border-radius: 50%;
  283. background-color: rgba(29,111,233,0.26);
  284. top: -2PX;
  285. right: -8PX;
  286. }
  287. }
  288. .submitButton{
  289. width: 70%;
  290. margin: 25PX auto;
  291. background-image: linear-gradient(to right, #2E79E9 , #77A6EF);
  292. text-align: center;
  293. color: #ffffff;
  294. height: 70px;
  295. line-height: 70px;
  296. border-radius: 8PX;
  297. }
  298. .addFamily{
  299. position: absolute;
  300. top: -2px;
  301. right: 0;
  302. border-radius: 50%;
  303. }
  304. /deep/.van-cell__title{
  305. .tt{
  306. display: flex;
  307. justify-content: space-between;
  308. span:first-child{
  309. background: url('../../../../static/images/lawEnforcement/icon/pesticides_icon_03.png') no-repeat left center;
  310. padding-left: 20PX;
  311. }
  312. span:last-child{
  313. color: #1D6FE9;
  314. }
  315. }
  316. .first{
  317. display: flex;
  318. justify-content: space-between;
  319. align-items: center;
  320. margin-top: 5PX;
  321. span{
  322. color: #1D6FE9;
  323. font-size: 0.35rem;
  324. &:first-child{
  325. background: rgba(29,111,233,0.2);
  326. padding: 3PX 5PX;
  327. line-height: 1;
  328. border-radius: 3PX;
  329. }
  330. &:last-child{
  331. color: #666666;
  332. }
  333. }
  334. }
  335. .dress{
  336. font-size: .35rem;
  337. color: #1CB8B1;
  338. margin-top: 5PX;
  339. }
  340. span{
  341. font-family: Arial;
  342. font-size: 0.4rem;
  343. font-weight: normal;
  344. display: -webkit-box;
  345. -webkit-box-orient: vertical;
  346. -webkit-line-clamp: 1;
  347. word-break: break-all;
  348. overflow: hidden;
  349. }
  350. }
  351. .list_box{
  352. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  353. width: 94%;
  354. margin: 0 auto 10PX;
  355. padding: 12PX 0;
  356. background: #ffffff;
  357. border-radius: 8PX;
  358. }
  359. .label {
  360. display: flex;
  361. justify-content: space-between;
  362. p{
  363. display: inline-block;
  364. font-size: 0.35rem;
  365. }
  366. }
  367. </style>