From 228e34d8fc78c3bd344443e06ccc4451dc864298 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Sun, 9 Aug 2020 11:27:15 +0800 Subject: [PATCH] spec 8.9 --- pageB/components/sdetails/guige.vue | 2 +- pageB/sdetails/index.vue | 18 +++++++++++++++--- pages.json | 1 - 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/pageB/components/sdetails/guige.vue b/pageB/components/sdetails/guige.vue index e156f6b..a55da42 100644 --- a/pageB/components/sdetails/guige.vue +++ b/pageB/components/sdetails/guige.vue @@ -57,7 +57,7 @@ export default { props:['item','title'], watch:{ select(){ - // console.log(this.select) + console.log(this.select) this.$emit("sel", this.select); } } diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue index b98294b..efe5c84 100644 --- a/pageB/sdetails/index.vue +++ b/pageB/sdetails/index.vue @@ -226,6 +226,11 @@ export default { sel(value){ this.xuanze(value); }, + showSpec(value) { + if(!value) { + this.quanxuan = false; + } + } }, onLoad(option) { // this.init(); @@ -442,6 +447,12 @@ export default { this.showSpec = true; return false; } + if(!this.quanxuan) { + this.$refs.uToast.show({ + title: '请选择规格' + }) + return false; + } if(!this.debounce) return; this.debounce = false; let params = { @@ -495,12 +506,13 @@ export default { arr.push(sel) } } - // console.log(arr.length) + // console.log(arr) if(arr.length == index){ this.sel = arr.join("|") - this.quanxuan = true + this.quanxuan = true; // console.log(this.sel) - } + } + // console.log(this.quanxuan); }, xuanze(id){ // console.log(id) diff --git a/pages.json b/pages.json index 6fb90cc..4e66259 100644 --- a/pages.json +++ b/pages.json @@ -80,7 +80,6 @@ { "root": "pageB", "pages": [ - { "path": "follow/index", "style": {