Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
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
wangxuelai
wechatapp.shangjiadao.com
Commits
4a615296
Commit
4a615296
authored
Nov 12, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最新代码提交'
parent
190655b6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
154 additions
and
29 deletions
+154
-29
influencelist.js
src/pages/myinfluence/influencelist.js
+72
-0
influencelist.wxml
src/pages/myinfluence/influencelist.wxml
+82
-29
No files found.
src/pages/myinfluence/influencelist.js
View file @
4a615296
...
...
@@ -270,6 +270,29 @@ Page({
if
(
data
.
total
)
{
this
.
data
.
viewsList
[
bigindex
][
smallindex
].
info
.
viewTotal
=
data
.
total
;
}
data
.
list
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
behavior
.
source_type
==
3
)
{
const
videoAndImage
=
JSON
.
parse
(
ele
.
behavior
.
morph_source_record
.
video
);
const
audios
=
JSON
.
parse
(
ele
.
behavior
.
morph_source_record
.
audio
);
const
videos
=
videoAndImage
.
filter
(
ele
=>
ele
.
type
==
'video'
);
const
images
=
videoAndImage
.
filter
(
ele
=>
ele
.
type
==
'image'
);
let
type
=
''
;
let
src
=
''
;
if
(
videos
.
length
>
0
)
{
type
=
'video'
;
src
=
videos
[
0
].
src
;
}
else
if
(
images
.
length
>
0
)
{
type
=
'image'
;
src
=
images
[
0
].
src
;
}
else
if
(
audios
.
length
>
0
)
{
type
=
'audio'
;
}
else
{
type
=
'text'
;
}
ele
.
clockDetailType
=
type
;
ele
.
clockDetailsrc
=
src
;
}
})
switch
(
type
)
{
case
'init'
:
// 初始化
this
.
setData
({
...
...
@@ -311,6 +334,7 @@ Page({
default
:
break
;
}
console
.
log
(
this
.
data
.
viewsList
,
'viewsList'
);
this
.
setData
({
[
`viewsList[
${
bigindex
}
][
${
smallindex
}
].info.loading`
]:
false
,
[
`viewsList[
${
bigindex
}
][
${
smallindex
}
].info.expand`
]:
true
,
...
...
@@ -554,6 +578,29 @@ Page({
if
(
data
.
total
)
{
this
.
data
.
sharesList
[
bigindex
][
smallindex
].
info
.
shareTotal
=
data
.
total
;
}
data
.
list
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
source_type
==
3
)
{
const
videoAndImage
=
JSON
.
parse
(
ele
.
morph_source_record
.
video
);
const
audios
=
JSON
.
parse
(
ele
.
morph_source_record
.
audio
);
const
videos
=
videoAndImage
.
filter
(
ele
=>
ele
.
type
==
'video'
);
const
images
=
videoAndImage
.
filter
(
ele
=>
ele
.
type
==
'image'
);
let
type
=
''
;
let
src
=
''
;
if
(
videos
.
length
>
0
)
{
type
=
'video'
;
src
=
videos
[
0
].
src
;
}
else
if
(
images
.
length
>
0
)
{
type
=
'image'
;
src
=
images
[
0
].
src
;
}
else
if
(
audios
.
length
>
0
)
{
type
=
'audio'
;
}
else
{
type
=
'text'
;
}
ele
.
clockDetailType
=
type
;
ele
.
clockDetailsrc
=
src
;
}
})
switch
(
type
)
{
case
'init'
:
// 初始化
this
.
setData
({
...
...
@@ -636,6 +683,31 @@ Page({
if
(
data
.
total
){
this
.
data
.
clueTotal
=
data
.
total
;
}
data
.
list
.
forEach
((
ele
,
index
)
=>
{
if
(
ele
.
last_behavior
.
source_type
==
3
)
{
console
.
log
(
ele
,
'ele'
);
const
videoAndImage
=
JSON
.
parse
(
ele
.
last_behavior
.
morph_source_record
.
video
);
const
audios
=
JSON
.
parse
(
ele
.
last_behavior
.
morph_source_record
.
audio
);
const
videos
=
videoAndImage
.
filter
(
ele
=>
ele
.
type
==
'video'
);
const
images
=
videoAndImage
.
filter
(
ele
=>
ele
.
type
==
'image'
);
let
type
=
''
;
let
src
=
''
;
if
(
videos
.
length
>
0
)
{
type
=
'video'
;
src
=
videos
[
0
].
src
;
}
else
if
(
images
.
length
>
0
)
{
type
=
'image'
;
src
=
images
[
0
].
src
;
}
else
if
(
audios
.
length
>
0
)
{
type
=
'audio'
;
}
else
{
type
=
'text'
;
}
ele
.
clockDetailType
=
type
;
ele
.
clockDetailsrc
=
src
;
}
})
console
.
log
(
'ddddddddddddddddd'
);
switch
(
type
)
{
case
'init'
:
//页面进来第一次加载
this
.
setData
({
...
...
src/pages/myinfluence/influencelist.wxml
View file @
4a615296
This diff is collapsed.
Click to expand it.
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