lsw il y a 11 mois
Parent
commit
6699829389
3 fichiers modifiés avec 72 ajouts et 8 suppressions
  1. 32 4
      app/pages/news/detail.vue
  2. 31 3
      app/pages/notice/detail.vue
  3. 9 1
      app/pages/user/index.vue

+ 32 - 4
app/pages/news/detail.vue

@@ -3,7 +3,11 @@
 		<view class="content">
 			<view class="title">{{ item.title }}</view>
 			<view class="desc">
-				<text>发布于:{{ item.createTime }}</text>
+				<text class="time">发布于:{{ item.createTime }}</text>
+				<button class="fx" open-type="share">
+					<text class="icon">&#xe637;</text>
+					<text>分享</text>
+				</button>
 			</view>
 			<view class="con">
 				<u-divider :dot="true"></u-divider>
@@ -29,7 +33,16 @@ export default {
 			}
 		});
 	},
-	methods: {}
+	methods: {},
+	//分享
+	onShareAppMessage: function (res) {
+		return {
+			title: this.item.title,
+			path: '/pages/news/detail?id=' + this.item.id,
+			success: (res) => {},
+			fail: (res) => {}
+		};
+	}
 };
 </script>
 
@@ -48,12 +61,27 @@ export default {
 		padding-top: 15px;
 		font-size: 13px;
 		color: #7c8388;
-		text {
+		.time {
 			padding-right: 25px;
 		}
+		.fx {
+			background-color: white;
+			float: right;
+			font-size: 15px;
+			margin-right: -14px;
+			margin-top: -13px;
+			color: $main-color;
+			.icon {
+				padding-right: 3px;
+			}
+		}
 	}
-	.con{
+	.con {
 		font-size: 14px;
+		line-height: 23px;
+		image {
+			border-radius: 5px !important;
+		}
 	}
 }
 </style>

+ 31 - 3
app/pages/notice/detail.vue

@@ -3,7 +3,11 @@
 		<view class="content">
 			<view class="title">{{ item.title }}</view>
 			<view class="desc">
-				<text>发布于:{{ item.createTime }}</text>
+				<text class="time">发布于:{{ item.createTime }}</text>
+				<button class="fx" open-type="share">
+					<text class="icon">&#xe637;</text>
+					<text>分享</text>
+				</button>
 			</view>
 			<view class="con">
 				<u-divider :dot="true"></u-divider>
@@ -29,7 +33,16 @@ export default {
 			}
 		});
 	},
-	methods: {}
+	methods: {},
+	//分享
+	onShareAppMessage: function (res) {
+		return {
+			title: this.item.title,
+			path: '/pages/notice/detail?id=' + this.item.id,
+			success: (res) => {},
+			fail: (res) => {}
+		};
+	}
 };
 </script>
 
@@ -48,12 +61,27 @@ export default {
 		padding-top: 15px;
 		font-size: 13px;
 		color: #7c8388;
-		text {
+		.time {
 			padding-right: 25px;
 		}
+		.fx {
+			background-color: white;
+			float: right;
+			font-size: 15px;
+			margin-right: -14px;
+			margin-top: -13px;
+			color: $main-color;
+			.icon{
+				padding-right: 3px;
+			}
+		}
 	}
 	.con {
 		font-size: 14px;
+		line-height: 23px;
+		image {
+			border-radius: 5px !important;
+		}
 	}
 }
 </style>

+ 9 - 1
app/pages/user/index.vue

@@ -182,6 +182,14 @@
 					</view>
 				</view>
 			</view>
+			<view class="cd" @click="go('/pages/notice/detail?id=28')">
+				<view class="out">
+					<view class="int">
+						<view class="icon" style="background-color: #4581fb">&#xe634;</view>
+						<view class="title">关于我们</view>
+					</view>
+				</view>
+			</view>
 			<view class="cd" @click="go('/pages/other/setting')">
 				<view class="out">
 					<view class="int">
@@ -208,7 +216,7 @@ export default {
 		};
 	},
 	onShow() {
-/* 		 		 		 		 	 this.user = {
+		/* 		 		 		 		 	 this.user = {
 				token: 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjZkOTE1NTNkLWE1ZjktNDU4Yy05MTM2LTU2MDc0Y2M2ZmNkZiJ9.j4mYCmtjhup6CyxxQXznMjqdWi1HoAaF2nT4PpMWTl3B3UrQMwDACrYUWctml83wg4uf43PjIPOvfkFpaUADOw'
 			};
 			uni.setStorageSync('user', this.user); */