feat(compliance): 完善微信内容安全检测、用户隐私保护指引弹窗与主包分包加载架构
这个提交包含在:
@@ -782,8 +782,9 @@ const submitPublishPost = async () => {
|
||||
} catch (err) {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: '发布失败,请重试',
|
||||
icon: 'none'
|
||||
title: err.message || '发布失败,请重试',
|
||||
icon: 'none',
|
||||
duration: 2500
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -116,6 +116,9 @@
|
||||
|
||||
<!-- 底部自定义导航栏 (发单人端:首页 / 活动中心 / 我要发单 / 友圈 / 个人中心) -->
|
||||
<custom-tab-bar current="home" />
|
||||
|
||||
<!-- 微信小程序用户隐私保护指引弹窗 (微信合规) -->
|
||||
<privacy-modal />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -124,6 +127,7 @@ import { ref, computed, onMounted, onUnmounted } from 'vue';
|
||||
import { onShow } from '@dcloudio/uni-app';
|
||||
import CustomTabBar from '@/components/CustomTabBar.vue';
|
||||
import SkeletonScreen from '@/components/SkeletonScreen.vue';
|
||||
import PrivacyModal from '@/components/PrivacyModal.vue';
|
||||
import { getCompanions, getBanners } from '@/common/api.js';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
|
||||
@@ -203,6 +203,9 @@
|
||||
|
||||
<!-- 底部自定义导航栏 (动态自适应发单人4项 / 接单人3项) -->
|
||||
<custom-tab-bar current="user" />
|
||||
|
||||
<!-- 微信小程序用户隐私保护指引弹窗 (微信合规) -->
|
||||
<privacy-modal ref="privacyModalRef" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -210,6 +213,7 @@
|
||||
import { ref, computed, onMounted, onUnmounted } from 'vue';
|
||||
import { onShow } from '@dcloudio/uni-app';
|
||||
import CustomTabBar from '@/components/CustomTabBar.vue';
|
||||
import PrivacyModal from '@/components/PrivacyModal.vue';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
import { getCurrentThemeKey, setTheme, THEME_KEYS, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
import { getCurrentRole, setCurrentRole, ROLE_TYPES, toggleRole as toggleUserRole, isExpertCertified, getExpertCertStatus, setExpertCertStatus, CERT_STATUS } from '@/common/role.js';
|
||||
@@ -231,6 +235,7 @@ const user = ref({
|
||||
const currentRole = ref(getCurrentRole());
|
||||
const currentThemeKey = ref(getCurrentThemeKey());
|
||||
const navInfo = ref(getNavBarInfo());
|
||||
const privacyModalRef = ref(null);
|
||||
|
||||
const navStyle = computed(() => {
|
||||
return {
|
||||
@@ -598,11 +603,15 @@ const openNotice = () => {
|
||||
};
|
||||
|
||||
const openAbout = () => {
|
||||
uni.showModal({
|
||||
title: '平台服务协议',
|
||||
content: '严禁发布任何违规言论及作弊挂机行为,平台全面保障用户资金安全与绿色电竞环境。',
|
||||
showCancel: false
|
||||
});
|
||||
if (privacyModalRef.value && privacyModalRef.value.show) {
|
||||
privacyModalRef.value.show();
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '用户服务协议与隐私规范',
|
||||
content: '严禁发布任何违规言论及低俗诈骗行为,平台全面遵循微信内容安全风控与用户隐私保护标准。',
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const navTo = (url) => {
|
||||
|
||||
在新工单中引用
屏蔽一个用户