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

350 line
8.3 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="value" :border="false" label="登记证号" placeholder="请输入登记证号" input-align="right" />
  11. <van-field v-model="value" :border="false" label="农药名称" placeholder="请输入农药名称" input-align="right" />
  12. <van-field v-model="value" :border="false" label="登记证持有人" placeholder="请输入登记证持有人" input-align="right" />
  13. <van-field v-model="value" :border="false" label="农药种类" placeholder="请选择" input-align="right" is-link arrow-direction="down" />
  14. <van-field v-model="value" :border="false" label="全部剂型" placeholder="请选择" input-align="right" is-link arrow-direction="down" />
  15. </div>
  16. <p class="submitButton">立即查询</p>
  17. <div class="list_box" v-for="(item,index) in 10" :key="index">
  18. <van-cell center :to="{name:'lawEnforcementPesticidesDetail', query: {id:item.id}}">
  19. <template #title>
  20. <div class="tt">
  21. <span>吡蚜酮</span>
  22. <span>25%</span>
  23. </div>
  24. <div class="first">
  25. <span>466156066</span>
  26. <span>除虫剂</span>
  27. <span>可湿性粉剂</span>
  28. </div>
  29. <p class="dress">佛山市银辉作物科学有限公司</p>
  30. </template>
  31. <template #label>
  32. <div class="label">
  33. <p>有效期始 2021-12-25</p>
  34. <p>有效期至 2026-12-25</p>
  35. </div>
  36. </template>
  37. </van-cell>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. import { getScheme } from "@/api/lawEnforcement/index";
  44. export default {
  45. name: "programmeDetail",
  46. data() {
  47. return {
  48. showBankType:false,
  49. showPayeeType:false,
  50. showPicker:false,
  51. form:{},
  52. bankType:'',
  53. payeeType:'',
  54. value:'',
  55. bankTypeOptions:[],
  56. payeeTypeOptions:[],
  57. tEnforceSchemeHandlerList:[],
  58. minDate: new Date(2020, 0, 1),
  59. maxDate: new Date(2025, 10, 1),
  60. currentDate: new Date(2021, 0, 17),
  61. activeNames: ['1'],
  62. activeNames1: ['1'],
  63. activeNames2: ['1'],
  64. };
  65. },
  66. created() {
  67. // this.getDictionaries()
  68. },
  69. methods: {
  70. getDictionaries(){
  71. getScheme(this.$route.query.id).then((response) => {
  72. this.form = response.data;
  73. });
  74. },
  75. goBack(){
  76. window.history.go(-1)
  77. }
  78. },
  79. }
  80. </script>
  81. <style scoped lang="scss">
  82. .jg{
  83. height: 180PX;
  84. }
  85. .app-container {
  86. }
  87. .top_box{
  88. line-height: 1;
  89. text-align: left;
  90. width: 85%;
  91. margin: 0 auto;
  92. padding-bottom: 10PX;
  93. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_14.png') no-repeat right bottom;
  94. .top_01{
  95. display: flex;
  96. align-items: center;
  97. font-size: 0.4rem;
  98. margin-top: 15PX;
  99. img{
  100. margin-right: 10PX;
  101. }
  102. }
  103. .tt{
  104. font-size: 0.7rem;
  105. margin-top: 15PX;
  106. }
  107. .top_02{
  108. display: flex;
  109. align-items: center;
  110. font-size: 0.3rem;
  111. margin-top: 15PX;
  112. i{
  113. display: inline-block;
  114. width: 15PX;
  115. height: 15PX;
  116. margin-right: 3PX;
  117. }
  118. p{
  119. display: flex;
  120. align-items: center;
  121. margin-right: 10PX;
  122. &:nth-child(1){
  123. i{
  124. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_11.png') no-repeat center;
  125. background-size: auto 15PX;
  126. }
  127. }
  128. &:nth-child(2){
  129. i{
  130. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_12.png') no-repeat center;
  131. background-size: auto 15PX;
  132. }
  133. }
  134. &:nth-child(3){
  135. i{
  136. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_13.png') no-repeat center;
  137. background-size: auto 15PX;
  138. }
  139. }
  140. }
  141. }
  142. }
  143. .main{
  144. position: relative;
  145. top: -150PX;
  146. }
  147. .center_box{
  148. text-align: center;
  149. padding: 30PX 0!important;
  150. p{
  151. margin-top: 15PX;
  152. &:nth-child(2){
  153. font-size: 0.4rem;
  154. color: #59C145;
  155. }
  156. &:nth-child(3){
  157. font-size: 0.4rem;
  158. color: #B4B0B0;
  159. display: inline-block;
  160. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_16.png') no-repeat left center;
  161. padding-left: 20PX;
  162. }
  163. }
  164. }
  165. /deep/ .van-cell{
  166. padding-bottom: 0;
  167. padding-top: 0;
  168. margin-bottom: 10PX;
  169. &:last-child{
  170. margin-bottom: 0;
  171. }
  172. }
  173. .header_main{
  174. /*height: 116px;*/
  175. background: url('../../../../static/images/lawEnforcement/new/header_bg.png') no-repeat;
  176. background-size: 100% 100%;
  177. /*position: fixed;*/
  178. top: 0;
  179. left: 0;
  180. width: 100%;
  181. font-size: 36px;
  182. line-height: 116px;
  183. text-align: center;
  184. color: #fff;
  185. z-index: 999;
  186. .return_btn{
  187. width: 24px;
  188. height: 43.2px;
  189. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  190. background-size: 20px 36px;
  191. position: absolute;
  192. left: 38px;
  193. top: 36px;
  194. }
  195. .add_btn{
  196. width: 56.4px;
  197. height: 40.8px;
  198. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  199. background-size: 47px 34px;
  200. position: absolute;
  201. right: 38px;
  202. top: 36px;
  203. }
  204. }
  205. /deep/ .van-radio--horizontal{
  206. margin-left: 0.32rem;
  207. margin-right: 0;
  208. }
  209. .peopleList{
  210. padding-right: 3%;
  211. .van-row{
  212. margin-bottom: 10PX;
  213. .van-col{
  214. text-align: center;
  215. font-size: 14PX;
  216. }
  217. &:first-child{
  218. .van-col{
  219. color: #1D6FE9;
  220. }
  221. }
  222. }
  223. }
  224. .main_title{
  225. font-size: 0.4rem;
  226. color: #1D6FE9;
  227. margin: 0.2rem 6%;
  228. margin-top: 0;
  229. position: relative;
  230. }
  231. .main_box{
  232. width: 90%;
  233. margin: 0 auto;
  234. border-radius: 10PX;
  235. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  236. overflow: hidden;
  237. background-color: #FFF;
  238. padding: 20PX 5PX;
  239. .van-icon{
  240. vertical-align: middle;
  241. }
  242. .custom-title{
  243. font-size: 17PX;
  244. color: #333333;
  245. vertical-align: middle;
  246. line-height: 1;
  247. position: relative;
  248. }
  249. .tap{
  250. color: #1D6FE9;
  251. }
  252. .bgBlue{
  253. display: block;
  254. position: absolute;
  255. width: 17PX;
  256. height: 17PX;
  257. border-radius: 50%;
  258. background-color: rgba(29,111,233,0.26);
  259. top: -2PX;
  260. right: -8PX;
  261. }
  262. }
  263. .submitButton{
  264. width: 70%;
  265. margin: 25PX auto;
  266. background-image: linear-gradient(to right, #2E79E9 , #77A6EF);
  267. text-align: center;
  268. color: #ffffff;
  269. height: 70px;
  270. line-height: 70px;
  271. border-radius: 8PX;
  272. }
  273. .addFamily{
  274. position: absolute;
  275. top: -2px;
  276. right: 0;
  277. border-radius: 50%;
  278. }
  279. /deep/.van-cell__title{
  280. .tt{
  281. display: flex;
  282. justify-content: space-between;
  283. span:first-child{
  284. background: url('../../../../static/images/lawEnforcement/icon/pesticides_icon_01.png') no-repeat left center;
  285. padding-left: 15PX;
  286. }
  287. }
  288. .first{
  289. display: flex;
  290. justify-content: space-between;
  291. align-items: center;
  292. margin-top: 5PX;
  293. span{
  294. color: #1D6FE9;
  295. font-size: 0.35rem;
  296. &:first-child{
  297. background: rgba(29,111,233,0.2);
  298. padding: 3PX 5PX;
  299. line-height: 1;
  300. border-radius: 3PX;
  301. }
  302. }
  303. }
  304. .dress{
  305. font-size: .35rem;
  306. color: #1CB8B1;
  307. margin-top: 5PX;
  308. }
  309. span{
  310. font-family: Arial;
  311. font-size: 0.4rem;
  312. font-weight: normal;
  313. display: -webkit-box;
  314. -webkit-box-orient: vertical;
  315. -webkit-line-clamp: 1;
  316. word-break: break-all;
  317. overflow: hidden;
  318. }
  319. }
  320. .list_box{
  321. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  322. width: 94%;
  323. margin: 0 auto 10PX;
  324. padding: 12PX 0;
  325. background: #ffffff;
  326. border-radius: 8PX;
  327. }
  328. .label {
  329. display: flex;
  330. justify-content: space-between;
  331. p{
  332. display: inline-block;
  333. font-size: 0.35rem;
  334. }
  335. }
  336. </style>