添加协议链接

This commit is contained in:
zhouyanli
2026-06-27 07:57:30 +08:00
parent 47079da1a4
commit 5acbc0b154
5 changed files with 60 additions and 22 deletions

View File

@@ -59,7 +59,8 @@ import { onLoad } from '@dcloudio/uni-app';
import { addActivityLive, signinActivityLive, uploadFile } from '../api/api.js';
// 高德地图 Web API Key用于逆地址解析需要去 https://lbs.amap.com 申请免费 Key
const AMAP_KEY = 'f362f595be12ab7d84bd502b48b30d2a';
const AMAP_KEY = '38cd7fb803c600a58c5a13e644feab34';
// const AMAP_KEY = 'f362f595be12ab7d84bd502b48b30d2a';
// 活动ID
const activityId = ref('');

View File

@@ -2,7 +2,7 @@ let baseUrl = '';
if (process.env.NODE_ENV === 'development') {
baseUrl = 'http://192.168.1.222:8080'; // 开发环境
} else {
baseUrl = 'http://192.168.0.224:8080'; // 生产环境
baseUrl = 'https://wuyeapi.bugtc.com'; // 生产环境
}
export default function request(url, data = {}, method = "GET") {

View File

@@ -56,11 +56,11 @@
v-else
></uni-icons>
</view>
<text class="agreement-text" >
我已阅读并同意
<text class="agreePrivacy">用户协议</text>
<text @click.stop="goToPrivacy" class="agreePrivacy">隐私政策</text>
</text>
<text class="agreement-text" >我已阅读并同意
<text class="agreePrivacy" @click.stop="goToUserAgreement">用户协议</text>
<text class="agreePrivacy" @click.stop="goToPrivacy">隐私政策</text>
</text>
</view>
<!-- 登录按钮 -->
@@ -128,13 +128,25 @@ const checkForm = () => {
const toggleAgreement = () => {
agreeAgreement.value = !agreeAgreement.value;
};
// 跳转隐私协议
const goToPrivacy = () => {
uni.navigateTo({
url:'/pageSubPack/loginSub/privacy',
})
// 打开用户协议
const goToUserAgreement = () => {
// #ifdef APP-PLUS
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
// #endif
// #ifdef H5
window.open('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
// #endif
}
// 打开隐私政策
const goToPrivacy = () => {
// #ifdef APP-PLUS
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/owner.html')
// #endif
// #ifdef H5
window.open('https://wuye.ckdzkj.com/parivw/owner.html')
// #endif
}
// 打开隐私弹窗
const openPrivacyPopup = (action) => {
pendingAction.value = action || ''

View File

@@ -72,7 +72,7 @@
class="agreePrivacy">用户隐私政策</text></text> -->
<text class="agreement-text" >我已阅读并同意
<text class="agreePrivacy" @click.stop="">用户协议</text>
<text class="agreePrivacy" @click.stop="goToUserAgreement">用户协议</text>
<text class="agreePrivacy" @click.stop="goToPrivacy">隐私政策</text>
</text>
</view>
@@ -152,12 +152,26 @@
const toggleAgreement = () => {
agreeAgreement.value = !agreeAgreement.value;
};
// 跳转隐私协议
const goToPrivacy = () => {
uni.navigateTo({
url: '/pageSubPack/loginSub/privacy',
})
// 打开用户协议
const goToUserAgreement = () => {
// #ifdef APP-PLUS
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
// #endif
// #ifdef H5
window.open('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
// #endif
}
// 打开隐私政策
const goToPrivacy = () => {
// #ifdef APP-PLUS
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/owner.html')
// #endif
// #ifdef H5
window.open('https://wuye.ckdzkj.com/parivw/owner.html')
// #endif
}
// 检查表单状态(实时更新按钮状态)
const checkForm = () => {};