【修改】 用户服务协议与 个人隐私

This commit is contained in:
fengachen
2022-01-10 13:55:37 +08:00
parent 97a8579e4a
commit ef9bf15fca
7 changed files with 312 additions and 9 deletions
+49 -2
View File
@@ -1,6 +1,13 @@
// pages/addPerson/addPerson.js
import signUpApi from '../../assets/js/http/signUp'
import {
appletName
} from "../../assets/js/project.config"
import {
userServicesAgreementText,
perrsonalProtectionPolicyText
} from '../../assets/js/acceptProtocolInfo'
import {
isEmail,
phoneReg,
@@ -16,7 +23,38 @@ Page({
selectedCompany: {},
// 是否是国际研讨会的选择
prepage: "",
data: false
data: false,
appletName: appletName,
content: '', // 用户服务与个人隐私 显示的内容
showModal: false // 控制弹窗显示隐藏
},
// 打开用户服务协议与个人信息的弹窗
openPanel(e) {
console.log(e);
let type = e.currentTarget.dataset.type
if (type === '1') {
this.setData({
content: userServicesAgreementText
})
} else {
this.setData({
content: perrsonalProtectionPolicyText
})
}
this.setData({
showModal: true
})
},
/**
* 隐藏模态对话框
*/
hideModal: function () {
const that = this
that.setData({
showModal: false,
content: '',
});
},
// 返回联系人列表
backPersonList() {
@@ -194,6 +232,15 @@ Page({
})
return
}
// 同意授权
if (formData.agree.length === 0) {
wx.showToast({
title: '请先同意授权',
icon: 'none',
duration: 800
})
return
}
// 参数需要传入公司id
formData.companyId = this.data.selectedCompany.id
@@ -285,4 +332,4 @@ Page({
onShareAppMessage: function () {
}
})
})