补充了注册页面的小程序用户协议和隐私政策

This commit is contained in:
2025-06-16 10:59:20 +08:00
parent 6f06dfd826
commit fc957770ce
4 changed files with 14 additions and 51 deletions

View File

@ -155,52 +155,15 @@ Page({
}) })
}, },
/** gotoAgreement() {
* 生命周期函数--监听页面初次渲染完成 wx.navigateTo({
*/ url: '/pages/loginModule/agreement/agreement',
onReady() { })
},
}, gotoPolicy() {
wx.navigateTo({
/** url: '/pages/loginModule/privacyPolicy/privacyPolicy',
* 生命周期函数--监听页面显示 })
*/ },
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
}) })

View File

@ -63,9 +63,9 @@
</checkbox-group> </checkbox-group>
<view class="group_2 ml-13"> <view class="group_2 ml-13">
<text class="font_2 text_10">我已阅读并同意</text> <text class="font_2 text_10">我已阅读并同意</text>
<text class="font_2">《用户协议》</text> <text class="font_2" bind:tap="gotoAgreement">《用户协议》</text>
<text class="text_11">&</text> <text class="text_11">&</text>
<text class="font_2">《隐私协议》</text> <text class="font_2" bind:tap="gotoPolicy">《隐私协议》</text>
</view> </view>
</view> </view>
<view bindtap="onRegister" class="flex-col justify-start items-center text-wrapper_6 mt-26"><text class="font text_12">注册</text></view> <view bindtap="onRegister" class="flex-col justify-start items-center text-wrapper_6 mt-26"><text class="font text_12">注册</text></view>

View File

@ -34,7 +34,7 @@ import { baseUrl } from "../../../../request";Component({
const rate = parseFloat(this.data.commissionRate); const rate = parseFloat(this.data.commissionRate);
if (isNaN(rate) || rate < 0 || rate > 10) { if (isNaN(rate) || rate < 0 || rate > 10) {
wx.showToast({ wx.showToast({
title: `请输入有效的比例,最大为 5%`, title: `请输入有效的比例,最大为 10%`,
icon: 'none', icon: 'none',
}); });
return; return;

View File

@ -2,6 +2,6 @@ export const local='http://localhost:9091';
export const ip = 'http://27.30.77.229:9091'; export const ip = 'http://27.30.77.229:9091';
export const test = 'http://27.30.77.229:9092'; export const test = 'http://27.30.77.229:9092';
export const localTest = 'http://localhost:9092'; export const localTest = 'http://localhost:9092';
export const baseUrl = localTest; export const baseUrl = test;
export const globalImgUrl = baseUrl + '/file/download/' export const globalImgUrl = baseUrl + '/file/download/'