Commit 08adb2bc by 梁建民

js

parent ad69b818
......@@ -118,10 +118,7 @@ const actions = {
});
} else if (data.error_code == 3) {
state.loading = true;
state.finished = true;
} else {
} else {
state.loading = false;
state.finished = true;
}
......
......@@ -163,7 +163,7 @@
attrs: {},
curr: false,
id: [],
offset:100,
offset: 100,
shareUrl: window.location.origin + "/v3/samplereg?uid=" + util.getCookie("Yo4teW_uid")
};
},
......@@ -183,8 +183,8 @@
loading(now) {
this.loadingYp = now;
},
smaple_class_id(val){
if(val){
smaple_class_id(val) {
if (val) {
//先获取aggSample的第一个id
this.$store.dispatch({
type: "ziYingIndex",
......@@ -262,10 +262,12 @@
this.p++;
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({
type: "ziYingIndex",
params: params
});
setTimeout(() => {
this.$store.dispatch({
type: "ziYingIndex",
params: params
});
}, 1000)
},
getuserf() {
......
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