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
da279f27
Commit
da279f27
authored
Mar 09, 2021
by
wangnf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wnf
parent
162d8903
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
.DS_Store
.DS_Store
+0
-0
TasksModal.jsx
c_client/src/components/TasksModal/TasksModal.jsx
+2
-5
config.js
c_client/src/config.js
+1
-1
No files found.
.DS_Store
View file @
da279f27
No preview for this file type
c_client/src/components/TasksModal/TasksModal.jsx
View file @
da279f27
...
...
@@ -21,15 +21,12 @@ export default function TasksModal(props) {
const
{
taskIcon
,
commonTaskTxt
,
doTaskTxt
,
browseType
,
browseTime
}
=
taskConfig
useEffect
(()
=>
{
console
.
warn
(
'taskFlag1'
+
taskFlag
)
console
.
warn
(
'taskFlag'
+
props
.
taskFlag
)
if
(
app
.
isFlashTask
&&
taskFlag
!==
props
.
taskFlag
)
{
if
(
preBrowseTime
&&
((
Date
.
now
()
-
preBrowseTime
)
/
1000
)
>=
browseTime
)
{
doCompleteTaskHandle
(
currentTaskType
,
true
)
}
else
{
//
fetchTaskList()
fetchTaskList
()
}
}
},[
props
.
taskFlag
])
...
...
@@ -138,7 +135,7 @@ export default function TasksModal(props) {
<
Popup
onClose=
{
onClose
}
height=
"700rpx"
>
<
View
className=
"task-modal-container"
>
<
View
className=
"task-modal-content"
>
<
View
className=
"task-modal__close"
/>
<
View
className=
"task-modal__close"
onClick=
{
onClose
}
/>
<
View
className=
"task-modal-content__title"
>
任务模块
</
View
>
<
View
className=
"task-modal-content__list"
>
<
ScrollView
scroll
-
y=
"{{true}}"
className=
"task-modal-content__scroll"
>
...
...
c_client/src/config.js
View file @
da279f27
export
default
{
env
:
'test'
,
// 云函数环境 test 测试环境 online 线上环境
requestType
:
'cloud'
,
// cloud: 云函数, yapi: yapi 接口, ams: ams接口,tornadoAPI: 风驰台接口
cloudName
:
'
yapi
'
,
// 主云函数项目名 CommonToC
cloudName
:
'
hlnBox
'
,
// 主云函数项目名 CommonToC
sellerId
:
'2207644377875'
,
tornadoAPI
:
'https://tornado.duibadev.com.cn/tbServer/api?db=xxx&proxyIp=xxx'
,
// 新增:当requestType: 'tornadoAPI'时,找服务端提供地址
defaultActivityId
:
'601b9eef9897b41ad0f26834'
// 默认活动id
...
...
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