index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  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 == 'pressure_regulating') {
  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 == 'pressure_regulating') {
  339. //调压柜
  340. const obj = {
  341. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  342. enginType: this.enginType, //旧改 还是新建 写死
  343. enginClassification: this.enginClassification //室内 庭院 架空
  344. };
  345. uni.navigateTo({
  346. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  347. .stringify(
  348. obj))
  349. })
  350. }
  351. },
  352. //二次弹窗 选择类型
  353. showTypeSheet(item) {
  354. if (this.projectType == 'MinYong') {
  355. //this.showPopup = !this.showPopup; //隐藏第一次弹窗
  356. this.enginClassValue = item.dictValue; //二次节点赋值
  357. const obj = {
  358. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  359. enginType: this.enginType, //旧改 还是新建 写死
  360. enginClassification: this.enginClassification //室内 庭院 架空
  361. };
  362. //this.handleHiddenShare();
  363. // 室内
  364. if (this.enginClassification == 'indoor_engin') {
  365. uni.navigateTo({
  366. url: '/pages/oldrenovation/indoor/indoor?params=' + encodeURIComponent(JSON.stringify(
  367. obj))
  368. })
  369. }
  370. // 庭院
  371. else if (this.enginClassification == 'courtyard') {
  372. if (this.enginClassValue == '下沟') {
  373. uni.navigateTo({
  374. url: '/pages/oldrenovation/courtyard/courtyard?params=' + encodeURIComponent(
  375. JSON
  376. .stringify(
  377. obj))
  378. })
  379. } else {
  380. uni.navigateTo({
  381. url: '/pages/oldrenovation/courtyard/newcourtyard?params=' + encodeURIComponent(
  382. JSON
  383. .stringify(
  384. obj))
  385. })
  386. }
  387. } else if (this.enginClassification == 'overhead') { //架空
  388. if (this.enginClassValue == '全貌照片') {
  389. uni.navigateTo({
  390. url: '/pages/oldrenovation/overhead/newoverhead?params=' + encodeURIComponent(JSON
  391. .stringify(
  392. obj))
  393. })
  394. } else {
  395. uni.navigateTo({
  396. url: '/pages/oldrenovation/overhead/overhead?params=' + encodeURIComponent(JSON
  397. .stringify(
  398. obj))
  399. })
  400. }
  401. }
  402. } else if (this.projectType == 'ShiZheng') {
  403. let obj = {
  404. Label: item.dictLabel,
  405. value: item.dictValue
  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. Label: item.dictLabel,
  444. value: item.dictValue
  445. };
  446. //this.handleHiddenShare();
  447. uni.navigateTo({
  448. url: '/pages/gas_sealing_project/gas_sealing_project?params=' + encodeURIComponent(JSON
  449. .stringify(
  450. obj))
  451. })
  452. }
  453. },
  454. showGongYe() {
  455. this.projectType = 'GongYe';
  456. //工业工程
  457. getDicts("engin_classification").then(response => {
  458. this.typeList = response.data;
  459. });
  460. this.handleShowSheet();
  461. },
  462. showTopPipe() {
  463. this.projectType = 'DingGuan';
  464. getDicts("pipe_jack").then(response => {
  465. this.typeList = response.data;
  466. });
  467. this.handleShowSheet();
  468. },
  469. showInfrastructureDialog() {
  470. this.projectType = 'JiJian';
  471. //基建工程
  472. getDicts("engineering_infrastructure").then(response => {
  473. this.typeList = response.data;
  474. });
  475. this.handleShowSheet();
  476. },
  477. showDangerous() {
  478. uni.navigateTo({
  479. url: '/pages/dangerous/dangerous'
  480. })
  481. },
  482. showOpenBolt() {
  483. uni.navigateTo({
  484. url: '/pages/open_bolt/open_bolt'
  485. })
  486. },
  487. showGasSealingDialog() {
  488. this.projectType = 'DaiQiFengDuShiGong';
  489. //基建工程
  490. getDicts("air_wall_node").then(response => {
  491. this.typeList = response.data;
  492. });
  493. this.handleShowSheet();
  494. },
  495. }
  496. }
  497. </script>
  498. <style lang="scss">
  499. /* #ifndef APP-NVUE */
  500. page {
  501. display: flex;
  502. flex-direction: column;
  503. box-sizing: border-box;
  504. background-color: #fff;
  505. min-height: 100%;
  506. height: auto;
  507. }
  508. view {
  509. font-size: 14px;
  510. line-height: inherit;
  511. }
  512. .work-container {
  513. display: flex;
  514. flex-direction: column;
  515. }
  516. /* #endif */
  517. .text {
  518. text-align: center;
  519. font-size: 26rpx;
  520. margin-top: 10rpx;
  521. }
  522. .grid-item-box {
  523. flex: 1;
  524. /* #ifndef APP-NVUE */
  525. display: flex;
  526. /* #endif */
  527. flex-direction: column;
  528. align-items: center;
  529. justify-content: center;
  530. padding: 15px 0;
  531. }
  532. .uni-margin-wrap {
  533. width: 690rpx;
  534. width: 100%;
  535. ;
  536. }
  537. .swiper {
  538. height: 300rpx;
  539. }
  540. .swiper-box {
  541. height: 150px;
  542. }
  543. .swiper-item {
  544. /* #ifndef APP-NVUE */
  545. display: flex;
  546. /* #endif */
  547. flex-direction: column;
  548. justify-content: center;
  549. align-items: center;
  550. color: #fff;
  551. height: 300rpx;
  552. line-height: 300rpx;
  553. }
  554. @media screen and (min-width: 500px) {
  555. .uni-swiper-dot-box {
  556. width: 400px;
  557. /* #ifndef APP-NVUE */
  558. margin: 0 auto;
  559. /* #endif */
  560. margin-top: 8px;
  561. }
  562. .image {
  563. width: 100%;
  564. }
  565. }
  566. // 弹窗效果
  567. .popup {
  568. position: fixed;
  569. bottom: 0;
  570. left: 0;
  571. width: 100%;
  572. background-color: #fff;
  573. // padding: 20rpx;
  574. box-sizing: border-box;
  575. z-index: 999;
  576. border-top-left-radius: 40rpx;
  577. border-top-right-radius: 40rpx;
  578. }
  579. // 遮罩层
  580. .mask {
  581. position: fixed;
  582. top: 0;
  583. left: 0;
  584. width: 100%;
  585. height: 100%;
  586. background-color: rgba(0, 0, 0, 0.5);
  587. z-index: 888;
  588. }
  589. // 弹窗内容
  590. .content {
  591. .top40 {
  592. margin-top: 30rpx;
  593. }
  594. .line1 {
  595. text-align: center;
  596. display: flex;
  597. justify-content: start;
  598. align-items: center;
  599. padding: 20rpx;
  600. }
  601. .btn-grp {
  602. display: flex;
  603. .btn-grp-item {
  604. width: 33%;
  605. display: flex;
  606. flex-direction: column;
  607. align-items: center;
  608. text-align: center;
  609. .line2-btn-big {
  610. width: 90rpx;
  611. height: 90rpx;
  612. margin-bottom: 10rpx;
  613. }
  614. }
  615. }
  616. .line2 {
  617. padding: 20rpx;
  618. // border-bottom: 1px solid black;
  619. view {
  620. margin-bottom: 10rpx;
  621. }
  622. }
  623. }
  624. // 按钮样式
  625. .btn-group {
  626. box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
  627. /* 示例阴影参数,根据需要进行调整 */
  628. .btn_position {
  629. display: flex;
  630. width: 100%;
  631. .cancel {
  632. width: 50%;
  633. text-align: center;
  634. padding: 20rpx 0;
  635. color: #519fe7;
  636. }
  637. .submit {
  638. width: 50%;
  639. background-color: #519fe7;
  640. text-align: center;
  641. padding: 20rpx 0;
  642. color: #fff;
  643. }
  644. }
  645. }
  646. .share {
  647. width: 100%;
  648. height: 100%;
  649. }
  650. .share-box {
  651. width: 100%;
  652. height: 100%;
  653. position: fixed;
  654. top: 0rpx;
  655. left: 0rpx;
  656. bottom: 0rpx;
  657. right: 0rpx;
  658. background-color: rgba(0, 0, 0, 0.4);
  659. transition: .3s;
  660. z-index: 999;
  661. }
  662. // 进入分享动画
  663. .share-show {
  664. transition: all 0.3s ease;
  665. transform: translateY(0%) !important;
  666. }
  667. .scroll-Y {
  668. height: 350rpx;
  669. }
  670. // 离开分享动画
  671. .share-item {
  672. position: fixed;
  673. left: 0;
  674. bottom: 0;
  675. width: 100%;
  676. height: auto;
  677. background-color: #FFFFFF;
  678. transition: all 0.3s ease;
  679. transform: translateY(100%);
  680. z-index: 1999;
  681. border-top-left-radius: 40rpx;
  682. border-top-right-radius: 40rpx;
  683. .share-to {
  684. width: 100%;
  685. height: 3rem;
  686. display: flex;
  687. justify-content: center;
  688. align-items: center;
  689. &::after {
  690. content: '';
  691. width: 240rpx;
  692. height: 0rpx;
  693. border-top: 1px solid #E4E7ED;
  694. -webkit-transform: scaleY(0.5);
  695. transform: scaleY(0.5);
  696. margin-left: 30rpx;
  697. }
  698. &::before {
  699. content: '';
  700. width: 240rpx;
  701. height: 0rpx;
  702. border-top: 1px solid #E4E7ED;
  703. -webkit-transform: scaleY(0.5);
  704. transform: scaleY(0.5);
  705. margin-right: 30rpx;
  706. }
  707. }
  708. .content {
  709. width: 100%;
  710. height: 50%;
  711. display: flex;
  712. flex-wrap: wrap;
  713. .block {
  714. width: 100%;
  715. display: flex;
  716. flex-direction: column;
  717. justify-content: center;
  718. align-items: center;
  719. height: 80rpx;
  720. text {
  721. margin-top: 16rpx;
  722. font-size: 28rpx;
  723. color: #606266;
  724. }
  725. }
  726. }
  727. .cancel {
  728. width: 100%;
  729. height: 3rem;
  730. display: flex;
  731. justify-content: center;
  732. align-items: center;
  733. border-top: 1rpx solid #E4E7ED;
  734. }
  735. }
  736. /*********************九宫格********************* */
  737. .Grid {
  738. display: flex;
  739. flex-wrap: wrap;
  740. justify-content: space-between;
  741. align-content: space-between;
  742. // background: #f7f7f7;
  743. padding: 10rpx 0;
  744. .Grid-Item {
  745. width: 50%;
  746. // height: 100px;
  747. text-align: center;
  748. // border: 1rpx solid #ff0000;
  749. box-sizing: border-box;
  750. .icon-item {
  751. width: 220rpx;
  752. height: 220rpx;
  753. }
  754. .GSimg {
  755. width: 96rpx;
  756. height: 96rpx;
  757. margin-top: 42rpx;
  758. margin-left: 75rpx;
  759. .Image {
  760. width: 96rpx;
  761. height: 96rpx;
  762. }
  763. }
  764. .GStitle {
  765. width: 100%;
  766. color: #516d97;
  767. font-size: 28rpx;
  768. text-align: center;
  769. margin-top: -30rpx;
  770. margin-bottom: 30rpx;
  771. }
  772. }
  773. }
  774. .click-hover {
  775. background-color: #d0d0d0;
  776. }
  777. </style>