Commit 8c4c2dd4 by yuzhenWang

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

parent 555ec268
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
}; };
}, },
props: ['showCanvas'], props: ['showCanvas'],
emits: ['sendImage',], emits: ['sendImage','closeCanvas'],
methods: { methods: {
//清除签名的图片 //清除签名的图片
obliterate() { obliterate() {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
v-for="(item, index) in displayedList" v-for="(item, index) in displayedList"
:key="index" :key="index"
class="dropdown-item" class="dropdown-item"
@click.stop="handleSelect(item)" @click="handleSelect(item)"
> >
{{ item.label }} {{ item.label }}
</view> </view>
......
...@@ -55,18 +55,21 @@ ...@@ -55,18 +55,21 @@
background: #fff; background: #fff;
color: #333; color: #333;
font-size: 24rpx; font-size: 24rpx;
padding-bottom: 50rpx;
transform: translateX(-50%); transform: translateX(-50%);
box-sizing: border-box;
padding: 5rpx 25rpx 115rpx 25rpx;
.menu_content{ .menu_content{
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
.pic{ .pic{
width: 70rpx; width: 60rpx;
margin: 0 auto; margin: 0 auto;
} }
.name{ .name{
text-align: center; text-align: center;
font-size: 26rpx;
color: #666;
} }
} }
} }
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
@import 'applyCommon.scss'; @import 'applyCommon.scss';
.wrapper{ .wrapper{
padding-top: 40rpx; padding-top: 40rpx;
......
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
@import 'applyCommon.scss'; @import 'applyCommon.scss';
.photo_w { .photo_w {
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
@import 'applyCommon.scss'; @import 'applyCommon.scss';
.content_wrapper { .content_wrapper {
......
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
@import 'applyCommon.scss'; @import 'applyCommon.scss';
.container { .container {
......
...@@ -56,7 +56,8 @@ ...@@ -56,7 +56,8 @@
personalSignOssPath:'', personalSignOssPath:'',
approvalStatus:'' approvalStatus:''
} },
touchMoveHandler:null,
} }
}, },
components:{eSignature}, components:{eSignature},
...@@ -71,10 +72,44 @@ ...@@ -71,10 +72,44 @@
}else{ }else{
this.queryById(null,uni.getStorageSync('cffp_userId')) this.queryById(null,uni.getStorageSync('cffp_userId'))
} }
this.norebound() // this.norebound()
this.lockScroll()
},
beforeDestroy() {
console.log('组件销毁');
this.releaseScroll(); // 确保组件销毁时释放
}, },
methods: { 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() { goBack() {
this.releaseScroll()
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}); });
...@@ -96,6 +131,7 @@ ...@@ -96,6 +131,7 @@
}else{ }else{
this.$refs.signatureComponent.finish() this.$refs.signatureComponent.finish()
} }
this.releaseScroll()
}, },
clearImg(){ clearImg(){
//0-未提交,1-待审核,2-审核未通过,3-审核通过 //0-未提交,1-待审核,2-审核未通过,3-审核通过
......
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
@import 'applyCommon.scss'; @import 'applyCommon.scss';
.photo_w { .photo_w {
......
<template> <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="container">
<view class="top"> <view class="top">
<view class="compony"> <view class="compony">
...@@ -83,6 +75,7 @@ ...@@ -83,6 +75,7 @@
export default { export default {
data() { data() {
return { return {
companyFullName : companyInfo.companyFullName, companyFullName : companyInfo.companyFullName,
cffpCourseInfos: [], cffpCourseInfos: [],
x: 0, x: 0,
...@@ -175,7 +168,9 @@ ...@@ -175,7 +168,9 @@
search, search,
courseItem courseItem
}, },
onShow() { onShow() {
this.init(); this.init();
}, },
onLoad() { onLoad() {
...@@ -190,6 +185,7 @@ ...@@ -190,6 +185,7 @@
} }
}, },
methods: { methods: {
init() { init() {
if (uni.getStorageSync('isLogin')) { if (uni.getStorageSync('isLogin')) {
let loginType = uni.getStorageSync('loginType') let loginType = uni.getStorageSync('loginType')
...@@ -349,10 +345,12 @@ ...@@ -349,10 +345,12 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.container { .container {
padding: 30rpx 30rpx 20rpx; padding: 30rpx 30rpx 20rpx;
height: auto;
overflow-y: auto; /* 关键属性 */
-webkit-overflow-scrolling: touch; /* 优化移动端滚动 */
.top { .top {
.compony { .compony {
display: flex; 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