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

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

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

@ -45,6 +45,18 @@
</u--input> </u--input>
<!-- #endif --> <!-- #endif -->
</view> </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> <u-button text="登录" :disabled="!phone||!code" @click="smsLogin" class="loginBtn"></u-button>
<!-- <view >登录</view> --> <!-- <view >登录</view> -->
<view class="otherLogin"> <view class="otherLogin">
@ -99,6 +111,8 @@
tips: '', tips: '',
code:'', code:'',
phone:'', phone:'',
checked:[],
} }
}, },
@ -200,6 +214,10 @@
}, },
async smsLogin(item){ async smsLogin(item){
if(this.checked.length==0){
uni.$u.toast('请阅读并同意《用户隐私协议》');
return false;
}
let userInfo; let userInfo;
if(!item){ if(!item){
userInfo = await this.$api.base.smsLogin({ userInfo = await this.$api.base.smsLogin({

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

Loading…
Cancel
Save