diff --git a/pages/index/index.js b/pages/index/index.js
index 315ced7..bb5c43c 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -173,8 +173,9 @@ Page({
this.setData({
month: (this.data.months[today.getMonth()]).toUpperCase(),
date: today.getDate()
- })
- this.getVideoPrize()
+ })
+ // 调用接口如果token过期会导致一进入就要登陆
+ // this.getVideoPrize()
this.getXpthList()
},
getHeight() {
@@ -822,7 +823,7 @@ Page({
// 获取短视频大赛是否中奖 中奖详情
getVideoPrize() {
let user_id = wx.getStorageSync('jstrip_userid');
- if (!user_id || wx.getStorageSync('indexPriceNoTip')) return;
+ if (!user_id || wx.getStorageSync('indexPriceNoTip')) return;
commonApi.user_post('actonline/video_act/getRaffle', {
act_id: 5
}).then(res => {
diff --git a/pages/login/index.js b/pages/login/index.js
index e3b739c..d6166db 100644
--- a/pages/login/index.js
+++ b/pages/login/index.js
@@ -11,7 +11,9 @@ Page({
data: {
err:null,
canIUseGetUserProfile:false,
- event: ''
+ event: '',
+
+ isApproval: false
},
/**
@@ -45,6 +47,15 @@ Page({
})
},
getUserProfile:function(e){
+ if (!this.data.isApproval) {
+ wx.showToast({
+ title: '请先阅读并同意相关协议',
+ icon: "none"
+ });
+ return
+ }
+
+
wx.getUserProfile({
desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
@@ -53,6 +64,14 @@ Page({
})
},
getUserInfo:function(e,type){
+ if (!this.data.isApproval) {
+ wx.showToast({
+ title: '请先阅读并同意相关协议',
+ icon: "none"
+ });
+ return
+ }
+
let that = this;
if (e.detail && (!e.detail.userInfo)){
wx.reLaunch({
@@ -113,6 +132,9 @@ Page({
let id = e.currentTarget?e.currentTarget.dataset.clickid:e;
wx.uma.trackEvent(id)
},
+ changeIsApproval:function (e) {
+ this.setData({isApproval: !this.data.isApproval})
+ },
/**
* 生命周期函数--监听页面初次渲染完成
diff --git a/pages/login/index.wxml b/pages/login/index.wxml
index 281becb..a97a59e 100644
--- a/pages/login/index.wxml
+++ b/pages/login/index.wxml
@@ -6,6 +6,16 @@
获得你的公开信息(昵称、头像、地区及性别)
+
+
+
+
+ 选中代表您已阅读同意
+ 《君到苏州用户协议》
+ 《君到苏州隐私政策》
+ 《君到苏州第三方共享信息清单》
+
+
diff --git a/pages/login/index.wxss b/pages/login/index.wxss
index fd661a0..70a7d8b 100644
--- a/pages/login/index.wxss
+++ b/pages/login/index.wxss
@@ -37,4 +37,19 @@ page {
}
.btn-box button {
width: 400rpx;
+}
+
+.select-icon{
+ border-radius: 50%;
+ color: transparent;
+ border: 1px solid #666;
+ width: 24rpx;
+ height: 24rpx;
+ flex-shrink: 0;
+ margin-right: 34rpx;
+ margin-top: 7rpx;
+}
+.navigator-file{
+ display: inline-block;
+ color: #0b898e;
}
\ No newline at end of file
diff --git a/pages/user/bindtel/index.js b/pages/user/bindtel/index.js
index 0b6fa7a..ce73a3f 100644
--- a/pages/user/bindtel/index.js
+++ b/pages/user/bindtel/index.js
@@ -16,7 +16,9 @@ Page({
sendFlag:true,
regToken:null,
codeId:null,
- imgCodeInfo:null
+ imgCodeInfo:null,
+
+ isApproval: false
},
/**
@@ -152,6 +154,15 @@ Page({
})
return false;
}
+
+ if (this.data.regToken && !this.data.isApproval) {
+ wx.showToast({
+ title: '请先阅读并同意相关协议',
+ icon: "none"
+ });
+ return
+ }
+
let service = "user/changeMobile",data={smsCode:this.data.code,mobile:this.data.tel,smsCodeId:this.data.codeId},api = user.user_post;
if(this.data.regToken){
service = "user/wxBindPhoneAndLogin"
@@ -185,6 +196,10 @@ Page({
})
},
+ changeIsApproval:function (e) {
+ this.setData({isApproval: !this.data.isApproval})
+ },
+
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/user/bindtel/index.wxml b/pages/user/bindtel/index.wxml
index 999a0b6..0e252e3 100644
--- a/pages/user/bindtel/index.wxml
+++ b/pages/user/bindtel/index.wxml
@@ -18,6 +18,18 @@
+
+
+
+
+
+ 选中代表您已阅读同意
+ 《君到苏州用户协议》
+ 《君到苏州隐私政策》
+ 《君到苏州第三方共享信息清单》
+
+
+
{{regToken?'绑定':'保存修改'}}
diff --git a/pages/user/bindtel/index.wxss b/pages/user/bindtel/index.wxss
index fdbbcda..b7f2e59 100644
--- a/pages/user/bindtel/index.wxss
+++ b/pages/user/bindtel/index.wxss
@@ -38,4 +38,34 @@
.code-img {
width: 150rpx;
height: 60rpx;
-}
\ No newline at end of file
+}
+
+.login-tip-box {
+ display: flex;
+ align-items: flex-start;
+ margin: 0 20rpx;
+ font-size: 28rpx;
+ margin-top: 40rpx;
+ line-height: 40rpx;
+ }
+ .login-tip-box .icon-gou1 {
+ line-height: 80rpx;
+ margin-top: -20rpx;
+ margin-right: 30rpx;
+ color: #666;
+ }
+
+ .select-icon{
+ border-radius: 50%;
+ color: transparent;
+ border: 1px solid #666;
+ width: 24rpx;
+ height: 24rpx;
+ flex-shrink: 0;
+ margin-right: 34rpx;
+ margin-top: 7rpx;
+ }
+ .navigator-file{
+ display: inline-block;
+ color: #0b898e;
+ }
\ No newline at end of file