Commit 8c4c2dd4 by yuzhenWang

修改申请加盟返回后首页不能滑动问题

parent 555ec268
......@@ -43,7 +43,7 @@
};
},
props: ['showCanvas'],
emits: ['sendImage',],
emits: ['sendImage','closeCanvas'],
methods: {
//清除签名的图片
obliterate() {
......
......@@ -23,7 +23,7 @@
v-for="(item, index) in displayedList"
:key="index"
class="dropdown-item"
@click.stop="handleSelect(item)"
@click="handleSelect(item)"
>
{{ item.label }}
</view>
......
......@@ -55,18 +55,21 @@
background: #fff;
color: #333;
font-size: 24rpx;
padding-bottom: 50rpx;
transform: translateX(-50%);
box-sizing: border-box;
padding: 5rpx 25rpx 115rpx 25rpx;
.menu_content{
display: flex;
align-items: center;
justify-content: space-around;
.pic{
width: 70rpx;
width: 60rpx;
margin: 0 auto;
}
.name{
text-align: center;
font-size: 26rpx;
color: #666;
}
}
}
......
......@@ -104,7 +104,7 @@
</script>
<style lang="scss">
<style lang="scss" scoped>
@import 'applyCommon.scss';
.wrapper{
padding-top: 40rpx;
......
......@@ -262,7 +262,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import 'applyCommon.scss';
.photo_w {
......
......@@ -237,7 +237,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import 'applyCommon.scss';
.content_wrapper {
......
......@@ -188,7 +188,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import 'applyCommon.scss';
.container {
......
......@@ -56,7 +56,8 @@
personalSignOssPath:'',
approvalStatus:''
}
},
touchMoveHandler:null,
}
},
components:{eSignature},
......@@ -71,10 +72,44 @@
}else{
this.queryById(null,uni.getStorageSync('cffp_userId'))
}
this.norebound()
// this.norebound()
this.lockScroll()
},
beforeDestroy() {
console.log('组件销毁');
this.releaseScroll(); // 确保组件销毁时释放
},
methods: {
// 锁定滚动
lockScroll() {
// #ifdef H5
if (this.touchMoveHandler) return; // 避免重复绑定
this.touchMoveHandler = (e) => {
e.preventDefault();
};
document.body.addEventListener(
'touchmove',
this.touchMoveHandler,
{ passive: false }
);
// #endif
},
// 释放滚动
releaseScroll() {
// #ifdef H5
if (this.touchMoveHandler) {
document.body.removeEventListener(
'touchmove',
this.touchMoveHandler
);
this.touchMoveHandler = null;
}
// #endif
},
goBack() {
this.releaseScroll()
uni.navigateBack({
delta: 1
});
......@@ -96,6 +131,7 @@
}else{
this.$refs.signatureComponent.finish()
}
this.releaseScroll()
},
clearImg(){
//0-未提交,1-待审核,2-审核未通过,3-审核通过
......
......@@ -300,7 +300,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import 'applyCommon.scss';
.photo_w {
......
<template>
<!-- <movable-area style="width: 100vw; height: 100vh; pointer-events:none; z-index: 9999;position:fixed;top:0;left:0;"
@tap="tokefu()">
<movable-view direction="all"
style="width: 100rpx; pointer-events:auto; height: 80rpx;top: 50%;left: 85%;text-align: center;">
<image :src="kefu" mode="widthFix"></image>
<text style="font-size:20rpx;color: #1954fe;">在线客服</text>
</movable-view>
</movable-area> -->
<view class="container">
<view class="top">
<view class="compony">
......@@ -83,6 +75,7 @@
export default {
data() {
return {
companyFullName : companyInfo.companyFullName,
cffpCourseInfos: [],
x: 0,
......@@ -175,7 +168,9 @@
search,
courseItem
},
onShow() {
this.init();
},
onLoad() {
......@@ -190,6 +185,7 @@
}
},
methods: {
init() {
if (uni.getStorageSync('isLogin')) {
let loginType = uni.getStorageSync('loginType')
......@@ -349,10 +345,12 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.container {
padding: 30rpx 30rpx 20rpx;
height: auto;
overflow-y: auto; /* 关键属性 */
-webkit-overflow-scrolling: touch; /* 优化移动端滚动 */
.top {
.compony {
display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment