Merge pull request 'spec 8.9' (#136) from zhy into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/136
This commit is contained in:
hansu 2020-08-09 11:27:55 +08:00
commit a9098c3156
3 changed files with 16 additions and 5 deletions

View File

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

View File

@ -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)

View File

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