增加隐私政策

This commit is contained in:
YeMingfei666 2024-11-11 11:49:50 +08:00
parent 6f9a35f4d7
commit 7d4f1607fe
2 changed files with 18 additions and 8 deletions

View File

@ -17,13 +17,13 @@ import infoBox from "@/commons/utils/infoBox.js"
import go from '@/commons/utils/go.js';
import { reject } from 'lodash';
// 测试服
let baseUrl = 'https://admintestpapi.sxczgkj.cn'
// let baseUrl = 'https://admintestpapi.sxczgkj.cn'
//预发布
// let baseUrl = 'https://pre-cashieradmin.sxczgkj.cn'
//正式
// let baseUrl = 'https://cashieradmin.sxczgkj.cn'
let baseUrl = 'https://cashieradmin.sxczgkj.cn'
// 王伟本地测
// let baseUrl = '/ww'

View File

@ -109,7 +109,16 @@
</view>
</uni-forms>
<view class="agreement-policy">
<JeepayCheckbox v-model:checked="vdata.isSelectedAgreement" />
同意
<text class="agreement" @click="toPrivacy">用户服务协议</text>
<text></text>
<text class="policy" @click="toPrivacy">隐私政策</text>
</view>
<!-- <view class="agreement-policy">
<JeepayCheckbox v-model:checked="vdata.isSelectedAgreement" />
同意
@ -294,10 +303,10 @@
function loginFunc() {
//
formUtil.validate(loginFormRef.value).then(() => {
// if (!vdata.isSelectedAgreement) {
// refAgr.value.open()
// return false
// }
if (!vdata.isSelectedAgreement) {
infoBox.showToast('请勾选同意用户服务协议与隐私政策')
return false
}
let loginPromise = null;
if (vdata.loginType == 'pwd') { //
// loginPromise = $loginByPwd(vdata.formData.username, vdata.formData.pwd, vdata.formData.safetyCode)
@ -340,7 +349,7 @@
go.to('PAGES_STATIC_POLICY')
// #endif
//
// #ifdef APP-PLUS
// #ifdef MP-WEIXIN
wx.openPrivacyContract({
fail: () => {
uni.showToast({
@ -463,6 +472,7 @@
.agreement-policy {
display: flex;
justify-content: center;
align-items: center;
padding: 0 30rpx;
margin-top: 10rpx;