Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e1d3dab1
authored
Mar 21, 2024
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
横屏
1 parent
5e75b129
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
411 additions
and
196 deletions
packageEquity/pages/trainingMaterials/components/ListItem/index.js
packageEquity/pages/trainingMaterials/components/ListItem/index.sass
packageEquity/pages/trainingMaterials/components/ListItem/index.wxml
packageEquity/pages/trainingMaterials/components/Materials/materials.sass
packageEquity/pages/trainingMaterials/components/Materials/materials.wxml
packageEquity/pages/trainingMaterials/trainingMaterials.sass
packageEquity/pages/trainingMaterials/trainingMaterials.wxml
pages/materails/components/ListItem/index.js
pages/materails/components/ListItem/index.sass
pages/materails/components/ListItem/index.wxml
pages/materails/components/Materials/materials.sass
pages/materails/components/Materials/materials.wxml
project.private.config.json
packageEquity/pages/trainingMaterials/components/ListItem/index.js
View file @
e1d3dab
...
...
@@ -4,7 +4,8 @@ Component({
properties
:
{
listItem
:
Object
,
noResult
:
Boolean
noResult
:
Boolean
,
isMaxScreen
:
Boolean
},
data
:
{
...
...
packageEquity/pages/trainingMaterials/components/ListItem/index.sass
View file @
e1d3dab
.list-item-container
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
0
20rpx
;
padding
:
0
var
(
--
fontSize20
)
;
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
...
...
@@ -12,68 +12,69 @@
.list-item-container
.left
,
.list-item-container
.right
{
display
:
inline-block
;
vertical-align
:
top
;
width
:
calc
(
50%
-
10rpx
)
;
width
:
calc
(
50%
-
var
(
--
fontSize10
)
)
;
}
.element
{
width
:
100%
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
margin-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
border-radius
:
var
(
--
fontSize16
)
;
margin-bottom
:
var
(
--
fontSize20
)
;
padding-bottom
:
var
(
--
fontSize20
)
;
.cover
{
height
:
344rpx
;
height
:
var
(
--
fontSize344
)
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
border-radius
:
var
(
--
fontSize16
)
;
position
:
relative
;
.icon
{
width
:
100%
;
height
:
344rpx
;
height
:
var
(
--
fontSize344
)
;
}
.play-icon
{
width
:
48rpx
;
height
:
48rpx
;
width
:
var
(
--
fontSize48
)
;
height
:
var
(
--
fontSize48
)
;
position
:
absolute
;
left
:
16rpx
;
bottom
:
16rpx
;
left
:
var
(
--
fontSize16
)
;
bottom
:
var
(
--
fontSize16
)
;
}
.cover_icon
{
height
:
344rpx
;
height
:
var
(
--
fontSize344
)
;
border-radius
:
var
(
--
fontSize16
)
var
(
--
fontSize16
)
0
0
;
}
}
.title
{
width
:
344rpx
;
width
:
var
(
--
fontSize344
)
;
box-sizing
:
border-box
;
padding
:
0
18rpx
;
padding
:
0
var
(
--
fontSize18
)
;
font-weight
:
400
;
font-size
:
28rpx
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#292D33
;
display
:
inline-block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
margin-top
:
20rpx
;
margin-bottom
:
16rpx
margin-top
:
var
(
--
fontSize20
)
;
margin-bottom
:
var
(
--
fontSize16
)
}
.footer
{
box-sizing
:
border-box
;
padding
:
0
18rpx
;
padding
:
0
var
(
--
fontSize18
)
;
.view-box
{
.icon
{
width
:
32rpx
;
height
:
32rpx
;
margin-right
:
8rpx
;
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
margin-right
:
var
(
--
fontSize8
)
;
}
.text
{
font-weight
:
400
;
font-size
:
24rpx
;
font-size
:
var
(
--
fontSize24
)
;
color
:
#5A5E66
;
}
}
.date-box
{
font-weight
:
400
;
font-size
:
20rpx
;
font-size
:
var
(
--
fontSize20
)
;
color
:
#5A5E66
;
}
}
...
...
@@ -91,11 +92,11 @@
}
.no_data
{
font-weight
:
400
;
font-size
:
28rpx
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#999
;
text-align
:
center
;
width
:
100%
;
padding-top
:
220rpx
;
padding-top
:
var
(
--
fontSize220
)
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
...
...
@@ -104,3 +105,87 @@
height
:
var
(
--
fontSize160
)
;
}
}
// 平板
.maxScreen-container
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
padding
:
0
var
(
--
fontSize10
)
;
.element
{
box-sizing
:
border-box
;
width
:
var
(
--
fontSize162
)
;
margin
:
0
var
(
--
fontSize6
)
var
(
--
fontSize12
)
;
border-radius
:
var
(
--
fontSize8
)
;
.cover
{
height
:
var
(
--
fontSize162
)
;
background
:
#FFFFFF
;
position
:
relative
;
.icon
,
.cover_icon
{
width
:
var
(
--
fontSize162
)
;
height
:
var
(
--
fontSize162
)
;
border-radius
:
var
(
--
fontSize8
)
var
(
--
fontSize8
)
0
0
;
}
.max-play-icon
{
width
:
var
(
--
fontSize53
)
;
height
:
var
(
--
fontSize53
)
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,-
50%
)
}
}
.title
{
width
:
var
(
--
fontSize162
)
;
box-sizing
:
border-box
;
padding
:
0
var
(
--
fontSize9
)
;
font-weight
:
400
;
font-size
:
var
(
--
fontSize14
)
;
color
:
#292D33
;
display
:
inline-block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
margin-top
:
var
(
--
fontSize10
)
;
margin-bottom
:
var
(
--
fontSize8
)
}
.footer
{
box-sizing
:
border-box
;
padding
:
0
var
(
--
fontSize9
)
;
.view-box
{
.icon
{
width
:
var
(
--
fontSize16
)
;
height
:
var
(
--
fontSize16
)
;
margin-right
:
var
(
--
fontSize4
)
;
}
.text
{
font-weight
:
400
;
font-size
:
var
(
--
fontSize12
)
;
color
:
#5A5E66
;
}
}
.date-box
{
font-weight
:
400
;
font-size
:
var
(
--
fontSize10
)
;
color
:
#5A5E66
;
}
}
}
.no_data
{
font-weight
:
400
;
font-size
:
var
(
--
fontSize14
)
;
color
:
#999
;
text-align
:
center
;
width
:
100%
;
padding-top
:
var
(
--
fontSize110
)
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.no_icon
{
width
:
var
(
--
fontSize80
)
;
height
:
var
(
--
fontSize80
)
;
}
}
}
packageEquity/pages/trainingMaterials/components/ListItem/index.wxml
View file @
e1d3dab
<view class="list-item-container">
<block wx:if="{{!noResult
}}">
<view class="list-item-container
{{isMaxScreen?'maxScreen-container':''}}
">
<block wx:if="{{!onResult&&!isMaxScreen
}}">
<view class="left">
<block wx:for="{{listItem.list}}" wx:for-index="idx" wx:key="idx" wx:for-item="item">
<template is="item" data="{{item,...templateInfo,listItem}}" wx:if="{{idx%2==0}}" />
<template is="item" data="{{item,...templateInfo,listItem
,isMaxScreen
}}" wx:if="{{idx%2==0}}" />
</block>
</view>
<view class="right">
<block wx:for="{{listItem.list}}" wx:for-index="idx" wx:key="idx" wx:for-item="item">
<template is="item" data="{{item,...templateInfo,listItem}}" wx:if="{{idx%2==1}}" />
<template is="item" data="{{item,...templateInfo,listItem
,isMaxScreen
}}" wx:if="{{idx%2==1}}" />
</block>
</view>
</block>
<block wx:elif="{{!onResult&&isMaxScreen}}">
<block wx:for="{{listItem.list}}" wx:for-index="idx" wx:key="idx" wx:for-item="item">
<template is="item" data="{{item,...templateInfo,listItem,isMaxScreen}}" />
</block>
</block>
<block wx:if="{{noResult}}">
<view class="no_data">
<image class="no_icon" src="/packageEquity/images/noData.png" />
...
...
@@ -22,7 +27,7 @@
<view class="cover flex_cc">
<image wx:if="{{!item.cover}}" class="icon" src="{{IMG_URL}}peixun/{{listItem.icon}}.png?v=1" />
<image wx:if="{{item.cover}}" mode="aspectFill" class="cover_icon" src="{{item.cover}}" />
<image wx:if="{{listItem.name=='video'}}" class="play-icon" src="{{IMG_URL}}peixun/play_icon.png" />
<image wx:if="{{listItem.name=='video'}}" class="
{{isMaxScreen?'max-':''}}
play-icon" src="{{IMG_URL}}peixun/play_icon.png" />
</view>
<view class="title two-text">{{item.title}}</view>
<view class="footer flex_scb">
...
...
packageEquity/pages/trainingMaterials/components/Materials/materials.sass
View file @
e1d3dab
page
{
background
:
#F7F8FA
;
}
.min-screen-close
{
display
:
none
;
}
.pos-container
{
position
:
absolute
;
left
:
0
;
...
...
@@ -17,16 +19,25 @@ page {
background
:
url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/peixun/bg_banner.png')
;
background-size
:
100%
100%
;
background-color
:
#fff
;
// position: absolute;
// left: 0;
// top: 0;
// z-index: -1;
}
// .main{
// position: relative;
// z-index: 2;
// background: #F7F8FA;
// }
.fixedBox
{
opacity
:
0
;
@media
screen
and
(
min-device-width
:
600px
)
and
(
-
webkit-min-device-pixel-ratio
:
1
)
{
.max-screen-close
{
display
:
none
;
}
.max-screen-open
{
display
:
block
;
}
.max-bg
{
width
:
100%
;
height
:
var
(
--
fontSize140
)
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/peixun/max-banner.png')
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-position
:
center
;
}
.tab-class
{
flex
:
0
0
var
(
--
fontSize120
)
;
}
}
packageEquity/pages/trainingMaterials/components/Materials/materials.wxml
View file @
e1d3dab
<view class="pos-container">
<!-- <scroll-view upper-threshold="{{navBarHeight}}" bindscrolltolower="scrolltoupper" style="height:100%" bindscroll="bindscroll" scroll-y="{{!isNeedFixed}}"> -->
<view class="bg scroll_height_d_part"></view>
<view wx:if="{{showPage}}" class="main">
<view class="main-box">
<van-tabs wrap-class="scroll_height_d_part" sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<scroll-view style="height:calc(100vh - 180px - var(--fontSize300))" scroll-y class="list">
<list-item noResult="{{noResult}}" listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
</block>
</van-tabs>
</view>
<view class="pos-container .max-screen-close">
<view class="bg scroll_height_d_part"></view>
<view wx:if="{{showPage}}" class="main">
<view class="main-box">
<van-tabs wrap-class="scroll_height_d_part" sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<scroll-view style="height:calc(100vh - 180px - var(--fontSize300))" scroll-y class="list">
<list-item noResult="{{noResult}}" listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
</block>
</van-tabs>
</view>
<
!-- </scroll-view> --
>
<
/view
>
</view>
<!-- <view class="bg"></view>
<view wx:if="{{showPage}}" class="main" style="margin-top:{{222-navBarHeight}}px">
<view class="main-box">
<van-tabs sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<scroll-view style="height:calc(100vh - 222px)" scroll-y class="list">
<list-item noResult="{{noResult}}" listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
</block>
</van-tabs>
<!-- 平板 -->
<view class="pos-container min-screen-close .max-screen-open">
<view class="max-bg scroll_height_d_part"></view>
<view wx:if="{{showPage}}" class="main">
<view class="main-box">
<van-tabs line-width="34px" tab-class="tab-class" wrap-class="scroll_height_d_part" sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<scroll-view style="height:calc(100vh - var(--fontSize300))" scroll-y class="list">
<list-item noResult="{{noResult}}" isMaxScreen="{{true}}" listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
</block>
</van-tabs>
</view>
</view>
</view> -->
\ No newline at end of file
</view>
\ No newline at end of file
packageEquity/pages/trainingMaterials/trainingMaterials.sass
View file @
e1d3dab
page
{
background
:
#F7F8FA
;
}
.min-screen-close
{
display
:
none
;
}
.main-box
{
.content-box
{
.element
{
width
:
344rpx
;
height
:
564rpx
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
}
}
.list
{
box-sizing
:
border-box
;
width
:
100%
;
padding-bottom
:
0
;
height
:
636rpx
;
padding-top
:
20rpx
padding-top
:
var
(
--
fontSize20
)
;
}
}
.filter
{
width
:
188rpx
;
width
:
var
(
--
fontSize188
)
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.filter-text
{
font-weight
:
400
;
font-size
:
28rpx
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#181A1F
;
}
.filter-icon
{
width
:
40rpx
;
height
:
40rpx
;
width
:
var
(
--
fontSize40
)
;
height
:
var
(
--
fontSize40
)
;
}
.filter-text-active
{
color
:
#347BFF
;
}
.van-tabs__line
{
border-radius
:
2rpx
2rpx
0
0
!
important
;
}
\ No newline at end of file
border-radius
:
var
(
--
fontSize2
)
var
(
--
fontSize2
)
0
0
!
important
;
}
@media
screen
and
(
min-device-width
:
600px
)
and
(
-
webkit-min-device-pixel-ratio
:
1
)
{
.max-screen-close
{
display
:
none
;
}
.max-screen-open
{
display
:
block
;
.filter
{
width
:
var
(
--
fontSize99
)
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.filter-text
{
font-size
:
var
(
--
fontSize14
)
;
}
.filter-icon
{
width
:
var
(
--
fontSize20
)
;
height
:
var
(
--
fontSize20
)
;
}
}
.tab-class
{
flex
:
0
0
var
(
--
fontSize120
)
!
important
;
}
}
packageEquity/pages/trainingMaterials/trainingMaterials.wxml
View file @
e1d3dab
<view class="main-box">
<!-- 非大屏 -->
<view class="main-box .max-screen-close">
<van-tabs bind:change="onChangeTab" sticky border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search shape="round" left-icon="/images/search.png" bind:clear="onCancel" use-action-slot bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" >
<view bind:tap="toFilterSort" slot="action" class="filter">
...
...
@@ -16,4 +17,24 @@
</van-tab>
</block>
</van-tabs>
</view>
<!-- 平板 -->
<view class="main-box min-screen-close .max-screen-open">
<van-tabs line-width="34px" tab-class="tab-class" bind:change="onChangeTab" sticky border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search shape="round" left-icon="/images/search.png" bind:clear="onCancel" use-action-slot bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" >
<view bind:tap="toFilterSort" slot="action" class="filter">
<view class="filter-text {{sortValue?'filter-text-active':''}}">浏览量</view>
<image class="filter-icon" src="./images/{{sortMap[sortValue]}}.png" />
</view>
</van-search>
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<scroll-view style="height:{{scroll_height}}px" scroll-y class="list">
<list-item noResult="{{noResult}}" isMaxScreen="{{true}}" listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
</block>
</van-tabs>
</view>
\ No newline at end of file
pages/materails/components/ListItem/index.js
View file @
e1d3dab
...
...
@@ -4,7 +4,8 @@ Component({
properties
:
{
listItem
:
Object
,
onResult
:
Boolean
onResult
:
Boolean
,
isMaxScreen
:
Boolean
},
data
:
{
...
...
pages/materails/components/ListItem/index.sass
View file @
e1d3dab
.list-item-container
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
20rpx
;
padding
:
var
(
--
fontSize20
)
;
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
...
...
@@ -13,68 +13,69 @@
.list-item-container
.left
,
.list-item-container
.right
{
display
:
inline-block
;
vertical-align
:
top
;
width
:
calc
(
50%
-
10rpx
)
;
width
:
calc
(
50%
-
var
(
--
fontSize10
)
)
;
}
.element
{
width
:
100%
;
width
:
var
(
--
fontSize344
)
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
margin-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
border-radius
:
var
(
--
fontSize16
)
;
margin-bottom
:
var
(
--
fontSize20
)
;
padding-bottom
:
var
(
--
fontSize20
)
;
.cover
{
height
:
344rpx
;
height
:
var
(
--
fontSize344
)
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
position
:
relative
;
.icon
{
width
:
100%
;
height
:
344rpx
;
width
:
var
(
--
fontSize344
)
;
height
:
var
(
--
fontSize344
)
;
border-radius
:
var
(
--
fontSize16
)
var
(
--
fontSize16
)
0
0
;
}
.play-icon
{
width
:
48rpx
;
height
:
48rpx
;
width
:
var
(
--
fontSize48
)
;
height
:
var
(
--
fontSize48
)
;
position
:
absolute
;
left
:
16rpx
;
bottom
:
16rpx
;
left
:
var
(
--
fontSize16
)
;
bottom
:
var
(
--
fontSize16
)
;
}
.cover_icon
{
height
:
344rpx
;
height
:
var
(
--
fontSize344
)
;
border-radius
:
var
(
--
fontSize16
)
var
(
--
fontSize16
)
0
0
;
}
}
.title
{
width
:
344rpx
;
width
:
var
(
--
fontSize344
)
;
box-sizing
:
border-box
;
padding
:
0
18rpx
;
padding
:
0
var
(
--
fontSize18
)
;
font-weight
:
400
;
font-size
:
28rpx
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#292D33
;
display
:
inline-block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
margin-top
:
20rpx
;
margin-bottom
:
16rpx
margin-top
:
var
(
--
fontSize20
)
;
margin-bottom
:
var
(
--
fontSize16
)
}
.footer
{
box-sizing
:
border-box
;
padding
:
0
18rpx
;
padding
:
0
var
(
--
fontSize18
)
;
.view-box
{
.icon
{
width
:
32rpx
;
height
:
32rpx
;
margin-right
:
8rpx
;
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
margin-right
:
var
(
--
fontSize8
)
;
}
.text
{
font-weight
:
400
;
font-size
:
24rpx
;
font-size
:
var
(
--
fontSize24
)
;
color
:
#5A5E66
;
}
}
.date-box
{
font-weight
:
400
;
font-size
:
20rpx
;
font-size
:
var
(
--
fontSize20
)
;
color
:
#5A5E66
;
}
}
...
...
@@ -92,11 +93,11 @@
}
.no_data
{
font-weight
:
400
;
font-size
:
28rpx
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#999
;
text-align
:
center
;
width
:
100%
;
padding-top
:
220rpx
;
padding-top
:
var
(
--
fontSize220
)
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
...
...
@@ -105,12 +106,84 @@
height
:
var
(
--
fontSize160
)
;
}
}
@media
screen
and
(
min-device-width
:
600px
)
and
(
-
webkit-min-device-pixel-ratio
:
1
)
{
.element
{
width
:
324rpx
;
.cover
{
width
:
324rpx
;
height
:
324rpx
;
.maxScreen-container
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
.element
{
box-sizing
:
border-box
;
width
:
var
(
--
fontSize162
)
;
margin
:
0
var
(
--
fontSize6
)
var
(
--
fontSize12
)
;
border-radius
:
var
(
--
fontSize8
)
;
.cover
{
height
:
var
(
--
fontSize162
)
;
background
:
#FFFFFF
;
position
:
relative
;
.icon
,
.cover_icon
{
width
:
var
(
--
fontSize162
)
;
height
:
var
(
--
fontSize162
)
;
border-radius
:
var
(
--
fontSize8
)
var
(
--
fontSize8
)
0
0
;
}
.max-play-icon
{
width
:
var
(
--
fontSize53
)
;
height
:
var
(
--
fontSize53
)
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,-
50%
)
}
}
.title
{
width
:
var
(
--
fontSize162
)
;
box-sizing
:
border-box
;
padding
:
0
var
(
--
fontSize9
)
;
font-weight
:
400
;
font-size
:
var
(
--
fontSize14
)
;
color
:
#292D33
;
display
:
inline-block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
margin-top
:
var
(
--
fontSize10
)
;
margin-bottom
:
var
(
--
fontSize8
)
}
.footer
{
box-sizing
:
border-box
;
padding
:
0
var
(
--
fontSize9
)
;
.view-box
{
.icon
{
width
:
var
(
--
fontSize16
)
;
height
:
var
(
--
fontSize16
)
;
margin-right
:
var
(
--
fontSize4
)
;
}
.text
{
font-weight
:
400
;
font-size
:
var
(
--
fontSize12
)
;
color
:
#5A5E66
;
}
}
.date-box
{
font-weight
:
400
;
font-size
:
var
(
--
fontSize10
)
;
color
:
#5A5E66
;
}
}
}
.no_data
{
font-weight
:
400
;
font-size
:
var
(
--
fontSize14
)
;
color
:
#999
;
text-align
:
center
;
width
:
100%
;
padding-top
:
var
(
--
fontSize110
)
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.no_icon
{
width
:
var
(
--
fontSize80
)
;
height
:
var
(
--
fontSize80
)
;
}
}
}
}
\ No newline at end of file
pages/materails/components/ListItem/index.wxml
View file @
e1d3dab
<view class="list-item-container">
<block wx:if="{{!onResult}}">
<view class="list-item-container
{{isMaxScreen?'maxScreen-container':''}}
">
<block wx:if="{{!onResult
&&!isMaxScreen
}}">
<view class="left">
<block wx:for="{{listItem.list}}" wx:for-index="idx" wx:key="idx" wx:for-item="item">
<template is="item" data="{{item,...templateInfo,listItem}}" wx:if="{{idx%2==0}}" />
<template is="item" data="{{item,...templateInfo,listItem
,isMaxScreen
}}" wx:if="{{idx%2==0}}" />
</block>
</view>
<view class="right">
<block wx:for="{{listItem.list}}" wx:for-index="idx" wx:key="idx" wx:for-item="item">
<template is="item" data="{{item,...templateInfo,listItem}}" wx:if="{{idx%2==1}}" />
<template is="item" data="{{item,...templateInfo,listItem
,isMaxScreen
}}" wx:if="{{idx%2==1}}" />
</block>
</view>
</block>
<block wx:elif="{{!onResult&&isMaxScreen}}">
<block wx:for="{{listItem.list}}" wx:for-index="idx" wx:key="idx" wx:for-item="item">
<template is="item" data="{{item,...templateInfo,listItem,isMaxScreen}}" />
</block>
</block>
<block wx:if="{{onResult}}">
<view class="no_data">
<image class="no_icon" src="../../images/noData.png" />
...
...
@@ -22,7 +27,7 @@
<view class="cover flex_cc">
<image wx:if="{{!item.cover}}" class="icon" src="{{IMG_URL}}peixun/{{listItem.icon}}.png?v=1" />
<image wx:if="{{item.cover}}" mode="aspectFill" class="cover_icon" src="{{item.cover}}" />
<image wx:if="{{listItem.name=='video'}}" class="play-icon" src="{{IMG_URL}}peixun/play_icon.png" />
<image wx:if="{{listItem.name=='video'}}" class="
{{isMaxScreen?'max-':''}}
play-icon" src="{{IMG_URL}}peixun/play_icon.png" />
</view>
<view class="title two-text">{{item.title}}</view>
<view class="footer flex_scb">
...
...
pages/materails/components/Materials/materials.sass
View file @
e1d3dab
// page {
// background: #F7F8FA;
// }
// .pagedetail {
// position: relative;
// }
// .bg {
// width: 100%;
// height: 444rpx;
// background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/peixun/bg_banner.png');
// background-size: 100% 100%;
// background-color: #fff;
// position: absolute;
// left: 0;
// top: 0;
// z-index: -1;
// }
// .main-box{
// position: sticky;
// left: 0;
// z-index: 2;
// }
// .scroll_height_d_part{
// background: #fff;
// z-index: 2;
// position: relative;
// }
// .search-box{
// position: sticky;
// left: 0;
// z-index: 2;
// }
page
{
background
:
#F7F8FA
;
}
.min-screen-close
{
display
:
none
;
}
.pos-container
{
position
:
absolute
;
...
...
@@ -47,9 +16,30 @@ page {
.bg
{
width
:
100%
;
height
:
444rpx
;
height
:
var
(
--
fontSize444
)
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/peixun/bg_banner.png')
;
background-size
:
100%
100%
;
background-color
:
#fff
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-position
:
center
;
}
@media
screen
and
(
min-device-width
:
600px
)
and
(
-
webkit-min-device-pixel-ratio
:
1
)
{
.max-screen-close
{
display
:
none
;
}
.max-screen-open
{
display
:
block
;
}
.max-bg
{
width
:
100%
;
height
:
var
(
--
fontSize140
)
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/peixun/max-banner.png')
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-position
:
center
;
}
.tab-class
{
flex
:
0
0
var
(
--
fontSize120
)
;
}
}
pages/materails/components/Materials/materials.wxml
View file @
e1d3dab
<!-- <view class="bg"></view>
<view wx:if="{{showPage}}" class="main" style="margin-top:222px">
<view class="main-box">
<view wx:if="{{!navStyle&&scrollTop>178}}" style="top:{{navBarHeight+44}}px" class="search-box">
<van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" custom-class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<!-- 非大屏 -->
<view class="pos-container .max-screen-close">
<view class="bg"></view>
<view wx:if="{{showPage}}" class="main">
<view class="main-box">
<van-tabs sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<scroll-view style="height:calc(100vh - 180px - var(--fontSize300))" scroll-y class="list">
<list-item onResult="{{onResult}}" isMaxScreen="{{false}}" listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
</block>
</van-tabs>
</view>
<van-tabs sticky offset-top="{{navBarHeight}}" bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search left-icon="/images/search.png" wx:if="{{navStyle || scrollTop<178}}" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" custom-class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<list-item onResult="{{onResult}}" listItem="{{item}}"></list-item>
</view>
</van-tab>
</block>
</van-tabs>
</view>
</view> -->
<view class="pos-container">
<view class="bg scroll_height_d_part"></view>
</view>
<!-- 平板 -->
<view class="pos-container min-screen-close .max-screen-open">
<view class="max-bg"></view>
<view wx:if="{{showPage}}" class="main">
<view class="main-box">
<van-tabs
wrap-class="scroll_height_d_part
" sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-tabs
line-width="34px" tab-class="tab-class
" sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
<van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
<block wx:for="{{menuList}}" wx:key="index">
<van-tab title="{{item.title}}" name="{{item.name}}">
<view class="content-box">
<scroll-view style="height:calc(100vh -
180px -
var(--fontSize300))" scroll-y class="list">
<list-item onResult="{{onResult}}" listItem="{{item}}"></list-item>
<scroll-view style="height:calc(100vh - var(--fontSize300))" scroll-y class="list">
<list-item onResult="{{onResult}}"
isMaxScreen="{{true}}"
listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
...
...
project.private.config.json
View file @
e1d3dab
...
...
@@ -112,7 +112,7 @@
}
},
"setting"
:
{
"compileHotReLoad"
:
fals
e
"compileHotReLoad"
:
tru
e
},
"projectname"
:
"%E7%B2%BE%E5%93%81%E5%8D%87%E7%BA%A7"
,
"libVersion"
:
"3.2.5"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment