index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  1. <!-- <template>
  2. <view>
  3. <view class="page-body">
  4. <view class="utabs">
  5. <view style="width: 95%;margin: 0 auto;">
  6. <u-tabs :list="list" :is-scroll="true" :current="current" @change="change" item-width="140" font-size="24" gutter="20"
  7. bar-width="60" active-color="#42b983"></u-tabs>
  8. </view>
  9. </view>
  10. <view class="LocationAndDetails">
  11. <view class="search">
  12. <input type="text" v-model="device_id" placeholder="请输入设备ID"/>
  13. </view>
  14. <view class="Location">
  15. <view class="particulars_par" @click="eqinfo">
  16. 查看详情
  17. </view>
  18. <view class="particulars_ser" @click="serTFs">
  19. 查看位置
  20. </view>
  21. </view>
  22. </view>
  23. <view class="page-section page-section-gap">
  24. <map class="map" scale="3" :markers="covers" :enable-zoom="true"
  25. @markertap="markertap" >
  26. </map>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. id: 0, // 使用 marker点击事件 需要填写id
  36. title: 'map',
  37. covers: [],
  38. list: [{
  39. name: "全部"
  40. }, {
  41. name: "杀虫灯"
  42. }, {
  43. name: "测报灯"
  44. }, {
  45. name: "性诱测报"
  46. }, {
  47. name: "环境检测"
  48. }, {
  49. name: "监控设备"
  50. }, {
  51. name: "孢子仪",
  52. },{
  53. name: "性诱2.0"
  54. }],
  55. current: 0,
  56. icon: [{
  57. id: '', //全部
  58. url: "../../static/images/distribution/7610e3983eb33ed5b9ad72ebdfc8ed2.png"
  59. },
  60. {
  61. id: 2, //杀虫灯
  62. url: "../../static/images/distribution/1bd535eb7dbb0809940030d40c64b4c.png"
  63. },
  64. {
  65. id: 3, //测报灯
  66. url: "../../static/images/distribution/0b551e50be351dbc14f0dd6470e3443.png"
  67. },
  68. {
  69. id: 4, //性诱测报
  70. url: "../../static/images/distribution/be5c1cfed22713a9544f020cf41c25f.png"
  71. },
  72. {
  73. id: 5, //环境检测
  74. url: "../../static/images/distribution/8325b1b6079456ce43f952ce13d2919.png"
  75. },
  76. {
  77. id: 6, //监控设备
  78. url: "../../static/images/distribution/2eb9e550709430a1bd8178568c14785.png"
  79. },
  80. {
  81. id: 7, //孢子仪
  82. url: "../../static/images/distribution/54a96e2b0ad4efeecbd4a7b5e6deda3.png"
  83. },
  84. {
  85. id: 10, //性诱2.0
  86. url: "../../static/images/distribution/515ea6143e0aaff4a823270c7aa00a6.png"
  87. },
  88. ],
  89. type: '', //设备类型
  90. typeindex: null, //设备选择
  91. device_id: '', //设备号
  92. serTF: false, //设备搜索显示隐藏
  93. punctuationTF: false, //判断是否以点击标点
  94. punctuation_id: "", //点击标点的id
  95. punctuation_did: '',
  96. punctuation_type: '',
  97. listindex:1,//以选择设备名称
  98. disstyle:{
  99. position:"absolute",
  100. bottom:"0rpx"
  101. },
  102. facilitydatas:[]
  103. }
  104. },
  105. onLoad() {
  106. this.history()
  107. },
  108. methods: {
  109. async history() { //获取分布位置
  110. const res = await this.$myRequest({
  111. url: '/api/api_gateway?method=home.homes.equip_map_location',
  112. data: {
  113. equip_type: this.type,
  114. device_id: this.device_id
  115. }
  116. })
  117. console.log(res)
  118. this.covers = []
  119. for (var i = 0; i < res.length; i++) {
  120. var obj = {}
  121. obj.latitude = Number(res[i].lat)
  122. obj.longitude = Number(res[i].lng)
  123. obj.id = parseInt(i)
  124. obj.title = res[i].device_name || res[i].device_id
  125. obj.width = 30
  126. obj.height = 30
  127. for (var j = 0; j < this.icon.length; j++) {
  128. if (res[i].device_type_id == this.icon[j].id) {
  129. obj.iconPath = this.icon[j].url
  130. }
  131. }
  132. this.covers.push(obj)
  133. }
  134. this.facilitydatas = res
  135. if(res.length == 0){
  136. uni.showToast({
  137. title: '未查询到设备',
  138. duration: 2000,
  139. icon: "none"
  140. });
  141. }
  142. },
  143. change(index) {
  144. console.log(index)
  145. this.current = index
  146. if (index == 0) {
  147. this.type = ''
  148. } else if(index == 7){
  149. this.type = index + 3
  150. } else {
  151. this.type = index + 1
  152. }
  153. this.history()
  154. },
  155. markertap(e) {
  156. console.log(e)
  157. console.log(this.facilitydatas[e.detail.markerId])
  158. this.device_id = this.facilitydatas[e.detail.markerId].device_id
  159. this.punctuation_did = this.facilitydatas[e.detail.markerId].d_id
  160. this.punctuation_type = this.facilitydatas[e.detail.markerId].device_type_id
  161. },
  162. serTFs() {
  163. this.history()
  164. },
  165. eqinfo() { //设备信息
  166. if (this.punctuation_type == '') {
  167. uni.showToast({
  168. title: '请点击需查看的设备',
  169. duration: 2000,
  170. icon: "none"
  171. });
  172. } else {
  173. switch (this.punctuation_type) {
  174. case 2:
  175. uni.navigateTo({
  176. url: "../prevention/ucharts?d_id=" + this.punctuation_did + "&imei=" + this.device_id
  177. })
  178. break;
  179. case 3:
  180. uni.navigateTo({
  181. url: "../cb/cbd/equip-set/historyfile?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  182. })
  183. break;
  184. case 4:
  185. uni.navigateTo({
  186. url: "../cb/xy/equip-set/xyhistoryile?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  187. })
  188. break;
  189. case 5:
  190. uni.navigateTo({
  191. url: "../environment/history?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  192. })
  193. break;
  194. case 6:
  195. // uni.navigateTo({
  196. // url: "../prevention/ucharts?d_id=" + this.punctuation_did + "&device_id=" + this.punctuation_id
  197. // })
  198. break;
  199. case 7:
  200. uni.navigateTo({
  201. url: "../cb/bzy/equip-set/bzyhistoryile?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  202. })
  203. break;
  204. case 10:
  205. uni.navigateTo({
  206. url:"../cb/xy2.0/historydatas?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  207. })
  208. break;
  209. }
  210. }
  211. }
  212. }
  213. }
  214. </script>
  215. <style lang="scss">
  216. .utabs {
  217. width: 100%;
  218. position: fixed;
  219. top: 0px;
  220. z-index: 100;
  221. background-color: #FFFFFF;
  222. }
  223. .LocationAndDetails{
  224. width: 100%;
  225. height: 200rpx;
  226. position: fixed;
  227. top: 54px;
  228. .search{
  229. display: flex;
  230. input{
  231. width: 90%;
  232. font-size: 28rpx;
  233. margin-left: 40rpx;
  234. border: 1px solid #cfccc9;
  235. height: 60rpx;
  236. padding-left: 15px;
  237. box-sizing: border-box;
  238. border-radius: 60rpx;
  239. }
  240. }
  241. .Location{
  242. display: flex;
  243. margin-top: 20rpx;
  244. justify-content: space-around;
  245. .particulars_par {
  246. background-color: #F1F1F1;
  247. text-align: center;
  248. width: 40%;
  249. height: 80rpx;
  250. line-height: 80rpx;
  251. font-size: 28rpx;
  252. border-radius: 40rpx;
  253. }
  254. .particulars_ser {
  255. background-color: #57C87B;
  256. text-align: center;
  257. width: 40%;
  258. height: 80rpx;
  259. line-height: 80rpx;
  260. font-size: 28rpx;
  261. color: #FFFFFF;
  262. border-radius: 40rpx;
  263. }
  264. }
  265. }
  266. .page-section {
  267. margin-top: 144px;
  268. height: 80vh;
  269. // position: fixed;
  270. // top: 144px;
  271. .map{
  272. width: 100%;
  273. height: 100%;
  274. }
  275. }
  276. .particulars {
  277. width: 100%;
  278. height: 160rpx;
  279. position: absolute;
  280. bottom: 0;
  281. .search_btn_top {
  282. width: 100%;
  283. height: 80rpx;
  284. line-height: 80rpx;
  285. font-size: 32rpx;
  286. padding-left: 30rpx;
  287. box-sizing: border-box;
  288. }
  289. .search_btn_bot {
  290. width: 100%;
  291. display: flex;
  292. }
  293. }
  294. .distri_ser {
  295. position: absolute;
  296. bottom: 0rpx;
  297. right: 0px;
  298. width: 100%;
  299. height: 440rpx;
  300. background-color: #FFFFFF;
  301. .distri_ser_input {
  302. width: 90%;
  303. margin: 20rpx auto;
  304. display: flex;
  305. background-color: #F1F1F1;
  306. height: 60rpx;
  307. border-radius: 30rpx;
  308. padding: 10rpx 20rpx;
  309. box-sizing: border-box;
  310. input {
  311. width: 90%;
  312. font-size: 28rpx;
  313. margin-right: 20rpx;
  314. }
  315. }
  316. .distri_ser_title {
  317. width: 90%;
  318. margin: 0 auto;
  319. padding-left: 20rpx;
  320. border-left: 4rpx solid #57C87B;
  321. font-size: 28rpx;
  322. }
  323. .distri_ser_type {
  324. width: 90%;
  325. margin: 20rpx auto;
  326. display: flex;
  327. justify-content: space-around;
  328. .type_items {
  329. height: 120rpx;
  330. width: 120rpx;
  331. padding: 20rpx 0;
  332. }
  333. .type_items_bor {
  334. height: 120rpx;
  335. width: 120rpx;
  336. border: 2rpx solid #57C87B;
  337. padding: 20rpx 0;
  338. }
  339. .type_items_img {
  340. width: 70rpx;
  341. height: 70rpx;
  342. margin-left: 20rpx;
  343. }
  344. .type_items_p {
  345. font-size: 24rpx;
  346. text-align: center;
  347. }
  348. }
  349. }
  350. .search_btn {
  351. width: 100%;
  352. display: flex;
  353. .btn_f,
  354. .btn_t {
  355. width: 50%;
  356. text-align: center;
  357. height: 80rpx;
  358. line-height: 80rpx;
  359. font-size: 28rpx;
  360. }
  361. .btn_f {
  362. background-color: #F1F1F1;
  363. }
  364. .btn_t {
  365. background-color: #57C87B;
  366. color: #FFFFFF;
  367. }
  368. }
  369. </style> -->
  370. <template>
  371. <view>
  372. <view class="page-body">
  373. <view class="utabs">
  374. <view style="width: 95%;margin: 0 auto;">
  375. <u-tabs :list="list" :is-scroll="true" :current="current" @change="change" item-width="140" font-size="24" gutter="20"
  376. bar-width="60" active-color="#42b983"></u-tabs>
  377. </view>
  378. </view>
  379. <view class="LocationAndDetails">
  380. <view class="search">
  381. <input type="text" v-model="device_id" placeholder="请输入设备ID"/>
  382. </view>
  383. <view class="Location">
  384. <view class="particulars_par" @click="eqinfo">
  385. 查看详情
  386. </view>
  387. <view class="particulars_ser" @click="serTFs">
  388. 查看位置
  389. </view>
  390. </view>
  391. </view>
  392. <view class="page-section page-section-gap">
  393. <map class="map" scale="3" :markers="covers" :enable-zoom="true"
  394. @markertap="markertap" >
  395. </map>
  396. </view>
  397. </view>
  398. </view>
  399. </template>
  400. <script>
  401. export default {
  402. data() {
  403. return {
  404. id: 0, // 使用 marker点击事件 需要填写id
  405. title: 'map',
  406. covers: [],
  407. list: [{
  408. name: "全部"
  409. }],
  410. current: 0,
  411. icon: [{
  412. id: '', //全部
  413. url: "../../static/images/distribution/7610e3983eb33ed5b9ad72ebdfc8ed2.png",
  414. name: "全部"
  415. },
  416. {
  417. id: 2, //杀虫灯
  418. url: "../../static/images/distribution/1bd535eb7dbb0809940030d40c64b4c.png",
  419. name: "杀虫灯"
  420. },
  421. {
  422. id: 3, //测报灯
  423. url: "../../static/images/distribution/0b551e50be351dbc14f0dd6470e3443.png",
  424. name: "测报灯"
  425. },
  426. {
  427. id: 4, //性诱测报
  428. url: "../../static/images/distribution/be5c1cfed22713a9544f020cf41c25f.png",
  429. name: "性诱测报"
  430. },
  431. {
  432. id: 5, //环境检测
  433. url: "../../static/images/distribution/8325b1b6079456ce43f952ce13d2919.png",
  434. name: "环境检测"
  435. },
  436. {
  437. id: 6, //监控设备
  438. url: "../../static/images/distribution/2eb9e550709430a1bd8178568c14785.png",
  439. name: "监控设备"
  440. },
  441. {
  442. id: 7, //孢子仪
  443. url: "../../static/images/distribution/54a96e2b0ad4efeecbd4a7b5e6deda3.png",
  444. name: "孢子仪",
  445. },
  446. {
  447. id: 10, //性诱2.0
  448. url: "../../static/images/distribution/515ea6143e0aaff4a823270c7aa00a6.png",
  449. name: "性诱2.0"
  450. },
  451. ],
  452. type: '', //设备类型
  453. typeindex: null, //设备选择
  454. device_id: '', //设备号
  455. serTF: false, //设备搜索显示隐藏
  456. punctuationTF: false, //判断是否以点击标点
  457. punctuation_id: "", //点击标点的id
  458. punctuation_did: '',
  459. punctuation_type: '',
  460. listindex:1,//以选择设备名称
  461. disstyle:{
  462. position:"absolute",
  463. bottom:"0rpx"
  464. },
  465. facilitydatas:[],
  466. }
  467. },
  468. onShow() {
  469. this.device_id = ""
  470. this.list = [{
  471. name: "全部"
  472. }]
  473. uni.getStorage({
  474. key: "jurisdiction",
  475. success: (res) => {
  476. console.log(JSON.parse(res.data))
  477. var res = JSON.parse(res.data)
  478. for (var i = 0; i < res.length; i++) {
  479. switch (res[i].purview_name) {
  480. case "测报系统":
  481. for (var j = 0; j < res[i].children.length; j++) {
  482. var obj = {
  483. name: res[i].children[j].purview_name=="虫情测报灯"?"测报灯":res[i].children[j].purview_name
  484. }
  485. this.list.push(obj)
  486. }
  487. break;
  488. case "监控系统":
  489. for (var j = 0; j < res[i].children.length; j++) {
  490. var obj = {
  491. name: res[i].children[j].purview_name
  492. }
  493. this.list.push(obj)
  494. }
  495. break;
  496. case "环境监测系统":
  497. for (var j = 0; j < res[i].children.length; j++) {
  498. var obj = {
  499. name: res[i].children[j].purview_name
  500. }
  501. this.list.push(obj)
  502. }
  503. break;
  504. case "防治系统":
  505. for (var j = 0; j < res[i].children.length; j++) {
  506. var obj = {
  507. name: res[i].children[j].purview_name
  508. }
  509. this.list.push(obj)
  510. }
  511. break;
  512. }
  513. }
  514. for (var i = 0; i < this.icon.length; i++) {
  515. if (this.list[0].name == this.icon[i].name) {
  516. this.type = this.icon[i].id
  517. }
  518. }
  519. this.history()
  520. },
  521. })
  522. },
  523. methods: {
  524. async history() { //获取分布位置
  525. const res = await this.$myRequest({
  526. url: '/api/api_gateway?method=home.homes.equip_map_location',
  527. data: {
  528. equip_type: this.type,
  529. device_id: this.device_id
  530. }
  531. })
  532. console.log(res)
  533. this.covers = []
  534. for (var i = 0; i < res.length; i++) {
  535. var obj = {}
  536. obj.latitude = Number(res[i].lat)
  537. obj.longitude = Number(res[i].lng)
  538. obj.id = parseInt(i)
  539. obj.title = res[i].device_name || res[i].device_id
  540. obj.width = 30
  541. obj.height = 30
  542. for (var j = 0; j < this.icon.length; j++) {
  543. if (res[i].device_type_id == this.icon[j].id) {
  544. obj.iconPath = this.icon[j].url
  545. }
  546. }
  547. this.covers.push(obj)
  548. }
  549. this.facilitydatas = res
  550. if(res.length == 0){
  551. uni.showToast({
  552. title: '未查询到设备',
  553. duration: 2000,
  554. icon: "none"
  555. });
  556. }
  557. },
  558. change(index) {
  559. console.log(index)
  560. this.current = index
  561. if (index == 0) {
  562. this.type = ''
  563. }else{
  564. for (var i = 0; i < this.icon.length; i++) {
  565. if (this.list[index].name == this.icon[i].name) {
  566. console.log(this.icon[i].id)
  567. this.type = this.icon[i].id
  568. }
  569. }
  570. }
  571. this.history()
  572. },
  573. markertap(e) {
  574. console.log(e)
  575. console.log(this.facilitydatas[e.detail.markerId])
  576. this.device_id = this.facilitydatas[e.detail.markerId].device_id
  577. this.punctuation_did = this.facilitydatas[e.detail.markerId].d_id
  578. this.punctuation_type = this.facilitydatas[e.detail.markerId].device_type_id
  579. },
  580. serTFs() {
  581. this.history()
  582. },
  583. eqinfo() { //设备信息
  584. if (this.punctuation_type == '') {
  585. uni.showToast({
  586. title: '请点击需查看的设备',
  587. duration: 2000,
  588. icon: "none"
  589. });
  590. } else {
  591. switch (this.punctuation_type) {
  592. case 2:
  593. uni.navigateTo({
  594. url: "../prevention/ucharts?d_id=" + this.punctuation_did + "&imei=" + this.device_id
  595. })
  596. break;
  597. case 3:
  598. uni.navigateTo({
  599. url: "../cb/cbd/equip-set/historyfile?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  600. })
  601. break;
  602. case 4:
  603. uni.navigateTo({
  604. url: "../cb/xy/equip-set/xyhistoryile?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  605. })
  606. break;
  607. case 5:
  608. uni.navigateTo({
  609. url: "../environment/history?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  610. })
  611. break;
  612. case 6:
  613. // uni.navigateTo({
  614. // url: "../prevention/ucharts?d_id=" + this.punctuation_did + "&device_id=" + this.punctuation_id
  615. // })
  616. break;
  617. case 7:
  618. uni.navigateTo({
  619. url: "../cb/bzy/equip-set/bzyhistoryile?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  620. })
  621. break;
  622. case 10:
  623. uni.navigateTo({
  624. url:"../cb/xy2.0/historydatas?d_id=" + this.punctuation_did + "&device_id=" + this.device_id
  625. })
  626. break;
  627. }
  628. }
  629. }
  630. }
  631. }
  632. </script>
  633. <style lang="scss">
  634. .utabs {
  635. width: 100%;
  636. position: fixed;
  637. top: 0px;
  638. z-index: 100;
  639. background-color: #FFFFFF;
  640. }
  641. .LocationAndDetails{
  642. width: 100%;
  643. height: 200rpx;
  644. position: fixed;
  645. top: 54px;
  646. .search{
  647. display: flex;
  648. input{
  649. width: 90%;
  650. font-size: 28rpx;
  651. margin-left: 40rpx;
  652. border: 1px solid #cfccc9;
  653. height: 60rpx;
  654. padding-left: 15px;
  655. box-sizing: border-box;
  656. border-radius: 60rpx;
  657. }
  658. }
  659. .Location{
  660. display: flex;
  661. margin-top: 20rpx;
  662. justify-content: space-around;
  663. .particulars_par {
  664. background-color: #F1F1F1;
  665. text-align: center;
  666. width: 40%;
  667. height: 80rpx;
  668. line-height: 80rpx;
  669. font-size: 28rpx;
  670. border-radius: 40rpx;
  671. }
  672. .particulars_ser {
  673. background-color: #57C87B;
  674. text-align: center;
  675. width: 40%;
  676. height: 80rpx;
  677. line-height: 80rpx;
  678. font-size: 28rpx;
  679. color: #FFFFFF;
  680. border-radius: 40rpx;
  681. }
  682. }
  683. }
  684. .page-section {
  685. margin-top: 144px;
  686. height: 80vh;
  687. // position: fixed;
  688. // top: 144px;
  689. .map{
  690. width: 100%;
  691. height: 100%;
  692. }
  693. }
  694. .particulars {
  695. width: 100%;
  696. height: 160rpx;
  697. position: absolute;
  698. bottom: 0;
  699. .search_btn_top {
  700. width: 100%;
  701. height: 80rpx;
  702. line-height: 80rpx;
  703. font-size: 32rpx;
  704. padding-left: 30rpx;
  705. box-sizing: border-box;
  706. }
  707. .search_btn_bot {
  708. width: 100%;
  709. display: flex;
  710. }
  711. }
  712. .distri_ser {
  713. position: absolute;
  714. bottom: 0rpx;
  715. right: 0px;
  716. width: 100%;
  717. height: 440rpx;
  718. background-color: #FFFFFF;
  719. .distri_ser_input {
  720. width: 90%;
  721. margin: 20rpx auto;
  722. display: flex;
  723. background-color: #F1F1F1;
  724. height: 60rpx;
  725. border-radius: 30rpx;
  726. padding: 10rpx 20rpx;
  727. box-sizing: border-box;
  728. input {
  729. width: 90%;
  730. font-size: 28rpx;
  731. margin-right: 20rpx;
  732. }
  733. }
  734. .distri_ser_title {
  735. width: 90%;
  736. margin: 0 auto;
  737. padding-left: 20rpx;
  738. border-left: 4rpx solid #57C87B;
  739. font-size: 28rpx;
  740. }
  741. .distri_ser_type {
  742. width: 90%;
  743. margin: 20rpx auto;
  744. display: flex;
  745. justify-content: space-around;
  746. .type_items {
  747. height: 120rpx;
  748. width: 120rpx;
  749. padding: 20rpx 0;
  750. }
  751. .type_items_bor {
  752. height: 120rpx;
  753. width: 120rpx;
  754. border: 2rpx solid #57C87B;
  755. padding: 20rpx 0;
  756. }
  757. .type_items_img {
  758. width: 70rpx;
  759. height: 70rpx;
  760. margin-left: 20rpx;
  761. }
  762. .type_items_p {
  763. font-size: 24rpx;
  764. text-align: center;
  765. }
  766. }
  767. }
  768. .search_btn {
  769. width: 100%;
  770. display: flex;
  771. .btn_f,
  772. .btn_t {
  773. width: 50%;
  774. text-align: center;
  775. height: 80rpx;
  776. line-height: 80rpx;
  777. font-size: 28rpx;
  778. }
  779. .btn_f {
  780. background-color: #F1F1F1;
  781. }
  782. .btn_t {
  783. background-color: #57C87B;
  784. color: #FFFFFF;
  785. }
  786. }
  787. </style>