index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  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. uni.navigateTo({
  465. url: '/pages/open_bolt/open_bolt'
  466. })
  467. }
  468. }
  469. }
  470. </script>
  471. <style lang="scss">
  472. /* #ifndef APP-NVUE */
  473. page {
  474. display: flex;
  475. flex-direction: column;
  476. box-sizing: border-box;
  477. background-color: #fff;
  478. min-height: 100%;
  479. height: auto;
  480. }
  481. view {
  482. font-size: 14px;
  483. line-height: inherit;
  484. }
  485. .work-container {
  486. display: flex;
  487. flex-direction: column;
  488. }
  489. /* #endif */
  490. .text {
  491. text-align: center;
  492. font-size: 26rpx;
  493. margin-top: 10rpx;
  494. }
  495. .grid-item-box {
  496. flex: 1;
  497. /* #ifndef APP-NVUE */
  498. display: flex;
  499. /* #endif */
  500. flex-direction: column;
  501. align-items: center;
  502. justify-content: center;
  503. padding: 15px 0;
  504. }
  505. .uni-margin-wrap {
  506. width: 690rpx;
  507. width: 100%;
  508. ;
  509. }
  510. .swiper {
  511. height: 300rpx;
  512. }
  513. .swiper-box {
  514. height: 150px;
  515. }
  516. .swiper-item {
  517. /* #ifndef APP-NVUE */
  518. display: flex;
  519. /* #endif */
  520. flex-direction: column;
  521. justify-content: center;
  522. align-items: center;
  523. color: #fff;
  524. height: 300rpx;
  525. line-height: 300rpx;
  526. }
  527. @media screen and (min-width: 500px) {
  528. .uni-swiper-dot-box {
  529. width: 400px;
  530. /* #ifndef APP-NVUE */
  531. margin: 0 auto;
  532. /* #endif */
  533. margin-top: 8px;
  534. }
  535. .image {
  536. width: 100%;
  537. }
  538. }
  539. // 弹窗效果
  540. .popup {
  541. position: fixed;
  542. bottom: 0;
  543. left: 0;
  544. width: 100%;
  545. background-color: #fff;
  546. // padding: 20rpx;
  547. box-sizing: border-box;
  548. z-index: 999;
  549. border-top-left-radius: 40rpx;
  550. border-top-right-radius: 40rpx;
  551. }
  552. // 遮罩层
  553. .mask {
  554. position: fixed;
  555. top: 0;
  556. left: 0;
  557. width: 100%;
  558. height: 100%;
  559. background-color: rgba(0, 0, 0, 0.5);
  560. z-index: 888;
  561. }
  562. // 弹窗内容
  563. .content {
  564. .top40 {
  565. margin-top: 30rpx;
  566. }
  567. .line1 {
  568. text-align: center;
  569. display: flex;
  570. justify-content: start;
  571. align-items: center;
  572. padding: 20rpx;
  573. }
  574. .btn-grp {
  575. display: flex;
  576. .btn-grp-item {
  577. width: 33%;
  578. display: flex;
  579. flex-direction: column;
  580. align-items: center;
  581. text-align: center;
  582. .line2-btn-big {
  583. width: 90rpx;
  584. height: 90rpx;
  585. margin-bottom: 10rpx;
  586. }
  587. }
  588. }
  589. .line2 {
  590. padding: 20rpx;
  591. // border-bottom: 1px solid black;
  592. view {
  593. margin-bottom: 10rpx;
  594. }
  595. }
  596. }
  597. // 按钮样式
  598. .btn-group {
  599. box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
  600. /* 示例阴影参数,根据需要进行调整 */
  601. .btn_position {
  602. display: flex;
  603. width: 100%;
  604. .cancel {
  605. width: 50%;
  606. text-align: center;
  607. padding: 20rpx 0;
  608. color: #519fe7;
  609. }
  610. .submit {
  611. width: 50%;
  612. background-color: #519fe7;
  613. text-align: center;
  614. padding: 20rpx 0;
  615. color: #fff;
  616. }
  617. }
  618. }
  619. .share {
  620. width: 100%;
  621. height: 100%;
  622. }
  623. .share-box {
  624. width: 100%;
  625. height: 100%;
  626. position: fixed;
  627. top: 0rpx;
  628. left: 0rpx;
  629. bottom: 0rpx;
  630. right: 0rpx;
  631. background-color: rgba(0, 0, 0, 0.4);
  632. transition: .3s;
  633. z-index: 999;
  634. }
  635. // 进入分享动画
  636. .share-show {
  637. transition: all 0.3s ease;
  638. transform: translateY(0%) !important;
  639. }
  640. .scroll-Y {
  641. height: 350rpx;
  642. }
  643. // 离开分享动画
  644. .share-item {
  645. position: fixed;
  646. left: 0;
  647. bottom: 0;
  648. width: 100%;
  649. height: auto;
  650. background-color: #FFFFFF;
  651. transition: all 0.3s ease;
  652. transform: translateY(100%);
  653. z-index: 1999;
  654. border-top-left-radius: 40rpx;
  655. border-top-right-radius: 40rpx;
  656. .share-to {
  657. width: 100%;
  658. height: 3rem;
  659. display: flex;
  660. justify-content: center;
  661. align-items: center;
  662. &::after {
  663. content: '';
  664. width: 240rpx;
  665. height: 0rpx;
  666. border-top: 1px solid #E4E7ED;
  667. -webkit-transform: scaleY(0.5);
  668. transform: scaleY(0.5);
  669. margin-left: 30rpx;
  670. }
  671. &::before {
  672. content: '';
  673. width: 240rpx;
  674. height: 0rpx;
  675. border-top: 1px solid #E4E7ED;
  676. -webkit-transform: scaleY(0.5);
  677. transform: scaleY(0.5);
  678. margin-right: 30rpx;
  679. }
  680. }
  681. .content {
  682. width: 100%;
  683. height: 50%;
  684. display: flex;
  685. flex-wrap: wrap;
  686. .block {
  687. width: 100%;
  688. display: flex;
  689. flex-direction: column;
  690. justify-content: center;
  691. align-items: center;
  692. height: 80rpx;
  693. text {
  694. margin-top: 16rpx;
  695. font-size: 28rpx;
  696. color: #606266;
  697. }
  698. }
  699. }
  700. .cancel {
  701. width: 100%;
  702. height: 3rem;
  703. display: flex;
  704. justify-content: center;
  705. align-items: center;
  706. border-top: 1rpx solid #E4E7ED;
  707. }
  708. }
  709. /*********************九宫格********************* */
  710. .Grid {
  711. display: flex;
  712. flex-wrap: wrap;
  713. justify-content: space-between;
  714. align-content: space-between;
  715. // background: #f7f7f7;
  716. padding: 10rpx 0;
  717. .Grid-Item {
  718. width: 50%;
  719. // height: 100px;
  720. text-align: center;
  721. // border: 1rpx solid #ff0000;
  722. box-sizing: border-box;
  723. .icon-item {
  724. width: 220rpx;
  725. height: 220rpx;
  726. }
  727. .GSimg {
  728. width: 96rpx;
  729. height: 96rpx;
  730. margin-top: 42rpx;
  731. margin-left: 75rpx;
  732. .Image {
  733. width: 96rpx;
  734. height: 96rpx;
  735. }
  736. }
  737. .GStitle {
  738. width: 100%;
  739. color: #516d97;
  740. font-size: 28rpx;
  741. text-align: center;
  742. margin-top: -30rpx;
  743. margin-bottom: 30rpx;
  744. }
  745. }
  746. }
  747. .click-hover {
  748. background-color: #d0d0d0;
  749. }
  750. </style>