index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  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. let obj = {
  216. value: '市政工程'
  217. };
  218. uni.navigateTo({
  219. url: '/pages/municipal/municipal?params=' + encodeURIComponent(JSON
  220. .stringify(obj))
  221. });
  222. },
  223. NewProject(e) {
  224. this.enginType = 'new_built'; //写死
  225. this.enginClassification = e.dictValue;
  226. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  227. this.typeList = ''; //置空
  228. if (e.dictValue == 'indoor_engin') {
  229. //新建室内
  230. getDicts("new_built_indoor_engin").then(response => {
  231. this.typeList = response.data;
  232. });
  233. this.handleShowSheet();
  234. } else if (e.dictValue == 'courtyard') {
  235. //新建庭院
  236. getDicts("new_built_courtyard").then(response => {
  237. this.typeList = response.data;
  238. });
  239. this.handleShowSheet();
  240. } else if (e.dictValue == 'overhead') {
  241. //新建架空
  242. getDicts("new_built_overhead").then(response => {
  243. this.typeList = response.data;
  244. });
  245. this.handleShowSheet();
  246. } else if (e.dictValue == 'bottom_leg') {
  247. //新建底腿
  248. const obj = {
  249. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  250. enginType: this.enginType, //旧改 还是新建 写死
  251. enginClassification: this.enginClassification //室内 庭院 架空
  252. };
  253. uni.navigateTo({
  254. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  255. .stringify(
  256. obj))
  257. })
  258. } else if (e.dictValue == 'not_installed') {
  259. //新建管道施工记录
  260. const obj = {
  261. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  262. enginType: this.enginType, //旧改 还是新建 写死
  263. enginClassification: this.enginClassification //室内 庭院 架空
  264. };
  265. uni.navigateTo({
  266. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  267. .stringify(
  268. obj))
  269. })
  270. } else if (e.dictValue == 'surge_tank') {
  271. //调压柜
  272. const obj = {
  273. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  274. enginType: this.enginType, //旧改 还是新建 写死
  275. enginClassification: this.enginClassification //室内 庭院 架空
  276. };
  277. console.log("===", obj)
  278. uni.navigateTo({
  279. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  280. .stringify(
  281. obj))
  282. })
  283. }
  284. },
  285. OldProject(e) {
  286. this.enginType = 'old_renovation'; //写死
  287. this.enginClassification = e.dictValue;
  288. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  289. this.typeList = ''; //置空
  290. if (e.dictValue == 'indoor_engin') {
  291. //旧改室内
  292. getDicts("old_renovation_indoor_engin").then(response => {
  293. this.typeList = response.data;
  294. });
  295. this.handleShowSheet();
  296. } else if (e.dictValue == 'courtyard') {
  297. //旧改庭院
  298. getDicts("old_renovation_courtyard").then(response => {
  299. this.typeList = response.data;
  300. });
  301. this.handleShowSheet();
  302. } else if (e.dictValue == 'overhead') {
  303. //旧改架空
  304. getDicts("old_renovation_overhead").then(response => {
  305. this.typeList = response.data;
  306. });
  307. this.handleShowSheet();
  308. } else if (e.dictValue == 'bottom_leg') {
  309. //旧改底腿
  310. const obj = {
  311. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  312. enginType: this.enginType, //旧改 还是新建 写死
  313. enginClassification: this.enginClassification //室内 庭院 架空
  314. };
  315. uni.navigateTo({
  316. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  317. .stringify(
  318. obj))
  319. })
  320. } else if (e.dictValue == 'not_installed') {
  321. //旧改管道施工记录
  322. const obj = {
  323. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  324. enginType: this.enginType, //旧改 还是新建 写死
  325. enginClassification: this.enginClassification //室内 庭院 架空
  326. };
  327. uni.navigateTo({
  328. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  329. .stringify(
  330. obj))
  331. })
  332. } else if (e.dictValue == 'surge_tank') {
  333. //调压柜
  334. const obj = {
  335. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  336. enginType: this.enginType, //旧改 还是新建 写死
  337. enginClassification: this.enginClassification //室内 庭院 架空
  338. };
  339. console.log("===", obj)
  340. uni.navigateTo({
  341. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  342. .stringify(
  343. obj))
  344. })
  345. }
  346. },
  347. //二次弹窗 选择类型
  348. showTypeSheet(item) {
  349. if (this.projectType == 'MinYong') {
  350. //this.showPopup = !this.showPopup; //隐藏第一次弹窗
  351. this.enginClassValue = item.dictValue; //二次节点赋值
  352. const obj = {
  353. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  354. enginType: this.enginType, //旧改 还是新建 写死
  355. enginClassification: this.enginClassification //室内 庭院 架空
  356. };
  357. //this.handleHiddenShare();
  358. // 室内
  359. if (this.enginClassification == 'indoor_engin') {
  360. uni.navigateTo({
  361. url: '/pages/oldrenovation/indoor/indoor?params=' + encodeURIComponent(JSON.stringify(
  362. obj))
  363. })
  364. }
  365. // 庭院
  366. else if (this.enginClassification == 'courtyard') {
  367. if (this.enginClassValue == '下沟') {
  368. uni.navigateTo({
  369. url: '/pages/oldrenovation/courtyard/courtyard?params=' + encodeURIComponent(
  370. JSON
  371. .stringify(
  372. obj))
  373. })
  374. } else {
  375. uni.navigateTo({
  376. url: '/pages/oldrenovation/courtyard/newcourtyard?params=' + encodeURIComponent(
  377. JSON
  378. .stringify(
  379. obj))
  380. })
  381. }
  382. } else if (this.enginClassification == 'overhead') { //架空
  383. if (this.enginClassValue == '全貌照片') {
  384. uni.navigateTo({
  385. url: '/pages/oldrenovation/overhead/newoverhead?params=' + encodeURIComponent(JSON
  386. .stringify(
  387. obj))
  388. })
  389. } else {
  390. uni.navigateTo({
  391. url: '/pages/oldrenovation/overhead/overhead?params=' + encodeURIComponent(JSON
  392. .stringify(
  393. obj))
  394. })
  395. }
  396. }
  397. } else if (this.projectType == 'GongYe') {
  398. let obj = {
  399. value: item.dictValue
  400. };
  401. //this.handleHiddenShare();
  402. uni.navigateTo({
  403. url: '/pages/enginproject/enginproject?params=' + encodeURIComponent(JSON
  404. .stringify(
  405. obj))
  406. })
  407. } else if (this.projectType == 'JiJian') {
  408. let obj = {
  409. value: item.dictValue
  410. };
  411. //this.handleHiddenShare();
  412. uni.navigateTo({
  413. url: '/pages/infrastructure/infrastructure?params=' + encodeURIComponent(JSON
  414. .stringify(
  415. obj))
  416. })
  417. } else if (this.projectType == 'DingGuan') {
  418. let obj = {
  419. value: item.dictValue
  420. };
  421. //this.handleHiddenShare();
  422. uni.navigateTo({
  423. url: '/pages/TopPipeWork/TopPipeWork?params=' + encodeURIComponent(JSON
  424. .stringify(
  425. obj))
  426. })
  427. }
  428. },
  429. showGongYe() {
  430. this.projectType = 'GongYe';
  431. //工业工程
  432. getDicts("engin_classification").then(response => {
  433. this.typeList = response.data;
  434. });
  435. this.handleShowSheet();
  436. },
  437. showTopPipe() {
  438. this.projectType = 'DingGuan';
  439. getDicts("pipe_jack").then(response => {
  440. this.typeList = response.data;
  441. });
  442. this.handleShowSheet();
  443. },
  444. showInfrastructureDialog() {
  445. this.projectType = 'JiJian';
  446. //基建工程
  447. getDicts("engineering_infrastructure").then(response => {
  448. this.typeList = response.data;
  449. });
  450. this.handleShowSheet();
  451. },
  452. showDangerous() {
  453. uni.navigateTo({
  454. url: '/pages/dangerous/dangerous'
  455. })
  456. },
  457. showOpenBolt() {
  458. uni.navigateTo({
  459. url: '/pages/open_bolt/open_bolt'
  460. })
  461. }
  462. }
  463. }
  464. </script>
  465. <style lang="scss">
  466. /* #ifndef APP-NVUE */
  467. page {
  468. display: flex;
  469. flex-direction: column;
  470. box-sizing: border-box;
  471. background-color: #fff;
  472. min-height: 100%;
  473. height: auto;
  474. }
  475. view {
  476. font-size: 14px;
  477. line-height: inherit;
  478. }
  479. .work-container {
  480. display: flex;
  481. flex-direction: column;
  482. }
  483. /* #endif */
  484. .text {
  485. text-align: center;
  486. font-size: 26rpx;
  487. margin-top: 10rpx;
  488. }
  489. .grid-item-box {
  490. flex: 1;
  491. /* #ifndef APP-NVUE */
  492. display: flex;
  493. /* #endif */
  494. flex-direction: column;
  495. align-items: center;
  496. justify-content: center;
  497. padding: 15px 0;
  498. }
  499. .uni-margin-wrap {
  500. width: 690rpx;
  501. width: 100%;
  502. ;
  503. }
  504. .swiper {
  505. height: 300rpx;
  506. }
  507. .swiper-box {
  508. height: 150px;
  509. }
  510. .swiper-item {
  511. /* #ifndef APP-NVUE */
  512. display: flex;
  513. /* #endif */
  514. flex-direction: column;
  515. justify-content: center;
  516. align-items: center;
  517. color: #fff;
  518. height: 300rpx;
  519. line-height: 300rpx;
  520. }
  521. @media screen and (min-width: 500px) {
  522. .uni-swiper-dot-box {
  523. width: 400px;
  524. /* #ifndef APP-NVUE */
  525. margin: 0 auto;
  526. /* #endif */
  527. margin-top: 8px;
  528. }
  529. .image {
  530. width: 100%;
  531. }
  532. }
  533. // 弹窗效果
  534. .popup {
  535. position: fixed;
  536. bottom: 0;
  537. left: 0;
  538. width: 100%;
  539. background-color: #fff;
  540. // padding: 20rpx;
  541. box-sizing: border-box;
  542. z-index: 999;
  543. border-top-left-radius: 40rpx;
  544. border-top-right-radius: 40rpx;
  545. }
  546. // 遮罩层
  547. .mask {
  548. position: fixed;
  549. top: 0;
  550. left: 0;
  551. width: 100%;
  552. height: 100%;
  553. background-color: rgba(0, 0, 0, 0.5);
  554. z-index: 888;
  555. }
  556. // 弹窗内容
  557. .content {
  558. .top40 {
  559. margin-top: 30rpx;
  560. }
  561. .line1 {
  562. text-align: center;
  563. display: flex;
  564. justify-content: start;
  565. align-items: center;
  566. padding: 20rpx;
  567. }
  568. .btn-grp {
  569. display: flex;
  570. .btn-grp-item {
  571. width: 33%;
  572. display: flex;
  573. flex-direction: column;
  574. align-items: center;
  575. text-align: center;
  576. .line2-btn-big {
  577. width: 90rpx;
  578. height: 90rpx;
  579. margin-bottom: 10rpx;
  580. }
  581. }
  582. }
  583. .line2 {
  584. padding: 20rpx;
  585. // border-bottom: 1px solid black;
  586. view {
  587. margin-bottom: 10rpx;
  588. }
  589. }
  590. }
  591. // 按钮样式
  592. .btn-group {
  593. box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
  594. /* 示例阴影参数,根据需要进行调整 */
  595. .btn_position {
  596. display: flex;
  597. width: 100%;
  598. .cancel {
  599. width: 50%;
  600. text-align: center;
  601. padding: 20rpx 0;
  602. color: #519fe7;
  603. }
  604. .submit {
  605. width: 50%;
  606. background-color: #519fe7;
  607. text-align: center;
  608. padding: 20rpx 0;
  609. color: #fff;
  610. }
  611. }
  612. }
  613. .share {
  614. width: 100%;
  615. height: 100%;
  616. }
  617. .share-box {
  618. width: 100%;
  619. height: 100%;
  620. position: fixed;
  621. top: 0rpx;
  622. left: 0rpx;
  623. bottom: 0rpx;
  624. right: 0rpx;
  625. background-color: rgba(0, 0, 0, 0.4);
  626. transition: .3s;
  627. z-index: 999;
  628. }
  629. // 进入分享动画
  630. .share-show {
  631. transition: all 0.3s ease;
  632. transform: translateY(0%) !important;
  633. }
  634. .scroll-Y {
  635. height: 350rpx;
  636. }
  637. // 离开分享动画
  638. .share-item {
  639. position: fixed;
  640. left: 0;
  641. bottom: 0;
  642. width: 100%;
  643. height: auto;
  644. background-color: #FFFFFF;
  645. transition: all 0.3s ease;
  646. transform: translateY(100%);
  647. z-index: 1999;
  648. border-top-left-radius: 40rpx;
  649. border-top-right-radius: 40rpx;
  650. .share-to {
  651. width: 100%;
  652. height: 3rem;
  653. display: flex;
  654. justify-content: center;
  655. align-items: center;
  656. &::after {
  657. content: '';
  658. width: 240rpx;
  659. height: 0rpx;
  660. border-top: 1px solid #E4E7ED;
  661. -webkit-transform: scaleY(0.5);
  662. transform: scaleY(0.5);
  663. margin-left: 30rpx;
  664. }
  665. &::before {
  666. content: '';
  667. width: 240rpx;
  668. height: 0rpx;
  669. border-top: 1px solid #E4E7ED;
  670. -webkit-transform: scaleY(0.5);
  671. transform: scaleY(0.5);
  672. margin-right: 30rpx;
  673. }
  674. }
  675. .content {
  676. width: 100%;
  677. height: 50%;
  678. display: flex;
  679. flex-wrap: wrap;
  680. .block {
  681. width: 100%;
  682. display: flex;
  683. flex-direction: column;
  684. justify-content: center;
  685. align-items: center;
  686. height: 80rpx;
  687. text {
  688. margin-top: 16rpx;
  689. font-size: 28rpx;
  690. color: #606266;
  691. }
  692. }
  693. }
  694. .cancel {
  695. width: 100%;
  696. height: 3rem;
  697. display: flex;
  698. justify-content: center;
  699. align-items: center;
  700. border-top: 1rpx solid #E4E7ED;
  701. }
  702. }
  703. /*********************九宫格********************* */
  704. .Grid {
  705. display: flex;
  706. flex-wrap: wrap;
  707. justify-content: space-between;
  708. align-content: space-between;
  709. // background: #f7f7f7;
  710. padding: 10rpx 0;
  711. .Grid-Item {
  712. width: 50%;
  713. // height: 100px;
  714. text-align: center;
  715. // border: 1rpx solid #ff0000;
  716. box-sizing: border-box;
  717. .icon-item {
  718. width: 220rpx;
  719. height: 220rpx;
  720. }
  721. .GSimg {
  722. width: 96rpx;
  723. height: 96rpx;
  724. margin-top: 42rpx;
  725. margin-left: 75rpx;
  726. .Image {
  727. width: 96rpx;
  728. height: 96rpx;
  729. }
  730. }
  731. .GStitle {
  732. width: 100%;
  733. color: #516d97;
  734. font-size: 28rpx;
  735. text-align: center;
  736. margin-top: -30rpx;
  737. margin-bottom: 30rpx;
  738. }
  739. }
  740. }
  741. .click-hover {
  742. background-color: #d0d0d0;
  743. }
  744. </style>