main
liudan 1 year ago
parent c3d6154e37
commit 944454077e
  1. 57
      androidPrivacy.json
  2. 10
      manifest.json
  3. 18
      pages/login.vue
  4. 32
      user/pages/setting.vue

@ -1,38 +1,35 @@
{
"version": "1.0.8",
"prompt": "template",
"title": "服务协议和隐私政策",
"message": "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept": "同意并接受",
"buttonRefuse": "暂不同意",
"hrefLoader": "system|default",
"backToExit":"false",
"second": {
"title": "确认提示",
"message": "  进入应用前,你需先同意<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept": "同意并继续",
"buttonRefuse": "退出应用"
"version" : "2.0.0",
"prompt" : "template",
"title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的位置信息、设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://docs.qq.com/doc/DYVZqcWRNYUNCZHlM\">《服务协议》</a>和<a href=\"https://docs.qq.com/doc/DYVZqcWRNYUNCZHlM\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意",
"buttonRefuse" : "拒绝",
"hrefLoader" : "system|default",
"backToExit" : "false",
"second" : {
"title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"https://docs.qq.com/doc/DYVZqcWRNYUNCZHlM\">《服务协议》</a>和<a href=\"https://docs.qq.com/doc/DYVZqcWRNYUNCZHlM\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用"
},
"disagreeMode":{
"support": false,
"loadNativePlugins": false,
"visitorEntry": true,
"showAlways": false
"disagreeMode" : {
"support" : false,
"loadNativePlugins" : false,
"visitorEntry" : false,
"showAlways" : false
},
"styles": {
"backgroundColor": "#ffffff",
"borderRadius":"5px",
"title": {
"color": "#333"
"styles" : {
"backgroundColor" : "#ffffff",
"borderRadius" : "5px",
"title" : {
"color" : "#333"
},
"buttonAccept": {
"color": "#08BF77"
"buttonAccept" : {
"color" : "#08BF77"
},
"buttonRefuse": {
"color": "#333333"
"buttonRefuse" : {
"color" : "#333333"
}
// "buttonVisitor": {
// "color": "#00ffff"
// }
}
}

@ -1,4 +1,4 @@
{
{
"name" : "希希到家",
"appid" : "__UNI__3303922",
// "appid" : "__UNI__AE4A250",
@ -210,7 +210,13 @@
}
},
"dSYMs" : false,
"idfa" : false
"idfa" : false,
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "该应用需要读取你的相册,以便为您编辑头像信息",
"NSPhotoLibraryAddUsageDescription" : "该应用需要读取你的相册,以便为您编辑头像信息",
"NSCameraUsageDescription" : "该应用需要你的相机,以便您拍摄上传头像信息",
"NSLocationWhenInUseUsageDescription" : ""
}
},
"splashscreen" : {
"useOriginalMsgbox" : true

@ -45,6 +45,18 @@
</u--input>
<!-- #endif -->
</view>
<view style="margin:20rpx 50rpx;display:flex;align-items: flex-start;">
<u-checkbox-group v-model="checked" >
<u-checkbox activeColor="#08BF77" name="1" shape="circle"></u-checkbox>
</u-checkbox-group>
<view class="">
登录即表示您已详细阅读并同意<text @tap.stop="goDetail(1)" :style="{color:primaryColor}">
用户隐私协议
</text><text @tap.stop="goDetail(2)" :style="{color:primaryColor}">
个人信息保护指引
</text>
</view>
</view>
<u-button text="登录" :disabled="!phone||!code" @click="smsLogin" class="loginBtn"></u-button>
<!-- <view >登录</view> -->
<view class="otherLogin">
@ -99,6 +111,8 @@
tips: '',
code:'',
phone:'',
checked:[],
}
},
@ -200,6 +214,10 @@
},
async smsLogin(item){
if(this.checked.length==0){
uni.$u.toast('请阅读并同意《用户隐私协议》');
return false;
}
let userInfo;
if(!item){
userInfo = await this.$api.base.smsLogin({

@ -54,10 +54,16 @@
<!-- <fix-bottom-button @confirm="toLoginOut"
:text="[{ text: '退出登录', type: 'confirm' }]" bgColor="#fff">
</fix-bottom-button> -->
<view style="display: flex;">
<view class="logoutBtn logoutBtnTwo" @click="zhuxiao" >
注销账号
</view>
<view class="logoutBtn" @click="toLoginOut" >
退出登录
</view>
</view>
<u-modal :show="show" content='已提交申请待审核' @confirm="show=false"></u-modal>
</view>
</template>
@ -87,7 +93,8 @@
text: '个人信息保护指引',
url: 2
}],
user_info: {}
user_info: {},
show:false,
}
},
computed: mapState({
@ -101,6 +108,17 @@
methods: {
...mapActions(['getUserInfo']),
...mapMutations(['updateUserItem']),
zhuxiao(){
let that = this;
uni.showModal({
title: "注销账户",
confirmColor: "#FF4D4F",
content: `注销此账号后您的数据将不再保留,是否继续注销?`,
success: (res) => {
this.show = true
}
});
},
async initIndex() {
this.$util.setNavigationBarColor({
bg: this.primaryColor
@ -197,8 +215,9 @@
margin-top:20rpx;
}
.logoutBtn{
width:66%;
margin: 0 auto;
// width:66%;
flex:1;
margin: 0 30rpx;
text-align: center;
background: rgba(8,191,119,0);
border: 1px solid #08BF77;
@ -209,4 +228,9 @@
font-weight: 500;
color: #08BF77;
}
.logoutBtnTwo{
border: 1px solid gray;
color: gray;
}
</style>

Loading…
Cancel
Save