Files
kangyuan-mobile/pages/goods/components/detail/detail-cell.vue
T
2026-05-26 15:52:30 +08:00

65 lines
1.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- 商品详情:cell 组件 -->
<template>
<view class="detail-cell-wrap ss-flex ss-col-center ss-row-between theme-ai" @tap="onClick">
<view class="label-text" :class="{ c25: theme == '2' }">{{ label }}</view>
<view class="cell-content ss-line-1 ss-flex-1">{{ value }}</view>
<button class="ss-reset-button" v-if="props.label == '选择'">
<text class="_icon-forward right-forwrad-icon"></text>
</button>
</view>
</template>
<script setup>
/**
* 详情 cell
*
*/
const props = defineProps({
label: {
type: String,
default: '',
},
value: {
type: String,
default: '',
},
theme: {
type: String,
default: '2',
},
});
const emits = defineEmits(['click']);
// 点击
const onClick = () => {
emits('click');
};
</script>
<style lang="scss" scoped>
.detail-cell-wrap {
height: 90rpx;
padding: 0 32rpx;
// min-height: 60rpx;
.label-text {
font-size: 28rpx;
color: $dark-9;
margin-right: 38rpx;
}
.cell-content {
font-size: 28rpx;
font-weight: 500;
color: $dark-6;
}
.right-forwrad-icon {
font-size: 28rpx;
font-weight: 500;
color: #383838;
}
}
</style>