1
This commit is contained in:
parent
cfb97086c4
commit
1602e1da54
@ -253,11 +253,9 @@ export default {
|
||||
});
|
||||
},
|
||||
openSfz() {
|
||||
if (this.sfInfo.status == -1) {
|
||||
uni.navigateTo({
|
||||
url: '/packageB/card/index'
|
||||
})
|
||||
}
|
||||
},
|
||||
getSfInfo() {
|
||||
uni.$u.http.get('/api/school.real_name/info').then(res => {
|
||||
|
@ -149,8 +149,6 @@
|
||||
subdesc='以了解详细内容。如您同意,请点击“同意并继续”并开始使用我们的服务。'
|
||||
top_img='https://naweigetetest2.hschool.com.cn/dyqc/dyqclogo.png'
|
||||
color="#C9935C" hideTabBar="true" :onNeed='false' :other="other"
|
||||
refuse_tbn_text="不同意"
|
||||
agree_btn_text="同意"
|
||||
:title_style="'padding-top:60rpx;'" open_type='agreePrivacyAuthorization'>
|
||||
</lsl-protocol-popup>
|
||||
<view class="popup">
|
||||
|
@ -18,8 +18,10 @@
|
||||
<view class="btn disagree-btn" @click="handleRefuse">{{refuse_tbn_text}}</view>
|
||||
</navigator>
|
||||
<view v-else class="btn disagree-btn" @click="handleRefuse">{{refuse_tbn_text}}</view>
|
||||
<button id="agree-btn" class="btn agree-btn" :open-type="open_type"
|
||||
@agreeprivacyauthorization="handleAgree" @getphonenumber="getphonenumber">{{agree_btn_text}}</button>
|
||||
<button v-if="!agree" id="agree-btn" class="btn agree-btn-no">{{agree_btn_text}}</button>
|
||||
|
||||
<button v-if="agree" id="agree-btn" class="btn agree-btn"
|
||||
@click="getphonenumber">{{agree_btn_text}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -177,6 +179,7 @@
|
||||
},
|
||||
protocolClick(){
|
||||
console.log(1);
|
||||
this.agree=true;
|
||||
},
|
||||
open(name) {
|
||||
if (this.hideTabBar) {
|
||||
@ -219,26 +222,26 @@
|
||||
// 授权手机号
|
||||
getphonenumber(e){
|
||||
console.log('// 授权手机号',e)
|
||||
|
||||
if(this.open_type.indexOf('getPhoneNumber')>=0){
|
||||
if(e.detail.errMsg == 'getPhoneNumber:ok'){
|
||||
uni.showTabBar();
|
||||
this.close();
|
||||
this.$emit('agree_call')
|
||||
this.$emit('get_phone_number',e);
|
||||
}else{
|
||||
if(this.show_toast_phone){
|
||||
uni.showToast({
|
||||
title: this.show_toast_phone,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
if(this.is_force_phone){
|
||||
return;
|
||||
}
|
||||
}
|
||||
// if(this.open_type.indexOf('getPhoneNumber')>=0){
|
||||
// if(e.detail.errMsg == 'getPhoneNumber:ok'){
|
||||
// uni.showTabBar();
|
||||
// this.close();
|
||||
// this.$emit('agree_call')
|
||||
// this.$emit('get_phone_number',e);
|
||||
// }else{
|
||||
// if(this.show_toast_phone){
|
||||
// uni.showToast({
|
||||
// title: this.show_toast_phone,
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
// if(this.is_force_phone){
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
},
|
||||
@ -405,6 +408,12 @@
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
}
|
||||
.agree-btn-no {
|
||||
line-height: 80rpx;
|
||||
background: #E4E4E4;
|
||||
color: #9C9C9C;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user