Ver Fonte

消息列表开发

tanxue há 1 mês atrás
pai
commit
adbb1f99e1
5 ficheiros alterados com 45 adições e 7 exclusões
  1. 13 1
      api/my.js
  2. 21 1
      common/styles/global/pages.scss
  3. 7 0
      pages.json
  4. 3 4
      pages/index/index.vue
  5. 1 1
      pages/my/index.vue

+ 13 - 1
api/my.js

@@ -81,4 +81,16 @@ export function getUserUpGender(data = {}) {
     data,
     timeout: 20000
   })
-}
+}
+
+export function getNoticeList(data = {}) {
+  return request({
+    'url': '/app/mine/notice/list',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}

+ 21 - 1
common/styles/global/pages.scss

@@ -109,5 +109,25 @@
 	    box-shadow: 0px 2rpx 14rpx -4rpx #5772ff;text-align: center;color: #fff;
 	}
 }
+.phone-common-dialog.birthday-dialog{width: unset;}
 
-.phone-common-dialog.birthday-dialog{width: unset;}
+// card
+.notice-list-card{
+  margin: 0 15px;padding: 25px 0;border-bottom: 1px solid #f2f1f2;
+  .notice-list-title{
+    display: flex;align-items: center;margin: 0 0 10px;
+	font-size: 32rpx;
+	.notice-title{@include single-line-ellipsis();}
+  }
+  // 已读未读
+  .notice-list-read,.notice-list-unread{
+    width: 32px;height: 16px;line-height:16px;display: inline-block;text-align: center;
+    border: 1px solid;margin-right: 10px;flex-shrink: 0;
+    border-radius: 2px;font-size: 12px;font-style: normal;}
+  .notice-list-read{border-color:  #0220d6;color: #0220d6;background: #dee9ff;}
+  .notice-list-unread{border-color: #BD1F00;color: #b71e00;background: #ffdad8;}
+
+  // 内容
+  .news-page-word{font-size: 12px;color: #333333;}
+}
+    

+ 7 - 0
pages.json

@@ -26,6 +26,13 @@
 				"navigationBarTitleText" : "我的"
 			}
 		},
+		{
+			"path" : "pages/my/mesList",
+			"style" :
+			{
+				"navigationBarTitleText" : "消息"
+			}
+		},
 			{
 			"path" : "pages/my/zhengshu",
 			"style" :

+ 3 - 4
pages/index/index.vue

@@ -148,10 +148,9 @@
 			    });
 			    break;
 			case 3:
-			    uni.showToast({
-					icon: 'none',
-			    	title: '开发中,敬请期侍!',
-			    });
+			    uni.navigateTo({
+			    	url:'/pages/my/mesList?from=indexPeixun'
+			    })
 			    break;
 				}
 	}

+ 1 - 1
pages/my/index.vue

@@ -108,7 +108,7 @@
 			// 消息
 			case 'xiaoxi':
 			    uni.navigateTo({
-			    	url:'/pages/admin/my/myInfo?from=my'
+			    	url:'/pages/my/mesList?from=my'
 			    })
 			break;