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>
<script>
import {
import {
dateFormat,
dateFormats
} from '../../utils/dateFormat'
// import {
// address
// } from '../../static/address'
export default {
} from '../../utils/dateFormat'
// import {
// address
// } from '../../static/address'
export default {
data() {
return {
typeop: '',
@ -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 => {
@ -293,8 +291,8 @@ export default {
type: 'success',
message: '保存成功',
duration: '1000',
complete: function () {
setTimeout(function () {
complete: function() {
setTimeout(function() {
uni.navigateBack(1)
}, 1000);
}
@ -527,11 +525,11 @@ export default {
}
},
}
}
}
</script>
<style lang="scss">
.content {
.content {
.backImg {
position: fixed;
width: 100%;
@ -626,5 +624,5 @@ export default {
}
}
}
}
}
</style>

View File

@ -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">

View File

@ -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;
}
}
}