index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <template>
  2. <view class="work-container">
  3. <view style="work-banner">
  4. <image :src="loadImgSrc('work-banner.png')" style="width: 100%;height:43vh"></image>
  5. <view style="float: left;top: 100px;margin-left: 20px;">{{nickName}}:欢迎登录</view>
  6. </view>
  7. <view class="grid-body">
  8. <view class="Grid">
  9. <view class="Grid-Item" v-for="item in List" :key="item.id" @click="navClick(item.id)"
  10. hover-class="click-hover" hover-start-time="50" hover-stay-time="50"
  11. v-if="userRole.includes(item.title)">
  12. <image class="icon-item" :src="loadImgSrc('mygc.png')" v-if="item.title == '民用工程'"></image>
  13. <image class="icon-item" :src="loadImgSrc('gygc.png')" v-if="item.title == '工业工程'"></image>
  14. <image class="icon-item" :src="loadImgSrc('szgc.png')" v-if="item.title == '市政工程'"></image>
  15. <image class="icon-item" :src="loadImgSrc('wxzy.png')" v-if="item.title == '危险作业工程'"></image>
  16. <image class="icon-item" :src="loadImgSrc('dggc.png')" v-if="item.title == '顶管工程'"></image>
  17. <image class="icon-item" :src="loadImgSrc('jjgc.png')" v-if="item.title == '基建工程'"></image>
  18. <image class="icon-item" :src="loadImgSrc('open_bolt.png')" v-if="item.title == '开栓'"></image>
  19. <view class="GStitle">{{ item.title }}</view>
  20. </view>
  21. </view>
  22. <view v-if="showPopup" class="popup">
  23. <view class="content">
  24. <view class="line1 top40">
  25. <view style="width: 61rpx;
  26. color: #CEB98D;
  27. height: 61rpx;
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. border: 3px solid #CEB98D;
  32. border-radius: 50%; margin-right: 20rpx;">旧</view>
  33. <view>旧改工程</view>
  34. </view>
  35. <view class="line2 btn-grp">
  36. <view class="btn-grp-item" v-for="(item, index) in OldProjectList" :key="index"
  37. @click="OldProject(item)">
  38. <image :src="loadImgSrc('sn.png')" class="line2-btn-big" v-if="item.dictLabel == '室内工程'">
  39. </image>
  40. <image :src="loadImgSrc('ty.png')" class="line2-btn-big" v-if="item.dictLabel == '庭院工程'">
  41. </image>
  42. <image :src="loadImgSrc('jk.png')" class="line2-btn-big" v-if="item.dictLabel == '架空'">
  43. </image>
  44. <image :src="loadImgSrc('dt.png')" class="line2-btn-big" v-if="item.dictLabel == '底腿'">
  45. </image>
  46. <image :src="loadImgSrc('gd.png')" class="line2-btn-big" v-if="item.dictLabel == '未安装'">
  47. </image>
  48. <image :src="loadImgSrc('gd.png')" class="line2-btn-big" v-if="item.dictLabel == '调压柜'">
  49. </image>
  50. {{item.dictLabel}}
  51. </view>
  52. </view>
  53. <view class="line1">
  54. <view style="width: 61rpx;
  55. color: #85c9c2;
  56. height: 61rpx;
  57. display: flex;
  58. justify-content: center;
  59. align-items: center;
  60. border: 3px solid #85c9c2;
  61. border-radius: 50%; margin-right: 20rpx;">新</view>
  62. <view>新建工程</view>
  63. </view>
  64. <view class="line2 btn-grp">
  65. <view class="btn-grp-item" v-for="(item, index) in NewProjectList" :key="index"
  66. @click="NewProject(item)">
  67. <image :src="loadImgSrc('sn2.png')" class="line2-btn-big" v-if="item.dictLabel == '室内工程'">
  68. </image>
  69. <image :src="loadImgSrc('ty2.png')" class="line2-btn-big" v-if="item.dictLabel == '庭院工程'">
  70. </image>
  71. <image :src="loadImgSrc('jk2.png')" class="line2-btn-big" v-if="item.dictLabel == '架空'">
  72. </image>
  73. <image :src="loadImgSrc('dt2.png')" class="line2-btn-big" v-if="item.dictLabel == '底腿'">
  74. </image>
  75. <image :src="loadImgSrc('gd2.png')" class="line2-btn-big" v-if="item.dictLabel == '未安装'">
  76. </image>
  77. <image :src="loadImgSrc('gd2.png')" class="line2-btn-big" v-if="item.dictLabel == '调压柜'">
  78. </image>
  79. {{item.dictLabel}}
  80. </view>
  81. </view>
  82. </view>
  83. <!-- <view class="btn-group">
  84. <view class="btn_position">
  85. <view class="cancel" @click="showMinYong">取消</view>
  86. </view>
  87. </view> -->
  88. </view>
  89. <view v-if="showPopup" class="mask" @click="showMinYong"></view>
  90. </view>
  91. <view class="share">
  92. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  93. </view>
  94. <view class="share-item" :class="{'share-show': shareState}">
  95. <view class="share-to">
  96. <text>请选择</text>
  97. </view>
  98. <scroll-view scroll-y="true" class="scroll-Y">
  99. <view class="content">
  100. <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)">
  101. <!-- <image :src="item.image" mode="aspectFill"></image> -->
  102. <text>{{item.dictLabel}}</text>
  103. </view>
  104. </view>
  105. </scroll-view>
  106. <view class="cancel" @click.stop="handleHiddenShare">
  107. <text>取消</text>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. </template>
  114. <script>
  115. import {
  116. getDicts
  117. } from "@/api/system/dict/data";
  118. import {
  119. getUserRole
  120. } from '@/utils/auth';
  121. import user from '@/store/modules/user'
  122. export default {
  123. data() {
  124. return {
  125. nickName: user.state.nickName,
  126. userRole: getUserRole(),
  127. showPopup: false,
  128. shareState: false,
  129. array: [],
  130. projectType: '', //工程类型
  131. OldProjectList: '', //旧改工程
  132. NewProjectList: '', //民用工程
  133. typeList: '', //二次弹窗数据
  134. enginType: '',
  135. enginClassification: '', // 旧改节点 数据字典
  136. enginClassValue: '', //二次节点 数据字典
  137. current: 0,
  138. swiperDotIndex: 0,
  139. List: [{
  140. id: 1,
  141. img: '/static/logo.png',
  142. title: '民用工程'
  143. },
  144. {
  145. id: 2,
  146. img: '/static/logo.png',
  147. title: '工业工程'
  148. },
  149. {
  150. id: 3,
  151. img: '/static/logo.png',
  152. title: '市政工程'
  153. },
  154. {
  155. id: 4,
  156. img: '/static/logo.png',
  157. title: '危险作业工程'
  158. },
  159. {
  160. id: 5,
  161. img: '/static/logo.png',
  162. title: '顶管工程'
  163. },
  164. {
  165. id: 6,
  166. img: '/static/logo.png',
  167. title: '基建工程'
  168. },
  169. {
  170. id: 7,
  171. img: '/static/logo.png',
  172. title: '开栓'
  173. },
  174. ]
  175. }
  176. },
  177. methods: {
  178. navClick(newId) {
  179. if (newId == 1) {
  180. this.showMinYong()
  181. } else if (newId == 2) {
  182. this.showGongYe();
  183. } else if (newId == 3) {
  184. this.municipalProjectClick();
  185. } else if (newId == 4) {
  186. this.showDangerous();
  187. } else if (newId == 5) {
  188. this.showTopPipe();
  189. } else if (newId == 6) {
  190. this.showInfrastructureDialog();
  191. } else if (newId == 7) {
  192. this.showOpenBolt();
  193. }
  194. },
  195. // 显示二次弹窗
  196. handleShowSheet() {
  197. this.shareState = true;
  198. },
  199. // 隐藏二次弹窗
  200. handleHiddenShare() {
  201. this.shareState = false;
  202. },
  203. showMinYong() {
  204. this.projectType = 'MinYong';
  205. getDicts("old_renovation").then(response => {
  206. this.OldProjectList = response.data;
  207. });
  208. getDicts("new_built").then(response => {
  209. this.NewProjectList = response.data;
  210. });
  211. this.showPopup = !this.showPopup;
  212. },
  213. //市政工程-首页-点击事件
  214. municipalProjectClick() {
  215. this.projectType = 'ShiZheng';
  216. getDicts("municipal_engineering_node").then(response => {
  217. this.typeList = response.data;
  218. });
  219. this.handleShowSheet();
  220. },
  221. NewProject(e) {
  222. this.enginType = 'new_built'; //写死
  223. this.enginClassification = e.dictValue;
  224. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  225. this.typeList = ''; //置空
  226. if (e.dictValue == 'indoor_engin') {
  227. //新建室内
  228. getDicts("new_built_indoor_engin").then(response => {
  229. this.typeList = response.data;
  230. });
  231. this.handleShowSheet();
  232. } else if (e.dictValue == 'courtyard') {
  233. //新建庭院
  234. getDicts("new_built_courtyard").then(response => {
  235. this.typeList = response.data;
  236. });
  237. this.handleShowSheet();
  238. } else if (e.dictValue == 'overhead') {
  239. //新建架空
  240. getDicts("new_built_overhead").then(response => {
  241. this.typeList = response.data;
  242. });
  243. this.handleShowSheet();
  244. } else if (e.dictValue == 'bottom_leg') {
  245. //新建底腿
  246. const obj = {
  247. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  248. enginType: this.enginType, //旧改 还是新建 写死
  249. enginClassification: this.enginClassification //室内 庭院 架空
  250. };
  251. uni.navigateTo({
  252. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  253. .stringify(
  254. obj))
  255. })
  256. } else if (e.dictValue == 'not_installed') {
  257. //新建管道施工记录
  258. const obj = {
  259. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  260. enginType: this.enginType, //旧改 还是新建 写死
  261. enginClassification: this.enginClassification //室内 庭院 架空
  262. };
  263. uni.navigateTo({
  264. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  265. .stringify(
  266. obj))
  267. })
  268. } else if (e.dictValue == 'pressure_regulating') {
  269. //调压柜
  270. const obj = {
  271. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  272. enginType: this.enginType, //旧改 还是新建 写死
  273. enginClassification: this.enginClassification //室内 庭院 架空
  274. };
  275. console.log("===", obj)
  276. uni.navigateTo({
  277. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  278. .stringify(
  279. obj))
  280. })
  281. }
  282. },
  283. OldProject(e) {
  284. this.enginType = 'old_renovation'; //写死
  285. this.enginClassification = e.dictValue;
  286. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  287. this.typeList = ''; //置空
  288. if (e.dictValue == 'indoor_engin') {
  289. //旧改室内
  290. getDicts("old_renovation_indoor_engin").then(response => {
  291. this.typeList = response.data;
  292. });
  293. this.handleShowSheet();
  294. } else if (e.dictValue == 'courtyard') {
  295. //旧改庭院
  296. getDicts("old_renovation_courtyard").then(response => {
  297. this.typeList = response.data;
  298. });
  299. this.handleShowSheet();
  300. } else if (e.dictValue == 'overhead') {
  301. //旧改架空
  302. getDicts("old_renovation_overhead").then(response => {
  303. this.typeList = response.data;
  304. });
  305. this.handleShowSheet();
  306. } else if (e.dictValue == 'bottom_leg') {
  307. //旧改底腿
  308. const obj = {
  309. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  310. enginType: this.enginType, //旧改 还是新建 写死
  311. enginClassification: this.enginClassification //室内 庭院 架空
  312. };
  313. uni.navigateTo({
  314. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  315. .stringify(
  316. obj))
  317. })
  318. } else if (e.dictValue == 'not_installed') {
  319. //旧改管道施工记录
  320. const obj = {
  321. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  322. enginType: this.enginType, //旧改 还是新建 写死
  323. enginClassification: this.enginClassification //室内 庭院 架空
  324. };
  325. uni.navigateTo({
  326. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  327. .stringify(
  328. obj))
  329. })
  330. } else if (e.dictValue == 'pressure_regulating') {
  331. //调压柜
  332. const obj = {
  333. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  334. enginType: this.enginType, //旧改 还是新建 写死
  335. enginClassification: this.enginClassification //室内 庭院 架空
  336. };
  337. uni.navigateTo({
  338. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  339. .stringify(
  340. obj))
  341. })
  342. }
  343. },
  344. //二次弹窗 选择类型
  345. showTypeSheet(item) {
  346. if (this.projectType == 'MinYong') {
  347. //this.showPopup = !this.showPopup; //隐藏第一次弹窗
  348. this.enginClassValue = item.dictValue; //二次节点赋值
  349. const obj = {
  350. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  351. enginType: this.enginType, //旧改 还是新建 写死
  352. enginClassification: this.enginClassification //室内 庭院 架空
  353. };
  354. //this.handleHiddenShare();
  355. // 室内
  356. if (this.enginClassification == 'indoor_engin') {
  357. uni.navigateTo({
  358. url: '/pages/oldrenovation/indoor/indoor?params=' + encodeURIComponent(JSON.stringify(
  359. obj))
  360. })
  361. }
  362. // 庭院
  363. else if (this.enginClassification == 'courtyard') {
  364. if (this.enginClassValue == '下沟') {
  365. uni.navigateTo({
  366. url: '/pages/oldrenovation/courtyard/courtyard?params=' + encodeURIComponent(
  367. JSON
  368. .stringify(
  369. obj))
  370. })
  371. } else {
  372. uni.navigateTo({
  373. url: '/pages/oldrenovation/courtyard/newcourtyard?params=' + encodeURIComponent(
  374. JSON
  375. .stringify(
  376. obj))
  377. })
  378. }
  379. } else if (this.enginClassification == 'overhead') { //架空
  380. if (this.enginClassValue == '全貌照片') {
  381. uni.navigateTo({
  382. url: '/pages/oldrenovation/overhead/newoverhead?params=' + encodeURIComponent(JSON
  383. .stringify(
  384. obj))
  385. })
  386. } else {
  387. uni.navigateTo({
  388. url: '/pages/oldrenovation/overhead/overhead?params=' + encodeURIComponent(JSON
  389. .stringify(
  390. obj))
  391. })
  392. }
  393. }
  394. } else if (this.projectType == 'ShiZheng') {
  395. let obj = {
  396. Label: item.dictLabel,
  397. value: item.dictValue
  398. };
  399. uni.navigateTo({
  400. url: '/pages/municipal/municipal?params=' + encodeURIComponent(JSON
  401. .stringify(obj))
  402. });
  403. } else if (this.projectType == 'GongYe') {
  404. let obj = {
  405. value: item.dictValue
  406. };
  407. //this.handleHiddenShare();
  408. uni.navigateTo({
  409. url: '/pages/enginproject/enginproject?params=' + encodeURIComponent(JSON
  410. .stringify(
  411. obj))
  412. })
  413. } else if (this.projectType == 'JiJian') {
  414. let obj = {
  415. value: item.dictValue
  416. };
  417. //this.handleHiddenShare();
  418. uni.navigateTo({
  419. url: '/pages/infrastructure/infrastructure?params=' + encodeURIComponent(JSON
  420. .stringify(
  421. obj))
  422. })
  423. } else if (this.projectType == 'DingGuan') {
  424. let obj = {
  425. value: item.dictValue
  426. };
  427. //this.handleHiddenShare();
  428. uni.navigateTo({
  429. url: '/pages/TopPipeWork/TopPipeWork?params=' + encodeURIComponent(JSON
  430. .stringify(
  431. obj))
  432. })
  433. }
  434. },
  435. showGongYe() {
  436. this.projectType = 'GongYe';
  437. //工业工程
  438. getDicts("engin_classification").then(response => {
  439. this.typeList = response.data;
  440. });
  441. this.handleShowSheet();
  442. },
  443. showTopPipe() {
  444. this.projectType = 'DingGuan';
  445. getDicts("pipe_jack").then(response => {
  446. this.typeList = response.data;
  447. });
  448. this.handleShowSheet();
  449. },
  450. showInfrastructureDialog() {
  451. this.projectType = 'JiJian';
  452. //基建工程
  453. getDicts("engineering_infrastructure").then(response => {
  454. this.typeList = response.data;
  455. });
  456. this.handleShowSheet();
  457. },
  458. showDangerous() {
  459. uni.navigateTo({
  460. url: '/pages/dangerous/dangerous'
  461. })
  462. },
  463. showOpenBolt() {
  464. let obj = {
  465. type: 'new'
  466. };
  467. uni.navigateTo({
  468. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  469. .stringify(
  470. obj))
  471. })
  472. }
  473. }
  474. }
  475. </script>
  476. <style lang="scss">
  477. /* #ifndef APP-NVUE */
  478. page {
  479. display: flex;
  480. flex-direction: column;
  481. box-sizing: border-box;
  482. background-color: #fff;
  483. min-height: 100%;
  484. height: auto;
  485. }
  486. view {
  487. font-size: 14px;
  488. line-height: inherit;
  489. }
  490. .work-container {
  491. display: flex;
  492. flex-direction: column;
  493. }
  494. /* #endif */
  495. .text {
  496. text-align: center;
  497. font-size: 26rpx;
  498. margin-top: 10rpx;
  499. }
  500. .grid-item-box {
  501. flex: 1;
  502. /* #ifndef APP-NVUE */
  503. display: flex;
  504. /* #endif */
  505. flex-direction: column;
  506. align-items: center;
  507. justify-content: center;
  508. padding: 15px 0;
  509. }
  510. .uni-margin-wrap {
  511. width: 690rpx;
  512. width: 100%;
  513. ;
  514. }
  515. .swiper {
  516. height: 300rpx;
  517. }
  518. .swiper-box {
  519. height: 150px;
  520. }
  521. .swiper-item {
  522. /* #ifndef APP-NVUE */
  523. display: flex;
  524. /* #endif */
  525. flex-direction: column;
  526. justify-content: center;
  527. align-items: center;
  528. color: #fff;
  529. height: 300rpx;
  530. line-height: 300rpx;
  531. }
  532. @media screen and (min-width: 500px) {
  533. .uni-swiper-dot-box {
  534. width: 400px;
  535. /* #ifndef APP-NVUE */
  536. margin: 0 auto;
  537. /* #endif */
  538. margin-top: 8px;
  539. }
  540. .image {
  541. width: 100%;
  542. }
  543. }
  544. // 弹窗效果
  545. .popup {
  546. position: fixed;
  547. bottom: 0;
  548. left: 0;
  549. width: 100%;
  550. background-color: #fff;
  551. // padding: 20rpx;
  552. box-sizing: border-box;
  553. z-index: 999;
  554. border-top-left-radius: 40rpx;
  555. border-top-right-radius: 40rpx;
  556. }
  557. // 遮罩层
  558. .mask {
  559. position: fixed;
  560. top: 0;
  561. left: 0;
  562. width: 100%;
  563. height: 100%;
  564. background-color: rgba(0, 0, 0, 0.5);
  565. z-index: 888;
  566. }
  567. // 弹窗内容
  568. .content {
  569. .top40 {
  570. margin-top: 30rpx;
  571. }
  572. .line1 {
  573. text-align: center;
  574. display: flex;
  575. justify-content: start;
  576. align-items: center;
  577. padding: 20rpx;
  578. }
  579. .btn-grp {
  580. display: flex;
  581. .btn-grp-item {
  582. width: 33%;
  583. display: flex;
  584. flex-direction: column;
  585. align-items: center;
  586. text-align: center;
  587. .line2-btn-big {
  588. width: 90rpx;
  589. height: 90rpx;
  590. margin-bottom: 10rpx;
  591. }
  592. }
  593. }
  594. .line2 {
  595. padding: 20rpx;
  596. // border-bottom: 1px solid black;
  597. view {
  598. margin-bottom: 10rpx;
  599. }
  600. }
  601. }
  602. // 按钮样式
  603. .btn-group {
  604. box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
  605. /* 示例阴影参数,根据需要进行调整 */
  606. .btn_position {
  607. display: flex;
  608. width: 100%;
  609. .cancel {
  610. width: 50%;
  611. text-align: center;
  612. padding: 20rpx 0;
  613. color: #519fe7;
  614. }
  615. .submit {
  616. width: 50%;
  617. background-color: #519fe7;
  618. text-align: center;
  619. padding: 20rpx 0;
  620. color: #fff;
  621. }
  622. }
  623. }
  624. .share {
  625. width: 100%;
  626. height: 100%;
  627. }
  628. .share-box {
  629. width: 100%;
  630. height: 100%;
  631. position: fixed;
  632. top: 0rpx;
  633. left: 0rpx;
  634. bottom: 0rpx;
  635. right: 0rpx;
  636. background-color: rgba(0, 0, 0, 0.4);
  637. transition: .3s;
  638. z-index: 999;
  639. }
  640. // 进入分享动画
  641. .share-show {
  642. transition: all 0.3s ease;
  643. transform: translateY(0%) !important;
  644. }
  645. .scroll-Y {
  646. height: 350rpx;
  647. }
  648. // 离开分享动画
  649. .share-item {
  650. position: fixed;
  651. left: 0;
  652. bottom: 0;
  653. width: 100%;
  654. height: auto;
  655. background-color: #FFFFFF;
  656. transition: all 0.3s ease;
  657. transform: translateY(100%);
  658. z-index: 1999;
  659. border-top-left-radius: 40rpx;
  660. border-top-right-radius: 40rpx;
  661. .share-to {
  662. width: 100%;
  663. height: 3rem;
  664. display: flex;
  665. justify-content: center;
  666. align-items: center;
  667. &::after {
  668. content: '';
  669. width: 240rpx;
  670. height: 0rpx;
  671. border-top: 1px solid #E4E7ED;
  672. -webkit-transform: scaleY(0.5);
  673. transform: scaleY(0.5);
  674. margin-left: 30rpx;
  675. }
  676. &::before {
  677. content: '';
  678. width: 240rpx;
  679. height: 0rpx;
  680. border-top: 1px solid #E4E7ED;
  681. -webkit-transform: scaleY(0.5);
  682. transform: scaleY(0.5);
  683. margin-right: 30rpx;
  684. }
  685. }
  686. .content {
  687. width: 100%;
  688. height: 50%;
  689. display: flex;
  690. flex-wrap: wrap;
  691. .block {
  692. width: 100%;
  693. display: flex;
  694. flex-direction: column;
  695. justify-content: center;
  696. align-items: center;
  697. height: 80rpx;
  698. text {
  699. margin-top: 16rpx;
  700. font-size: 28rpx;
  701. color: #606266;
  702. }
  703. }
  704. }
  705. .cancel {
  706. width: 100%;
  707. height: 3rem;
  708. display: flex;
  709. justify-content: center;
  710. align-items: center;
  711. border-top: 1rpx solid #E4E7ED;
  712. }
  713. }
  714. /*********************九宫格********************* */
  715. .Grid {
  716. display: flex;
  717. flex-wrap: wrap;
  718. justify-content: space-between;
  719. align-content: space-between;
  720. // background: #f7f7f7;
  721. padding: 10rpx 0;
  722. .Grid-Item {
  723. width: 50%;
  724. // height: 100px;
  725. text-align: center;
  726. // border: 1rpx solid #ff0000;
  727. box-sizing: border-box;
  728. .icon-item {
  729. width: 220rpx;
  730. height: 220rpx;
  731. }
  732. .GSimg {
  733. width: 96rpx;
  734. height: 96rpx;
  735. margin-top: 42rpx;
  736. margin-left: 75rpx;
  737. .Image {
  738. width: 96rpx;
  739. height: 96rpx;
  740. }
  741. }
  742. .GStitle {
  743. width: 100%;
  744. color: #516d97;
  745. font-size: 28rpx;
  746. text-align: center;
  747. margin-top: -30rpx;
  748. margin-bottom: 30rpx;
  749. }
  750. }
  751. }
  752. .click-hover {
  753. background-color: #d0d0d0;
  754. }
  755. </style>