8***@qq.com
8***@qq.com
  • 发布:2019-03-20 10:23
  • 更新:2019-03-20 12:25
  • 阅读:2734

页面超过屏幕高度,无法滑动

分类:nvue
<template>  
    <view class="center">  
        <view class="logo" @click="goLogin" :hover-class="!login ? 'logo-hover' : ''">  
            <image class="logo-img" :src="login ? uerInfo.avatarUrl :avatarUrl"></image>  
            <view class="logo-title">  
                <text class="uer-name">Hi,{{login ? uerInfo.name : '您未登录'}}</text>  
                <text class="go-login navigat-arrow" v-if="!login">&#xe65e;</text>  
            </view>  
         </view>  

        <view style="height: 1000upx;"></view>  

    </view>  
</template>  

<style>  
    @font-face {  
        font-family: texticons;  
        font-weight: normal;  
        font-style: normal;  
        src: url('https://at.alicdn.com/t/font_984210_5cs13ndgqsn.ttf') format('truetype');  
    }  

    page,  
    view {  
        display: flex;  
    }  

    page {  
        background-color: #f7f4f8;  
    }  

    .center {  
        width: 750upx;  
        height: 1500upx;  
        background-color: #f7f4f8;  
    }  

</style>

pages.json

{  
            "path": "pages/my/my",  
            "style": {  
                "navigationBarTitleText": "我的",  
                "onReachBottomDistance":"40px",  
                 "app-plus" : {  
                    "titleNView" : {  
                        "buttons" : [  
                            {  
                                "text" : "\ue534",  
                                "fontSrc" : "/static/uni.ttf",  
                                "fontSize" : "22px",  
                                "color" : "#999999"  
                            }  
                        ]  
                    },  
                    "bounce":"true",  
                    "scrollIndicator":"true",  
                    "pullToRefresh":"true"  
                }  
            }  
        }  

上下都不能滑动

2019-03-20 10:23 负责人:无 分享
已邀请:
8***@qq.com

8***@qq.com (作者) - IT

补充:nvue 制作的页面

VUE的页面没问题。

8***@qq.com

8***@qq.com (作者) - IT

应该是nvue 不自带 滑动组件。

使用 weex scroller 组件 解决

该问题目前已经被锁定, 无法添加新回复