discover-detail.vue 3.9 KB
Newer Older
R
Renic1 已提交
1
<template>
R
Renic1 已提交
2 3

		
R
Renic1 已提交
4
	<view class="detail">
R
Renic1 已提交
5
		<!-- <view class="nav-bar-back">
R
Renic1 已提交
6 7
		    <image class="nav-bar-back-icon" src="/static/discover/back.png" @click="goBack"></image>
		    <view class="nav-bar-title">{{title}}</view>
R
Renic1 已提交
8 9 10 11 12 13
		</view> -->
		
		<view class="top">
				<image  @click="goBack" class="back" src="/static/discover/back.png"></image>
				<view class="title">发布帖子</view>
				<span class="empty"></span>
R
Renic1 已提交
14
		</view>
R
Renic1 已提交
15
		<view class="school-activity-icon-wrapper"><image class="school-activity-icon" src="/static/discover/activity.svg"></image></view>
R
Renic1 已提交
16 17
		<view class="activity-production">
			<image class="activity-production-icon" src="/static/discover/production.png"></image>
R
Renic1 已提交
18
			<text class="activity-title">活动介绍:</text>
R
Renic1 已提交
19 20 21 22
			<view class="production-detail">{{production}}</view>
		</view>
		<view class="activity-object">
			<image class="activity-production-icon" src="/static/discover/object.png"></image>
R
Renic1 已提交
23
			<text class="activity-title">活动对象:</text>
R
Renic1 已提交
24 25 26 27
			<view class="production-detail">{{object}}</view>
		</view>
		<view class="activity-time">
			<image class="activity-production-icon" src="/static/discover/time.png"></image>
R
Renic1 已提交
28
			<text class="activity-title">活动时间:</text>
R
Renic1 已提交
29 30 31 32
			<view class="production-detail">{{time}}</view>
		</view>
		<view class="activity-place">
			<image class="activity-production-icon" src="/static/discover/place.png"></image>
R
Renic1 已提交
33
			<text class="activity-title">活动地点:</text>
R
Renic1 已提交
34 35 36 37
			<view class="production-detail">{{place}}</view>
		</view>
		<view class="activity-contact">
			<image class="activity-production-icon" src="/static/discover/contact.png"></image>
R
Renic1 已提交
38
			<text class="activity-title">联系方式:</text>
R
Renic1 已提交
39 40
			<view class="production-detail">{{contact}}</view>
		</view>
R
Renic1 已提交
41 42 43 44 45 46 47 48
	</view>
</template>

<script>
	export default {
	    data() {
	      return {
	        title: '趣味篮球赛',
R
Renic1 已提交
49 50
			production:'111111111111111111111111111111111111111111111111111111',
			object:'福州大学全体学生',
R
Renic1 已提交
51
			time:'2023-05-03 19:00 2023-05-04 19:00',
R
Renic1 已提交
52 53
			place:'风雨操场',
			contact:'1612737522@qq.com'
R
Renic1 已提交
54 55 56 57 58 59 60 61 62 63 64 65 66
	      }
	    },
	    methods: {
	      goBack() {
	        uni.navigateBack({
	          delta: 1
	        })
	      }
	    }
	  }
</script>

<style>
R
Renic1 已提交
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
		.top {
			width: 100%;
			height: 50px;
			background-color: #EDEEF0;
			text-align: center;
		}
		
		.back {
			width: 40px;
			height: 30px;
			margin-top: 10px;
			margin-bottom: 10px;
			float: left;
			margin-left: 10px;
		}
		
		.empty{
			width: 40px;
			height: 30px;
			margin-top: 10px;
			margin-bottom: 10px;
			float: right;
			margin-right: 10px;
		}
		.title {
				margin-top: 15px;
				display: inline-block;
			}
	  /* .nav-bar-back {
R
Renic1 已提交
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    width: 100%;
	    height: 60px;
		background-color: #EDEEF0;
	  }
	  .nav-bar-back-icon {
	    width: 40px;
	    height: 30px;
	  }
	  .nav-bar-title {
	    flex: 1;
	    text-align: center;
	    font-size: 24px;
	    font-weight: bold;
R
Renic1 已提交
112
	    color: #F1992D;
R
Renic1 已提交
113
	  } */
R
Renic1 已提交
114
	  .school-activity-icon-wrapper{
R
Renic1 已提交
115 116 117 118
			margin-top: 10px;
			display: flex;
			justify-content: center;
			align-items: center;
R
Renic1 已提交
119 120 121
	  }
	  
	  .school-activity-icon {
R
Renic1 已提交
122
	    width: 89%;
R
Renic1 已提交
123 124 125 126 127 128 129
	    height: 200px;
	    margin: 0px;
		padding: 0px;
	  }
	  .activity-production{
	  		  margin-top: 10px;
	  }
R
Renic1 已提交
130 131 132 133
	  .activity-title {
	    font-size: 20px; /* 调整字体大小为24像素 */
	  }

R
Renic1 已提交
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
	  .activity-object{
	  	  margin-top: 10px;
	  }
	  .activity-time{
	  	  margin-top: 10px;
	  }
	  .activity-place{
	  	  margin-top: 10px;
	  }
	  .activity-contact{
	  	  margin-top: 10px;
	  }
	  .activity-production-icon{
		  width: 40px;
		  height: 30px;
		  margin-left: 30px;
R
Renic1 已提交
150 151
		  margin-top:8px;
		  margin-bottom: -5px;
R
Renic1 已提交
152 153
	  }
	  .production-detail{
R
Renic1 已提交
154
	      width: 89%;
R
Renic1 已提交
155 156
	      background-color: rgb(245 154 35 / 30%);
	      border-radius: 5px;
R
Renic1 已提交
157 158
		  margin-left: 20px;
		  margin-top: 5px;
R
Renic1 已提交
159 160 161 162 163
		  /* 文字换行处理 */
	      word-wrap:break-word;
	      word-break:break-all;
	  }

R
Renic1 已提交
164
</style>