完成
This commit is contained in:
		
							parent
							
								
									72f56fe563
								
							
						
					
					
						commit
						d04146d479
					
				@ -15,7 +15,7 @@ export default {
 | 
				
			|||||||
    name:"shop-item",
 | 
					    name:"shop-item",
 | 
				
			||||||
    data(){
 | 
					    data(){
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            xuanzhong:true,
 | 
					            xuanzhong:false,
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    props:['image','title','price','num','sid'],
 | 
					    props:['image','title','price','num','sid'],
 | 
				
			||||||
 | 
				
			|||||||
@ -6,6 +6,7 @@
 | 
				
			|||||||
                <shopItem @xuanzhong="xuanzhong" class="items" v-for="(i,j) in list" :key="j" :image="i.goods_image" :title="i.goods_name" :price="i.goods_marketprice" :num="i.goods_salenum" :sid="i.goods_id" ref="shop"></shopItem>
 | 
					                <shopItem @xuanzhong="xuanzhong" class="items" v-for="(i,j) in list" :key="j" :image="i.goods_image" :title="i.goods_name" :price="i.goods_marketprice" :num="i.goods_salenum" :sid="i.goods_id" ref="shop"></shopItem>
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
        </u-checkbox-group>
 | 
					        </u-checkbox-group>
 | 
				
			||||||
 | 
					        <view class="jiaru" @click="jiaru">加入售货袋</view>
 | 
				
			||||||
    </view>
 | 
					    </view>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
@ -33,6 +34,14 @@ export default {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            console.log(this.sele)
 | 
					            console.log(this.sele)
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        jiaru(){
 | 
				
			||||||
 | 
					            let that = this
 | 
				
			||||||
 | 
					            uni.setStorageSync("gouwudai",JSON.stringify(that.sele))
 | 
				
			||||||
 | 
					            this.$u.route({
 | 
				
			||||||
 | 
					                type:"back",
 | 
				
			||||||
 | 
					                delta:1
 | 
				
			||||||
 | 
					            })
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    onLoad(){
 | 
					    onLoad(){
 | 
				
			||||||
@ -63,5 +72,18 @@ export default {
 | 
				
			|||||||
            margin-bottom: 30rpx;
 | 
					            margin-bottom: 30rpx;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    .jiaru{
 | 
				
			||||||
 | 
					        position: fixed;
 | 
				
			||||||
 | 
					        bottom: 33rpx;
 | 
				
			||||||
 | 
					        right: 30rpx;
 | 
				
			||||||
 | 
					        height: 80rox;
 | 
				
			||||||
 | 
					        width: 348rpx;
 | 
				
			||||||
 | 
					        background-color: #999;
 | 
				
			||||||
 | 
					        font-size: 36rpx;
 | 
				
			||||||
 | 
					        line-height: 80rpx;
 | 
				
			||||||
 | 
					        text-align: center;
 | 
				
			||||||
 | 
					        color: #fff;
 | 
				
			||||||
 | 
					        border-radius: 40rpx;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user