index.vue 23 KB

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