Commit da279f27 authored by wangnf's avatar wangnf

wnf

parent 162d8903
No preview for this file type
...@@ -21,15 +21,12 @@ export default function TasksModal(props) { ...@@ -21,15 +21,12 @@ export default function TasksModal(props) {
const { taskIcon, commonTaskTxt, doTaskTxt, browseType, browseTime } = taskConfig const { taskIcon, commonTaskTxt, doTaskTxt, browseType, browseTime } = taskConfig
useEffect(() => { useEffect(() => {
console.warn('taskFlag1'+taskFlag)
console.warn('taskFlag'+props.taskFlag)
if(app.isFlashTask && taskFlag !== props.taskFlag) { if(app.isFlashTask && taskFlag !== props.taskFlag) {
if(preBrowseTime && ((Date.now() - preBrowseTime) / 1000) >= browseTime) { if(preBrowseTime && ((Date.now() - preBrowseTime) / 1000) >= browseTime) {
doCompleteTaskHandle(currentTaskType,true) doCompleteTaskHandle(currentTaskType,true)
} }
else { else {
// fetchTaskList() fetchTaskList()
} }
} }
},[props.taskFlag]) },[props.taskFlag])
...@@ -138,7 +135,7 @@ export default function TasksModal(props) { ...@@ -138,7 +135,7 @@ export default function TasksModal(props) {
<Popup onClose={onClose} height="700rpx"> <Popup onClose={onClose} height="700rpx">
<View className="task-modal-container"> <View className="task-modal-container">
<View className="task-modal-content"> <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__title">任务模块</View>
<View className="task-modal-content__list"> <View className="task-modal-content__list">
<ScrollView scroll-y="{{true}}" className="task-modal-content__scroll"> <ScrollView scroll-y="{{true}}" className="task-modal-content__scroll">
......
export default { 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: 'yapi', // 主云函数项目名 CommonToC cloudName: 'hlnBox', // 主云函数项目名 CommonToC
sellerId: '2207644377875', sellerId: '2207644377875',
tornadoAPI: 'https://tornado.duibadev.com.cn/tbServer/api?db=xxx&proxyIp=xxx', // 新增:当requestType: 'tornadoAPI'时,找服务端提供地址 tornadoAPI: 'https://tornado.duibadev.com.cn/tbServer/api?db=xxx&proxyIp=xxx', // 新增:当requestType: 'tornadoAPI'时,找服务端提供地址
defaultActivityId: '601b9eef9897b41ad0f26834' // 默认活动id defaultActivityId: '601b9eef9897b41ad0f26834' // 默认活动id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment