|
@@ -4,12 +4,14 @@
|
|
|
<view v-if="!listData.length"><u-empty text="消息列表为空" mode="message"></u-empty></view>
|
|
|
<view v-else v-for="(item, index) in listData" :key="index" style="padding-bottom: 20rpx;">
|
|
|
<navigator hover-class="none" :url="`/pages2/msg/detail?id=${item.id}&orderGoodsId=${item.orderGoodsId}&goodsId=${item.goodsId}`" class="item" :style="item.receiptStatus === 1 ? 'opacity: 0.7' : ''">
|
|
|
- <view style="display: flex;justify-content: space-between;align-items: center;height: 60rpx;">
|
|
|
- <view style="color: #333333;font-size: 30rpx;font-weight: bold;display: flex;align-items: center;">
|
|
|
+ <view class="headers">
|
|
|
+ <view class="header_left">
|
|
|
<image :src="item.systemStatus === 1 ? img1 : img2" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;"></image>
|
|
|
- {{item.systemStatus === 1 ? '系统通知' : '教务通知'}}
|
|
|
+ <text class="msgTitle">
|
|
|
+ {{ [28, 29, 30, 31,32].includes(+item.remindId) ? item.remind : (item.systemStatus === 1 ? '系统通知' : '教务通知')}}
|
|
|
+ </text>
|
|
|
</view>
|
|
|
- <view style="color: #999999;font-size: 24rpx;">{{ $method.timestampToTime(item.sendTime, false) }}</view>
|
|
|
+ <view class="header_right">{{ $method.timestampToTime(item.sendTime, false) }}</view>
|
|
|
</view>
|
|
|
<u-line color="#D6D6DB" />
|
|
|
<view style="display: flex;justify-content: space-between;padding: 25rpx;color: #666666;">
|
|
@@ -78,7 +80,6 @@ export default {
|
|
|
// this.getInfo();
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
- var self = this;
|
|
|
return {
|
|
|
title: '中正',
|
|
|
path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
|
|
@@ -122,7 +123,7 @@ page {
|
|
|
background: #eaeef1;
|
|
|
}
|
|
|
</style>
|
|
|
-<style scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
.btn2 {
|
|
|
width: 144rpx;
|
|
|
height: 48rpx;
|
|
@@ -171,4 +172,27 @@ page {
|
|
|
align-items: center;
|
|
|
padding: 0 30rpx;
|
|
|
}
|
|
|
+.headers {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ height: 60rpx;
|
|
|
+ .header_left {
|
|
|
+ color: #333333;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .header_right {
|
|
|
+ color: #999999;
|
|
|
+ font-size: 24rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+.msgTitle {
|
|
|
+ width: 420rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow:ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
</style>
|