2024-08-07 10:31:42 +08:00
|
|
|
|
<!-- 商品详情:描述卡片 -->
|
|
|
|
|
<template>
|
2024-11-08 17:29:51 +08:00
|
|
|
|
<view class="detail-content-card bg-white ss-m-x-20 ss-p-t-20">
|
|
|
|
|
<view class="card-header ss-flex ss-col-center ss-m-b-30 ss-m-l-20">
|
|
|
|
|
<view class="line" :class="state.themeType ? `${state.themeType}` : ''"></view>
|
|
|
|
|
<view class="title ss-m-l-20 ss-m-r-20">详情</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="card-content">
|
|
|
|
|
<mp-html :content="content" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-08-07 10:31:42 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2024-11-08 17:29:51 +08:00
|
|
|
|
import {
|
|
|
|
|
reactive,
|
|
|
|
|
computed
|
|
|
|
|
} from 'vue';
|
|
|
|
|
import sheep from '@/sheep';
|
|
|
|
|
const app = computed(() => sheep.$store('app'));
|
|
|
|
|
const state = reactive({
|
|
|
|
|
themeType: app.value.platform.themeType
|
|
|
|
|
});
|
2024-08-07 10:31:42 +08:00
|
|
|
|
|
2024-11-08 17:29:51 +08:00
|
|
|
|
const {
|
|
|
|
|
safeAreaInsets
|
|
|
|
|
} = sheep.$platform.device;
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
content: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
});
|
2024-08-07 10:31:42 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2024-11-08 17:29:51 +08:00
|
|
|
|
.detail-content-card {
|
|
|
|
|
.card-header {
|
|
|
|
|
.line {
|
|
|
|
|
width: 6rpx;
|
|
|
|
|
height: 30rpx;
|
|
|
|
|
background: linear-gradient(180deg, var(--ui-BG-Main) 0%, var(--ui-BG-Main-gradient) 100%);
|
|
|
|
|
border-radius: 3rpx;
|
|
|
|
|
}
|
2024-08-07 10:31:42 +08:00
|
|
|
|
|
2024-11-08 17:29:51 +08:00
|
|
|
|
.title {
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
2024-08-07 10:31:42 +08:00
|
|
|
|
|
2024-11-08 17:29:51 +08:00
|
|
|
|
.des {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: $dark-9;
|
|
|
|
|
}
|
2024-08-07 10:31:42 +08:00
|
|
|
|
|
2024-11-08 17:29:51 +08:00
|
|
|
|
.more-btn {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: var(--ui-BG-Main);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|