12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052 |
- <template>
- <view class="work-container">
- <view style="work-banner">
- <image :src="loadImgSrc('work-banner.png')" style="width: 100%;height:43vh"></image>
- <view style="float: left;top: 100px;margin-left: 20px;">{{nickName}}:欢迎登录</view>
- </view>
- <view class="grid-body">
- <view class="Grid">
- <view class="Grid-Item" v-for="item in List" :key="item.id" @click="navClick(item.id)"
- hover-class="click-hover" hover-start-time="50" hover-stay-time="50"
- v-if="userRole.includes(item.title)">
- <image class="icon-item" :src="loadImgSrc('mygc.png')" v-if="item.title == '民用工程'"></image>
- <image class="icon-item" :src="loadImgSrc('gygc.png')" v-if="item.title == '工业工程'"></image>
- <image class="icon-item" :src="loadImgSrc('szgc.png')" v-if="item.title == '市政工程'"></image>
- <image class="icon-item" :src="loadImgSrc('wxzy.png')" v-if="item.title == '碰口作业'"></image>
- <image class="icon-item" :src="loadImgSrc('dggc.png')" v-if="item.title == '顶管工程'"></image>
- <image class="icon-item" :src="loadImgSrc('jjgc.png')" v-if="item.title == '基建工程'"></image>
- <image class="icon-item" :src="loadImgSrc('open_bolt.png')" v-if="item.title == '开栓'"></image>
- <!-- <image class="icon-item" :src="loadImgSrc('gas_sealing.png')" v-if="item.title == '带气封堵施工'"></image> -->
- <view class="GStitle">{{ item.title }}</view>
- </view>
- </view>
- <view v-if="showPopup" class="popup">
- <view class="content">
- <view class="line1 top40">
- <view style="width: 61rpx;
- color: #CEB98D;
- height: 61rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- border: 3px solid #CEB98D;
- border-radius: 50%; margin-right: 20rpx;">旧</view>
- <view>旧改工程</view>
- </view>
- <view class="line2 btn-grp">
- <view class="btn-grp-item" v-for="(item, index) in OldProjectList" :key="index"
- @click="OldProject(item)">
- <image :src="loadImgSrc('sn.png')" class="line2-btn-big" v-if="item.dictLabel == '室内'">
- </image>
- <image :src="loadImgSrc('ty.png')" class="line2-btn-big" v-if="item.dictLabel == '庭院'">
- </image>
- <image :src="loadImgSrc('jk.png')" class="line2-btn-big" v-if="item.dictLabel == '架空'">
- </image>
- <image :src="loadImgSrc('dt.png')" class="line2-btn-big" v-if="item.dictLabel == '底腿'">
- </image>
- <image :src="loadImgSrc('gd.png')" class="line2-btn-big" v-if="item.dictLabel == '未安装'">
- </image>
- <image :src="loadImgSrc('gd.png')" class="line2-btn-big" v-if="item.dictLabel == '调压柜'">
- </image>
- {{item.dictLabel}}
- </view>
- </view>
- <view class="line1">
- <view style="width: 61rpx;
- color: #85c9c2;
- height: 61rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- border: 3px solid #85c9c2;
- border-radius: 50%; margin-right: 20rpx;">新</view>
- <view>新建工程</view>
- </view>
- <view class="line2 btn-grp">
- <view class="btn-grp-item" v-for="(item, index) in NewProjectList" :key="index"
- @click="NewProject(item)">
- <image :src="loadImgSrc('sn2.png')" class="line2-btn-big" v-if="item.dictLabel == '室内'">
- </image>
- <image :src="loadImgSrc('ty2.png')" class="line2-btn-big" v-if="item.dictLabel == '庭院'">
- </image>
- <image :src="loadImgSrc('jk2.png')" class="line2-btn-big" v-if="item.dictLabel == '架空'">
- </image>
- <image :src="loadImgSrc('dt2.png')" class="line2-btn-big" v-if="item.dictLabel == '底腿'">
- </image>
- <image :src="loadImgSrc('gd2.png')" class="line2-btn-big" v-if="item.dictLabel == '未安装'">
- </image>
- <image :src="loadImgSrc('gd2.png')" class="line2-btn-big" v-if="item.dictLabel == '调压柜'">
- </image>
- {{item.dictLabel}}
- </view>
- </view>
- </view>
- <!-- <view class="btn-group">
- <view class="btn_position">
- <view class="cancel" @click="showMinYong">取消</view>
- </view>
- </view> -->
- </view>
- <view v-if="showPopup" class="mask" @click="showMinYong"></view>
- </view>
- <view class="share">
- <view :class="{'share-box': shareState}" @click="handleHiddenShare">
- </view>
- <view class="share-item" :class="{'share-show': shareState}">
- <view class="share-to">
- <text>请选择</text>
- </view>
- <scroll-view scroll-y="true" class="scroll-Y">
- <view class="content">
- <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)">
- <!-- <image :src="item.image" mode="aspectFill"></image> -->
- <text>{{item.dictLabel}}</text>
- </view>
- </view>
- </scroll-view>
- <view class="cancel" @click.stop="handleHiddenShare">
- <text>取消</text>
- </view>
- </view>
- </view>
- <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="title"
- subtitleKey="id" v-model="name"></SelectPicker>
- </view>
- </view>
- </template>
- <script>
- import SelectPicker from '../../components/selectPicker/select_picker.vue'
- import {
- getDicts
- } from "@/api/system/dict/data";
- import {
- getUserRole
- } from '@/utils/auth';
- import user from '@/store/modules/user'
- import {
- getEnginProjectList,
- getMunicipalProjectList,
- getCollisionProjectList,
- getTopPipeNameList,
- } from '@/api/common';
- export default {
- components: {
- SelectPicker,
- },
- data() {
- return {
- nickName: user.state.nickName,
- userRole: getUserRole(),
- showPopup: false,
- shareState: false,
- array: [],
- projectType: '', //工程类型
- OldProjectList: '', //旧改工程
- NewProjectList: '', //民用工程
- typeList: '', //二次弹窗数据
- enginType: '',
- enginClassification: '', // 旧改节点 数据字典
- enginClassValue: '', //二次节点 数据字典
- current: 0,
- swiperDotIndex: 0,
- title_lebel: '',
- List: [{
- id: 1,
- img: '/static/logo.png',
- title: '民用工程'
- },
- {
- id: 2,
- img: '/static/logo.png',
- title: '工业工程'
- },
- {
- id: 3,
- img: '/static/logo.png',
- title: '市政工程'
- },
- {
- id: 4,
- img: '/static/logo.png',
- title: '碰口作业'
- },
- {
- id: 5,
- img: '/static/logo.png',
- title: '顶管工程'
- },
- {
- id: 6,
- img: '/static/logo.png',
- title: '基建工程'
- },
- {
- id: 7,
- img: '/static/logo.png',
- title: '开栓'
- },
- {
- id: 8,
- img: '/static/logo.png',
- title: '带气封堵施工'
- },
- ],
- selectList: [],
- open: false,
- id: '',
- enginName: '',
- enginType: '',
- address: '',
- GYClassification: [],
- }
- },
- methods: { //关闭弹窗
- close(e) {
- this.open = false
- },
- changeSelect(item, index) {
- this.open = false;
- this.typeList = [];
- if (this.projectType == 'GongYe') {
- this.enginName = item.name;
- this.enginType = item.enginType;
- // //工业工程
- // getDicts("engin_classification").then(response => {
- // this.typeList = response.data;
- // });
- // this.handleShowSheet();
- this.GYClassification = item.enginClassification;
- this.typeList = this.GYClassification;
- this.handleShowSheet();
- } else if (this.projectType == 'ShiZheng') {
- this.id = item.id;
- this.enginName = item.name;
- this.enginType = item.enginType;
- getDicts("municipal_node_types").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (this.projectType == 'DingGuan') {
- this.id = item.id;
- this.enginName = item.name;
- this.enginType = item.enginType;
- getDicts("pipe_jack").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (this.projectType == 'PengKou') {
- this.id = item.id;
- this.enginName = item.name;
- this.enginType = item.enginType;
- this.address = item.locations;
- getDicts(item.modeOperation).then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- }
- },
- navClick(newId) {
- if (newId == 1) {
- this.showMinYong()
- } else if (newId == 2) {
- this.showGongYe();
- } else if (newId == 3) {
- this.municipalProjectClick();
- } else if (newId == 4) {
- this.showDangerous();
- } else if (newId == 5) {
- this.showTopPipe();
- } else if (newId == 6) {
- this.showInfrastructureDialog();
- } else if (newId == 7) {
- this.showOpenBolt();
- } else if (newId == 8) {
- this.showGasSealingDialog();
- }
- },
- // 显示二次弹窗
- handleShowSheet() {
- this.shareState = true;
- },
- // 隐藏二次弹窗
- handleHiddenShare() {
- this.shareState = false;
- },
- showMinYong() {
- this.projectType = 'MinYong';
- getDicts("old_renovation").then(response => {
- this.OldProjectList = response.data;
- });
- getDicts("new_built").then(response => {
- this.NewProjectList = response.data;
- });
- this.showPopup = !this.showPopup;
- },
- //市政工程-首页-点击事件
- municipalProjectClick() {
- this.projectType = 'ShiZheng';
- this.open = true;
- getMunicipalProjectList().then(res => {
- let list = res.data;
- let mList = [];
- list.forEach((item, index) => {
- mList.push({
- id: item.id,
- name: item.name,
- enginType: item.enginType,
- title: item.name + " - " + item.enginType
- })
- })
- this.selectList = mList;
- })
- },
- NewProject(e) {
- this.enginType = 'new_built'; //写死
- this.enginClassification = e.dictValue;
- this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
- this.typeList = ''; //置空
- if (e.dictValue == 'indoor_engin') {
- //新建室内
- getDicts("new_built_indoor_engin").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (e.dictValue == 'courtyard') {
- //新建庭院
- getDicts("new_built_courtyard").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (e.dictValue == 'overhead') {
- //新建架空
- getDicts("new_built_overhead").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (e.dictValue == 'bottom_leg') {
- //新建底腿
- const obj = {
- enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
- enginType: this.enginType, //旧改 还是新建 写死
- enginClassification: this.enginClassification //室内 庭院 架空
- };
- uni.navigateTo({
- url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (e.dictValue == 'not_installed') {
- //新建管道施工记录
- const obj = {
- enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
- enginType: this.enginType, //旧改 还是新建 写死
- enginClassification: this.enginClassification //室内 庭院 架空
- };
- uni.navigateTo({
- url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (e.dictValue == 'pressure_regulating') {
- //调压柜
- const obj = {
- enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
- enginType: this.enginType, //旧改 还是新建 写死
- enginClassification: this.enginClassification //室内 庭院 架空
- };
- uni.navigateTo({
- url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- // getDicts("gy_tyg").then(response => {
- // this.typeList = response.data;
- // });
- // this.handleShowSheet();
- }
- },
- OldProject(e) {
- this.enginType = 'old_renovation'; //写死
- this.enginClassification = e.dictValue;
- this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
- this.typeList = ''; //置空
- if (e.dictValue == 'indoor_engin') {
- //旧改室内
- getDicts("old_renovation_indoor_engin").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (e.dictValue == 'courtyard') {
- //旧改庭院
- getDicts("old_renovation_courtyard").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (e.dictValue == 'overhead') {
- //旧改架空
- getDicts("old_renovation_overhead").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else if (e.dictValue == 'bottom_leg') {
- //旧改底腿
- const obj = {
- enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
- enginType: this.enginType, //旧改 还是新建 写死
- enginClassification: this.enginClassification //室内 庭院 架空
- };
- uni.navigateTo({
- url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (e.dictValue == 'not_installed') {
- //旧改管道施工记录
- const obj = {
- enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
- enginType: this.enginType, //旧改 还是新建 写死
- enginClassification: this.enginClassification //室内 庭院 架空
- };
- uni.navigateTo({
- url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (e.dictValue == 'pressure_regulating') {
- //调压柜
- const obj = {
- enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
- enginType: this.enginType, //旧改 还是新建 写死
- enginClassification: this.enginClassification //室内 庭院 架空
- };
- uni.navigateTo({
- url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- // uni.navigateTo({
- // url: '/pages/DailyLog/daily_log?params=' + encodeURIComponent(JSON
- // .stringify(
- // obj))
- // })
- // getDicts("gy_tyg").then(response => {
- // this.typeList = response.data;
- // });
- // this.handleShowSheet();
- }
- },
- //二次弹窗 选择类型
- showTypeSheet(item) {
- if (this.projectType == 'MinYong') {
- //this.showPopup = !this.showPopup; //隐藏第一次弹窗
- this.enginClassValue = item.dictValue; //二次节点赋值
- const obj = {
- enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
- enginType: this.enginType, //旧改 还是新建 写死
- enginClassification: this.enginClassification //室内 庭院 架空
- };
- //this.handleHiddenShare();
- // 室内
- if (this.enginClassification == 'indoor_engin') {
- uni.navigateTo({
- url: '/pages/oldrenovation/indoor/indoor?params=' + encodeURIComponent(JSON.stringify(
- obj))
- })
- }
- // 庭院
- else if (this.enginClassification == 'courtyard') {
- if (this.enginClassValue == '下沟') {
- uni.navigateTo({
- url: '/pages/oldrenovation/courtyard/courtyard?params=' + encodeURIComponent(
- JSON
- .stringify(
- obj))
- })
- } else {
- uni.navigateTo({
- url: '/pages/oldrenovation/courtyard/newcourtyard?params=' + encodeURIComponent(
- JSON
- .stringify(
- obj))
- })
- }
- } else if (this.enginClassification == 'overhead') { //架空
- if (this.enginClassValue == '全貌照片') {
- uni.navigateTo({
- url: '/pages/oldrenovation/overhead/newoverhead?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else {
- uni.navigateTo({
- url: '/pages/oldrenovation/overhead/overhead?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- }
- }
- // else {
- // //调压柜
- // uni.navigateTo({
- // url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
- // .stringify(
- // obj))
- // })
- // }
- } else if (this.projectType == 'ShiZheng') {
- let obj = {
- id: this.id,
- Label: item.dictLabel,
- value: item.dictValue,
- title: item.dictLabel
- };
- uni.navigateTo({
- url: '/pages/municipal/municipal?params=' + encodeURIComponent(JSON
- .stringify(obj))
- });
- } else if (this.projectType == 'GongYe') {
- if (item.dictLabel == '室内管线' || item.dictLabel == '庭院' || item.dictLabel == '架空管线') {
- this.handleHiddenShare();
- this.title_lebel = item.dictValue;
- getDicts(item.dictType).then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- } else {
- let obj = ''
- if (item.dictLabel == '每日施工日志') {
- obj = {
- value: item.dictValue,
- title: item.dictLabel,
- name: this.enginName,
- enginType: this.enginType,
- };
- } else {
- obj = {
- value: item.dictValue,
- title: this.title_lebel,
- name: this.enginName,
- enginType: this.enginType,
- };
- }
- uni.navigateTo({
- url: '/pages/enginproject/enginproject?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- }
- } else if (this.projectType == 'PengKou') {
- let obj = {
- id: this.id,
- value: item.dictValue,
- title: item.dictLabel,
- name: this.enginName,
- address: this.address
- };
- uni.navigateTo({
- url: '/pages/collision/collisionMouth?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (this.projectType == 'JiJian') {
- let obj = {
- value: item.dictValue,
- name: this.enginName,
- enginType: this.enginType,
- };
- //this.handleHiddenShare();
- uni.navigateTo({
- url: '/pages/infrastructure/infrastructure?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (this.projectType == 'DingGuan') {
- let obj = {
- id: this.id,
- value: item.dictValue
- };
- //this.handleHiddenShare();
- uni.navigateTo({
- url: '/pages/TopPipeWork/TopPipeWork?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (this.projectType == 'DaiQiFengDuShiGong') {
- let obj = {
- Label: item.dictLabel,
- value: item.dictValue
- };
- //this.handleHiddenShare();
- uni.navigateTo({
- url: '/pages/gas_sealing_project/gas_sealing_project?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- }
- },
- showGongYe() {
- this.projectType = 'GongYe';
- // //工业工程
- // getDicts("engin_classification").then(response => {
- // this.typeList = response.data;
- // });
- // this.handleShowSheet();
- this.open = true;
- getEnginProjectList().then(res => {
- let list = res.data;
- let mList = [];
- list.forEach((item, index) => {
- mList.push({
- name: item.name,
- enginType: item.enginType,
- title: item.name + " - " + item.enginType,
- enginClassification: item.enginClassification
- })
- })
- this.selectList = mList;
- })
- },
- showTopPipe() {
- this.projectType = 'DingGuan';
- this.open = true;
- getTopPipeNameList().then(response => {
- let list = response.data;
- let mList = [];
- list.forEach((item, index) => {
- mList.push({
- id: item.id,
- name: item.name,
- title: item.name
- })
- })
- this.selectList = mList;
- });
- },
- showInfrastructureDialog() {
- this.projectType = 'JiJian';
- //基建工程
- getDicts("engineering_infrastructure").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- },
- showDangerous() {
- this.projectType = 'PengKou';
- this.open = true;
- //请求
- getCollisionProjectList().then(response => {
- let list = response.data;
- let mList = [];
- list.forEach((item, index) => {
- mList.push({
- id: item.id,
- name: item.name,
- title: item.name,
- locations: item.locations,
- modeOperation: item.modeOperation
- })
- })
- this.selectList = mList;
- });
- },
- showOpenBolt() {
- let obj = {
- type: 'new'
- };
- uni.navigateTo({
- url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- },
- showGasSealingDialog() {
- this.projectType = 'DaiQiFengDuShiGong';
- //基建工程
- getDicts("air_wall_node").then(response => {
- this.typeList = response.data;
- });
- this.handleShowSheet();
- },
- }
- }
- </script>
- <style lang="scss">
- /* #ifndef APP-NVUE */
- page {
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- background-color: #fff;
- min-height: 100%;
- height: auto;
- }
- view {
- font-size: 14px;
- line-height: inherit;
- }
- .work-container {
- display: flex;
- flex-direction: column;
- }
- /* #endif */
- .text {
- text-align: center;
- font-size: 26rpx;
- margin-top: 10rpx;
- }
- .grid-item-box {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 15px 0;
- }
- .uni-margin-wrap {
- width: 690rpx;
- width: 100%;
- ;
- }
- .swiper {
- height: 300rpx;
- }
- .swiper-box {
- height: 150px;
- }
- .swiper-item {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- color: #fff;
- height: 300rpx;
- line-height: 300rpx;
- }
- @media screen and (min-width: 500px) {
- .uni-swiper-dot-box {
- width: 400px;
- /* #ifndef APP-NVUE */
- margin: 0 auto;
- /* #endif */
- margin-top: 8px;
- }
- .image {
- width: 100%;
- }
- }
- // 弹窗效果
- .popup {
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- background-color: #fff;
- // padding: 20rpx;
- box-sizing: border-box;
- z-index: 999;
- border-top-left-radius: 40rpx;
- border-top-right-radius: 40rpx;
- }
- // 遮罩层
- .mask {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5);
- z-index: 888;
- }
- // 弹窗内容
- .content {
- .top40 {
- margin-top: 30rpx;
- }
- .line1 {
- text-align: center;
- display: flex;
- justify-content: start;
- align-items: center;
- padding: 20rpx;
- }
- .btn-grp {
- display: flex;
- .btn-grp-item {
- width: 33%;
- display: flex;
- flex-direction: column;
- align-items: center;
- text-align: center;
- .line2-btn-big {
- width: 90rpx;
- height: 90rpx;
- margin-bottom: 10rpx;
- }
- }
- }
- .line2 {
- padding: 20rpx;
- // border-bottom: 1px solid black;
- view {
- margin-bottom: 10rpx;
- }
- }
- }
- // 按钮样式
- .btn-group {
- box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
- /* 示例阴影参数,根据需要进行调整 */
- .btn_position {
- display: flex;
- width: 100%;
- .cancel {
- width: 50%;
- text-align: center;
- padding: 20rpx 0;
- color: #519fe7;
- }
- .submit {
- width: 50%;
- background-color: #519fe7;
- text-align: center;
- padding: 20rpx 0;
- color: #fff;
- }
- }
- }
- .share {
- width: 100%;
- height: 100%;
- }
- .share-box {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0rpx;
- left: 0rpx;
- bottom: 0rpx;
- right: 0rpx;
- background-color: rgba(0, 0, 0, 0.4);
- transition: .3s;
- z-index: 999;
- }
- // 进入分享动画
- .share-show {
- transition: all 0.3s ease;
- transform: translateY(0%) !important;
- }
- .scroll-Y {
- height: 350rpx;
- }
- // 离开分享动画
- .share-item {
- position: fixed;
- left: 0;
- bottom: 0;
- width: 100%;
- height: auto;
- background-color: #FFFFFF;
- transition: all 0.3s ease;
- transform: translateY(100%);
- z-index: 1999;
- border-top-left-radius: 40rpx;
- border-top-right-radius: 40rpx;
- .share-to {
- width: 100%;
- height: 3rem;
- display: flex;
- justify-content: center;
- align-items: center;
- &::after {
- content: '';
- width: 240rpx;
- height: 0rpx;
- border-top: 1px solid #E4E7ED;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- margin-left: 30rpx;
- }
- &::before {
- content: '';
- width: 240rpx;
- height: 0rpx;
- border-top: 1px solid #E4E7ED;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- margin-right: 30rpx;
- }
- }
- .content {
- width: 100%;
- height: 50%;
- display: flex;
- flex-wrap: wrap;
- .block {
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- height: 80rpx;
- text {
- margin-top: 16rpx;
- font-size: 28rpx;
- color: #606266;
- }
- }
- }
- .cancel {
- width: 100%;
- height: 3rem;
- display: flex;
- justify-content: center;
- align-items: center;
- border-top: 1rpx solid #E4E7ED;
- }
- }
- /*********************九宫格********************* */
- .Grid {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- align-content: space-between;
- // background: #f7f7f7;
- padding: 10rpx 0;
- .Grid-Item {
- width: 50%;
- // height: 100px;
- text-align: center;
- // border: 1rpx solid #ff0000;
- box-sizing: border-box;
- .icon-item {
- width: 220rpx;
- height: 220rpx;
- }
- .GSimg {
- width: 96rpx;
- height: 96rpx;
- margin-top: 42rpx;
- margin-left: 75rpx;
- .Image {
- width: 96rpx;
- height: 96rpx;
- }
- }
- .GStitle {
- width: 100%;
- color: #516d97;
- font-size: 28rpx;
- text-align: center;
- margin-top: -30rpx;
- margin-bottom: 30rpx;
- }
- }
- }
- .click-hover {
- background-color: #d0d0d0;
- }
- </style>
|