调整分包,完成隐私协议(样式待优化)

This commit is contained in:
2024-07-18 14:18:05 +08:00
parent 765b3ad111
commit 00384d7382
1045 changed files with 34254 additions and 98 deletions

View File

@@ -1,4 +1,4 @@
import { login } from "../../service/user";
import { getPrivaciList, login } from "../../service/user";
import { alertError, alertInfo, alertSuccess, loadingFunc, wxLogin } from "../../utils/index";
import request from "../../utils/request";
import Dialog from '@vant/weapp/dialog/dialog';
@@ -14,6 +14,7 @@ Page({
input: "",
disabled: false,
show: false,
privacyList: [],
},
/**
@@ -33,8 +34,16 @@ Page({
// wx.switchTab({
// url: '/pages/home/index',
// })
this.getPrivacy();
},
async getPrivacy() {
const { code, message, data } = await getPrivaciList()
if (code !== OK) {
alertError(message)
return;
}
this.setData({ privacyList: data })
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
@@ -109,9 +118,10 @@ Page({
// on cancel
});
},
jumpToUserAgreement() {
jumpToUserAgreement(e) {
const { url } = e.currentTarget.dataset
wx.navigateTo({
url: '/pages/agreements/index',
url: '/childPackage/pages/agreements/index?url=' + url,
})
},
jumpToLoginAgreement() {