feat: 新增sw(税务)与hj(生态环境)专区模块;自制hj/sw-tabbar底栏;hj-web内嵌阅读(双指缩放);hnlylaw三活动authorization隔离(Sft/Sw/Hj);缓存键Hj后缀;问卷1006/1007;home专区入口接线;sw/hj规则与隐私文案、学习清单及链接校修复
This commit is contained in:
+42
-13
@@ -11,6 +11,9 @@
|
||||
style="width: 180rpx;position: absolute;top: 1420rpx;right: 50rpx;" mode="widthFix" @click="goStudy">
|
||||
</image>
|
||||
<view class="side-tab" style="top: 480rpx;" hover-class="side-tab-hover" @click="goRules">活动规则</view>
|
||||
<view class="back-home" @click="goHome">
|
||||
<text class="back-home-icon">‹</text>
|
||||
</view>
|
||||
<!-- <view style="position: absolute;top: 1210rpx;width: 300rpx;left: 225rpx;height: 80rpx;" @click="goRegister"></view> -->
|
||||
|
||||
<!-- <view class="side-tab" style="top: 350rpx;" hover-class="side-tab-hover" @click="goRecords">答题记录</view>
|
||||
@@ -68,31 +71,36 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goHome() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/home/home'
|
||||
})
|
||||
},
|
||||
goStudy() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/study/preview'
|
||||
})
|
||||
},
|
||||
initLogin() {
|
||||
// if (!this.isWechatBrowser()) {
|
||||
// this.block('请在微信中打开')
|
||||
// return
|
||||
// }
|
||||
// if (this.isPcWechat()) {
|
||||
// this.block('请使用手机微信打开')
|
||||
// return
|
||||
// }
|
||||
if (!this.isWechatBrowser()) {
|
||||
this.block('请在微信中打开')
|
||||
return
|
||||
}
|
||||
if (this.isPcWechat()) {
|
||||
this.block('请使用手机微信打开')
|
||||
return
|
||||
}
|
||||
let openId = uni.getStorageSync('openIdSft')
|
||||
if (openId) {
|
||||
this.loginWithOpenId(openId)
|
||||
return
|
||||
}
|
||||
const code = this.getCodeFromUrl()
|
||||
// if (code) {
|
||||
// this.exchangeOpenId(code)
|
||||
// } else {
|
||||
// this.wechatAuth()
|
||||
// }
|
||||
if (code) {
|
||||
this.exchangeOpenId(code)
|
||||
} else {
|
||||
this.wechatAuth()
|
||||
}
|
||||
},
|
||||
block(tip) {
|
||||
this.blocked = true
|
||||
@@ -264,6 +272,27 @@
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.back-home {
|
||||
position: fixed;
|
||||
left: 20rpx;
|
||||
top: 80rpx;
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 50%;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 998;
|
||||
}
|
||||
|
||||
.back-home-icon {
|
||||
font-size: 44rpx;
|
||||
color: #fff;
|
||||
line-height: 1;
|
||||
margin-top: -6rpx;
|
||||
}
|
||||
|
||||
.prize-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
Reference in New Issue
Block a user