This commit is contained in:
王创世 2025-06-14 15:51:59 +08:00
commit e8523899ee
5 changed files with 84 additions and 65 deletions

View File

@ -106,7 +106,7 @@
<view class="third-center"> <view class="third-center">
<view class="flex w-100 space-between hui align-items" style="margin-top: 8rpx;"> <view class="flex w-100 space-between hui align-items" style="margin-top: 8rpx;">
<text>退款数量</text> <text>退款数量</text>
<text style="color: #323232;">{{ info.num }}</text> <text style="color: #323232;">{{ info.auth_num }}</text>
</view> </view>
<view class="flex w-100 space-between hui align-items" style="margin-top: 40rpx;"> <view class="flex w-100 space-between hui align-items" style="margin-top: 40rpx;">
<text>退款金额</text> <text>退款金额</text>

View File

@ -168,9 +168,9 @@
<view class="footer" style="display: flex;align-items: center;;justify-content: space-between;gap: 30rpx;"> <view class="footer" style="display: flex;align-items: center;;justify-content: space-between;gap: 30rpx;">
<view @click="overlayShow()" style="width: 173rpx;height: 90rpx;background-image: url('/static/detail/fenxiangsys.png');background-size: 100% 100%;background-repeat: no-repeat;"> <view @click="overlayShow()" style="width: 220rpx;height: 90rpx;">
<!-- <image src="@/static/detail/fenxiangsys.png" style="width: 100%;height: 100%;" mode="widthFix"> <image src="@/static/detail/fenxiangsys.png" style="width: 100%;height: 100%;" mode="widthFix">
</image> --> </image>
</view> </view>
<view class="footer-right" @click="cancelsOpen"> <view class="footer-right" @click="cancelsOpen">
取消活动 取消活动

View File

@ -58,16 +58,23 @@
<span class="time_tex" v-if="item.status == 2">{{ <span class="time_tex" v-if="item.status == 2">{{
"报名中" "报名中"
}}</span> }}</span>
<span style="margin: 0 8rpx">{{ dateWeeks(item.sign_start_time) }} <span v-if="item.status == 2" style="margin: 0 20rpx">{{ dateWeeks(item.sign_start_time) }}</span>
</span>|<span class="white-space" <span v-if="item.status != 2" style="margin: 0 20rpx 0 0">{{ dateWeeks(item.sign_start_time) }}
style="margin-left: 8rpx; width: 260rpx">{{ </span><span
style="width: 1rpx;height: 22rpx;background: #323232;"></span>
<span class="white-space"
style="margin-left: 20rpx; width: 260rpx">{{
item.address_detail }}</span> item.address_detail }}</span>
</view> </view>
</view> </view>
<view class="flex align-items" style="margin-top: 20rpx"> <view class="flex align-items justify-center" style="margin-top: 20rpx;margin-bottom: 32rpx;">
<image class="imgs_con" v-for="(items_img, index) in item.images.slice(0, 3)"
:key="index" :src="items_img"></image> <view class="imgs_con_div" v-for="(items_img, index) in item.images.slice(0, 3)"
:key="index">
<image class="imgs_con" :src="items_img"></image>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -82,8 +89,8 @@
<u-avatar-group :urls="item.join_info.users" keyName="avatar" size="30" maxCount="1" <u-avatar-group :urls="item.join_info.users" keyName="avatar" size="30" maxCount="1"
gap="0.4"></u-avatar-group> gap="0.4"></u-avatar-group>
<image src="/static/index/dian.png" style=" <image src="/static/index/dian.png" style="
width: 60rpx; width: 58rpx;
height: 60rpx; height: 58rpx;
margin-left: -20rpx; margin-left: -20rpx;
"></image> "></image>
<view style="margin-left: 20rpx;vertical-align: middle;font-size: 24rpx;"> <view style="margin-left: 20rpx;vertical-align: middle;font-size: 24rpx;">
@ -141,7 +148,7 @@
</view> </view>
</view> </view>
<view class="flex align-items" <view class="flex align-items"
style="justify-content: flex-end;padding: 0rpx 30rpx 30rpx 0rpx;"> style="justify-content: flex-end;padding: 30rpx 30rpx 30rpx 0rpx;">
<view <view
style="font-weight: 600;font-size: 28rpx;width: 180rpx;height: 70rpx;text-align: center;line-height: 70rpx;background: linear-gradient( 270deg, #FBF66D 0%, #9CEAA2 100%);border-radius: 276rpx;" style="font-weight: 600;font-size: 28rpx;width: 180rpx;height: 70rpx;text-align: center;line-height: 70rpx;background: linear-gradient( 270deg, #FBF66D 0%, #9CEAA2 100%);border-radius: 276rpx;"
@click.stop="goAfterInfo(item.id)"> 查看详情 </view> @click.stop="goAfterInfo(item.id)"> 查看详情 </view>
@ -1053,19 +1060,19 @@
// white-space: nowrap; // white-space: nowrap;
.bbb { .bbb {
background: #ffffff; background: #ffffff;
margin-top: 30rpx; margin-top: 24rpx;
border-radius: 36rpx; border-radius: 36rpx;
} }
.right { .right {
margin-left: 24rpx; margin-left: 30rpx;
width: 100%; width: 100%;
padding: 20rpx 0; // padding: 20rpx 0;
.title { .title {
width: 95%; width: 85%;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: bold;
font-size: 30rpx; font-size: 30rpx;
color: #323232; color: #323232;
} }
@ -1135,7 +1142,7 @@
font-weight: 400; font-weight: 400;
font-size: 26rpx; font-size: 26rpx;
color: #323232; color: #323232;
line-height: 30rpx; // line-height: 30rpx;
.time_tex { .time_tex {
width: 116rpx; width: 116rpx;
@ -1145,16 +1152,18 @@
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
color: #323232; color: #323232;
line-height: 42rpx; display: flex;
text-align: center; justify-content: center;
align-items: center;
line-height: 30rpx;
} }
} }
.imgs_con { .imgs_con_div {
margin-right: 12rpx;
width: 202rpx; width: 202rpx;
height: 202rpx; height: 202rpx;
margin-right: 20rpx; overflow: hidden;
object-fit: cover;
&:first-child { &:first-child {
border-radius: 18rpx 0 0 18rpx; border-radius: 18rpx 0 0 18rpx;
@ -1163,11 +1172,17 @@
&:nth-child(3) { &:nth-child(3) {
border-radius: 0 18rpx 18rpx 0; border-radius: 0 18rpx 18rpx 0;
} }
.imgs_con {
width: 100%;
height: 100%;
object-fit: cover;
}
} }
} }
.bottom { .bottom {
margin: 20rpx 10rpx 30rpx 10rpx; margin: 0rpx 10rpx 30rpx 10rpx;
.number { .number {
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;

View File

@ -1,13 +1,13 @@
<template> <template>
<view class="box flex justify-center "> <view class="box flex justify-center ">
<view class="center flex flex-column flex-start"> <view class="center">
<span class="title">{{detail.title}}</span> <!-- <span class="title">{{detail.title}}</span> -->
<span style="margin-bottom: 16rpx;">{{detail.createtime_text}}</span>
<span > <view>
<!-- <u-parse :content="detail.desc" :selectable="true"></u-parse> --> <!-- <u-parse :content="detail.desc" :selectable="true"></u-parse> -->
<rich-text :nodes="detail.desc" selectable user-select></rich-text> <rich-text :nodes="detail.desc" selectable user-select></rich-text>
<view style="margin:16rpx 0;">{{detail.createtime_text}}</view>
</span> </view>
</view> </view>
</view> </view>
@ -49,7 +49,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.box { .box {
background: #F1F2F8; background: #f5f5f5;
width: 750rpx; width: 750rpx;
height: 100vh; height: 100vh;
} }
@ -92,19 +92,15 @@
} }
.center { .center {
margin-top: 42rpx; margin-top: 42rpx;
width: 640rpx; width: 640rpx;
height: 308rpx;
background: #FFFFFF;
border-radius: 20rpx 20rpx 20rpx 20rpx; border-radius: 20rpx 20rpx 20rpx 20rpx;
padding: 25rpx; padding: 25rpx;
span {
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
font-size: 26rpx; font-size: 32rpx;
color: #7A7A7A; color: #323232;
}
.title { .title {
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;

View File

@ -54,9 +54,11 @@
count:0 count:0
}; };
}, },
onShow() {
this.getDetail();
},
onLoad(option) { onLoad(option) {
console.log(option) console.log(option)
this.getDetail();
this.resetLists() this.resetLists()
}, },
onReachBottom() { onReachBottom() {
@ -68,29 +70,35 @@
methods: { methods: {
// //
only(id,type){ only(id,type){
if (type == 1) {
uni.$u.http.get('/api/school/message/detail', {
params: {
id: id,
}
}).then(res => {
if (res.code == 1) {
uni.showToast({
title: '确认已读',
icon: 'none',
duration: 2000
});
this.getDetail();
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
});
}
}).catch(error => {});
}
uni.$u.http.get('/api/school/message/detail', {
params: {
id: id,
}
}).then(res => {
if (res.code == 1) {
// uni.showToast({
// title: '',
// icon: 'none',
// duration: 2000
// });
this.detail(id);
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
});
}
}).catch(error => {});
},
//
detail(id){
uni.navigateTo({
url:"/packageA/my/stationDetail?id=" + id
})
}, },
getDetail() { getDetail() {
uni.$u.http.get('/api/school/message/message_list', { uni.$u.http.get('/api/school/message/message_list', {