aa1df73a53
2、调整自营 3、新增购物车(未完善)
52 lines
1.3 KiB
Vue
52 lines
1.3 KiB
Vue
<template>
|
|
<view>
|
|
<top-bar></top-bar>
|
|
<common-header></common-header>
|
|
<category-bar></category-bar>
|
|
<view class="w-1200 m-a">
|
|
<view class="mt-20 bg-white rounded p-20">
|
|
<view class="flex justify-between">
|
|
<text class="font-bold text-40">
|
|
购物车(全部{{ list.length }})
|
|
</text>
|
|
<view class="flex justify-end items-center">
|
|
<text>已选商品(不含运费)</text>
|
|
<text class="text-main text-40 font-bold mx-20">¥{{ amount }}</text>
|
|
<el-button type="primary" round>结算</el-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<gap height="50"/>
|
|
<common-footer></common-footer>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "cart",
|
|
data() {
|
|
return {
|
|
list: [],
|
|
selectedList: [],
|
|
|
|
}
|
|
},
|
|
methods: {
|
|
async getList() {
|
|
const {rows} = await vk.callFunction({
|
|
url: "client/cart/kh/getList"
|
|
})
|
|
this.list = rows
|
|
}
|
|
},
|
|
onShow() {
|
|
this.getList()
|
|
},
|
|
computed: {
|
|
amount() {
|
|
return 0
|
|
}
|
|
}
|
|
}
|
|
</script> |