fix: 代码优化
This commit is contained in:
@@ -9,9 +9,12 @@
|
||||
<!-- #endif -->
|
||||
</Header>
|
||||
<view class="setting-view">
|
||||
<view class="name-box">
|
||||
<view class="name-box" v-if="dataList.length">
|
||||
<PingItem @ok="onJumpShop" style="margin-top:24rpx" :obj="item" v-for="(item,index) in dataList" :key="index"></PingItem>
|
||||
</view>
|
||||
<view class="bottom-scroll-no " v-else>
|
||||
<text class="text-32" >暂无数据</text>
|
||||
</view>
|
||||
</view>
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
</view>
|
||||
@@ -75,6 +78,16 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bottom-scroll-no{
|
||||
width:100%;
|
||||
position: absolute;
|
||||
top:50%;
|
||||
color: #999;
|
||||
transform: translate(-50%,-50%);
|
||||
left: 50%;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
.bottom-btn{
|
||||
width: 100%;
|
||||
margin-bottom:92rpx;
|
||||
@@ -111,4 +124,4 @@ export default {
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user