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.
63 lines
1.5 KiB
63 lines
1.5 KiB
<template>
|
|
<view class="uni-flex uni-row space-between uni-inline-item" style="background-color:#fff;">
|
|
<view style="word-break: break-all;width: 50%;">
|
|
<item :dataContent="dataContent"></item>
|
|
</view>
|
|
<view style="word-break: break-all;width: 50%;display: flex;justify-content:flex-end;margin-right: 10rpx;">
|
|
<recommend-qty v-if="handleQty==0" :dataContent="dataContent" :isShowStatus="false" :isShowStdPack ="isShowStdPack"></recommend-qty>
|
|
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
|
|
:handleQty="Number(handleQty)" :isShowStatus="false"
|
|
:isShowStdPack ="isShowStdPack">
|
|
</compare-qty>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import item from '@/mycomponents/item/item.vue'
|
|
import qty from '@/mycomponents/qty/qty.vue'
|
|
import recommendQty from '@/mycomponents/qty/recommendQty.vue'
|
|
import compareQty from '@/mycomponents/qty/compareQty.vue'
|
|
import balanceQty from '@/mycomponents/qty/balanceQty.vue'
|
|
|
|
export default {
|
|
components: {
|
|
item,
|
|
recommendQty,
|
|
compareQty,
|
|
balanceQty
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
},
|
|
// 此处定义传入的数据
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
default: 'recommend' //recommend:推荐 compare:对比
|
|
},
|
|
dataContent: {
|
|
type: Object,
|
|
default: {}
|
|
},
|
|
handleQty: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
isShowStdPack:{
|
|
type: Boolean,
|
|
default: true
|
|
}
|
|
},
|
|
watch: {
|
|
|
|
},
|
|
methods: {
|
|
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|
|
|