增加协议文件

This commit is contained in:
2025-05-26 17:01:17 +08:00
parent 213bdcba88
commit dd42743f26
8 changed files with 97 additions and 74 deletions

View File

@@ -109,7 +109,7 @@
</view>
</uni-forms>
<!-- #ifdef MP-WEIXIN -->
<view class="agreement-policy">
<JeepayCheckbox v-model:checked="vdata.isSelectedAgreement" />
同意
@@ -117,16 +117,18 @@
<text></text>
<text class="policy" @click="toPrivacy">隐私政策</text>
</view>
<!-- #endif -->
<!-- <view class="agreement-policy">
<!-- #ifndef MP-WEIXIN -->
<view class="agreement-policy">
<JeepayCheckbox v-model:checked="vdata.isSelectedAgreement" />
同意
<text class="agreement" @click="go.to('PAGES_STATIC_AGREEMENT')">用户服务协议</text>
<text></text>
<text class="policy" @click="toPrivacy">隐私政策</text>
<text class="policy" @click="go.to('PAGES_STATIC_POLICY')">隐私政策</text>
</view> -->
</view>
<!-- #endif -->
<Button @tap="loginFunc">登录</Button>

View File

@@ -17,9 +17,9 @@ let vdata = reactive({
content: '',
})
onLoad(() => {
$getTreaty().then(({ bizData }) => {
vdata.content = bizData.privacyPolicy
})
// $getTreaty().then(({ bizData }) => {
// vdata.content = bizData.privacyPolicy
// })
})
</script>
<style lang="scss" scoped>

View File

@@ -1,28 +1,35 @@
<template>
<!-- #ifdef APP || H5 -->
<web-view src="/static/service.html"></web-view>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<mp-html :content='vdata.content'/>
<!-- #endif -->
<!-- #ifdef APP || H5 -->
<web-view src="/static/service.html"></web-view>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<mp-html :content='vdata.content' />
<!-- #endif -->
</template>
<script setup>
import { ref, reactive } from 'vue'
import { $getTreaty } from '@/http/apiManager.js'
import { onLoad } from '@dcloudio/uni-app'
import {
ref,
reactive
} from 'vue'
import {
$getTreaty
} from '@/http/apiManager.js'
import {
onLoad
} from '@dcloudio/uni-app'
let vdata = reactive({
content: '',
})
onLoad(() => {
$getTreaty().then(({ bizData }) => {
vdata.content = bizData.serviceAgreement
})
})
let vdata = reactive({
content: '',
})
onLoad(() => {
// $getTreaty().then(({ bizData }) => {
// vdata.content = bizData.serviceAgreement
// })
})
</script>
<style lang="scss" scoped>
.content-wrapper{
padding: 30rpx;
}
</style>
.content-wrapper {
padding: 30rpx;
}
</style>