Compare commits
No commits in common. "7973743644597f99cabf702c55387fbdcfd77c29" and "e2fe0a365b6935f775a78671a5ec811587235089" have entirely different histories.
7973743644
...
e2fe0a365b
@ -61,8 +61,8 @@
|
|||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
|
||||||
.facilities-grid {
|
.facilities-grid {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|
||||||
.facility-item {
|
.facility-item {
|
||||||
|
|||||||
@ -15,42 +15,9 @@
|
|||||||
<!-- 商品信息组件 -->
|
<!-- 商品信息组件 -->
|
||||||
<GoodInfo :goodsData="goodsData" @showCalendar="showCalendar" />
|
<GoodInfo :goodsData="goodsData" @showCalendar="showCalendar" />
|
||||||
|
|
||||||
<view v-if="goodsData.commodityPurchaseInstruction" class="use-notice">
|
<ModuleTitle title="购买须知" />
|
||||||
<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
|
<zero-markdown-view :markdown="goodsData.commodityTip" :aiMode='true' />
|
||||||
v-else
|
|
||||||
:markdown="goodsData.commodityTip"
|
|
||||||
:aiMode="true"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
@ -96,7 +63,6 @@ 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({});
|
||||||
@ -280,8 +246,4 @@ 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,47 +15,6 @@ $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子项能够正确计算高度
|
||||||
|
|||||||
@ -1,19 +0,0 @@
|
|||||||
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