This commit is contained in:
ghusermoon 2020-08-09 11:27:15 +08:00
parent e5a322fd35
commit 228e34d8fc
3 changed files with 16 additions and 5 deletions

View File

@ -57,7 +57,7 @@ export default {
props:['item','title'], props:['item','title'],
watch:{ watch:{
select(){ select(){
// console.log(this.select) console.log(this.select)
this.$emit("sel", this.select); this.$emit("sel", this.select);
} }
} }

View File

@ -226,6 +226,11 @@ export default {
sel(value){ sel(value){
this.xuanze(value); this.xuanze(value);
}, },
showSpec(value) {
if(!value) {
this.quanxuan = false;
}
}
}, },
onLoad(option) { onLoad(option) {
// this.init(); // this.init();
@ -442,6 +447,12 @@ export default {
this.showSpec = true; this.showSpec = true;
return false; return false;
} }
if(!this.quanxuan) {
this.$refs.uToast.show({
title: '请选择规格'
})
return false;
}
if(!this.debounce) return; if(!this.debounce) return;
this.debounce = false; this.debounce = false;
let params = { let params = {
@ -495,12 +506,13 @@ export default {
arr.push(sel) arr.push(sel)
} }
} }
// console.log(arr.length) // console.log(arr)
if(arr.length == index){ if(arr.length == index){
this.sel = arr.join("|") this.sel = arr.join("|")
this.quanxuan = true this.quanxuan = true;
// console.log(this.sel) // console.log(this.sel)
} }
// console.log(this.quanxuan);
}, },
xuanze(id){ xuanze(id){
// console.log(id) // console.log(id)

View File

@ -80,7 +80,6 @@
{ {
"root": "pageB", "root": "pageB",
"pages": [ "pages": [
{ {
"path": "follow/index", "path": "follow/index",
"style": { "style": {