Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
87bee99f
authored
Feb 25, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
08c1ed6b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
src/store/modules/sample/index.js
src/views/sample/sample.vue
view/14.js
view/app.js
src/store/modules/sample/index.js
View file @
87bee99f
...
...
@@ -84,6 +84,10 @@ const actions = {
});
state
.
loading
=
true
;
state
.
finished
=
false
;
if
(
payload
.
params
.
p
==
1
){
state
.
ziYingIndex
=
[];
}
let
obj
=
{
...
payload
.
params
,
...
...
src/views/sample/sample.vue
View file @
87bee99f
...
...
@@ -64,7 +64,7 @@
</div>
</div>
<div
class=
"con"
v-if=
"ziYingIndex"
>
<van-list
v-model=
"loadingYp"
:finished=
"finished"
finished-text=
"我是有底线的噢"
@
load=
"onLoad"
:immediate-check=
"false"
:offset=
"offset"
>
<van-list
v-model=
"loadingYp"
:finished=
"finished"
finished-text=
"我是有底线的噢"
@
load=
"onLoad"
:immediate-check=
"false"
>
<div
class=
"con-group clr"
v-for=
"(v,k) in ziYingIndex"
>
<div
class=
"fl img-box"
v-lazy-container=
"{selector:'img'}"
>
<img
class=
"lazy img-lazy"
:alt=
"v.goods_name"
:data-src=
"v.goods_images"
data-error=
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"
/>
...
...
@@ -163,7 +163,6 @@
attrs
:
{},
curr
:
false
,
id
:
[],
offset
:
100
,
shareUrl
:
window
.
location
.
origin
+
"/v3/samplereg?uid="
+
util
.
getCookie
(
"Yo4teW_uid"
)
};
},
...
...
@@ -188,7 +187,7 @@
//先获取aggSample的第一个id
this
.
$store
.
dispatch
({
type
:
"ziYingIndex"
,
params
:
{
'sample_class_id/eq'
:
val
}
params
:
{
'sample_class_id/eq'
:
val
,
p
:
1
}
});
}
}
...
...
view/14.js
View file @
87bee99f
This diff is collapsed.
Click to expand it.
view/app.js
View file @
87bee99f
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