feat(community,faq): support dynamic community topics, notice, and FAQ center

这个提交包含在:
xcbyy
2026-10-10 10:04:49 +08:00
父节点 82ba59f373
当前提交 8845fbe7cb
共有 5 个文件被更改,包括 383 次插入 和 16 次删除

查看文件

@@ -129,6 +129,11 @@
<text class="row-label">平台消息与通知</text>
<image class="row-arrow-svg" :src="ICONS.chevronRight" mode="aspectFit" />
</view>
<view class="list-row btn-active" @click="openFaq">
<image class="row-svg" :src="ICONS.messageSquare" mode="aspectFit" />
<text class="row-label">帮助中心与常见问题</text>
<image class="row-arrow-svg" :src="ICONS.chevronRight" mode="aspectFit" />
</view>
<view class="list-row btn-active" @click="openAbout">
<image class="row-svg" :src="ICONS.shield" mode="aspectFit" />
<text class="row-label">平台规范与服务协议</text>
@@ -674,6 +679,34 @@ const openNotice = () => {
});
};
const openFaq = () => {
const list = platformConfigs.value.faq_list || [];
if (Array.isArray(list) && list.length > 0) {
const questions = list.map((item, idx) => `${idx + 1}. ${item.question}`);
uni.showActionSheet({
itemList: questions,
success: (res) => {
const item = list[res.tapIndex];
if (item) {
uni.showModal({
title: item.question,
content: `【${item.category || '常见问题'}】\n${item.answer}`,
showCancel: false,
confirmText: '我知道了',
confirmColor: '#6366F1'
});
}
}
});
} else {
uni.showModal({
title: '帮助中心与常见问题',
content: '1. 什么是4位核销码?\n到达活动现场后出示给陪伴师或房主签到核销,保障真实履约。\n2. 如何申请退款?\n在未接单或未核销前可随时全额退款,或发起争议仲裁由官方判定。',
showCancel: false
});
}
};
const openAbout = () => {
const proto = platformConfigs.value.platform_protocol || {};
if (privacyModalRef.value && privacyModalRef.value.show) {