修改部分代码

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

View File

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

View File

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

View File

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

View File

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

View File

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