Commit a164cd16 by 高淑倩

回访列表

parent 5a8d2fec
......@@ -39,7 +39,7 @@
"list": []
},
"miniprogram": {
"current": 50,
"current": 51,
"list": [
{
"id": -1,
......@@ -382,10 +382,11 @@
"scene": null
},
{
"id": -1,
"id": 51,
"name": "招募任务详情",
"pathName": "shoppingGuid/page/pages/enlistInfo/enlistInfo",
"query": ""
"query": "id=636202518078164992&type=2",
"scene": null
},
{
"id": -1,
......
......@@ -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 || {}
})
}
}
})
......
......@@ -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>
......@@ -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;
......
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