index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  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. title_lebel: '',
  141. List: [{
  142. id: 1,
  143. img: '/static/logo.png',
  144. title: '民用工程'
  145. },
  146. {
  147. id: 2,
  148. img: '/static/logo.png',
  149. title: '工业工程'
  150. },
  151. {
  152. id: 3,
  153. img: '/static/logo.png',
  154. title: '市政工程'
  155. },
  156. {
  157. id: 4,
  158. img: '/static/logo.png',
  159. title: '碰口作业'
  160. },
  161. {
  162. id: 5,
  163. img: '/static/logo.png',
  164. title: '顶管工程'
  165. },
  166. {
  167. id: 6,
  168. img: '/static/logo.png',
  169. title: '基建工程'
  170. },
  171. {
  172. id: 7,
  173. img: '/static/logo.png',
  174. title: '开栓'
  175. },
  176. {
  177. id: 8,
  178. img: '/static/logo.png',
  179. title: '带气封堵施工'
  180. },
  181. ]
  182. }
  183. },
  184. methods: {
  185. navClick(newId) {
  186. if (newId == 1) {
  187. this.showMinYong()
  188. } else if (newId == 2) {
  189. this.showGongYe();
  190. } else if (newId == 3) {
  191. this.municipalProjectClick();
  192. } else if (newId == 4) {
  193. this.showDangerous();
  194. } else if (newId == 5) {
  195. this.showTopPipe();
  196. } else if (newId == 6) {
  197. this.showInfrastructureDialog();
  198. } else if (newId == 7) {
  199. this.showOpenBolt();
  200. } else if (newId == 8) {
  201. this.showGasSealingDialog();
  202. }
  203. },
  204. // 显示二次弹窗
  205. handleShowSheet() {
  206. this.shareState = true;
  207. },
  208. // 隐藏二次弹窗
  209. handleHiddenShare() {
  210. this.shareState = false;
  211. },
  212. showMinYong() {
  213. this.projectType = 'MinYong';
  214. getDicts("old_renovation").then(response => {
  215. this.OldProjectList = response.data;
  216. });
  217. getDicts("new_built").then(response => {
  218. this.NewProjectList = response.data;
  219. });
  220. this.showPopup = !this.showPopup;
  221. },
  222. //市政工程-首页-点击事件
  223. municipalProjectClick() {
  224. this.projectType = 'ShiZheng';
  225. getDicts("municipal_node_types").then(response => {
  226. this.typeList = response.data;
  227. });
  228. this.handleShowSheet();
  229. },
  230. NewProject(e) {
  231. this.enginType = 'new_built'; //写死
  232. this.enginClassification = e.dictValue;
  233. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  234. this.typeList = ''; //置空
  235. if (e.dictValue == 'indoor_engin') {
  236. //新建室内
  237. getDicts("new_built_indoor_engin").then(response => {
  238. this.typeList = response.data;
  239. });
  240. this.handleShowSheet();
  241. } else if (e.dictValue == 'courtyard') {
  242. //新建庭院
  243. getDicts("new_built_courtyard").then(response => {
  244. this.typeList = response.data;
  245. });
  246. this.handleShowSheet();
  247. } else if (e.dictValue == 'overhead') {
  248. //新建架空
  249. getDicts("new_built_overhead").then(response => {
  250. this.typeList = response.data;
  251. });
  252. this.handleShowSheet();
  253. } else if (e.dictValue == 'bottom_leg') {
  254. //新建底腿
  255. const obj = {
  256. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  257. enginType: this.enginType, //旧改 还是新建 写死
  258. enginClassification: this.enginClassification //室内 庭院 架空
  259. };
  260. uni.navigateTo({
  261. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  262. .stringify(
  263. obj))
  264. })
  265. } else if (e.dictValue == 'not_installed') {
  266. //新建管道施工记录
  267. const obj = {
  268. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  269. enginType: this.enginType, //旧改 还是新建 写死
  270. enginClassification: this.enginClassification //室内 庭院 架空
  271. };
  272. uni.navigateTo({
  273. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  274. .stringify(
  275. obj))
  276. })
  277. } else if (e.dictValue == 'pressure_regulating') {
  278. //调压柜
  279. getDicts("gy_tyg").then(response => {
  280. this.typeList = response.data;
  281. });
  282. this.handleShowSheet();
  283. }
  284. },
  285. OldProject(e) {
  286. this.enginType = 'old_renovation'; //写死
  287. this.enginClassification = e.dictValue;
  288. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  289. this.typeList = ''; //置空
  290. if (e.dictValue == 'indoor_engin') {
  291. //旧改室内
  292. getDicts("old_renovation_indoor_engin").then(response => {
  293. this.typeList = response.data;
  294. });
  295. this.handleShowSheet();
  296. } else if (e.dictValue == 'courtyard') {
  297. //旧改庭院
  298. getDicts("old_renovation_courtyard").then(response => {
  299. this.typeList = response.data;
  300. });
  301. this.handleShowSheet();
  302. } else if (e.dictValue == 'overhead') {
  303. //旧改架空
  304. getDicts("old_renovation_overhead").then(response => {
  305. this.typeList = response.data;
  306. });
  307. this.handleShowSheet();
  308. } else if (e.dictValue == 'bottom_leg') {
  309. //旧改底腿
  310. const obj = {
  311. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  312. enginType: this.enginType, //旧改 还是新建 写死
  313. enginClassification: this.enginClassification //室内 庭院 架空
  314. };
  315. uni.navigateTo({
  316. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  317. .stringify(
  318. obj))
  319. })
  320. } else if (e.dictValue == 'not_installed') {
  321. //旧改管道施工记录
  322. const obj = {
  323. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  324. enginType: this.enginType, //旧改 还是新建 写死
  325. enginClassification: this.enginClassification //室内 庭院 架空
  326. };
  327. uni.navigateTo({
  328. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  329. .stringify(
  330. obj))
  331. })
  332. } else if (e.dictValue == 'pressure_regulating') {
  333. //调压柜
  334. getDicts("gy_tyg").then(response => {
  335. this.typeList = response.data;
  336. });
  337. this.handleShowSheet();
  338. }
  339. },
  340. //二次弹窗 选择类型
  341. showTypeSheet(item) {
  342. if (this.projectType == 'MinYong') {
  343. //this.showPopup = !this.showPopup; //隐藏第一次弹窗
  344. this.enginClassValue = item.dictValue; //二次节点赋值
  345. const obj = {
  346. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  347. enginType: this.enginType, //旧改 还是新建 写死
  348. enginClassification: this.enginClassification //室内 庭院 架空
  349. };
  350. //this.handleHiddenShare();
  351. // 室内
  352. if (this.enginClassification == 'indoor_engin') {
  353. uni.navigateTo({
  354. url: '/pages/oldrenovation/indoor/indoor?params=' + encodeURIComponent(JSON.stringify(
  355. obj))
  356. })
  357. }
  358. // 庭院
  359. else if (this.enginClassification == 'courtyard') {
  360. if (this.enginClassValue == '下沟') {
  361. uni.navigateTo({
  362. url: '/pages/oldrenovation/courtyard/courtyard?params=' + encodeURIComponent(
  363. JSON
  364. .stringify(
  365. obj))
  366. })
  367. } else {
  368. uni.navigateTo({
  369. url: '/pages/oldrenovation/courtyard/newcourtyard?params=' + encodeURIComponent(
  370. JSON
  371. .stringify(
  372. obj))
  373. })
  374. }
  375. } else if (this.enginClassification == 'overhead') { //架空
  376. if (this.enginClassValue == '全貌照片') {
  377. uni.navigateTo({
  378. url: '/pages/oldrenovation/overhead/newoverhead?params=' + encodeURIComponent(JSON
  379. .stringify(
  380. obj))
  381. })
  382. } else {
  383. uni.navigateTo({
  384. url: '/pages/oldrenovation/overhead/overhead?params=' + encodeURIComponent(JSON
  385. .stringify(
  386. obj))
  387. })
  388. }
  389. } else {
  390. //调压柜
  391. uni.navigateTo({
  392. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  393. .stringify(
  394. obj))
  395. })
  396. }
  397. } else if (this.projectType == 'ShiZheng') {
  398. let obj = {
  399. Label: item.dictLabel,
  400. value: item.dictValue
  401. };
  402. uni.navigateTo({
  403. url: '/pages/municipal/municipal?params=' + encodeURIComponent(JSON
  404. .stringify(obj))
  405. });
  406. } else if (this.projectType == 'GongYe') {
  407. let label = '';
  408. if (item.dictLabel == '室内管线' || item.dictLabel == '室外管线' || item.dictLabel == '调压柜') {
  409. switch (item.dictLabel) {
  410. case '室内管线':
  411. label = 'gy_inner '
  412. break
  413. case '室外管线':
  414. label = 'gy_out'
  415. break
  416. case '调压柜':
  417. label = 'gy_tyg'
  418. break
  419. }
  420. this.handleHiddenShare();
  421. this.title_lebel = item.dictValue;
  422. getDicts(label).then(response => {
  423. this.typeList = response.data;
  424. });
  425. this.handleShowSheet();
  426. } else {
  427. let obj = {
  428. value: item.dictValue,
  429. title: this.title_lebel
  430. };
  431. uni.navigateTo({
  432. url: '/pages/enginproject/enginproject?params=' + encodeURIComponent(JSON
  433. .stringify(
  434. obj))
  435. })
  436. }
  437. } else if (this.projectType == 'PengKou') {
  438. if (item.dictLabel == '地埋扳孔' || item.dictLabel == '架空扳孔' || item.dictLabel == '停气作业' || item
  439. .dictLabel == 'PE 封堵' || item.dictLabel == '钢管带气封堵') {
  440. let label = '';
  441. switch (item.dictLabel) {
  442. case '地埋扳孔':
  443. label = 'bury_the_wrench_hole '
  444. break
  445. case '架空扳孔':
  446. label = 'aerial_wrench_hole'
  447. break
  448. case '停气作业':
  449. label = 'shutdown_operation'
  450. break
  451. case 'PE 封堵':
  452. label = 'pe_plugging'
  453. break
  454. case '钢管带气封堵':
  455. label = 'the_steel_pipe_sealed_with_gas'
  456. break
  457. }
  458. this.handleHiddenShare();
  459. this.title_lebel = item.dictValue;
  460. getDicts(label).then(response => {
  461. this.typeList = response.data;
  462. });
  463. this.handleShowSheet();
  464. } else {
  465. let obj = {
  466. value: item.dictValue,
  467. label: item.dictLabel,
  468. title: this.title_lebel,
  469. };
  470. uni.navigateTo({
  471. url: '/pages/collision/collisionMouth?params=' + encodeURIComponent(JSON
  472. .stringify(
  473. obj))
  474. })
  475. }
  476. } else if (this.projectType == 'JiJian') {
  477. let obj = {
  478. value: item.dictValue
  479. };
  480. //this.handleHiddenShare();
  481. uni.navigateTo({
  482. url: '/pages/infrastructure/infrastructure?params=' + encodeURIComponent(JSON
  483. .stringify(
  484. obj))
  485. })
  486. } else if (this.projectType == 'DingGuan') {
  487. let obj = {
  488. value: item.dictValue
  489. };
  490. //this.handleHiddenShare();
  491. uni.navigateTo({
  492. url: '/pages/TopPipeWork/TopPipeWork?params=' + encodeURIComponent(JSON
  493. .stringify(
  494. obj))
  495. })
  496. } else if (this.projectType == 'DaiQiFengDuShiGong') {
  497. let obj = {
  498. Label: item.dictLabel,
  499. value: item.dictValue
  500. };
  501. //this.handleHiddenShare();
  502. uni.navigateTo({
  503. url: '/pages/gas_sealing_project/gas_sealing_project?params=' + encodeURIComponent(JSON
  504. .stringify(
  505. obj))
  506. })
  507. }
  508. },
  509. showGongYe() {
  510. this.projectType = 'GongYe';
  511. //工业工程
  512. getDicts("engin_classification").then(response => {
  513. this.typeList = response.data;
  514. });
  515. this.handleShowSheet();
  516. },
  517. showTopPipe() {
  518. this.projectType = 'DingGuan';
  519. getDicts("pipe_jack").then(response => {
  520. this.typeList = response.data;
  521. });
  522. this.handleShowSheet();
  523. },
  524. showInfrastructureDialog() {
  525. this.projectType = 'JiJian';
  526. //基建工程
  527. getDicts("engineering_infrastructure").then(response => {
  528. this.typeList = response.data;
  529. });
  530. this.handleShowSheet();
  531. },
  532. showDangerous() {
  533. // uni.navigateTo({
  534. // url: '/pages/dangerous/dangerous'
  535. // })
  536. this.projectType = 'PengKou';
  537. getDicts("tapping_operation").then(response => {
  538. this.typeList = response.data;
  539. });
  540. this.handleShowSheet();
  541. },
  542. showOpenBolt() {
  543. let obj = {
  544. type: 'new'
  545. };
  546. uni.navigateTo({
  547. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  548. .stringify(
  549. obj))
  550. })
  551. },
  552. showGasSealingDialog() {
  553. this.projectType = 'DaiQiFengDuShiGong';
  554. //基建工程
  555. getDicts("air_wall_node").then(response => {
  556. this.typeList = response.data;
  557. });
  558. this.handleShowSheet();
  559. },
  560. }
  561. }
  562. </script>
  563. <style lang="scss">
  564. /* #ifndef APP-NVUE */
  565. page {
  566. display: flex;
  567. flex-direction: column;
  568. box-sizing: border-box;
  569. background-color: #fff;
  570. min-height: 100%;
  571. height: auto;
  572. }
  573. view {
  574. font-size: 14px;
  575. line-height: inherit;
  576. }
  577. .work-container {
  578. display: flex;
  579. flex-direction: column;
  580. }
  581. /* #endif */
  582. .text {
  583. text-align: center;
  584. font-size: 26rpx;
  585. margin-top: 10rpx;
  586. }
  587. .grid-item-box {
  588. flex: 1;
  589. /* #ifndef APP-NVUE */
  590. display: flex;
  591. /* #endif */
  592. flex-direction: column;
  593. align-items: center;
  594. justify-content: center;
  595. padding: 15px 0;
  596. }
  597. .uni-margin-wrap {
  598. width: 690rpx;
  599. width: 100%;
  600. ;
  601. }
  602. .swiper {
  603. height: 300rpx;
  604. }
  605. .swiper-box {
  606. height: 150px;
  607. }
  608. .swiper-item {
  609. /* #ifndef APP-NVUE */
  610. display: flex;
  611. /* #endif */
  612. flex-direction: column;
  613. justify-content: center;
  614. align-items: center;
  615. color: #fff;
  616. height: 300rpx;
  617. line-height: 300rpx;
  618. }
  619. @media screen and (min-width: 500px) {
  620. .uni-swiper-dot-box {
  621. width: 400px;
  622. /* #ifndef APP-NVUE */
  623. margin: 0 auto;
  624. /* #endif */
  625. margin-top: 8px;
  626. }
  627. .image {
  628. width: 100%;
  629. }
  630. }
  631. // 弹窗效果
  632. .popup {
  633. position: fixed;
  634. bottom: 0;
  635. left: 0;
  636. width: 100%;
  637. background-color: #fff;
  638. // padding: 20rpx;
  639. box-sizing: border-box;
  640. z-index: 999;
  641. border-top-left-radius: 40rpx;
  642. border-top-right-radius: 40rpx;
  643. }
  644. // 遮罩层
  645. .mask {
  646. position: fixed;
  647. top: 0;
  648. left: 0;
  649. width: 100%;
  650. height: 100%;
  651. background-color: rgba(0, 0, 0, 0.5);
  652. z-index: 888;
  653. }
  654. // 弹窗内容
  655. .content {
  656. .top40 {
  657. margin-top: 30rpx;
  658. }
  659. .line1 {
  660. text-align: center;
  661. display: flex;
  662. justify-content: start;
  663. align-items: center;
  664. padding: 20rpx;
  665. }
  666. .btn-grp {
  667. display: flex;
  668. .btn-grp-item {
  669. width: 33%;
  670. display: flex;
  671. flex-direction: column;
  672. align-items: center;
  673. text-align: center;
  674. .line2-btn-big {
  675. width: 90rpx;
  676. height: 90rpx;
  677. margin-bottom: 10rpx;
  678. }
  679. }
  680. }
  681. .line2 {
  682. padding: 20rpx;
  683. // border-bottom: 1px solid black;
  684. view {
  685. margin-bottom: 10rpx;
  686. }
  687. }
  688. }
  689. // 按钮样式
  690. .btn-group {
  691. box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
  692. /* 示例阴影参数,根据需要进行调整 */
  693. .btn_position {
  694. display: flex;
  695. width: 100%;
  696. .cancel {
  697. width: 50%;
  698. text-align: center;
  699. padding: 20rpx 0;
  700. color: #519fe7;
  701. }
  702. .submit {
  703. width: 50%;
  704. background-color: #519fe7;
  705. text-align: center;
  706. padding: 20rpx 0;
  707. color: #fff;
  708. }
  709. }
  710. }
  711. .share {
  712. width: 100%;
  713. height: 100%;
  714. }
  715. .share-box {
  716. width: 100%;
  717. height: 100%;
  718. position: fixed;
  719. top: 0rpx;
  720. left: 0rpx;
  721. bottom: 0rpx;
  722. right: 0rpx;
  723. background-color: rgba(0, 0, 0, 0.4);
  724. transition: .3s;
  725. z-index: 999;
  726. }
  727. // 进入分享动画
  728. .share-show {
  729. transition: all 0.3s ease;
  730. transform: translateY(0%) !important;
  731. }
  732. .scroll-Y {
  733. height: 350rpx;
  734. }
  735. // 离开分享动画
  736. .share-item {
  737. position: fixed;
  738. left: 0;
  739. bottom: 0;
  740. width: 100%;
  741. height: auto;
  742. background-color: #FFFFFF;
  743. transition: all 0.3s ease;
  744. transform: translateY(100%);
  745. z-index: 1999;
  746. border-top-left-radius: 40rpx;
  747. border-top-right-radius: 40rpx;
  748. .share-to {
  749. width: 100%;
  750. height: 3rem;
  751. display: flex;
  752. justify-content: center;
  753. align-items: center;
  754. &::after {
  755. content: '';
  756. width: 240rpx;
  757. height: 0rpx;
  758. border-top: 1px solid #E4E7ED;
  759. -webkit-transform: scaleY(0.5);
  760. transform: scaleY(0.5);
  761. margin-left: 30rpx;
  762. }
  763. &::before {
  764. content: '';
  765. width: 240rpx;
  766. height: 0rpx;
  767. border-top: 1px solid #E4E7ED;
  768. -webkit-transform: scaleY(0.5);
  769. transform: scaleY(0.5);
  770. margin-right: 30rpx;
  771. }
  772. }
  773. .content {
  774. width: 100%;
  775. height: 50%;
  776. display: flex;
  777. flex-wrap: wrap;
  778. .block {
  779. width: 100%;
  780. display: flex;
  781. flex-direction: column;
  782. justify-content: center;
  783. align-items: center;
  784. height: 80rpx;
  785. text {
  786. margin-top: 16rpx;
  787. font-size: 28rpx;
  788. color: #606266;
  789. }
  790. }
  791. }
  792. .cancel {
  793. width: 100%;
  794. height: 3rem;
  795. display: flex;
  796. justify-content: center;
  797. align-items: center;
  798. border-top: 1rpx solid #E4E7ED;
  799. }
  800. }
  801. /*********************九宫格********************* */
  802. .Grid {
  803. display: flex;
  804. flex-wrap: wrap;
  805. justify-content: space-between;
  806. align-content: space-between;
  807. // background: #f7f7f7;
  808. padding: 10rpx 0;
  809. .Grid-Item {
  810. width: 50%;
  811. // height: 100px;
  812. text-align: center;
  813. // border: 1rpx solid #ff0000;
  814. box-sizing: border-box;
  815. .icon-item {
  816. width: 220rpx;
  817. height: 220rpx;
  818. }
  819. .GSimg {
  820. width: 96rpx;
  821. height: 96rpx;
  822. margin-top: 42rpx;
  823. margin-left: 75rpx;
  824. .Image {
  825. width: 96rpx;
  826. height: 96rpx;
  827. }
  828. }
  829. .GStitle {
  830. width: 100%;
  831. color: #516d97;
  832. font-size: 28rpx;
  833. text-align: center;
  834. margin-top: -30rpx;
  835. margin-bottom: 30rpx;
  836. }
  837. }
  838. }
  839. .click-hover {
  840. background-color: #d0d0d0;
  841. }
  842. </style>