Commit c0d04b41 authored by tangfh's avatar tangfh

+

parent acb05240
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
:item="item" @onItemClick="onItemClick"></view> :item="item" @onItemClick="onItemClick"></view>
</view> </view>
<c-status-view @onStatusClick="onStatusClick" v-if="contentStatus.value"></c-status-view> <c-status-view @onStatusClick="onStatusClick" v-if="contentStatus.value"></c-status-view>
<uni-load-more :status="loadMoreViewStatus" :icon-size="16" v-if="items.length > 0" <uni-load-more :status="loadMoreStatus" :icon-size="16" v-if="items.length > 0"
:content-text="loadMoreViewContentText" /> :content-text="loadMoreViewContentText" />
</scroll-view> </scroll-view>
<text class="text-bottom-btn" @click="onBottomBtnClick">我要报修</text> <text class="text-bottom-btn" @click="onBottomBtnClick">底部按钮</text>
</view> </view>
</template> </template>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
loadMoreViewContentText: { loadMoreViewContentText: {
contentnomore: "到底啦~" contentnomore: "到底啦~"
}, },
loadMoreViewStatus: 'noMore', loadMoreStatus: 'noMore',
page: 1, page: 1,
total_page: 1, total_page: 1,
loadMoreStatus: null, loadMoreStatus: null,
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
//scroll-view的高度 = 屏幕高度 -(顶部状态栏高度 + 导航栏高度) -(底部tabBar高度 + 底部安全区域高度) //scroll-view的高度 = 屏幕高度 -(顶部状态栏高度 + 导航栏高度) -(底部tabBar高度 + 底部安全区域高度)
this.scrollViewHeight = systemInfo.screenHeight - (uni.getSystemInfoSync() this.scrollViewHeight = systemInfo.screenHeight - (uni.getSystemInfoSync()
.statusBarHeight + this.$refs.navBar.height) - (systemInfo.safeAreaInsets.bottom) - .statusBarHeight + this.$refs.navBar.height) - (systemInfo.safeAreaInsets.bottom) -
90 / getApp().globalData.pxToRpxScale; 84 / getApp().globalData.pxToRpxScale;
this.init(option); this.init(option);
}, },
onShow() { onShow() {
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
let list = data.list; let list = data.list;
try { try {
this.page++; this.page++;
this.total_page = data.total_list; this.total_page = data.total_list / 10 + (data.total_list % 10 > 0 ? 1 : 0);
} catch (e) { } catch (e) {
this.total_page = 1; this.total_page = 1;
console.log(e); console.log(e);
......
...@@ -195,8 +195,8 @@ input { ...@@ -195,8 +195,8 @@ input {
border-radius: 10rpx; border-radius: 10rpx;
margin-left: 32rpx; margin-left: 32rpx;
margin-right: 32rpx; margin-right: 32rpx;
height: 90rpx; height: 84rpx;
width: 90%; width: 92%;
font-size: $uni-font-size-base; font-size: $uni-font-size-base;
} }
...@@ -304,6 +304,10 @@ input { ...@@ -304,6 +304,10 @@ input {
font-size: $uni-font-size-sm; font-size: $uni-font-size-sm;
color: $com-text-color-666; color: $com-text-color-666;
} }
.text-normal-666 {
font-size: $uni-font-size-sm;
color: $com-text-color-666;
}
.text-small-grey { .text-small-grey {
font-size: $uni-font-size-sm; font-size: $uni-font-size-sm;
color: $com-text-color-grey; color: $com-text-color-grey;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment