Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0dbb646c
authored
Oct 28, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复收藏bug
1 parent
9982de4a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
utils/constantData.js
pages/tab/index/index.js
View file @
0dbb646
...
...
@@ -434,6 +434,13 @@ Page({
})
wx
.
$storage
.
set
(
'firstLogin'
,
'firstLogin'
)
}
if
(
this
.
data
.
guideShow
){
wx
.
$storage
.
set
(
'disLikeRecordFlag'
,
true
)
let
disLikeRecordFlag
=
wx
.
$storage
.
get
(
'disLikeRecordFlag'
)
this
.
setData
({
disLikeRecordFlag
})
}
},
//接口数据,本地数据对接
compositionData
(
localData
,
apiData
)
{
...
...
@@ -473,8 +480,11 @@ Page({
this
.
prompt
=
this
.
selectComponent
(
'#toast'
)
},
showToast
:
function
(
e
)
{
wx
.
$storage
.
set
(
'disLikeRecordFlag'
,
false
)
let
disLikeRecordFlag
=
wx
.
$storage
.
get
(
'disLikeRecordFlag'
)
this
.
setData
({
disLikeFlag
:
false
disLikeFlag
:
false
,
disLikeRecordFlag
})
let
{
type
,
item
}
=
e
.
currentTarget
.
dataset
console
.
log
(
'type,item: '
,
type
,
item
)
...
...
@@ -635,6 +645,10 @@ Page({
this
.
setData
({
clueList
:
arr
})
let
arrinx
=
arr
.
findIndex
(
e
=>
e
.
clueType
==
1
&&
e
.
starTag
==
0
)
this
.
setData
({
disLikeFlagIdx
:
arrinx
})
}
},
//喜欢收藏功能
...
...
pages/tab/index/index.wxml
View file @
0dbb646
...
...
@@ -165,10 +165,10 @@
data-outidx="{{index}}"
data-item="{{item}}"
bindtap="showToast" />
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag}}">
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag
&& disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx
}}">
标记为意向客户
</view>
<view class="disLike-titsan" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag}}"></view>
<view class="disLike-titsan" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag
&& disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx
}}"></view>
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
<image class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
...
...
utils/constantData.js
View file @
0dbb646
...
...
@@ -15,7 +15,8 @@ export const STORAGE_OBJECTkEY = {
userPhone
:
'userPhone'
,
firstLogin
:
'firstLogin'
,
authphone
:
'authphone'
,
posterTimer
:
'posterTimer'
posterTimer
:
'posterTimer'
,
disLikeRecordFlag
:
'disLikeRecordFlag'
}
export
const
IMG_VERSION
=
()
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment