平板端快衣店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

74 lines
1.3 KiB

<template>
<view>
<uni-card title="选择商品">
<u-grid :col="2" border>
<u-grid-item index="add" @tap.stop="scanCodeAdd">
<u-icon name="scan" size="36"></u-icon>
</u-grid-item>
<u-grid-item @tap.stop="goodsAdd">
<u-icon name="plus" size="28"></u-icon>
</u-grid-item>
</u-grid>
</uni-card>
<!-- <uni-card title="开单列表" extra="">
</uni-card>
-->
</view>
</template>
<script>
export default {
data() {
return {
pageIndex: 1,
pageSize: 8,
totalPages: 1,
}
},
methods: {
scanCodeAdd() {
uni.scanCode({
success: (res) => {
uni.showToast({
title: res.result,
icon: 'none'
})
},
fail: (res) => {
uni.showToast({
title: '扫描失败',
icon: 'none'
})
}
})
},
goodsAdd() {
uni.navigateTo({
url: "/pages/inventory/goodsList?type=billing"
})
},
}
}
</script>
<style lang="scss" scoped>
.tui-tabbar {
width: 100%;
height: 98rpx;
background: #fff;
position: fixed;
left: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 26rpx;
box-shadow: 0 0 1px rgba(0, 0, 0, .3);
padding-bottom: env(safe-area-inset-bottom);
z-index: 996;
}
</style>