Browse Source

活动详情跳转公众号

yuanyiming 1 year ago
parent
commit
f89507a7d1

+ 14 - 8
pages.json

@@ -12,8 +12,11 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationBarTitleText": "首页"
-
+				"navigationBarTitleText": "首页",
+				"app-plus": {
+					// 将回弹属性关掉
+					"bounce": "none"
+				}
 			}
 		},
 		{
@@ -133,15 +136,18 @@
 			"path": "pages/ranking/ranking",
 			"style": {
 				"navigationBarTitleText": "排行",
-				"enablePullDownRefresh": false
+				"enablePullDownRefresh": false,
+				"app-plus": {
+					// 将回弹属性关掉
+					"bounce": "none"
+				}
 			}
 		},
 		{
-			"path" : "pages/feedback/feedback",
-			"style" : 
-			{
-				"navigationBarTitleText" : "反馈与帮助",
-				"enablePullDownRefresh" : false
+			"path": "pages/feedback/feedback",
+			"style": {
+				"navigationBarTitleText": "反馈与帮助",
+				"enablePullDownRefresh": false
 			}
 		}
 		// {

+ 14 - 9
pages/activityDetailNew/activityDetailNew.vue

@@ -71,14 +71,13 @@
 
 				<!-- 	<web-view :src="actItemList.link"  webview-styles="{'height': '700rpx';}"></web-view> -->
 				<!-- <br /> -->
-				<view class="bricon">
-					<!-- <rich-text :nodes="">{{actItemList.brief}}</rich-text> -->
-					<rich-text style="white-space:pre-wrap;" :nodes="actItemList.brief"></rich-text>
-					<!-- <view style="color: blue;display: inline-block;" :data-link="actItemList.link"  @click="gotoLink">
-						<u-icon name="arrow-right" labelSize='14' size='14' labelColor='blue' space='2' color='blue' labelPos='left' label='查看更多'></u-icon>
-					</view> -->
+				<!-- <view class="bricon" @longpress="scanCode"> -->
+				<view class="bricon" @click="handleCoverClick">
+
+					<!-- <rich-text style="white-space:pre-wrap;" :nodes="actItemList.brief"></rich-text> -->
+					<u-parse :content="actItemList.brief" :selectable="true"></u-parse>
 				</view>
-				<!-- <image class="briImg" :src="actItemList.pic" mode="widthFix"></image> -->
+
 			</view>
 
 		</view>
@@ -229,6 +228,11 @@
 		// 	this.$store.dispatch('asyncDelAll')
 		// },
 		methods: {
+			handleCoverClick(event) {
+				// 处理点击事件
+				console.log('rich-text clicked', event);
+			},
+
 			//跳转到第三方链接
 			gotoLink(e) {
 
@@ -237,7 +241,7 @@
 					url: "/pages/skipone/skipone?url=" + encodeURIComponent(link),
 				});
 			},
-			
+
 			// 获取页面数据
 			getdata() {
 				this.uLoading = true
@@ -250,7 +254,8 @@
 					this.uLoading = false
 					this.actItemList = res[0][0]
 					this.actItemList.brief = this.actItemList.brief.replace(/<img/gi,
-						'<img style="max-width:100%;height:auto;margin:0 auto;display:block"')
+						'<img :show-menu-by-longpress="true" style="max-width:100%;height:auto;margin:0 auto;display:block"'
+					)
 				})
 
 			},

+ 1 - 1
pages/login_Wechat/login_Wechat.vue

@@ -621,7 +621,7 @@
 					icon: 'none'
 				});
 				if (!this.stuName) return uni.showToast({
-					title: '请选择学院',
+					title: '请输入院校全称',
 					icon: 'none'
 				});
 

+ 113 - 55
pages/ranking/ranking.vue

@@ -5,47 +5,61 @@
 			<image :src="adv.img" mode="aspectFill" @click="gotoHome">
 			</image>
 		</view>
-		<scroll-view class="scrollV" scroll-y="true">
+		<view class="scrollV">
+			<!-- <scroll-view style="flex: 1;" @scroll='scrollYE' :scroll-top="topNum" scroll-y="true"> -->
 			<uni-table border stripe emptyText="暂无更多数据">
-				<!-- 表头行 -->
-				<uni-tr>
-					<uni-th width="100rpx" align="left">序号</uni-th>
-					<uni-th width="150rpx" align="left">姓名</uni-th>
-					<uni-th width="152rpx" align="left">单位</uni-th>
-					<uni-th width="100rpx" align="left">课程</uni-th>
-					<uni-th width="100rpx" align="left">活动</uni-th>
-					<uni-th width="150rpx" align="left" sortable>活跃度</uni-th>
-				</uni-tr>
-
-				<uni-tr>
-					<uni-th width="100rpx" align="left">序号</uni-th>
-					<uni-th width="150rpx" align="left">姓名</uni-th>
-					<uni-th width="150rpx" align="left">单位</uni-th>
-					<uni-th width="100rpx" align="left">课程</uni-th>
-					<uni-th width="100rpx" align="left">活动</uni-th>
-					<uni-th width="150rpx" align="left">活跃度</uni-th>
-				</uni-tr>
-				<!-- 表格数据行 -->
-				<uni-tr v-for="(i,index) in arrlist" :key="i.openid">
-					<uni-td>{{index + 1}}</uni-td>
-					<uni-td>
-						<view class="td" @click="show" :data-e="i.username">
-							{{ i.username }}
-						</view>
-					</uni-td>
-					<uni-td>
-						<view class="td" @click="show" :data-e="i.schoolName">
-							{{i.schoolName}}
-						</view>
-					</uni-td>
-					<uni-td>{{i.views}}</uni-td>
-					<uni-td>{{i.signNum}}</uni-td>
-					<uni-td>{{i.act}}</uni-td>
-				</uni-tr>
+				<view class="table-header">
+					<uni-tr>
+						<uni-th width="100rpx" align="left">序号</uni-th>
+						<uni-th width="150rpx" align="left">姓名</uni-th>
+						<uni-th width="150rpx" align="left">单位</uni-th>
+						<uni-th width="100rpx" align="left">课程</uni-th>
+						<uni-th width="100rpx" align="left">活动</uni-th>
+						<uni-th width="150rpx" align="left">活跃度</uni-th>
+					</uni-tr>
+				</view>
+
+				<view class="warper">
+					<uni-tr v-for="(i,index) in arrlist" :key="i.openid">
+						<uni-td>
+							<view class="td" style="width:100rpx">
+								{{index + 1}}
+							</view>
+						</uni-td>
+						<uni-td>
+							<view style="width:150rpx" class="td" @click="show" :data-e="i.username">
+								{{ i.username }}
+							</view>
+						</uni-td>
+						<uni-td>
+							<view style="width:150rpx" class="td" @click="show" :data-e="i.schoolName">
+								{{i.schoolName}}
+							</view>
+						</uni-td>
+						<uni-td>
+							<view class="td" style="width:100rpx">
+								{{i.views}}
+							</view>
+						</uni-td>
+						<uni-td>
+							<view class="td" style="width:100rpx">
+								{{i.signNum}}
+							</view>
+						</uni-td>
+						<uni-td>
+							<view class="td" style="width:150rpx">
+								{{i.act}}
+							</view>
+						</uni-td>
+					</uni-tr>
+				</view>
+
 
 
 			</uni-table>
-		</scroll-view>
+			<!-- </scroll-view> -->
+		</view>
+
 	</view>
 </template>
 
@@ -58,10 +72,17 @@
 					btn: 0
 				},
 				arrlist: [],
-				adv: {}
+				adv: {},
+				topNum: 0
 			};
 		},
 		methods: {
+			scrollYE(e) {
+				if (e.detail.scrollTop >= 100) {
+					this.topNum = 100
+					console.log(this.topNum);
+				}
+			},
 			getdata() {
 				this.$request('/selectUserActivity', "get", {
 					oid: this.$store.state.user.openid
@@ -137,11 +158,12 @@
 	}
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 	.ranking {
 		display: flex;
 		flex-direction: column;
 		height: 100vh;
+		width: 750rpx;
 
 		.top {
 			width: 750rpx;
@@ -160,30 +182,66 @@
 		}
 
 		.scrollV {
-			flex: 1;
 			overflow: hidden;
+			flex: 1;
+			display: flex;
+			width: 750rpx;
+			position: relative;
 		}
 	}
 
-	// 顶部大图
+	.table-header {
+		position: sticky;
+		left: 0;
+		top: 0;
+		z-index: 99999;
+		background-color: #fff;
+	}
+
+
+	/deep/ .uni-table-tr {
+		display: flex;
+	}
+
+	/deep/ .table--border {
+		box-sizing: border-box;
+		// border-right: 1px #000 solid;
+	}
 
-	/deep/ .uni-table-tr:nth-child(1) {
-		position: fixed;
+	/deep/ .uni-table-th {
 		background-color: #F7FBFF;
-		transform: translate(0, -5rpx);
-		padding-bottom: 7rpx;
+		padding: 0px 0;
+		height: 40px;
+		line-height: 40px;
+		padding-left: 20rpx;
+		display: flex;
+		flex-shrink: 0;
+	}
+
+
+	/deep/ .uni-table-td {
+		padding: 0px 0;
+		height: 40px;
+		border-right: none;
+		border-bottom: none;
 	}
 
 	/deep/ .uni-table-td:nth-child(1) {
-			background-color: #F7FBFF;
-		}
+		background-color: #F7FBFF;
+	}
 
-		.td {
-			display: -webkit-box;
-			word-break: break-all;
-			text-overflow: ellipsis;
-			overflow: hidden;
-			-webkit-box-orient: vertical;
-			-webkit-line-clamp: 1;
-		}
+	.td {
+		display: -webkit-box;
+		word-break: break-all;
+		text-overflow: ellipsis;
+		overflow: hidden;
+		-webkit-box-orient: vertical;
+		-webkit-line-clamp: 1;
+		height: 40px;
+		padding-left: 20rpx;
+		line-height: 40px;
+		box-sizing: border-box;
+		border-right: 1px #ebeef5 solid;
+		border-bottom: 1px #ebeef5 solid;
+	}
 </style>