| 12345678910111213141516171819202122232425262728 |
- /** 业务协议同意版本,协议内容改版时递增以触发重新弹窗 */
- export const POLICY_CONSENT_VERSION = '1'
- export const STORAGE_KEY_POLICY_CONSENT = 'policyConsentVersion'
- /** 弹窗层级:协议/隐私高于营销活动(分享减价等) */
- export const POLICY_POPUP_Z_INDEX = 10100
- export const PRIVACY_POPUP_Z_INDEX = 10110
- /** CMS 文章 code */
- export const ARTICLE_CODE = {
- userAgreement: 'userAgreement',
- privacyPolicy: 'privacyPolicy',
- orderAgreement: 'orderAgreement',
- }
- export const ARTICLE_TITLE = {
- userAgreement: '用户协议',
- privacyPolicy: '隐私政策',
- orderAgreement: '书嗨用户协议',
- }
- /** 协议展示页路径(含 code、title 参数) */
- export function buildAgreementPageUrl(type) {
- const code = ARTICLE_CODE[type] || ARTICLE_CODE.orderAgreement
- const title = ARTICLE_TITLE[type] || ARTICLE_TITLE.orderAgreement
- return `/pages-home/pages/user-agreement?code=${code}&title=${encodeURIComponent(title)}`
- }
|