1

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