修改部分代码

This commit is contained in:
张凯 2025-05-12 20:21:29 +08:00
parent ba9fc0aa4f
commit 94f9e63735
6 changed files with 89 additions and 43 deletions

View File

@ -82,9 +82,9 @@
font-size: 35rpx;
}
// #ifdef MP-WEIXIN
// @font-face {
// font-family: 'YouSheBiaoTiHei';
// src: url('https://naweigetetest2.hschool.com.cn/dyqc/YouSheBiaoTiHei.ttf') format('truetype');
// }
@font-face {
font-family: 'YouSheBiaoTiHei';
src: url('https://naweigetetest2.hschool.com.cn/dyqc/YouSheBiaoTiHei.ttf') format('truetype');
}
// #endif
</style>

View File

@ -250,7 +250,7 @@
.box {
background-color: #F1F2F8;
background-image: url("https://naweigetetest2.hschool.com.cn/dyqc/bgx2.png");
background-size: 750rpx 797rpx;
background-size: 100%;
background-repeat: no-repeat;
}
@ -340,6 +340,10 @@
.center {
width: 690rpx;
margin-bottom: 200rpx;
position: fixed;
margin-top: 130rpx;
height: 100%;
overflow-y: auto;
.list {
width: 690rpx;
background: #FFFFFF;

View File

@ -207,7 +207,7 @@
<span> </span>
</button>
</view>
<!-- <view class="Poster" style="z-index: 9999;height: 1230rpx;">
<view class="Poster" style="z-index: 9999;height: 1230rpx;">
<span class="posterClose" @click.stop="overlay = false">
<image src="../../static/center/close.png" mode="" style="width: 64rpx;height: 64rpx;"></image>
</span>
@ -255,7 +255,7 @@
</l-painter-view>
</l-painter>
</view> -->
</view>
</u-overlay>
</view>
@ -378,11 +378,11 @@
overlayShow() {
const token = uni.getStorageSync('token')
if (token) {
// this.overlay = true
uni.showToast({
title: '开发中,暂未开放',
icon: 'none'
});
this.overlay = true
// uni.showToast({
// title: '',
// icon: 'none'
// });
} else {
uni.showToast({
title: '请登录',

View File

@ -984,7 +984,7 @@
width: 750rpx;
background-color: #f7f7f7;
background-image: url("https://naweigetetest2.hschool.com.cn/dyqc/bgx2.png");
background-size: 750rpx 797rpx;
background-size: 100%;
background-repeat: no-repeat;
}

View File

@ -574,7 +574,7 @@ export default {
width: 750rpx;
background-color: #f7f7f7;
background-image: url("https://naweigetetest2.hschool.com.cn/dyqc/bgx2.png");
background-size: 750rpx 797rpx;
background-size: 100%;
.group {
width: 690rpx;

View File

@ -76,8 +76,7 @@
</view> -->
<!-- 成为主理人 -->
<!-- @click="callPhone(init.mobile)" -->
<view class="first service flex justify-center align-items" >
<view class="first service flex justify-center align-items" @click="iszhuliren()">
</view>
@ -159,7 +158,7 @@
<lsl-protocol-popup title="用户协议和隐私政策提示" predesc="感谢您使用洛阳多样青春搭+。为保护您的个人信息安全,在您洛阳多样青春搭+的服务前,请务必仔细阅读"
subdesc='以了解详细内容。如您同意,请点击“同意并继续”并开始使用我们的服务。'
top_img='https://naweigetetest2.hschool.com.cn/dyqc/dyqclogo.png'
color="#C9935C" hideTabBar="true" :onNeed='false' @agree="getList" :other="other"
color="#C9935C" hideTabBar="true" :onNeed='false' :other="other"
:title_style="'padding-top:60rpx;'" open_type='agreePrivacyAuthorization'>
</lsl-protocol-popup>
<view class="popup">
@ -466,6 +465,12 @@ export default {
url: "/pages/center/detail?id=" + id,
});
},
iszhuliren() {
uni.showToast({
title: '开发中,暂未开放',
icon: 'none'
});
},
callPhone(phone) {
console.log(phone)
uni.showToast({
@ -666,11 +671,16 @@ export default {
//
miniLogin() {
let _this = this;
uni.getProvider({
service: 'oauth',
success: function(res) {
console.log(res)
if (~res.provider.indexOf('weixin')) {
uni.login({
provider: 'weixin',
success: function (res) {
console.log('res.code', res.code)
_this.getOpenidByCode(res.code)
_this.getOpenidByCode(res.code,1)
_this.code = res.code
uni.setStorageSync('code', res.code)
},
@ -678,10 +688,28 @@ export default {
console.log('authError', error);
}
})
} else {
uni.login({
provider: 'toutiao',
success: function (res) {
console.log('res.code', res.code)
_this.getOpenidByCode(res.code,2)
_this.code = res.code
uni.setStorageSync('code', res.code)
},
fail: function (error) {
console.log('authError', error);
}
})
}
}
});
},
//codeopenid
getOpenidByCode(code) {
getOpenidByCode(code,val) {
let _this = this;
if (val == 1) {
uni.$u.http.post('/api/user/getOpenid ', {
code: code,
}).then(res => {
@ -693,6 +721,20 @@ export default {
}).catch(error => {
console.log('获取openid失败', error);
})
}else{
uni.$u.http.post('/api/user/getTtOpenid ', {
code: code,
}).then(res => {
if (res.code == 1) {
_this.openidInfo = res.data;
uni.setStorageSync('openidInfo', res.data)
// _this.$api.setCache('openidInfo', res.data);
}
}).catch(error => {
console.log('获取openid失败', error);
})
}
},
//
getPhoneNumber(e) {
@ -937,7 +979,7 @@ export default {
min-height: 100vh;
background-color: #F1F2F8;
background-image: url("https://naweigetetest2.hschool.com.cn/dyqc/bgx2.png");
background-size: 750rpx 797rpx;
background-size: 100%;
background-repeat: no-repeat;
}