index.vue 23 KB

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