Compare commits
3 Commits
e2fe0a365b
...
7973743644
| Author | SHA1 | Date | |
|---|---|---|---|
| 7973743644 | |||
| 1d071f25bf | |||
| 34bb6c094c |
@ -61,8 +61,8 @@
|
|||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
|
||||||
.facilities-grid {
|
.facilities-grid {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
flex-wrap: wrap;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|
||||||
.facility-item {
|
.facility-item {
|
||||||
|
|||||||
@ -15,9 +15,42 @@
|
|||||||
<!-- 商品信息组件 -->
|
<!-- 商品信息组件 -->
|
||||||
<GoodInfo :goodsData="goodsData" @showCalendar="showCalendar" />
|
<GoodInfo :goodsData="goodsData" @showCalendar="showCalendar" />
|
||||||
|
|
||||||
<ModuleTitle title="购买须知" />
|
<view v-if="goodsData.commodityPurchaseInstruction" class="use-notice">
|
||||||
|
<ModuleTitle
|
||||||
|
:title="goodsData.commodityPurchaseInstruction.templateTitle"
|
||||||
|
/>
|
||||||
|
<view
|
||||||
|
class="use-notice-content"
|
||||||
|
v-for="(moduleItem, index) in goodsData.commodityPurchaseInstruction
|
||||||
|
.commodityPurchaseInstructionModuleEntityList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<view
|
||||||
|
class="module-item"
|
||||||
|
:class="{
|
||||||
|
'border-bottom':
|
||||||
|
index <
|
||||||
|
goodsData.commodityPurchaseInstruction
|
||||||
|
.commodityPurchaseInstructionModuleEntityList.length -
|
||||||
|
1,
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<view class="module-icon">
|
||||||
|
<uni-icons fontFamily="znicons" size="20" color="#333">{{
|
||||||
|
zniconsMap[moduleItem.moduleIcon]
|
||||||
|
}}</uni-icons>
|
||||||
|
<text class="module-title">{{ moduleItem.moduleTitle }}</text>
|
||||||
|
</view>
|
||||||
|
<text class="module-desc">{{ moduleItem.moduleContent }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<zero-markdown-view :markdown="goodsData.commodityTip" :aiMode='true' />
|
<zero-markdown-view
|
||||||
|
v-else
|
||||||
|
:markdown="goodsData.commodityTip"
|
||||||
|
:aiMode="true"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
@ -63,6 +96,7 @@ import GoodInfo from "./components/GoodInfo/index.vue";
|
|||||||
import ModuleTitle from "@/components/ModuleTitle/index.vue";
|
import ModuleTitle from "@/components/ModuleTitle/index.vue";
|
||||||
import GoodConfirm from "./components/GoodConfirm/index.vue";
|
import GoodConfirm from "./components/GoodConfirm/index.vue";
|
||||||
import Calender from "@/components/Calender/index.vue";
|
import Calender from "@/components/Calender/index.vue";
|
||||||
|
import { zniconsMap } from "@/static/fonts/znicons.js";
|
||||||
|
|
||||||
const calendarVisible = ref(false);
|
const calendarVisible = ref(false);
|
||||||
const goodsData = ref({});
|
const goodsData = ref({});
|
||||||
@ -246,4 +280,8 @@ const handleDateSelect = (data) => {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "./styles/index.scss";
|
@import "./styles/index.scss";
|
||||||
|
@font-face {
|
||||||
|
font-family: znicons;
|
||||||
|
src: url("@/static/fonts/znicons.ttf");
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -15,6 +15,47 @@ $button-hover-color: darken($button-color, 8%);
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 使用须知样式
|
||||||
|
.use-notice {
|
||||||
|
margin: 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.use-notice-content {
|
||||||
|
.module-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 12px 0;
|
||||||
|
|
||||||
|
.module-icon {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
margin-right: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
.module-title {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
text-align: center;
|
||||||
|
word-wrap: break-word;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.module-desc {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #666;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.border-bottom {
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.content-wrapper {
|
.content-wrapper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 0; // 关键:让flex子项能够正确计算高度
|
height: 0; // 关键:让flex子项能够正确计算高度
|
||||||
|
|||||||
19
static/fonts/znicons.js
Normal file
19
static/fonts/znicons.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
export const zniconsMap = {
|
||||||
|
"zn-wifi": "\ue681",
|
||||||
|
"zn-bath": "\ue682",
|
||||||
|
"zn-frame": "\ue683",
|
||||||
|
"zn-shower-gel": "\ue684",
|
||||||
|
"zn-a-washingmachine": "\ue685",
|
||||||
|
"zn-live": "\ue686",
|
||||||
|
"zn-user": "\ue687",
|
||||||
|
"zn-dish-cover": "\ue688",
|
||||||
|
"zn-glass-cup": "\ue689",
|
||||||
|
"zn-check-circle": "\ue68a",
|
||||||
|
"zn-send-filled": "\ue68b",
|
||||||
|
"zn-nav-arrow-right": "\ue68c",
|
||||||
|
"zn-nav-arrow-left": "\ue68d",
|
||||||
|
"zn-nav-arrow-down": "\ue68e",
|
||||||
|
"zn-fast-arrow-down": "\ue68f",
|
||||||
|
"zn-nav-arrow-up": "\ue690",
|
||||||
|
"zn-microphone": "\ue691",
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user