|
@@ -17,14 +17,16 @@ export default function MyCustomerListItem (props) {
|
17
|
17
|
const expStr = expirationDate && customerStatus === '1' ? `${addDays(createDate, expirationDate)} 回收` : ''
|
18
|
18
|
|
19
|
19
|
const gotoDetail = () => {
|
20
|
|
- if (!data.customerId) {
|
21
|
|
- Taro.showToast({
|
22
|
|
- title: '该用户尚未到访',
|
23
|
|
- icon: 'none',
|
24
|
|
- })
|
25
|
|
- } else {
|
26
|
|
- const url = `/pages/mine/myCustomerDetail/index?id=${data.customerId}`
|
27
|
|
- Taro.navigateTo({ url })
|
|
20
|
+ if (data.status - 0 !== 3) {
|
|
21
|
+ if (!data.customerId) {
|
|
22
|
+ Taro.showToast({
|
|
23
|
+ title: '该用户尚未到访',
|
|
24
|
+ icon: 'none',
|
|
25
|
+ })
|
|
26
|
+ } else {
|
|
27
|
+ const url = `/pages/mine/myCustomerDetail/index?id=${data.customerId}`
|
|
28
|
+ Taro.navigateTo({ url })
|
|
29
|
+ }
|
28
|
30
|
}
|
29
|
31
|
}
|
30
|
32
|
|
|
@@ -40,7 +42,14 @@ export default function MyCustomerListItem (props) {
|
40
|
42
|
</view>
|
41
|
43
|
<view className='Time flex-h'>
|
42
|
44
|
<text className='flex-item'>{data.phone}</text>
|
43
|
|
- <text>{BIZ_STATUS[customerStatus]||'报备'}</text>
|
|
45
|
+ {
|
|
46
|
+ data.status - 0 === 3 &&
|
|
47
|
+ <text>无效</text>
|
|
48
|
+ }
|
|
49
|
+ {
|
|
50
|
+ data.status - 0 !== 3 &&
|
|
51
|
+ <text>{BIZ_STATUS[customerStatus] || '报备'}</text>
|
|
52
|
+ }
|
44
|
53
|
</view>
|
45
|
54
|
</view>
|
46
|
55
|
</view>
|