This commit is contained in:
曹辉 2023-02-22 16:32:07 +08:00
parent cee60b0756
commit c79dc45fe7
5 changed files with 109 additions and 87 deletions

View File

@ -2,7 +2,12 @@
font-size: 34rpx; font-size: 34rpx;
padding-top: 10rpx; padding-top: 10rpx;
height: 100%; height: 100%;
-webkit-overflow-scrolling: touch;
.scroll-Y {
height: 100vh;
overflow: scroll;
position: relative;
}
.mask { .mask {
.Agreement { .Agreement {
width: 100%; width: 100%;
@ -100,6 +105,7 @@
.timeyear{ .timeyear{
.bottomtext{ .bottomtext{
-webkit-overflow-scrolling: touch;
width: 96%; width: 96%;
margin: 0 auto; margin: 0 auto;
.items{ .items{
@ -129,6 +135,7 @@
} }
} }
.toptext{ .toptext{
-webkit-overflow-scrolling: touch;
padding-top: 10rpx; padding-top: 10rpx;
display: flex; display: flex;
justify-content:space-around; justify-content:space-around;

View File

@ -1,5 +1,8 @@
<template> <template>
<view class="app"> <view class="app">
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltoupper="upper"
@scrolltolower="lower" @scroll="scroll">
<view class="user"> <view class="user">
<view class="item"> <view class="item">
<span>姓名</span> <span>姓名</span>
@ -91,6 +94,8 @@
<view class="xiugai" @tap='goaddress'>修改信息</view> <view class="xiugai" @tap='goaddress'>修改信息</view>
<view class="queren" @tap='updata'>确认预约</view> <view class="queren" @tap='updata'>确认预约</view>
</view> </view>
</scroll-view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<!-- // --> <!-- // -->
<u-mask :show="maskshow" class='mask' @click='maskshow=false'> <u-mask :show="maskshow" class='mask' @click='maskshow=false'>
@ -128,6 +133,10 @@
}, },
data() { data() {
return { return {
scrollTop: 0,
old: {
scrollTop: 0
},
Soonerorlater: 'morning', Soonerorlater: 'morning',
timecurrent: 0, // timecurrent: 0, //
openid: '', openid: '',
@ -187,6 +196,11 @@
this.userinfo(); this.userinfo();
}, },
methods: { methods: {
upper: function(e) {},
lower: function(e) {},
scroll: function(e) {
this.old.scrollTop = e.detail.scrollTop
},
// //
tapSoonerorlater(item) { tapSoonerorlater(item) {
this.Soonerorlater = item this.Soonerorlater = item

View File

@ -10,8 +10,6 @@
</image> </image>
</swiper-item> </swiper-item>
</swiper> --> </swiper> -->
<view class="container"> <view class="container">
<view> <view>
<swiper :indicator-dots="true" :current="currentIndex" :circular="true" previous-margin="80rpx" <swiper :indicator-dots="true" :current="currentIndex" :circular="true" previous-margin="80rpx"
@ -40,7 +38,7 @@
<view class="item" @tap="gosite"> <view class="item" @tap="gosite">
<image src="../../static/hlz.png" mode=""></image> <image src="../../static/hlz.png" mode=""></image>
<view class="title"> <view class="title">
护理 护理机构
</view> </view>
</view> </view>
<view class="item" @tap="gomedicine"> <view class="item" @tap="gomedicine">
@ -265,7 +263,7 @@
<style lang="scss"> <style lang="scss">
.app { .app {
padding: 100rpx 0 0 0; padding: 100rpx 0 0 0;
-webkit-overflow-scrolling: touch;
.swiper-block { .swiper-block {
height: 500rpx; height: 500rpx;
width: 100%; width: 100%;

View File

@ -1,5 +1,6 @@
.app{ .app{
padding:10rpx 0 0 0; padding:10rpx 0 0 0;
-webkit-overflow-scrolling: touch;
} }
.swiper-box { .swiper-box {
width: 100%; width: 100%;
@ -182,7 +183,7 @@
padding: 3%; padding: 3%;
position: relative; position: relative;
transition: all 0.2s linear; transition: all 0.2s linear;
font-size: 36rpx; font-size: 34rpx;
&::after { &::after {
transition: all 0.2s linear; transition: all 0.2s linear;
transform: translateX(-50%) scaleX(0); transform: translateX(-50%) scaleX(0);
@ -281,6 +282,7 @@
.title { .title {
padding-top: 40rpx; padding-top: 40rpx;
margin:0 0 0 30rpx; margin:0 0 0 30rpx;
font-size: 38rpx;
line-height: 59rpx; line-height: 59rpx;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@ -318,6 +318,7 @@
.u-tabs { .u-tabs {
padding: 20rpx 0; padding: 20rpx 0;
-webkit-overflow-scrolling: touch;
} }
view, view,