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:
		
						commit
						a9098c3156
					
				@ -57,7 +57,7 @@ export default {
 | 
			
		||||
    props:['item','title'],
 | 
			
		||||
    watch:{
 | 
			
		||||
        select(){
 | 
			
		||||
            // console.log(this.select)
 | 
			
		||||
            console.log(this.select)
 | 
			
		||||
            this.$emit("sel", this.select);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
@ -80,7 +80,6 @@
 | 
			
		||||
		{
 | 
			
		||||
			"root": "pageB",
 | 
			
		||||
			"pages": [
 | 
			
		||||
				
 | 
			
		||||
				{
 | 
			
		||||
					"path": "follow/index",
 | 
			
		||||
					"style": {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user