活动名不省略(支付页面),用户名省略(首页、个人中心,我发布的页面)

This commit is contained in:
wangzimeng 2025-07-24 11:14:55 +08:00
parent 7034317437
commit 3643bbbe9b
5 changed files with 21 additions and 11 deletions

View File

@ -1136,22 +1136,22 @@ export default {
} }
.first-name { .first-name {
// width: 430rpx auto; display: flex;
max-width: 470rpx; justify-content: flex-start;
width: 510rpx;
// height: 77rpx; // height: 77rpx;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 600; font-weight: 600;
font-size: 28rpx; font-size: 28rpx;
color: #323232; color: #323232;
// margin-left: 16rpx;
} }
.rbot { .rbot {
width: 430rpx; width: 510rpx;
height: 52rpx; height: 52rpx;
font-size: 26rpx; font-size: 26rpx;
color: #323232; color: #323232;
margin-top: 60rpx; margin-top: 36rpx;
} }

View File

@ -98,7 +98,7 @@
style="margin-top: 20rpx; width: 100%;padding-left: 30rpx;"> style="margin-top: 20rpx; width: 100%;padding-left: 30rpx;">
<image :src="item.user.avatar" <image :src="item.user.avatar"
style="width: 36rpx; height: 36rpx;border-radius: 50%;"></image> style="width: 36rpx; height: 36rpx;border-radius: 50%;"></image>
<span style="color: #9c9c9c; margin-left: 10rpx;">{{ <span class="white-space" style="color: #9c9c9c; margin-left: 10rpx;width: 210rpx;">{{
item.user.nickname item.user.nickname
}}</span> }}</span>
<view class="white-space" style="width: 60%"> <view class="white-space" style="width: 60%">

View File

@ -82,7 +82,7 @@ export default {
edit(item){ edit(item){
this.isAdd=0; this.isAdd=0;
this.form.name=item.name; this.form.name=item.name;
this.form.idnum=item.idnum; // this.form.idnum=item.idnum;
this.form.ids=item.id; this.form.ids=item.id;
this.show=true; this.show=true;
}, },

View File

@ -78,10 +78,10 @@
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image> style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image>
<image v-else :src="item.headimage" <image v-else :src="item.headimage"
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image> style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image>
<span v-if="cate_ids != 1" class="white-space" style="color: #9C9C9C;margin-left: 10rpx;width: 220rpx;">{{ <span v-if="cate_ids != 1" class="white-space" style="color: #9C9C9C;margin-left: 10rpx;width: 210rpx;">{{
item.user.nickname }}</span> item.user.nickname }}</span>
<span v-else class="white-space" <span v-else class="white-space"
style="color: #9C9C9C;margin-left: 10rpx;width: 220rpx;">{{ style="color: #9C9C9C;margin-left: 10rpx;width: 210rpx;">{{
item.teacher.name }}</span> item.teacher.name }}</span>
<view class="white-space" style="width: 60%;"> <view class="white-space" style="width: 60%;">
<span style="color:#0CA013;margin-left: 20rpx;" <span style="color:#0CA013;margin-left: 20rpx;"

View File

@ -96,7 +96,7 @@
<span class="first-image flex align-items" style="margin-top: 20rpx;width: 100%;"> <span class="first-image flex align-items" style="margin-top: 20rpx;width: 100%;">
<image :src="item.user.avatar" <image :src="item.user.avatar"
style="width: 36rpx;height: 36rpx;border-radius: 80rpx"></image> style="width: 36rpx;height: 36rpx;border-radius: 80rpx"></image>
<span style="color: #9C9C9C;margin-left: 10rpx;">{{ item.user.nickname }}</span> <span class="white-space" style="color: #9C9C9C;margin-left: 10rpx;width: 210rpx;">{{ item.user.nickname }}</span>
<view class="white-space" style="width: 60%;"> <view class="white-space" style="width: 60%;">
<span style="color:#0CA013;margin-left: 20rpx;" <span style="color:#0CA013;margin-left: 20rpx;"
v-for="items_t in item.classes_cate">#{{ items_t }}</span> v-for="items_t in item.classes_cate">#{{ items_t }}</span>
@ -895,6 +895,16 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.white-space {
overflow: hidden;
/* 确保超出容器的文本被隐藏 */
white-space: nowrap;
/* 确保文本在一行内显示 */
text-overflow: ellipsis;
/* 使用省略号表示被截断的文本 */
width: 100%;
}
.myBox { .myBox {
position: fixed; position: fixed;
padding-top: 200rpx; padding-top: 200rpx;