Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
54254699
Commit
54254699
authored
Sep 02, 2021
by
mqf_0707
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wnf
parent
4a775d5e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
22 deletions
+34
-22
app.config.js
c_client/src/app.config.js
+2
-1
ContainerFit.jsx
c_client/src/components/_base/ContainerFit/ContainerFit.jsx
+4
-3
Swiper.jsx
c_client/src/components/_tb_comps/Swiper/Swiper.jsx
+0
-15
Swiper.module.less
c_client/src/components/_tb_comps/Swiper/Swiper.module.less
+0
-0
preComp.jsx
c_client/src/pages/preComp/preComp.jsx
+20
-3
preComp.module.less
c_client/src/pages/preComp/preComp.module.less
+8
-0
No files found.
c_client/src/app.config.js
View file @
54254699
...
...
@@ -4,7 +4,8 @@ export default {
'pages/packageGood/browseGoods/browseGoods'
,
'pages/packageGood/collectGoods/collectGoods'
,
'pages/packageGood/orderGoods/orderGoods'
,
'pages/packageGood/cartGoods/cartGoods'
'pages/packageGood/cartGoods/cartGoods'
,
'pages/preComp/preComp'
],
subPackages
:
[
{
...
...
c_client/src/components/_base/ContainerFit/ContainerFit.jsx
View file @
54254699
...
...
@@ -3,14 +3,15 @@ import React from 'react'
import
styles
from
'./ContainerFit.module.less'
export
default
function
ContainerFit
(
props
)
{
const
{
bg
=
''
}
=
props
const
{
bg
=
''
,
hasFitPsd
=
false
}
=
props
return
(
<
View
className=
{
styles
[
'page-container'
]
}
>
<
View
className=
{
styles
[
'page-psd-container'
]
}
style=
{
{
background
:
`url(${bg}) no-repeat`
,
backgroundSize
:
'7.5rem 16.24rem'
}
}
>
<
View
className=
{
styles
[
'page-content'
]
}
>
{
!
hasFitPsd
&&
<
View
className=
{
styles
[
'page-content'
]
}
>
{
props
.
children
}
</
View
>
</
View
>
}
{
hasFitPsd
&&
props
.
children
}
</
View
>
</
View
>
)
...
...
c_client/src/components/_tb_comps/Swiper/Swiper.jsx
deleted
100644 → 0
View file @
4a775d5e
import
React
,
{
useState
}
from
'react'
import
{
View
,
Image
,
ScrollView
}
from
'@tarojs/components'
import
Taro
,
{
useShareAppMessage
,
useDidShow
}
from
'@tarojs/taro'
import
classnames
from
'classnames'
import
styles
from
'./Swiper.module.less'
function
Swiper
(
props
)
{
return
(
<>
</>
)
}
export
default
Swiper
\ No newline at end of file
c_client/src/components/_tb_comps/Swiper/Swiper.module.less
deleted
100644 → 0
View file @
4a775d5e
c_client/src/pages/preComp/preComp.jsx
View file @
54254699
...
...
@@ -4,20 +4,37 @@ import { useDidShow, useRouter, useDidHide, getApp } from '@tarojs/taro'
import
API
from
'@/api'
import
{
useLogin
,
useLoginFromShare
}
from
'@/hooks/useLogin'
import
{
useActivityInfoModel
,
useLoginInfoModel
}
from
'@/store'
import
{
prizeList
}
from
'@/mock'
import
styles
from
'./preComp.module.less'
import
{
useAudio
}
from
'@/hooks/useAudio'
import
{
CLOUD_OBJ
,
BGMUSIC_URL
}
from
'@/const'
import
ContainerFit
from
'@/components/_base/ContainerFit/ContainerFit'
import
ScrollXView
from
'@/components/_tb_comps/ScrollXView/ScrollXView'
import
SwiperView
from
'@/components/_tb_comps/SwiperView/SwiperView'
import
RotateWheel
from
'@/components/_tb_comps/RotateWheel/RotateWheel'
import
RankTitle
from
'@/components/_tb_comps/Rank/RankTitle/RankTitle'
import
RankList
from
'@/components/_tb_comps/Rank/RankList/RankList'
export
default
function
PreComp
(
props
)
{
return
(
<
View
>
<
ContainerFit
hasFitPsd=
{
true
}
>
<
View
className=
{
styles
[
'scroll-view'
]
}
>
<
ScrollXView
prizeList=
{
prizeList
}
/>
</
View
>
<
View
className=
{
styles
[
'comp-view'
]
}
>
<
RotateWheel
/>
</
View
>
<
View
className=
{
styles
[
'comp-view'
]
}
>
<
SwiperView
swiperList=
{
prizeList
}
/>
</
View
>
</
ContainerFit
>
)
}
\ No newline at end of file
c_client/src/pages/preComp/preComp.module.less
View file @
54254699
.scroll-view {
margin-top: 208px;
}
.comp-view {
margin-top: 50px;
width: 100%;
height: auto;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment