diff --git a/api/request2.js b/api/request2.js
index 4b08c50b..f481334a 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -96,6 +96,60 @@ export function updateUserPwd(oldPassword, newPassword) {
})
}
+/**
+ * 获取消息列表
+ * @param {*}
+ *
+ */
+export function getMessageList(pageNo,pageSize) {
+ return request({
+ url: baseApi + "/system/notify-message/my-page?pageNo="+pageNo+"&pageSize="+pageSize,
+ method: "get",
+ data: {},
+ });
+}
+
+/**
+ * 标记站内信为已读
+ * @param {*}
+ *
+ */
+export function setMessageUpdateRead(ids) {
+ return request({
+ url: baseApi + "/system/notify-message/update-read?ids="+ids,
+ method: "put",
+ data: {},
+ });
+}
+
+/**
+ * 标记所有站内信为已读
+ * @param {*}
+ *
+ */
+export function setAllMessageUpdateRead() {
+ return request({
+ url: baseApi + "/system/notify-message/update-all-read",
+ method: "put",
+ data: {},
+ });
+}
+
+/**
+ * 获取当前用户的未读站内信数量
+ * @param {*}
+ *
+ */
+export function getMessageUnreadCount() {
+ return request({
+ url: baseApi + "/system/notify-message/get-unread-count",
+ method: "get",
+ data: {},
+ });
+}
+
+
+
/**
* 获取配置字典
* @param {*}
diff --git a/pages.json b/pages.json
index eb8d553d..51c6e84b 100644
--- a/pages.json
+++ b/pages.json
@@ -24,6 +24,28 @@
}
}
},
+ {
+ "path": "pages/message/details",
+ "style": {
+ "navigationBarTitleText": "消息详情",
+ "enablePullDownRefresh": false,
+ "titleNView": {
+ // "autoBackButton": "true",
+ "buttons": [
+ // 右边按钮
+ {
+
+ "float": "right",
+ "fontSize": "58rpx", //按钮上文字的大小
+ "text": "\ue696",
+ "fontSrc": "/static/ali_icon/iconfont.ttf"
+
+ }
+ ]
+ }
+ }
+ },
+
{
"path": "pages/common/webview/index",
@@ -1801,6 +1823,7 @@
"pagePath": "pages/message/index",
"iconPath": "static/bar/xx.svg",
"selectedIconPath": "static/bar/xxa.svg",
+ "enablePullDownRefresh": true,
"text": "消息"
}, {
"pagePath": "pages/setter/index",
diff --git a/pages/message/details.vue b/pages/message/details.vue
new file mode 100644
index 00000000..915b210a
--- /dev/null
+++ b/pages/message/details.vue
@@ -0,0 +1,96 @@
+
+
+
+ {{detail.templateNickname}}
+ 消息类型 : {{detail.templateCode}}
+ 消息内容 : {{detail.templateContent}}
+ 读取状态 : {{detail.readStatus==true?"已读":"未读"}}
+ 创建时间 : {{formatDate(detail.createTime)}}
+
+
+
+
+
+
+
diff --git a/pages/message/index.vue b/pages/message/index.vue
index 3e29db03..ab2c0299 100644
--- a/pages/message/index.vue
+++ b/pages/message/index.vue
@@ -1,9 +1,325 @@
- 消息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ .body-view {
+ height: 100%;
+ width: 100%;
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ overflow: hidden;
+ align-items: flex-start;
+ justify-content: center;
+ }
+
+ .body-view .right-arrow {
+ position: absolute;
+ top: 22upx;
+ right: 0upx;
+ padding-left: 60upx;
+ padding-right: 20upx;
+ line-height: 42upx;
+ background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 60%);
+ }
+
+ .body-view .right-arrow .iconfont {
+ font-size: 24upx;
+ font-family: iconfont;
+ color: #909399;
+ }
+
+ .top-menu-view {
+ display: flex;
+ white-space: nowrap;
+ width: 100%;
+ background-color: #FFFFFF;
+ height: 86upx;
+ /* border-top: 1px solid #d8dbe6;
+ border-bottom: 1px solid #d8dbe6; */
+ }
+
+ .top-menu-view .menu-topic-view {
+ display: inline-block;
+ white-space: nowrap;
+ height: 86upx;
+ position: relative;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic {
+ margin-left: 30upx;
+ margin-right: 10upx;
+ position: relative;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .uni-list--border:after {
+ height: 0;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic:first-child {
+ margin-left: 30upx;
+ }
+
+ .top-menu-view .menu-topic-view:last-child .menu-topic {
+ margin-right: 80upx;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic .menu-topic-txt {
+ font-size: 30upx;
+ color: #303133;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic .menu-topic-bottom {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic .menu-topic-bottom .menu-topic-bottom-color {
+ width: 40upx;
+ height: 4upx;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic-act {
+ margin-left: 30upx;
+ margin-right: 10upx;
+ position: relative;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .top-menu-view .menu-topic-view:last-child .menu-topic-act {
+ margin-right: 80upx;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic-act .menu-topic-txt {
+ font-size: 1rem;
+ color: #3d7eff;
+ font-weight: 600;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic-act .menu-topic-bottom {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ }
+
+ .top-menu-view .menu-topic-view .menu-topic-act .menu-topic-bottom .menu-topic-bottom-color {
+ width: 40upx;
+ height: 6upx;
+ background: #3d7eff;
+ }
+
+ .swiper-box-list {
+ flex: 1;
+ width: 100%;
+ height: auto;
+ height: 900upx;
+ background-color: #FFFFFF;
+ }
+
+ .swiper-topic-list {
+ height: 100%;
+ width: 100%;
+ }
+
+ .list {
+ width: 100%;
+ }
+
+ .tipred {
+ position: absolute;
+ top: 0;
+ right: -40rpx;
+ background-color: red;
+ color: #FFFFFF;
+ font-size: .7rem;
+ display: inline-block;
+ width: 46rpx;
+ height: 46rpx;
+ margin-bottom: 10upx;
+ text-align: center;
+ line-height: 46rpx;
+ border-radius: 50%;
+ overflow: hidden;
+ margin-left: 10upx;
+ font-size: 20upx;
+ }
+
diff --git a/static/images/message.svg b/static/images/message.svg
new file mode 100644
index 00000000..28380e52
--- /dev/null
+++ b/static/images/message.svg
@@ -0,0 +1,4 @@
+