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

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

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