index.vue 21 KB

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