Commit ff0737af by 梁建民

js

parent 64085c7d
......@@ -100,7 +100,6 @@ const actions = {
let data = res.data;
state.loading = false;
if (data.error_code == 0) {
......@@ -119,15 +118,8 @@ const actions = {
});
} else if (data.error_code == 3) {
} else {
state.loading = false;
state.finished = true;
}
}).catch(function (err) {
Toast.clear();
......
......@@ -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">
<van-list v-model="loadingYp" :finished="finished" finished-text="我是有底线的噢" @load="onLoad" :immediate-check="false" :offset="offset">
<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,6 +163,7 @@
attrs: {},
curr: false,
id: [],
offset:100,
shareUrl: window.location.origin + "/v3/samplereg?uid=" + util.getCookie("Yo4teW_uid")
};
},
......@@ -259,9 +260,10 @@
},
onLoad() {
this.p++;
console.log('a')
let params = Object.assign({}, {p: this.p}, {'sample_class_id/eq': this.sample_class_id || this.smaple_class_id}, this.brand_id, this.packing, this.encap, this.attrs, {id: this.id.join(',')});
this.$store.dispatch({
......
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