Commit f7bee7cd authored by sujie@126.com's avatar sujie@126.com

dd\

parent e632d624
......@@ -86,7 +86,7 @@ Page({
{
id: 3,
key: 'finish',
name: '已完成'
name: '已成交'
},
{
id: 4,
......@@ -103,7 +103,8 @@ Page({
clueDetail:'',
selectStatusShow: false,
recordsList:[],
showCallDailog: false
showCallDailog: false,
emptyPage: false
},
/**
......@@ -186,7 +187,12 @@ Page({
}).then((res)=>{
const { code, data } = res;
this.setData({
recordsList: data.list
recordsList: data.list,
emptyPage: data.total && data.total>0 ? false : true
})
}).catch((res)=>{
this.setData({
emptyPage: true
})
})
},
......
{
"usingComponents": {
"btn-drag": "../../../components/btndrag"
"btn-drag": "../../../components/btndrag",
"empty-content": "../../../components/emptycontent"
},
"navigationBarTitleText": "线索信息"
}
\ No newline at end of file
......@@ -28,20 +28,25 @@
<view class="btn-item red-item" wx:if="{{clueDetail.status != 5 && clueDetail.status != 4}}" bindtap="signInvalid">标记无效</view>
</view>
</view>
<view class="recordsList-box" wx:if="{{recordsList.length>0}}">
<view class="recordsList-box">
<view class="title">销售动态</view>
<view class="item-box" wx:for="{{recordsList}}" wx:key="{{index}}">
<view class="line-box">
<image class="bluedot" src="{{imageRoot}}2b/potentialcustomer/bluedot.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<view class="line" wx:if="{{(index+1) < recordsList.length}}"></view>
</view>
<view class="right-box">
<view class="time-box">{{item.created_at}}</view>
<view class="info-detail">
<!-- <image class="avatar" src="{{imageRoot}}2c/ucenter2/empty_avatar.png?{{imageVersion}}"></image> {{item.clue.name}} -->
{{item.content}}
<block wx:if="{{!emptyPage}}">
<view class="item-box" wx:for="{{recordsList}}" wx:key="{{index}}">
<view class="line-box">
<image class="bluedot" src="{{imageRoot}}2b/potentialcustomer/bluedot.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<view class="line" wx:if="{{(index+1) < recordsList.length}}"></view>
</view>
<view class="right-box">
<view class="time-box">{{item.created_at}}</view>
<view class="info-detail">
<!-- <image class="avatar" src="{{imageRoot}}2c/ucenter2/empty_avatar.png?{{imageVersion}}"></image> {{item.clue.name}} -->
{{item.content}}
</view>
</view>
</view>
</block>
<view class="empty" wx:else>
<empty-content text="还没有老师去跟进,赶快去写跟进吧~" emptyimg="" ></empty-content>
</view>
</view>
<btn-drag bind:btnDragEvent='goEditcluelog' tobottomDis='116' width='52' height="52" catchtouchmove="true">
......
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