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

View File

@ -105,14 +105,14 @@
</template> </template>
<script> <script>
import { import {
dateFormat, dateFormat,
dateFormats dateFormats
} from '../../utils/dateFormat' } from '../../utils/dateFormat'
// import { // import {
// address // address
// } from '../../static/address' // } from '../../static/address'
export default { export default {
data() { data() {
return { return {
typeop: '', typeop: '',
@ -253,11 +253,9 @@ export default {
}); });
}, },
openSfz() { openSfz() {
if (this.sfInfo.status == -1) {
uni.navigateTo({ uni.navigateTo({
url: '/packageB/card/index' url: '/packageB/card/index'
}) })
}
}, },
getSfInfo() { getSfInfo() {
uni.$u.http.get('/api/school.real_name/info').then(res => { uni.$u.http.get('/api/school.real_name/info').then(res => {
@ -293,8 +291,8 @@ export default {
type: 'success', type: 'success',
message: '保存成功', message: '保存成功',
duration: '1000', duration: '1000',
complete: function () { complete: function() {
setTimeout(function () { setTimeout(function() {
uni.navigateBack(1) uni.navigateBack(1)
}, 1000); }, 1000);
} }
@ -527,11 +525,11 @@ export default {
} }
}, },
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.content { .content {
.backImg { .backImg {
position: fixed; position: fixed;
width: 100%; width: 100%;
@ -626,5 +624,5 @@ export default {
} }
} }
} }
} }
</style> </style>

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)
if(this.open_type.indexOf('getPhoneNumber')>=0){
if(e.detail.errMsg == 'getPhoneNumber:ok'){
uni.showTabBar();
this.close(); this.close();
this.$emit('agree_call') // if(this.open_type.indexOf('getPhoneNumber')>=0){
this.$emit('get_phone_number',e); // if(e.detail.errMsg == 'getPhoneNumber:ok'){
}else{ // uni.showTabBar();
if(this.show_toast_phone){ // this.close();
uni.showToast({ // this.$emit('agree_call')
title: this.show_toast_phone, // this.$emit('get_phone_number',e);
icon: 'none' // }else{
}) // if(this.show_toast_phone){
} // uni.showToast({
if(this.is_force_phone){ // title: this.show_toast_phone,
return; // icon: 'none'
} // })
} // }
// if(this.is_force_phone){
// 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;
}
} }
} }