|
@@ -2,39 +2,24 @@
|
|
|
<view class="notice-container">
|
|
|
<!-- 返回按钮 -->
|
|
|
<back text="通知"></back>
|
|
|
- <!-- <p class="notice-title">通知</p> -->
|
|
|
+
|
|
|
<view class="notice-wrap">
|
|
|
- <view class="notice-item">
|
|
|
- <view class="notice-item-title">
|
|
|
- <view class="left">
|
|
|
- <view class="t-icon t-icon-shuju" ></view>成绩通知
|
|
|
- </view>
|
|
|
- <text>12分钟前</text>
|
|
|
- </view>
|
|
|
- <view class="notice-item-content">您的孩子【张梅】在 【青城山学校】的【2020年语文期末测试】成绩已经生成,请点击查看详情 > </view>
|
|
|
- <image class="notice-item-poster" src="https://image.meiye.art/pic_9ikZaVYnJE38Ao6AZlVIx?imageMogr2/thumbnail/450x/interlace/1" mode="widthFix"></image>
|
|
|
- </view>
|
|
|
- <view class="notice-item">
|
|
|
- <view class="notice-item-title">
|
|
|
- <view class="left">
|
|
|
- <view class="t-icon t-icon-tishi" ></view>系统通知
|
|
|
- </view>
|
|
|
- <text>12分钟前</text>
|
|
|
- </view>
|
|
|
- <view class="notice-item-content">您以成功绑定【青城山学校】【五年级8班】【张梅】学生。</view>
|
|
|
- <image class="notice-item-poster" src="https://image.meiye.art/pic_ucQUd7WwkuW1vKvjbgUlv?imageMogr2/thumbnail/450x/interlace/1" mode="widthFix"></image>
|
|
|
- </view>
|
|
|
- <view class="notice-item">
|
|
|
+
|
|
|
+ <view class="notice-item" v-for="(item,index) in myData.msgList" :key="index">
|
|
|
<view class="notice-item-title">
|
|
|
<view class="left">
|
|
|
- <view class="t-icon t-icon-bianji" ></view>任务通知
|
|
|
+ <view :class="item.icon"></view>{{item.title}}
|
|
|
</view>
|
|
|
- <text>12分钟前</text>
|
|
|
+ <text>{{item.msgTime}}</text>
|
|
|
</view>
|
|
|
- <view class="notice-item-content">您的孩子【张梅】班主任李老师给您发布一个新的问卷活动【周末孩子表现问卷调查】,快去填写吧 ></view>
|
|
|
- <image class="notice-item-poster" src="https://image.meiye.art/pic_1628927180566LfOmH3IV5i24Mmc65BGE0?imageMogr2/thumbnail/450x/interlace/1" mode="widthFix"></image>
|
|
|
+ <view class="notice-item-content">{{item.content}}</view>
|
|
|
+ <image class="notice-item-poster"
|
|
|
+ :src="item.image"
|
|
|
+ mode="widthFix"></image>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -49,7 +34,9 @@
|
|
|
...mapState('m_parent', ['myData'])
|
|
|
},
|
|
|
data() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+
|
|
|
+ };
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations('m_parent', ['updateMyMsg']),
|
|
@@ -67,60 +54,62 @@
|
|
|
.u-alert-item {
|
|
|
margin: 20rpx;
|
|
|
}
|
|
|
-
|
|
|
- .notice-container{
|
|
|
- .notice-title{
|
|
|
+
|
|
|
+ .notice-container {
|
|
|
+ .notice-title {
|
|
|
font-size: 48rpx;
|
|
|
padding-left: 40rpx;
|
|
|
}
|
|
|
-
|
|
|
- .notice-wrap{
|
|
|
+
|
|
|
+ .notice-wrap {
|
|
|
padding: 40rpx;
|
|
|
-
|
|
|
- .notice-item{
|
|
|
+
|
|
|
+ .notice-item {
|
|
|
// width: 100%;
|
|
|
// height: 400rpx;
|
|
|
border-radius: $card-border-radius;
|
|
|
margin-bottom: 40rpx;
|
|
|
background-color: #fff;
|
|
|
padding: 30rpx;
|
|
|
- &-title{
|
|
|
+
|
|
|
+ &-title {
|
|
|
font-size: 32rpx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- .t-icon{
|
|
|
+
|
|
|
+ .t-icon {
|
|
|
display: inline-block;
|
|
|
margin-right: 10rpx;
|
|
|
width: 40rpx;
|
|
|
height: 40rpx;
|
|
|
}
|
|
|
-
|
|
|
- .left{
|
|
|
+
|
|
|
+ .left {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
-
|
|
|
- text{
|
|
|
+
|
|
|
+ text {
|
|
|
font-size: 24rpx;
|
|
|
color: #848587;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- &-content{
|
|
|
+
|
|
|
+ &-content {
|
|
|
font-size: 24rpx;
|
|
|
margin: 16rpx 0;
|
|
|
color: #6c6c6c;
|
|
|
- display: -webkit-box!important;
|
|
|
+ display: -webkit-box !important;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
word-break: break-all;
|
|
|
-webkit-line-clamp: 2;
|
|
|
- -webkit-box-orient: vertical!important;
|
|
|
+ -webkit-box-orient: vertical !important;
|
|
|
}
|
|
|
-
|
|
|
- &-poster{
|
|
|
+
|
|
|
+ &-poster {
|
|
|
width: 100%;
|
|
|
border-radius: 10rpx;
|
|
|
}
|