| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 | <template>	<view>		<statusBar :item="navBarData"></statusBar>		<view class="activeBox" v-for="(item,index) in activeList" :key="index">			<view class="teaching_case">				<view class="img">					<!-- <image src="http://43.139.158.220:5007/img/static/activity/bg2.png" mode="aspectFill"></image> -->					<image :src="activeList[index].pic" mode="aspectFill"></image>				</view>				<view class="right" @click="gotoActivityDetail" :data-index="index">					<view class="title">						<view class="tag bqZ-font">类型</view>						<text class="three-font" style="font-weight: 600;">{{ item.acName }}</text>					</view>					<view class="introduce">						{{ item.brief }}					</view>					<view class="operate">						<view class="left">							<view class="money fNum-font"><text class="three-font">¥</text> {{ item.cost }}</view>							<view class="person">已报名{{ item.pers }}人</view>						</view>						<view class="Oright">							<view class="text">查看详情</view>							<view class="arrow">								<image src="http://43.139.158.220:5007/img/static/mine/arrow-right-blue.png"									mode="aspectFill"></image>							</view>						</view>					</view>				</view>			</view>		</view>		<view class="" style="width: 100%;height: 50rpx;">		</view>	</view></template><script>	export default {		data() {			return {				navBarData: {					title: '我的活动',					btn: 1				},				activeList: [					// {					// 	img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/1695656271245-image.png",					// 	count: "3842",					// 	price: "299",					// 	className: "丽湖职教双创教育国际虚拟教研室启动大会暨双创教育国际论坛圆满举行",					// 	intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",					// },					// {					// 	img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/img1.png",					// 	count: "17",					// 	price: "188",					// 	className: "丽湖职教双创教育国际虚拟教研室2023年常规教研活动安排",					// 	intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",					// },					// {					// 	img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/img3.png",					// 	count: "1",					// 	price: "188",					// 	className: "产教融合情境下的双创通识课程建设 | 丽湖职教双创教育国际虚拟教研室常规教研活动第2期顺利举行",					// 	intro: "【图片】为提升职业院校双创课程建设水平,促进双创课程的改革与发展,丽湖职教双创教育国际虚拟教研室于3月29日组织举办了以“产教融合情境下的双创通识课程建设”为主题的第2期线上教研活动,来自全国各职业院校的60多位教师参会。",					// },					// {					// 	img: "https://teacherapi.cocorobo.cn/teaching-file/static//yym/83b48be81d4ed9c93908737496f2a54.png",					// 	count: "3842",					// 	price: "299",					// 	className: "丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期",					// 	intro: "丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期"					// },				],			};		},		methods: {			gotoActivityDetail(e) {				// const value = uni.getStorageSync("login");				// if (value == 0) {				// 	// uni.navigateTo({				// 	// 	url: "/pages/login/login",				// 	// });				// } else {				// 	const urls = [				// 		"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1181",				// 		"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1183",				// 		"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210",				// 		"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1234",				// 	];				// 	if (index >= 0 && index < urls.length) {				// 		const url = urls[index];				// 		uni.navigateTo({				// 			url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),				// 		});				// 	}				// }				let edata = e.currentTarget.dataset['index'];				const clickedAcId = this.activeList[edata].acId;				const type = this.activeList[edata].type;				const isShow = false				uni.navigateTo({					url: "/pages/activityDetail/activityDetail?acId=" + clickedAcId + "&ty=" + type + "&isShow=" +						isShow,				});			},			myactivity() {				let data = {					openid: uni.getStorageSync('oId'),				}				this.$request('/selectActivityEnroll', "POST", data).then(res => {					console.log(res[0]);					this.activeList = res[0]				})			}		},		onShow() {			this.myactivity()		}	}</script><style lang="scss">	.activeBox {		width: 100%;		background-color: #fff;		padding: 10px 0;		.teaching_case {			display: flex;			justify-content: space-between;			padding: 0 15px;			.img {				width: 160rpx;				height: 160rpx;				image {					width: 100%;					height: 100%;					border-radius: 10rpx;				}			}			.right {				padding-left: 15px;				flex: 1;				display: flex;				flex-direction: column;				// align-content: flex-end;				justify-content: space-between;				.title {					display: flex;					align-items: center;					margin-bottom: 5px;					.tag {						border: 1px #00b2b6 solid;						// font-size: 20rpx;						width: 64rpx;						height: 38rpx;						display: flex;						white-space: nowrap;						justify-content: center;						align-items: center;						padding: 1rpx 4rpx;						border-radius: 3px;						margin-right: 10rpx;						color: #00b2b6;					}					text {						width: 180px;						overflow: hidden;						text-overflow: ellipsis;						white-space: nowrap;					}				}				.introduce {					width: 230px;					font-size: 28rpx;					color: #a7a7a7;					// margin-top: 8px;					overflow: hidden;					text-overflow: ellipsis;					white-space: nowrap;				}				.operate {					display: flex;					justify-content: space-between;					// align-items: flex-end;					align-items: baseline;					// margin-top: 15px;					.left {						display: flex;						flex-direction: row;						justify-content: space-between;						align-items: baseline;						width: 260rpx;						.money {							color: #FFA338;							font-weight: bold;							font-size: 36rpx;							line-height: 20px;						}						.person {							color: #00000099;							font-size: 24rpx;							// margin-left: 6px;						}					}					.Oright {						width: 80px;						display: flex;						justify-content: flex-start;						align-items: center;						// flex-direction: row;						// justify-content: space-around;						// align-items: flex-end;						.text {							font-size: 24rpx;							color: #3081E8;						}						.arrow {							display: flex;							justify-content: center;							margin-top: 5rpx;							image {								width: 32rpx;								height: 32rpx;							}						}					}				}			}		}	}</style>
 |