From f39c08853ae82619dbe89192803b364f5a182273 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 19 Sep 2024 17:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/booksubmit/appointment.vue | 56 +------- packages/mybook/index.vue | 4 +- pages/me/index.vue | 213 ++++++++++++++-------------- 3 files changed, 112 insertions(+), 161 deletions(-) diff --git a/packages/booksubmit/appointment.vue b/packages/booksubmit/appointment.vue index 7546440..c9cd469 100644 --- a/packages/booksubmit/appointment.vue +++ b/packages/booksubmit/appointment.vue @@ -39,40 +39,12 @@ - - + @@ -85,32 +57,6 @@ - diff --git a/packages/mybook/index.vue b/packages/mybook/index.vue index 0eab8dd..743d619 100644 --- a/packages/mybook/index.vue +++ b/packages/mybook/index.vue @@ -38,8 +38,8 @@ - 取消 - | + 取消 + | 查看 diff --git a/pages/me/index.vue b/pages/me/index.vue index 9a78bb9..e55a281 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -14,13 +14,15 @@ {{userInfo.username?userInfo.username:'-'}} - 学籍: - {{course_signs[0]['course'].year?course_signs[0]['course'].year+'年':''}}{{course_signs[0]['course'].type_detail?course_signs[0]['course']['type_detail'].name+"|":''}}{{course_signs[0]['course'].name}} + + 学籍: + {{course_signs[0]['course'].year?course_signs[0]['course'].year+'年':''}}{{course_signs[0]['course'].type_detail?course_signs[0]['course']['type_detail'].name+"|":''}}{{course_signs[0]['course'].name}} + - @@ -97,8 +99,8 @@ - @@ -109,10 +111,11 @@ 姓名: {{userInfo.username}} - - 学籍: - {{course_signs[0]['course'].year?course_signs[0]['course'].year+'年':''}}{{course_signs[0]['course'].type_detail?course_signs[0]['course']['type_detail'].name+"|":''}}{{course_signs[0]['course'].name}} - + + + 学籍: + {{course_signs[0]['course'].year?course_signs[0]['course'].year+'年':''}}{{course_signs[0]['course'].type_detail?course_signs[0]['course']['type_detail'].name+"|":''}}{{course_signs[0]['course'].name}} + @@ -152,14 +155,15 @@ - - - X - - + + + X + + @@ -181,10 +185,10 @@ showCard: false, userInfo: {}, hasMobile: false, - course_signs: [], - showBigCode:false, - myQrcode:'STBC', - timer:null + course_signs: [], + showBigCode: false, + myQrcode: 'STBC', + timer: null } }, onShareAppMessage() { @@ -201,28 +205,28 @@ }, onShow() { this.showRegister = false - this.getUserInfo() - let that = this - if(!this.timer){ - this.timer = setInterval(function(){ - that.getQrCode() - },3*60*1000) + this.getUserInfo() + let that = this + if (!this.timer) { + this.timer = setInterval(function() { + that.getQrCode() + }, 3 * 60 * 1000) } }, - onLoad() { - - }, - onUnload() { - if(this.timer){ - clearInterval(this.timer) - this.timer = null - } - }, - onHide() { - if(this.timer){ - clearInterval(this.timer) - this.timer = null - } + onLoad() { + + }, + onUnload() { + if (this.timer) { + clearInterval(this.timer) + this.timer = null + } + }, + onHide() { + if (this.timer) { + clearInterval(this.timer) + this.timer = null + } }, methods: { refreshCode() { @@ -232,10 +236,10 @@ return } this.showCard = true - }, - bigCode(){ - this.showCard = false - this.showBigCode = true + }, + bigCode() { + this.showCard = false + this.showBigCode = true }, toUrl(type) { if (type === 1 || type === 2 || type === 3) { @@ -272,8 +276,8 @@ console.log("res", res) this.$u.vuex('vuex_user', res.user) this.userInfo = res.user - this.course_signs = res.user.course_signs ? res.user.course_signs : [], - this.myQrcode = res.course_signs?res.course_signs.qrcode:'STBC' + this.course_signs = res.user.course_signs ? res.user.course_signs : [], + this.myQrcode = res.course_signs ? res.course_signs.qrcode : 'STBC' if (this.base.isNull(res.user.mobile)) { this.showRegister = true this.hasMobile = false @@ -282,17 +286,17 @@ this.hasMobile = true } }) - }, - getQrCode(){ - uni.showLoading({ - title: '...' - }) - this.$u.api.user().then(res => { - this.myQrcode = res.course_signs?res.course_signs.qrcode:'STBC' - setTimeout(function() { - uni.hideLoading() - }, 500) - }) + }, + getQrCode() { + uni.showLoading({ + title: '...' + }) + this.$u.api.user().then(res => { + this.myQrcode = res.course_signs ? res.course_signs.qrcode : 'STBC' + setTimeout(function() { + uni.hideLoading() + }, 500) + }) }, // 去绑定登录 goBind() { @@ -542,8 +546,8 @@ &-reload { display: flex; align-items: center; - padding: 10rpx 40rpx; - font-size:24rpx; + padding: 10rpx 40rpx; + font-size: 24rpx; image { width: 27rpx; @@ -562,52 +566,53 @@ // margin-bottom: 20rpx; } - &-course { - display: flex; - - &>text:first-child { - width: 100rpx; - } - - &>text:last-child { - width: calc(100% - 100rpx); + &-course { + display: flex; + + &>text:first-child { + width: 100rpx; + } + + &>text:last-child { + width: calc(100% - 100rpx); } } } - } - .big { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100vh; - background-color: rgba(0, 0, 0, 0.7); - overflow: scroll; - - &-wrap { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 500rpx; - text-align: center; - display: flex; - justify-content: center; - flex-wrap: wrap; - } - - &-close { - width: 80rpx; - height: 80rpx; - text-align: center; - line-height: 80rpx; - color: #fff; - background: #6e6e77; - border-radius: 80rpx; - position: absolute; - top: -80rpx; - right: 0; - } + } + + .big { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100vh; + background-color: rgba(0, 0, 0, 0.7); + overflow: scroll; + + &-wrap { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 500rpx; + text-align: center; + display: flex; + justify-content: center; + flex-wrap: wrap; + } + + &-close { + width: 80rpx; + height: 80rpx; + text-align: center; + line-height: 80rpx; + color: #fff; + background: #6e6e77; + border-radius: 80rpx; + position: absolute; + top: -80rpx; + right: 0; + } } } \ No newline at end of file