提交 b135ca5f 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复微信小程序端样式元素没有自动撑开的问题

上级 a8b1baa4
......@@ -171,12 +171,14 @@
},
{
"path": "pages/ucenter/login-page/index/index"
},{
"path": "pages/ucenter/userinfo/userinfo"
},
{
"path": "pages/ucenter/settings/settings"
}
],
"current": 0
"current": 2
},
"tabBar": {
"color": "#7A7E83",
......
<template>
<view class="pagse">
<!-- #ifdef APP-PLUS -->
<!-- #ifndef H5 -->
<statusBar></statusBar>
<!-- #endif -->
<!-- 搜索功能 -->
......
......@@ -80,6 +80,7 @@
}
.input-box {
width: 100%;
margin-top: 16px;
background-color: #f9f9f9;
border-radius: 6rpx;
......
......@@ -141,8 +141,7 @@
// 剪裁并上传头像
uni.navigateTo({
url: '/pages/ucenter/userinfo/uploadCutImageToUnicloud?path=' +
res
.tempFilePaths[0] +
res.tempFilePaths[0] +
`&options=${JSON.stringify(options)}`,
animationType: "fade-in",
events: {
......@@ -186,7 +185,6 @@
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 60px;
}
.avatarUrl {
width: 50px;
......
<template>
<view style="flex:1">
<view style="width: 750rpx;">
<template v-if="!state.error">
<uni-load-more v-if="state.loading||state.pagination.current!=1||state.data.length!=0" :status="state.loading?'loading':(state.hasMore?'hasMore':'noMore')"></uni-load-more>
<text class="noData" v-else>暂无数据</text>
......@@ -12,9 +12,7 @@
<text class="btn-text">前往设置</text>
</view>
</view>
<view v-else>
错误:{{state.error}}
</view>
<text class="err" v-else>错误:{{JSON.stringify(state.error)}}</text>
</view>
</view>
</template>
......@@ -124,4 +122,8 @@
text-align: center;
padding: 30rpx;
}
.err{
width: 750rpx;
color: #DD524D;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册