Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
55a1cc8c
Commit
55a1cc8c
authored
Sep 05, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1c8b61e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
10 deletions
+24
-10
RouteDetails.vue
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
+1
-1
detail.vue
src/pages/assistingAgriculture/detail/detail.vue
+11
-6
presale.vue
src/pages/assistingAgriculture/index/presale.vue
+12
-3
No files found.
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
View file @
55a1cc8c
...
...
@@ -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
;
...
...
src/pages/assistingAgriculture/detail/detail.vue
View file @
55a1cc8c
...
...
@@ -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
;
w
idth
:
80rpx
;
w
hite-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
;
...
...
src/pages/assistingAgriculture/index/presale.vue
View file @
55a1cc8c
...
...
@@ -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;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment