修改问答标题显示

master
于肖磊 2025-04-07 11:01:28 +08:00
parent 448b1c8a0c
commit 9c8b5c5939
1 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<view class="oh wh-auto ht-auto flex-col jc-sb gap-10" :style="layout_img_style"> <view class="oh wh-auto ht-auto flex-col jc-sb gap-10" :style="layout_img_style">
<view class="flex-row gap-10 align-b"> <view class="flex-row gap-10 align-b">
<view v-if="is_show('ranking')" :class="'top-style one' + (index + 1)">{{ index + 1 }}</view> <view v-if="is_show('ranking')" :class="'top-style one' + (index + 1)">{{ index + 1 }}</view>
<view class="flex-1" :style="title_style">{{ item.title }}</view> <view :class="'flex-1' + title_class" :style="title_style">{{ item.title }}</view>
</view> </view>
<view v-if="is_show('reply_status') || is_show('time') || is_show('page_view')" class="flex-row gap-10 align-c" :style="is_show('ranking') ? 'margin-left: 54rpx;' : ''"> <view v-if="is_show('reply_status') || is_show('time') || is_show('page_view')" class="flex-row gap-10 align-c" :style="is_show('ranking') ? 'margin-left: 54rpx;' : ''">
<view class="flex-row"> <view class="flex-row">
@ -26,7 +26,7 @@
<template v-else> <template v-else>
<view class="oh flex-col gap-10 jc-sb" :style="layout_img_style"> <view class="oh flex-col gap-10 jc-sb" :style="layout_img_style">
<view class="flex-row gap-10 align-b"> <view class="flex-row gap-10 align-b">
<view :style="title_style">{{ item.title }}</view> <view :class="title_class" :style="title_style">{{ item.title }}</view>
</view> </view>
<view v-if="is_show('reply_status') || is_show('time')" class="flex-col gap-10"> <view v-if="is_show('reply_status') || is_show('time')" class="flex-col gap-10">
<span v-if="is_show('time')" :style="time_style">{{ item.add_time_date }}</span> <span v-if="is_show('time')" :style="time_style">{{ item.add_time_date }}</span>
@ -50,7 +50,7 @@
<template v-if="!isEmpty(item)"> <template v-if="!isEmpty(item)">
<view class="oh ht-auto flex-col gap-10 jc-sb" :style="layout_img_style"> <view class="oh ht-auto flex-col gap-10 jc-sb" :style="layout_img_style">
<view class="flex-row gap-10 align-b"> <view class="flex-row gap-10 align-b">
<view :style="title_style">{{ item.title }}</view> <view :class="title_class" :style="title_style">{{ item.title }}</view>
</view> </view>
<view v-if="is_show('reply_status') || is_show('time')" class="flex-col gap-10"> <view v-if="is_show('reply_status') || is_show('time')" class="flex-col gap-10">
<span v-if="is_show('time')" :style="time_style">{{ item.add_time_date }}</span> <span v-if="is_show('time')" :style="time_style">{{ item.add_time_date }}</span>
@ -127,6 +127,7 @@
ask_content_list: [], ask_content_list: [],
slides_per_group: 1, slides_per_group: 1,
// //
title_class: '',
title_style: '', title_style: '',
time_style: '', time_style: '',
page_view_style: '', page_view_style: '',
@ -220,6 +221,7 @@
list: new_list, list: new_list,
new_scale: scale, new_scale: scale,
theme: new_form.theme, // theme: new_form.theme, //
title_class: new_form.title_display_method == '0' ? '' : 'text-line-' + new_form.title_display_method,
title_style: this.trends_config('title', new_style) + 'word-break: break-all;', title_style: this.trends_config('title', new_style) + 'word-break: break-all;',
time_style: this.trends_config('time', new_style), time_style: this.trends_config('time', new_style),
page_view_style: this.trends_config('page_view', new_style), page_view_style: this.trends_config('page_view', new_style),
@ -249,7 +251,7 @@
}, },
// //
style_config(typeface, size, color) { style_config(typeface, size, color) {
return `font-weight:${typeface}; font-size: ${size}px;color: ${color};`; return `font-weight:${typeface}; font-size: ${size}px;color: ${color};line-height: 1.5;`;
}, },
// //
get_layout_style(form, new_style) { get_layout_style(form, new_style) {