index.vue 21 KB

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