flat: 压缩图片,添加消息控制
This commit is contained in:
@@ -78,6 +78,11 @@
|
||||
投诉建议
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<view class="btnList">
|
||||
<image src="../../static/img/vip.svg" mode=""></image>
|
||||
消息提醒
|
||||
<switch class="imgswitch" :checked="user.isEnbleNotice" @change="switch1Change" />
|
||||
</view>
|
||||
<template v-if="user.userIsCms">
|
||||
<view class="btnList" @click="navTo('/pageMy/admin/check')">
|
||||
<image src="../../static/img/check1.png" mode=""></image>
|
||||
@@ -160,6 +165,13 @@ export default {
|
||||
// this.labourUnionInfoInit()
|
||||
},
|
||||
methods: {
|
||||
switch1Change(e) {
|
||||
if (e.detail.value) {
|
||||
this.$store.dispatch('setNoticeOpen');
|
||||
} else {
|
||||
this.$store.dispatch('setNoticeClose');
|
||||
}
|
||||
},
|
||||
labourUnionInfoInit() {
|
||||
labourUnionInfo().then((e) => {
|
||||
this.federationStatus = e.data.data.joined;
|
||||
@@ -247,6 +259,11 @@ page {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.imgswitch {
|
||||
margin-left: auto;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.btnList image {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
@@ -353,4 +370,4 @@ page {
|
||||
font-size: 32rpx;
|
||||
color: #F46161;
|
||||
} */
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user