This commit is contained in:
王创世 2025-06-12 15:25:15 +08:00
parent cfb97086c4
commit 1602e1da54
3 changed files with 512 additions and 507 deletions

File diff suppressed because it is too large Load Diff

View File

@ -149,8 +149,6 @@
subdesc='以了解详细内容。如您同意,请点击“同意并继续”并开始使用我们的服务。' subdesc='以了解详细内容。如您同意,请点击“同意并继续”并开始使用我们的服务。'
top_img='https://naweigetetest2.hschool.com.cn/dyqc/dyqclogo.png' top_img='https://naweigetetest2.hschool.com.cn/dyqc/dyqclogo.png'
color="#C9935C" hideTabBar="true" :onNeed='false' :other="other" color="#C9935C" hideTabBar="true" :onNeed='false' :other="other"
refuse_tbn_text="不同意"
agree_btn_text="同意"
:title_style="'padding-top:60rpx;'" open_type='agreePrivacyAuthorization'> :title_style="'padding-top:60rpx;'" open_type='agreePrivacyAuthorization'>
</lsl-protocol-popup> </lsl-protocol-popup>
<view class="popup"> <view class="popup">

View File

@ -18,8 +18,10 @@
<view class="btn disagree-btn" @click="handleRefuse">{{refuse_tbn_text}}</view> <view class="btn disagree-btn" @click="handleRefuse">{{refuse_tbn_text}}</view>
</navigator> </navigator>
<view v-else class="btn disagree-btn" @click="handleRefuse">{{refuse_tbn_text}}</view> <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" <button v-if="!agree" id="agree-btn" class="btn agree-btn-no">{{agree_btn_text}}</button>
@agreeprivacyauthorization="handleAgree" @getphonenumber="getphonenumber">{{agree_btn_text}}</button>
<button v-if="agree" id="agree-btn" class="btn agree-btn"
@click="getphonenumber">{{agree_btn_text}}</button>
</view> </view>
</view> </view>
</view> </view>
@ -177,6 +179,7 @@
}, },
protocolClick(){ protocolClick(){
console.log(1); console.log(1);
this.agree=true;
}, },
open(name) { open(name) {
if (this.hideTabBar) { if (this.hideTabBar) {
@ -219,26 +222,26 @@
// //
getphonenumber(e){ getphonenumber(e){
console.log('// 授权手机号',e) console.log('// 授权手机号',e)
this.close();
if(this.open_type.indexOf('getPhoneNumber')>=0){ // if(this.open_type.indexOf('getPhoneNumber')>=0){
if(e.detail.errMsg == 'getPhoneNumber:ok'){ // if(e.detail.errMsg == 'getPhoneNumber:ok'){
uni.showTabBar(); // uni.showTabBar();
this.close(); // this.close();
this.$emit('agree_call') // this.$emit('agree_call')
this.$emit('get_phone_number',e); // this.$emit('get_phone_number',e);
}else{ // }else{
if(this.show_toast_phone){ // if(this.show_toast_phone){
uni.showToast({ // uni.showToast({
title: this.show_toast_phone, // title: this.show_toast_phone,
icon: 'none' // icon: 'none'
}) // })
} // }
if(this.is_force_phone){ // if(this.is_force_phone){
return; // return;
} // }
} // }
} // }
}, },
@ -405,6 +408,12 @@
color: #fff; color: #fff;
margin: 0; margin: 0;
} }
.agree-btn-no {
line-height: 80rpx;
background: #E4E4E4;
color: #9C9C9C;
margin: 0;
}
} }
} }