diff --git a/components/message/chat/chat-layout.vue b/components/message/chat/chat-layout.vue index a56ced1..4787ad1 100644 --- a/components/message/chat/chat-layout.vue +++ b/components/message/chat/chat-layout.vue @@ -1,9 +1,10 @@ diff --git a/components/message/list/list.vue b/components/message/list/list.vue index 2ff0886..5dab17f 100644 --- a/components/message/list/list.vue +++ b/components/message/list/list.vue @@ -12,7 +12,7 @@ > 99 ? '99+' : (item.unReadNumber || 1) }} - @@ -20,9 +20,12 @@ {{ item.title }} - {{ formatDate(item.time) }} + {{ formatDate(item.chatList?.[item.chatList?.length - + 1]?.time || item.time) + }} - {{ item.content }} + @@ -53,99 +60,6 @@ diff --git a/pages/message/defaultData.json b/pages/message/defaultData.json new file mode 100644 index 0000000..152d954 --- /dev/null +++ b/pages/message/defaultData.json @@ -0,0 +1,234 @@ +[ + { + "id": 12365458895222, + "unRead": true, + "unReadNumber": 2, + "noNotice": true, + "img": "", + "title": "京东快递", + "content": "【京东快递】您的快递已送达博朗郡二期...", + "chatList": [ + { + "id": "uuid-001-a1", + "time": "2026-03-15 10:24", + "content": "

【京东快递】快递尾号29398已放在博朗郡二期惠美家便利店,快递员电话15320547739。

", + "isMe": false, + "simKa": 1 + }, + { + "id": "uuid-001-a2", + "time": "2026-03-16 08:31", + "content": "

【京东快递】您的包裹已签收,感谢使用京东快递,期待再次为您服务。

", + "isMe": false, + "simKa": 1 + } + ], + "time": "2026-03-16 08:31:00" + }, + { + "id": 12365458895223, + "unRead": false, + "unReadNumber": 0, + "noNotice": false, + "img": "", + "title": "招商银行", + "content": "【招商银行】账户变动提醒", + "chatList": [ + { + "id": "uuid-002-b1", + "time": "2026-03-15 12:00", + "content": "

【招商银行】您尾号8888的账户于03月15日11:58收入人民币90000.00元,余额965600.50元。

", + "isMe": false, + "simKa": 1 + } + ], + "time": "2026-03-15 12:00:00" + }, + { + "id": 12365458895224, + "unRead": true, + "unReadNumber": 1, + "noNotice": false, + "img": "", + "title": "中国移动", + "content": "【中国移动】流量使用周报", + "chatList": [ + { + "id": "uuid-003-c1", + "time": "2026-03-14 09:00", + "content": "

【中国移动】截至14日09时,您本月已使用通用流量18.5GB,剩余3.2GB。

", + "isMe": false, + "simKa": 1 + }, + { + "id": "uuid-003-c2", + "time": "2026-03-14 18:30", + "content": "

【中国移动】流量包订购成功!您已成功领取5GB周末流量包,立即生效。

", + "isMe": false, + "simKa: 1" + } + ], + "time": "2026-03-14 18:30:00" + }, + { + "id": 12365458895225, + "unRead": false, + "unReadNumber": 0, + "noNotice": false, + "img": "", + "title": "验证码中心", + "content": "【抖音】您的验证码是 882931", + "chatList": [ + { + "id": "uuid-004-d1", + "time": "2026-03-16 01:10", + "content": "

【抖音】验证码 882931,用于手机绑定。5分钟内有效,请勿泄露给他人。

", + "isMe": false, + "simKa": 1 + } + ], + "time": "2026-03-16 01:10:00" + }, + { + "id": 12365458895226, + "unRead": false, + "unReadNumber": 0, + "noNotice": true, + "img": "", + "title": "美团外卖", + "content": "【美团】订单配送通知", + "chatList": [ + { + "id": "uuid-005-e1", + "time": "2026-03-15 18:30", + "content": "

【美团】商家已接单,骑手正在赶往商家,请耐心等待。

", + "isMe": false, + "simKa": 2 + }, + { + "id": "uuid-005-e2", + "time": "2026-03-15 19:15", + "content": "

【美团】骑手已送达!祝您用餐愉快,给个五星好评吧!

", + "isMe": false, + "simKa": 2 + } + ], + "time": "2026-03-15 19:15:00" + }, + { + "id": 12365458895227, + "unRead": true, + "unReadNumber": 3, + "noNotice": false, + "img": "", + "title": "建设银行", + "content": "【建设银行】还款提醒", + "chatList": [ + { + "id": "uuid-006-f1", + "time": "2026-03-10 10:00", + "content": "

【建设银行】您03月信用卡账单已出,应还款额为¥3,200.00。

", + "isMe": false, + "simKa": 1 + }, + { + "id": "uuid-006-f2", + "time": "2026-03-13 14:00", + "content": "

【建设银行】温馨提醒:您的账单将于3天后到期,请确保扣款账户余额充足。

", + "isMe": false, + "simKa": 1 + }, + { + "id": "uuid-006-f3", + "time": "2026-03-16 09:00", + "content": "

【建设银行】扣款成功。感谢您使用建设银行信用卡。

", + "isMe": false, + "simKa": 1 + } + ], + "time": "2026-03-16 09:00:00" + }, + { + "id": 12365458895228, + "unRead": false, + "unReadNumber": 0, + "noNotice": false, + "img": "", + "title": "12306", + "content": "【12306】购票成功通知", + "chatList": [ + { + "id": "uuid-007-g1", + "time": "2026-03-11 11:00", + "content": "

【12306】订单EG12345678支付成功。北京南-上海虹桥,03月20日14:00开。

", + "isMe": false, + "simKa": 2 + } + ], + "time": "2026-03-11 11:00:00" + }, + { + "id": 12365458895229, + "unRead": false, + "unReadNumber": 0, + "noNotice": true, + "img": "", + "title": "腾讯科技", + "content": "【腾讯科技】安全提醒", + "chatList": [ + { + "id": "uuid-008-h1", + "time": "2026-03-13 22:30", + "content": "

【腾讯科技】您的QQ账号在异地登录,登录地点:广州。如非本人操作请及时改密。

", + "isMe": false, + "simKa": 1 + } + ], + "time": "2026-03-13 22:30:00" + }, + { + "id": 12365458895230, + "unRead": true, + "unReadNumber": 1, + "noNotice": false, + "img": "", + "title": "菜鸟驿站", + "content": "【菜鸟驿站】取件通知", + "chatList": [ + { + "id": "uuid-009-i1", + "time": "2026-03-16 10:15", + "content": "

【菜鸟驿站】您的中通包裹已到达。凭取件码 8-2-4002 领取,地址:博朗郡东门。

", + "isMe": false, + "simKa: 1" + } + ], + "time": "2026-03-16 10:15:00" + }, + { + "id": 12365458895231, + "unRead": false, + "unReadNumber": 0, + "noNotice": false, + "img": "", + "title": "阿里云", + "content": "【阿里云】资源包即将到期", + "chatList": [ + { + "id": "uuid-010-j1", + "time": "2026-03-12 09:00", + "content": "

【阿里云】尊敬的用户,您的OSS存储包将于7天后到期,请及时续费。

", + "isMe": false, + "simKa": 1 + }, + { + "id": "uuid-010-j2", + "time": "2026-03-15 15:00", + "content": "

【阿里云】续费成功。您的OSS存储包有效期已延长至2027年03月。

", + "isMe": false, + "simKa": 1 + } + ], + "time": "2026-03-15 15:00:00" + } +] \ No newline at end of file diff --git a/pages/message/list-index.vue b/pages/message/list-index.vue index 2f60a02..af9f725 100644 --- a/pages/message/list-index.vue +++ b/pages/message/list-index.vue @@ -1,20 +1,78 @@ @@ -209,4 +321,126 @@ page { margin-right: 30rpx; } } + +/* ===== 添加短信弹窗 ===== */ +.add-mask { + position: fixed; + top: 0; + left: 0; + right: 0; + background-color: rgba(0, 0, 0, 0.5); + z-index: 999; + display: flex; + justify-content: center; + align-items: center; + width: 100vw; + height: 100vh; +} + +.add-popup { + width: 88%; + background-color: #ffffff; + border-radius: 24rpx; + overflow: hidden; +} + +.add-header { + padding: 36rpx 40rpx 20rpx; + font-size: 34rpx; + font-weight: bold; + color: #1A1A1A; + text-align: center; +} + +.add-body { + padding: 8rpx 0; +} + +.add-row { + display: flex; + align-items: center; + padding: 20rpx 32rpx; + gap: 16rpx; +} + +.between { + justify-content: space-between; +} + +.required { + position: relative; +} + +.required::before { + position: absolute; + left: -10px; + content: '*'; + top: 0; + color: #EA0000; +} + +.add-label { + font-size: 28rpx; + color: #1A1A1A; + width: 150rpx; + flex-shrink: 0; +} + +.add-input { + flex: 1; + height: 70rpx; + background-color: #F6F6F6; + border-radius: 14rpx; + padding: 0 20rpx; + font-size: 28rpx; + color: #1A1A1A; + + ::v-deep .uni-input { + color: #aaaaaa; + } +} + +.add-footer { + padding: 32rpx 24rpx; + display: flex; +} + +.add-btn { + flex: 1; + height: 90rpx; + line-height: 90rpx; + text-align: center; + font-size: 32rpx; + background-color: #F1F1F1; + margin: 0 16rpx; + border-radius: 12rpx; +} + +.add-btn.cancel { + color: #767676; +} + +.add-btn.confirm { + color: #fff; + background-color: #1777FF; +} + +.time-picker-group { + display: flex; + flex-direction: row; + gap: 16rpx; + flex: 1; +} + +.time-picker-item { + flex: 1; + height: 70rpx; + line-height: 70rpx; + background-color: #F8F8F8; + border-radius: 8rpx; + padding: 0 20rpx; + font-size: 28rpx; + color: #333333; + text-align: center; +} diff --git a/static/image/index/qita/msg.png b/static/image/index/qita/msg.png new file mode 100644 index 0000000..f3a0f02 Binary files /dev/null and b/static/image/index/qita/msg.png differ diff --git a/static/image/phone-message/add.png b/static/image/phone-message/add.png new file mode 100644 index 0000000..c84cc7b Binary files /dev/null and b/static/image/phone-message/add.png differ diff --git a/static/image/phone-message/iphone/send.png b/static/image/phone-message/iphone/send.png new file mode 100644 index 0000000..7a971dd Binary files /dev/null and b/static/image/phone-message/iphone/send.png differ diff --git a/static/image/phone-message/mi/mic.png b/static/image/phone-message/mi/mic.png deleted file mode 100644 index f99b9a2..0000000 Binary files a/static/image/phone-message/mi/mic.png and /dev/null differ diff --git a/static/image/phone-message/mi/send.png b/static/image/phone-message/mi/send.png new file mode 100644 index 0000000..6a40d99 Binary files /dev/null and b/static/image/phone-message/mi/send.png differ diff --git a/static/image/phone-message/mi/unsend.png b/static/image/phone-message/mi/unsend.png new file mode 100644 index 0000000..71cad30 Binary files /dev/null and b/static/image/phone-message/mi/unsend.png differ diff --git a/static/image/phone-message/oppo/ka2.png b/static/image/phone-message/oppo/ka2.png new file mode 100644 index 0000000..3a3d14e Binary files /dev/null and b/static/image/phone-message/oppo/ka2.png differ