style(noticePopup): 代码格式化

This commit is contained in:
ywk 2025-04-11 10:43:47 +08:00
parent 6b2e35480b
commit 2d9af0472d
1 changed files with 56 additions and 50 deletions

View File

@ -5,8 +5,13 @@
* @Date: 2022-08-08 10:42:29 * @Date: 2022-08-08 10:42:29
--> -->
<template> <template>
<u-popup :show="noticeFlag" class="notice" width="70%" @close="closeTap" <u-popup
mode="center"> :show="noticeFlag"
class="notice"
width="70%"
@close="closeTap"
mode="center"
>
<div class="title"> <div class="title">
{{ content.title }} {{ content.title }}
</div> </div>
@ -14,17 +19,14 @@
<u-icon name="close"></u-icon> <u-icon name="close"></u-icon>
</div> </div>
<div class="img-auto" v-html="content.content"></div> <div class="img-auto" v-html="content.content"></div>
<!-- <div class="surebtn1">-->
<!-- <div class="btn hh" @click="closeTap">取消</div>-->
<!-- <div class="btn " @click="closeTap">{{ '确认' }}</div>-->
<!-- </div>-->
</u-popup> </u-popup>
</template> </template>
<script> <script>
import * as api from '@/config/login.js' import * as api from '@/config/login.js'
export default { export default {
name: "Title", name: 'Title',
props: { props: {
userInfo: { userInfo: {
type: Object, type: Object,
@ -36,45 +38,47 @@ export default {
data() { data() {
return { return {
noticeFlag: false, noticeFlag: false,
content: "", content: '',
}; }
}, },
mounted() { mounted() {
this.getUserTc(); this.getUserTc()
}, },
methods: { methods: {
closeTap(){ closeTap() {
this.noticeFlag = false this.noticeFlag = false
// this.$emit("getTree"); // this.$emit("getTree");
}, },
getUserTc(data) { getUserTc(data) {
api.indexPopScreen({ api
.indexPopScreen({
grade: this.userInfo.pkGradeId, grade: this.userInfo.pkGradeId,
awards: this.userInfo.pkAwardsId, awards: this.userInfo.pkAwardsId,
}).then((res) => { })
if (res.code == "200") { .then(res => {
let list = JSON.parse(localStorage.getItem("menuList")); if (res.code == '200') {
let arr = res.data[0].publishLocation.split(","); let list = JSON.parse(localStorage.getItem('menuList'))
arr.forEach((items) => { let arr = res.data[0].publishLocation.split(',')
arr.forEach(items => {
if (items == this.publishLocationIndex) { if (items == this.publishLocationIndex) {
this.noticeFlag = true; this.noticeFlag = true
this.content = res.data[0]; this.content = res.data[0]
} }
}); })
} }
}); })
}, },
}, },
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.close-icons{ .close-icons {
position: absolute; position: absolute;
right: 30rpx; right: 30rpx;
top: 30rpx; top: 30rpx;
} }
::v-deep .u-popup__content{ ::v-deep .u-popup__content {
height: 1120rpx; height: 1120rpx;
width: 690rpx; width: 690rpx;
} }
@ -86,12 +90,12 @@ export default {
//visibility: hidden; //visibility: hidden;
color: #333; color: #333;
} }
::v-deep .el-dialog{ ::v-deep .el-dialog {
margin-top:113px !important; margin-top: 113px !important;
height:815px; height: 815px;
margin-bottom: 0; margin-bottom: 0;
} }
::v-deep .el-dialog__body{ ::v-deep .el-dialog__body {
padding-bottom: 20px; padding-bottom: 20px;
} }
.surebtn1 { .surebtn1 {
@ -107,7 +111,9 @@ export default {
border-radius: 6px 6px 6px 6px; border-radius: 6px 6px 6px 6px;
text-align: center; text-align: center;
font-size: 22px; font-size: 22px;
font-family: PingFang SC-Medium, PingFang SC; font-family:
PingFang SC-Medium,
PingFang SC;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
line-height: 66px; line-height: 66px;