This commit is contained in:
luyuan 2020-07-21 17:03:59 +08:00
parent 72f56fe563
commit d04146d479
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 23 additions and 1 deletions

View File

@ -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'],

View File

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