Commit 87bee99f by 梁建民

js

parent 08c1ed6b
...@@ -84,6 +84,10 @@ const actions = { ...@@ -84,6 +84,10 @@ const actions = {
}); });
state.loading = true; state.loading = true;
state.finished = false; state.finished = false;
if(payload.params.p == 1){
state.ziYingIndex = [];
}
let obj = { let obj = {
...payload.params, ...payload.params,
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</div> </div>
</div> </div>
<div class="con" v-if="ziYingIndex"> <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="con-group clr" v-for="(v,k) in ziYingIndex">
<div class="fl img-box" v-lazy-container="{selector:'img'}"> <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"/> <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 @@ ...@@ -163,7 +163,6 @@
attrs: {}, attrs: {},
curr: false, curr: false,
id: [], id: [],
offset: 100,
shareUrl: window.location.origin + "/v3/samplereg?uid=" + util.getCookie("Yo4teW_uid") shareUrl: window.location.origin + "/v3/samplereg?uid=" + util.getCookie("Yo4teW_uid")
}; };
}, },
...@@ -188,7 +187,7 @@ ...@@ -188,7 +187,7 @@
//先获取aggSample的第一个id //先获取aggSample的第一个id
this.$store.dispatch({ this.$store.dispatch({
type: "ziYingIndex", type: "ziYingIndex",
params: {'sample_class_id/eq': val} params: {'sample_class_id/eq': val,p:1}
}); });
} }
} }
......
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 sign in to comment