Commit 98ad6c54 by zhangxw

走查样式修改

1 parent 45d02d57
......@@ -4,21 +4,23 @@ page {
}
.rank-container {
margin: var(--fontSize24) var(--fontSize28);
background: #ffffff;
.bg {
width: 100%;
height: var(--fontSize128);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/studyCenter/rank-bg.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
z-index: 1;
border-radius: var(--fontSize20);
overflow: hidden;
.bg-icon {
width: 100%;
height: var(--fontSize128);
}
}
.content {
padding: 0 var(--fontSize24);
background: #ffffff;
}
.tab-box {
margin: var(--fontSize8) 0 var(--fontSize12);
padding-top: var(--fontSize8);
margin: 0 0 var(--fontSize12);
display: flex;
gap: var(--fontSize16);
.tab-item {
......
<!--packageStudyCenter/pages/staffRank/staffRank.wxml-->
<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="tab-box">
<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
import api from '~/packageStudyCenter/api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({
/**
......@@ -23,7 +24,7 @@ Component({
* 组件的初始数据
*/
data: {
IMG_URL
},
/**
......
......@@ -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 {
position: sticky;
padding: 10rpx 32rpx;
......
<!--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}}">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight }}px);">
<block wx:for="{{categoryList}}" wx:key="index">
<view class="box">
<view class="title">
{{item.categoryName}}
</view>
<view class="list-box">
<block wx:for="{{item.children}}" wx:key="index" wx:for-item="subItem" wx:for-index="idx">
<view class="item text-center {{subItem.active?'active':''}}" bindtap="choose" data-target="{{subItem}}">{{subItem.categoryName}}</view>
</block>
<block wx:if="{{categoryList.length}}">
<block wx:for="{{categoryList}}" wx:key="index">
<view class="box">
<view class="title">
{{item.categoryName}}
</view>
<view class="list-box">
<block wx:for="{{item.children}}" wx:key="index" wx:for-item="subItem" wx:for-index="idx">
<view class="item text-center {{subItem.active?'active':''}}" bindtap="choose" data-target="{{subItem}}">{{subItem.categoryName}}</view>
</block>
</view>
</view>
</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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!