1

parent 1c8b61e1
......@@ -549,7 +549,7 @@ const getStoreInformationFn = (id) => {
// 行程
// "活动类型1.集合 2.交通 了.参观景点 4.用餐 5.酒店 0.其他活动"
const dateFormat = (date) => {
const hhmmss = date.split(' ')[1];
const hhmmss = date?.split(' ')[1];
const hhmm = hhmmss?.split(':').splice(0, 2).join(':');
return hhmm;
......
......@@ -53,10 +53,14 @@
<view class="count-info">
<view class="flex-center">
<view style="color: #fa5151">{{ dataDetails.prod.price }}</view>
<text v-if="dataDetails.skus[0].unity" style="margin-left: -30rpx; font-size: 24rpx">
/{{ dataDetails.skus[0].unity }}
</text>
<view style="color: #fa5151">
{{ dataDetails.prod.price }}
<text style="font-size: 24rpx; color: #000">/{{ dataDetails.skus[0].unity }}</text>
</view>
<view
v-if="dataDetails.skus[0].unity"
style="margin-left: -20rpx; font-size: 24rpx"
></view>
<view style="z-index: 9999; color: #ffffff; margin-left: 320rpx; font-size: 28rpx">
距离结束仅剩
</view>
......@@ -347,7 +351,7 @@ page {
}
.left-text {
position: relative;
width: 80rpx;
white-space: nowrap;
height: 48rpx;
font-family: Source Han Sans;
font-size: 40rpx;
......@@ -595,7 +599,8 @@ page {
}
.custom-count-down {
display: inline-block;
width: 56rpx;
min-width: 56rpx;
white-space: nowrap;
color: #fa5151;
font-size: 24rpx;
text-align: center;
......
......@@ -65,11 +65,11 @@
style="width: 670rpx; height: 670rpx; border-radius: 16rpx"
/>
<view class="bac">
<text class="retail-price">零售价:¥{{ item.price }}/盒</text>
<text class="retail-price">零售价:¥{{ item.price }}{{ item.unity }}</text>
<text class="presale-price">
预售价:¥
<text class="highlight-price">{{ item.price }}</text>
/盒
{{ item.unity }}
</text>
<view>
<img
......@@ -209,6 +209,7 @@ const presaleSortList = () => {
// chooseBTab(0, '3444');
});
};
const chooseTab = (index, categoryId) => {
getStrictSelection({ parentId: categoryId }).then((res) => {
res.data.forEach((item, index) => {
......@@ -218,6 +219,7 @@ const chooseTab = (index, categoryId) => {
chooseBTab(0, tabsData.value[0].categoryId);
});
};
const unity = ref('');
const chooseBTab = (index, categoryId) => {
xma.showLoading({
title: '加载中',
......@@ -227,7 +229,14 @@ const chooseBTab = (index, categoryId) => {
res.data.records.forEach((item) => {
item.img = import.meta.env.VITE_APP_IMG_URL + item.pic;
});
buyList.value = res.data.records;
buyList.value = res.data.records.map((item) => {
if (item.skus.length > 0) {
item.unity = '/' + item.skus[0].unity;
} else {
item.unity = '';
}
return item;
});
});
// light.value = index;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment