feat(community,faq): support dynamic community topics, notice, and FAQ center
这个提交包含在:
@@ -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) {
|
||||
|
||||
在新工单中引用
屏蔽一个用户