Explorar el Código

refactor(app): 更新用户协议类型并添加新协议链接

- 更新隐私政策和注册协议的类型为 ZCHUserPrivacyAgreement 和 ZCHUserRegistrationAgreement
- 在个人微信视频号授权页面添加个人微信视频号授权使用协议链接
- 更新我的页面跳转到主页时携带用户 ID 参数
EvilDragon hace 1 mes
padre
commit
d08d6b97ac

+ 6 - 2
packages/app/src/pages/login/index.vue

@@ -102,13 +102,17 @@ onLoad(async (query: { type?: 'test' }) => {
             《筑巢荟用户服务协议》、
           </span>
           <span
-            @click="toContentHtml({ title: '隐私政策', type: AgreementType.PrivacyPolicy })"
+            @click="
+              toContentHtml({ title: '隐私政策', type: AgreementType.ZCHUserPrivacyAgreement })
+            "
             class="text-[#0cbe7c] text-xs font-normal font-['PingFang_SC'] leading-tight"
           >
             《隐私政策》、
           </span>
           <span
-            @click="toContentHtml({ title: '注册协议', type: AgreementType.RegisterAgreement })"
+            @click="
+              toContentHtml({ title: '注册协议', type: AgreementType.ZCHUserRegistrationAgreement })
+            "
             class="text-[#0cbe7c] text-xs font-normal font-['PingFang_SC'] leading-tight"
           >
             《注册协议》

+ 13 - 4
packages/app/src/pages/mine/homepage/channels/index.vue

@@ -7,16 +7,17 @@ import { getDesignerInfo, updateDesignerInfo } from '../../../../core/libs/reque
 import { useUserStore } from '../../../../store'
 import { storeToRefs } from 'pinia'
 import { pick } from 'radash'
-import { requestToast, validate } from '../../../../core/utils/common'
+import { toContentHtml, validate } from '../../../../core/utils/common'
 import BottomAppBar from '@/components/bottom-app-bar.vue'
 import { useMessage } from 'wot-design-uni'
 import { NetImages } from '../../../../core/libs/net-images'
-import {useRouter} from "@/core/utils/router";
+import { useRouter } from '@/core/utils/router'
+import { AgreementType } from '@/core/libs/enums'
 
 const { alert, confirm } = useMessage('wd-message-box-slot')
 const userStore = useUserStore()
 const { userInfo } = storeToRefs(userStore)
-const {back} = useRouter()
+const { back } = useRouter()
 const form = ref<{
   userId?: number
   videoNumber?: string
@@ -89,7 +90,15 @@ onMounted(async () => {
         <span class="text-black/40 text-base font-normal font-['PingFang SC'] leading-relaxed">
           关联后,小程序开发者将获取您的视频号相关信息,并为您提供相关服务,请您充分阅读
         </span>
-        <span class="text-[#3f598f] text-base font-normal font-['PingFang SC'] leading-relaxed">
+        <span
+          class="text-[#3f598f] text-base font-normal font-['PingFang SC'] leading-relaxed"
+          @click="
+            toContentHtml({
+              title: '个人微信视频号授权使用协议',
+              type: AgreementType.PersonalWeChatVideoAuthorization,
+            })
+          "
+        >
           《个人微信视频号授权使用协议》
         </span>
       </div>

+ 1 - 1
packages/app/src/pages/mine/index.vue

@@ -166,7 +166,7 @@ const handleToAuthentication = () => {
   router.push('/pages/mine/authentication/index')
 }
 const handleToHomepage = () => {
-  uni.navigateTo({ url: '/pages/mine/homepage/index' })
+  uni.navigateTo({ url: `/pages/mine/homepage/index?id=${userInfo.value.userId}` })
 }
 const handleMenuClick = (path) => {
   path && router.push(path)