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
1de3ec8c
Commit
1de3ec8c
authored
Sep 08, 2021
by
mqf_0707
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
canvas路径优化
parent
f016bbb1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
10 deletions
+11
-10
app.config.js
c_client/src/app.config.js
+2
-1
ContainerScroll.jsx
.../src/components/_base/ContainerScroll/ContainerScroll.jsx
+1
-1
SwiperView.jsx
c_client/src/components/_tb_comps/SwiperView/SwiperView.jsx
+2
-2
SwiperView.less
c_client/src/components/_tb_comps/SwiperView/SwiperView.less
+2
-1
index.config.js
c_client/src/pages/index/index.config.js
+2
-2
index.jsx
c_client/src/pages/index/index.jsx
+2
-3
No files found.
c_client/src/app.config.js
View file @
1de3ec8c
export
default
{
export
default
{
pages
:
[
pages
:
[
'pages/index/index'
'pages/index/index'
,
'pages/packageComs/comsTest/comsTest'
],
],
subPackages
:
[
subPackages
:
[
{
{
...
...
c_client/src/components/_base/ContainerScroll/ContainerScroll.jsx
View file @
1de3ec8c
...
@@ -21,7 +21,7 @@ const ContainerFit = forwardRef((props, ref) => {
...
@@ -21,7 +21,7 @@ const ContainerFit = forwardRef((props, ref) => {
<
ScrollView
className=
{
styles
[
'scroll-container'
]
}
<
ScrollView
className=
{
styles
[
'scroll-container'
]
}
scrollY
scrollTop=
{
scrollTop
}
scrollY
scrollTop=
{
scrollTop
}
onScroll=
{
(
e
)
=>
onScroll
(
e
)
}
onScroll=
{
(
e
)
=>
onScroll
(
e
)
}
onScrollToUpper=
{
()
=>
console
.
warn
(
1
)
}
onScrollToUpper=
{
()
=>
{}
}
scrollWithAnimation
scrollWithAnimation
trapScroll=
{
false
}
trapScroll=
{
false
}
>
>
...
...
c_client/src/components/_tb_comps/SwiperView/SwiperView.jsx
View file @
1de3ec8c
...
@@ -25,8 +25,8 @@ const SwiperView = (props) => {
...
@@ -25,8 +25,8 @@ const SwiperView = (props) => {
duration
=
1000
,
duration
=
1000
,
interval
=
1500
,
interval
=
1500
,
disableTouch
=
false
,
disableTouch
=
false
,
swiperGroup
=
{
width
:
400
,
height
:
75
0
,
overflow
:
'visible'
},
swiperGroup
=
{
width
:
400
,
height
:
50
0
,
overflow
:
'visible'
},
swiperContent
=
{
width
:
400
,
height
:
700
,
backgroundColor
:
'#
fff
'
,
backgroundImage
:
''
,
borderRadius
:
25
},
swiperContent
=
{
width
:
400
,
height
:
700
,
backgroundColor
:
'#
eee
'
,
backgroundImage
:
''
,
borderRadius
:
25
},
imgContent
=
{
width
:
300
},
imgContent
=
{
width
:
300
},
textContent
=
{
width
:
200
,
height
:
60
},
textContent
=
{
width
:
200
,
height
:
60
},
showLeftRightBtn
=
true
,
showLeftRightBtn
=
true
,
...
...
c_client/src/components/_tb_comps/SwiperView/SwiperView.less
View file @
1de3ec8c
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
flex-direction: column;
flex-direction: column;
transform: scale(0.8);
.checkPic {
.checkPic {
width: 60px;
width: 60px;
...
@@ -99,7 +100,7 @@
...
@@ -99,7 +100,7 @@
}
}
}
}
&.current_item {
&.current_item {
transform: scale(1
.2
);
transform: scale(1);
.item_img_content {
.item_img_content {
.img{}
.img{}
.text_content{
.text_content{
...
...
c_client/src/pages/index/index.config.js
View file @
1de3ec8c
...
@@ -5,6 +5,6 @@ export default {
...
@@ -5,6 +5,6 @@ export default {
enableShareAppMessage
:
true
,
enableShareAppMessage
:
true
,
usingComponents
:
{
usingComponents
:
{
'member-modal'
:
'../../components/_miniprogram/memberModal/memberModal'
,
'member-modal'
:
'../../components/_miniprogram/memberModal/memberModal'
,
'canvas-comp'
:
'../../
../
components/_miniprogram/comBlank/comBlank'
'canvas-comp'
:
'../../components/_miniprogram/comBlank/comBlank'
}
}
}
}
\ No newline at end of file
c_client/src/pages/index/index.jsx
View file @
1de3ec8c
import
React
,
{
useRef
,
useState
}
from
'react'
import
React
,
{
useRef
,
useState
,
useEffect
}
from
'react'
import
{
View
,
Image
}
from
'@tarojs/components'
import
{
View
,
Image
}
from
'@tarojs/components'
import
Taro
,
{
useShareAppMessage
,
useDidShow
,
getApp
}
from
'@tarojs/taro'
import
Taro
,
{
useShareAppMessage
,
useDidShow
,
getApp
}
from
'@tarojs/taro'
import
classnames
from
'classnames'
import
classnames
from
'classnames'
...
@@ -14,7 +14,6 @@ import TasksModal from '@/components/_tb_modal/TasksModal/TasksModal'
...
@@ -14,7 +14,6 @@ import TasksModal from '@/components/_tb_modal/TasksModal/TasksModal'
import
JackpotModal
from
'@/components/_tb_modal/JackpotModal'
import
JackpotModal
from
'@/components/_tb_modal/JackpotModal'
import
styles
from
'./index.module.less'
import
styles
from
'./index.module.less'
import
tbcc
from
'tbcc-sdk-ts'
import
tbcc
from
'tbcc-sdk-ts'
import
{
useEffect
}
from
'react'
const
{
navigateTo
,
openDetail
,
showSharePanel
}
=
tbcc
.
tb
const
{
navigateTo
,
openDetail
,
showSharePanel
}
=
tbcc
.
tb
const
{
getImgShareUrl
,
checkIsMember
,
validateActivityStatus
}
=
tbcc
.
utils
const
{
getImgShareUrl
,
checkIsMember
,
validateActivityStatus
}
=
tbcc
.
utils
...
@@ -209,7 +208,7 @@ function Index() {
...
@@ -209,7 +208,7 @@ function Index() {
onClose=
{
()
=>
setDoHelpModalVisible
(
false
)
}
onClose=
{
()
=>
setDoHelpModalVisible
(
false
)
}
/>
/>
}
}
{
<
member
-
modal
expend=
{
memberVisible
}
sellerId=
{
98563612
}
onClose=
{
onClose
}
onAuthFail=
{
onAuthFail
}
onAuthSuccess=
{
onAuthSuccess
}
/>
}
{
<
member
-
modal
expend=
{
memberVisible
}
onClose=
{
onClose
}
onAuthFail=
{
onAuthFail
}
onAuthSuccess=
{
onAuthSuccess
}
/>
}
{
false
&&
<
canvas
-
comp
/>
}
{
false
&&
<
canvas
-
comp
/>
}
</>
</>
)
)
...
...
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