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
9ae18be8
Commit
9ae18be8
authored
Oct 12, 2021
by
王能飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'c_client_taro-pack' into 'c_client_taro'
加购页优化 See merge request
!49
parents
340d3f33
207ab5ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
Modal.jsx
c_client/src/components/_base/Modal/Modal.jsx
+1
-1
config.js
c_client/src/config/config.js
+1
-1
index.jsx
c_client/src/pages/index/index.jsx
+3
-1
cartGoods.jsx
c_client/src/pages/packageGood/cartGoods/cartGoods.jsx
+1
-1
No files found.
c_client/src/components/_base/Modal/Modal.jsx
View file @
9ae18be8
...
@@ -34,7 +34,7 @@ export default function Modal(props) {
...
@@ -34,7 +34,7 @@ export default function Modal(props) {
<
Overlay
onClick=
{
()
=>
onClickOverlay
()
}
/>
<
Overlay
onClick=
{
()
=>
onClickOverlay
()
}
/>
<
View
className=
{
`${styles.content} animate-zoom-in`
}
style=
{
{
top
}
}
>
<
View
className=
{
`${styles.content} animate-zoom-in`
}
style=
{
{
top
}
}
>
{
props
.
children
}
{
props
.
children
}
{
!
hideCloseButton
&&
<
View
className=
{
closeBtnClass
}
onClick=
{
()
=>
onClose
()
}
style=
{
{
top
:
closePos
.
top
/
100
+
'rem'
,
right
:
closePos
.
right
/
100
+
'rem'
}
}
/>
}
{
!
hideCloseButton
&&
<
View
className=
{
closeBtnClass
}
onClick=
{
()
=>
onClose
()
}
style=
{
closePostion
===
'top-right'
?{
top
:
closePos
.
top
/
100
+
'rem'
,
right
:
closePos
.
right
/
100
+
'rem'
}:
{
}
}
/>
}
</
View
>
</
View
>
</
View
>
</
View
>
...
...
c_client/src/config/config.js
View file @
9ae18be8
...
@@ -2,7 +2,7 @@ export default {
...
@@ -2,7 +2,7 @@ export default {
env
:
'test'
,
// 云函数环境 test 测试环境 online 线上环境
env
:
'test'
,
// 云函数环境 test 测试环境 online 线上环境
requestType
:
'cloud'
,
// cloud: 云函数, yapi: yapi 接口, ams: ams接口,tornadoAPI: 风驰台接口
requestType
:
'cloud'
,
// cloud: 云函数, yapi: yapi 接口, ams: ams接口,tornadoAPI: 风驰台接口
cloudName
:
'testNewS'
,
// 主云函数项目名 CommonToC
cloudName
:
'testNewS'
,
// 主云函数项目名 CommonToC
sellerId
:
'2
207644377875
'
,
sellerId
:
'2
401530034
'
,
tornadoAPI
:
'https://tornado.duibadev.com.cn/tbServer/api?db=db3000000038851072&proxyIp=172.16.130.158'
,
// 新增:当requestType: 'tornadoAPI'时,找服务端提供地址
tornadoAPI
:
'https://tornado.duibadev.com.cn/tbServer/api?db=db3000000038851072&proxyIp=172.16.130.158'
,
// 新增:当requestType: 'tornadoAPI'时,找服务端提供地址
defaultActivityId
:
'610cff3f086e659a96b7336c'
// 默认活动id
defaultActivityId
:
'610cff3f086e659a96b7336c'
// 默认活动id
}
}
\ No newline at end of file
c_client/src/pages/index/index.jsx
View file @
9ae18be8
...
@@ -55,6 +55,8 @@ function Index() {
...
@@ -55,6 +55,8 @@ function Index() {
const
[
helpInfo
,
setHelpInfo
]
=
useState
({})
const
[
helpInfo
,
setHelpInfo
]
=
useState
({})
// 助力弹窗标识
// 助力弹窗标识
const
showHelp
=
useRef
(
false
)
const
showHelp
=
useRef
(
false
)
// 用户信息
const
[
userInfo
,
setUserInfo
]
=
useState
({})
const
fetchActivityInfo
=
async
()
=>
{
const
fetchActivityInfo
=
async
()
=>
{
const
{
success
,
data
}
=
await
API
.
getActivityBaseInfoById
()
const
{
success
,
data
}
=
await
API
.
getActivityBaseInfoById
()
...
@@ -211,7 +213,7 @@ function Index() {
...
@@ -211,7 +213,7 @@ function Index() {
/>
/>
}
}
{
<
member
-
modal
expend=
{
memberVisible
}
onClose=
{
onClose
}
onAuthFail=
{
onAuthFail
}
onAuthSuccess=
{
onAuthSuccess
}
/>
}
{
<
member
-
modal
expend=
{
memberVisible
}
onClose=
{
onClose
}
onAuthFail=
{
onAuthFail
}
onAuthSuccess=
{
onAuthSuccess
}
/>
}
{
authInfo
?.
visible
&&
<
Auth
clickAuthBtn=
{
authInfo
.
on
Open
Setting
}
/>
}
{
authInfo
?.
visible
&&
<
Auth
clickAuthBtn=
{
authInfo
.
on
Handle
Setting
}
/>
}
{
false
&&
<
canvas
-
comp
/>
}
{
false
&&
<
canvas
-
comp
/>
}
</>
</>
)
)
...
...
c_client/src/pages/packageGood/cartGoods/cartGoods.jsx
View file @
9ae18be8
...
@@ -43,7 +43,7 @@ function CartGoodsPage() {
...
@@ -43,7 +43,7 @@ function CartGoodsPage() {
const
{
status
,
quantity
}
=
await
showSkuModal
(
String
(
itemId
))
const
{
status
,
quantity
}
=
await
showSkuModal
(
String
(
itemId
))
if
(
status
==
"addCartSuccess"
)
{
if
(
status
==
"addCartSuccess"
)
{
const
{
success
}
=
await
API
.
completeTask
({
key
:
CART_CONFIG
.
taskType
,
taskType
:
CART_CONFIG
.
taskType
,
itemId
,
count
:
quantity
})
const
{
success
}
=
await
API
.
completeTask
({
key
:
CART_CONFIG
.
taskType
,
taskType
:
CART_CONFIG
.
taskType
,
itemId
,
count
:
quantity
})
if
(
!
success
)
{
if
(
success
)
{
collectFlag
.
current
+=
1
collectFlag
.
current
+=
1
getGoodsList
()
getGoodsList
()
// showToast({ title: '加购成功'})
// showToast({ title: '加购成功'})
...
...
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