培训页面滚动至校企合作

main
lijingyu007 5 months ago
parent e56fed75ad
commit 8bc3be19c6
  1. 20
      pages/index/testtraining/testtraining.vue

@ -309,7 +309,7 @@
<!-- 模块6 -->
<view class="titlePeo">
<view class="titlePeo" id="targetElement">
<view class="titletopt">
<image src="../../../static/crowd/rihhj.png" alt="" />
<p style="margin:0px 10px">校企合作培训</p>
@ -1011,10 +1011,16 @@
},
// 线
gobaomingFn() {
uni.pageScrollTo({
scrollTop: '2000'
// selector:'.titletopt'
})
// uni.pageScrollTo({
// scrollTop: '2000'
// // selector:'.titletopt'
// })
uni.createSelectorQuery().select('#targetElement').boundingClientRect((res) => {
uni.pageScrollTo({
scrollTop: res.top,
duration: 300
});
}).exec();
},
//
getClassList() {
@ -1327,7 +1333,7 @@
.rowitem>>>.u-input {
width: 66vw !important;
height: 60rpx;
height: 70rpx;
}
.rowitem1>>>.u-input {
@ -1337,7 +1343,7 @@
.rowitem>>>.u-input input {
min-height: 60rpx !important;
min-height: 70rpx !important;
font-size: 22rpx;
}

Loading…
Cancel
Save