Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
高淑倩
7-Eleven
Commits
a164cd16
Commit
a164cd16
authored
Oct 23, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回访列表
parent
5a8d2fec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
21 deletions
+29
-21
project.config.json
src/project.config.json
+4
-3
enlistInfo.js
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.js
+10
-8
enlistInfo.wxml
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.wxml
+10
-9
enlistInfo.wxss
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.wxss
+5
-1
No files found.
src/project.config.json
View file @
a164cd16
...
...
@@ -39,7 +39,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
5
0
,
"current"
:
5
1
,
"list"
:
[
{
"id"
:
-1
,
...
...
@@ -382,10 +382,11 @@
"scene"
:
null
},
{
"id"
:
-
1
,
"id"
:
5
1
,
"name"
:
"招募任务详情"
,
"pathName"
:
"shoppingGuid/page/pages/enlistInfo/enlistInfo"
,
"query"
:
""
"query"
:
"id=636202518078164992&type=2"
,
"scene"
:
null
},
{
"id"
:
-1
,
...
...
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.js
View file @
a164cd16
...
...
@@ -6,7 +6,7 @@ wxService.page({
* 页面的初始数据
*/
data
:
{
enlistList
:
null
},
/**
...
...
@@ -32,7 +32,7 @@ wxService.page({
let
orderType
=
this
.
options
&&
this
.
options
.
type
||
2
this
.
getTaskDetail
(
orderType
,
taskId
)
},
getTaskDetail
(
orderType
,
taskId
)
{
getTaskDetail
(
orderType
,
taskId
)
{
wx
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -41,12 +41,14 @@ wxService.page({
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
// data && data.skuVOList.forEach(item=>{
// item.checked = false
// })
// this.setData({
// cartList: data && data.skuVOList || []
// })
let
curStart
=
new
Date
(
data
.
task
.
startTime
)
let
curEnd
=
new
Date
(
data
.
task
.
endTime
)
data
.
task
.
startTime
=
`
${
curStart
.
getMonth
()}
月
${
curStart
.
getDay
()}
日`
data
.
task
.
endTime
=
`
${
curEnd
.
getMonth
()}
月
${
curEnd
.
getDay
()}
日`
this
.
setData
({
enlistList
:
data
||
{}
})
}
}
})
...
...
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.wxml
View file @
a164cd16
...
...
@@ -4,20 +4,20 @@
<view class='info-item'>
<view class='lf'>
<image src='/assets/imgs/shoppingGuide/kpi_task_time.png' mode='widthFix'></image>
<text>
9月1日~10月1日
</text>
<text>
{{enlistList.task.startTime}}~{{enlistList.task.endTime}}
</text>
</view>
<view class='rg'>活动说明?</view>
</view>
<view class='info-item'>
<view class='lf'>
<image src='/assets/imgs/shoppingGuide/kpi_task_name.png' mode='widthFix'></image>
<text class='bolder'>
当月招募任务
</text>
<text class='bolder'>
{{enlistList.task.name}}
</text>
</view>
</view>
<view class='info-item'>
<view class='lf'>
<image src='/assets/imgs/shoppingGuide/award.png' mode='widthFix'></image>
<text class='bolder'>
员工内部券*1,导购币100
</text>
<text class='bolder'>
{{enlistList.task.remark}}
</text>
</view>
</view>
...
...
@@ -29,22 +29,23 @@
<view class='month-data'>
<view class='data-item'>
<text class='data-item-title'>当前完成(人)</text>
<text class='data-item-number'>
113
</text>
<text class='data-item-number'>
{{enlistList.achieve}}
</text>
</view>
<view class='data-item'>
<text class='data-item-title'>当周目标(人)</text>
<text class='data-item-number'>
100
</text>
<text class='data-item-number'>
{{enlistList.task.target}}
</text>
</view>
<view class='data-item'>
<text class='data-item-title'>完成率</text>
<text class='data-item-number'>
100%
</text>
<text class='data-item-number'>
{{enlistList.rate}}
</text>
</view>
</view>
</view>
</view>
</view>
<!-- 列表 -->
<view class='list'>
<view class='list' wx:if="{{enlistList.recruitInfo.length}}">
<block wx:for="{{enlistList.recruitInfo}}">
<view class='item'>
<view class='u-info'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image>
...
...
@@ -68,9 +69,9 @@
</view>
<view class='item-btn'>立即回访</view>
</view>
</block>
</view>
<view wx:else class='list no-order'>暂无回访列表</view>
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.wxss
View file @
a164cd16
...
...
@@ -7,7 +7,11 @@ page{
font-size: 28rpx;
color: #333333;
}
.no-order {
text-align: center;
padding-top: 50rpx;
color: #333333;
}
view{
box-sizing: border-box;
-webkit-box-sizing: border-box;
...
...
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