style(noticePopup): 代码格式化
This commit is contained in:
parent
6b2e35480b
commit
2d9af0472d
|
@ -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,11 +38,11 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
noticeFlag: false,
|
noticeFlag: false,
|
||||||
content: "",
|
content: '',
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getUserTc();
|
this.getUserTc()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeTap() {
|
closeTap() {
|
||||||
|
@ -48,24 +50,26 @@ export default {
|
||||||
// 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>
|
||||||
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue