This commit is contained in:
2020-07-21 17:03:59 +08:00
parent 72f56fe563
commit d04146d479
2 changed files with 23 additions and 1 deletions

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>
</view>
</u-checkbox-group>
<view class="jiaru" @click="jiaru">加入售货袋</view>
</view>
</template>
<script>
@@ -33,6 +34,14 @@ export default {
}
}
console.log(this.sele)
},
jiaru(){
let that = this
uni.setStorageSync("gouwudai",JSON.stringify(that.sele))
this.$u.route({
type:"back",
delta:1
})
}
},
onLoad(){
@@ -63,5 +72,18 @@ export default {
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>