Commit 98ad6c54 by zhangxw

走查样式修改

1 parent 45d02d57
...@@ -4,21 +4,23 @@ page { ...@@ -4,21 +4,23 @@ page {
} }
.rank-container { .rank-container {
margin: var(--fontSize24) var(--fontSize28); margin: var(--fontSize24) var(--fontSize28);
background: #ffffff;
.bg { .bg {
width: 100%; width: 100%;
height: var(--fontSize128); height: var(--fontSize128);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/studyCenter/rank-bg.png'); border-radius: var(--fontSize20);
background-size: cover; overflow: hidden;
background-repeat: no-repeat; .bg-icon {
background-position: center; width: 100%;
z-index: 1; height: var(--fontSize128);
}
} }
.content { .content {
padding: 0 var(--fontSize24); padding: 0 var(--fontSize24);
background: #ffffff;
} }
.tab-box { .tab-box {
margin: var(--fontSize8) 0 var(--fontSize12); padding-top: var(--fontSize8);
margin: 0 0 var(--fontSize12);
display: flex; display: flex;
gap: var(--fontSize16); gap: var(--fontSize16);
.tab-item { .tab-item {
......
<!--packageStudyCenter/pages/staffRank/staffRank.wxml--> <!--packageStudyCenter/pages/staffRank/staffRank.wxml-->
<view class="rank-container"> <view class="rank-container">
<view class="bg"></view> <view class="bg">
<image class="bg-icon" src="{{IMG_URL}}studyCenter/rank-bg.png" mode=""/>
</view>
<view class="content"> <view class="content">
<view class="tab-box"> <view class="tab-box">
<view class="tab-item {{tabIndex == index ? 'active' : ''}}" bindtap="changeTab" data-index="{{index}}" wx:for="{{tabList}}" wx:key="index">{{item}}</view> <view class="tab-item {{tabIndex == index ? 'active' : ''}}" bindtap="changeTab" data-index="{{index}}" wx:for="{{tabList}}" wx:key="index">{{item}}</view>
......
// packageStudyCenter/pages/studyCenter/components/categoryScreen/categoryScreen.js // packageStudyCenter/pages/studyCenter/components/categoryScreen/categoryScreen.js
import api from '~/packageStudyCenter/api' import api from '~/packageStudyCenter/api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({ Component({
/** /**
...@@ -23,7 +24,7 @@ Component({ ...@@ -23,7 +24,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMG_URL
}, },
/** /**
......
...@@ -97,6 +97,22 @@ ...@@ -97,6 +97,22 @@
} }
} }
.nothing {
width: 100%;
margin-top: var(--fontSize320);
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
font-size: var(--fontSize24);
color: #999999;
.icon {
width: var(--fontSize128);
height: var(--fontSize80);
margin-bottom: var(--fontSize8);
}
}
.btn-box { .btn-box {
position: sticky; position: sticky;
padding: 10rpx 32rpx; padding: 10rpx 32rpx;
......
<!--packageStudyCenter/pages/studyCenter/components/categoryScreen/categoryScreen.wxml--> <!--packageStudyCenter/pages/studyCenter/components/categoryScreen/categoryScreen.wxml-->
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight }}px + 1px);margin-top:calc({{navBarHeight }}px - 1px);" hidden="{{!show}}"> <scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight }}px + 1px);margin-top:calc({{navBarHeight }}px - 1px);" hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight }}px);"> <view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight }}px);">
<block wx:if="{{categoryList.length}}">
<block wx:for="{{categoryList}}" wx:key="index"> <block wx:for="{{categoryList}}" wx:key="index">
<view class="box"> <view class="box">
<view class="title"> <view class="title">
...@@ -13,6 +14,13 @@ ...@@ -13,6 +14,13 @@
</view> </view>
</view> </view>
</block> </block>
</block>
<block wx:else>
<view class="nothing" style="height: calc(100vh - {{fixedHeight}}px - {{navBarHeight}}px);">
<image class="icon" src="{{IMG_URL}}studyCenter/empty_data.png" />
暂无数据
</view>
</block>
</view> </view>
<view class="btn-box isFullSucreen-btn"> <view class="btn-box isFullSucreen-btn">
<view class="btn clear text-center" bindtap="reset">重置</view> <view class="btn clear text-center" bindtap="reset">重置</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!