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
ae29e1e2
Commit
ae29e1e2
authored
Aug 08, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预售商品获取数据
parent
6f4ed3e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
presale.vue
src/pages/assistingAgriculture/index/presale.vue
+8
-13
No files found.
src/pages/assistingAgriculture/index/presale.vue
View file @
ae29e1e2
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<view
class=
"tab-list"
v-for=
"(item, index) in buyList"
:key=
"index"
@
tap=
"toDetail"
>
<view
class=
"tab-list"
v-for=
"(item, index) in buyList"
:key=
"index"
@
tap=
"toDetail"
>
<img
class=
"buy-list"
:src=
"item.img"
style=
"width: 670rpx; height: 670rpx"
/>
<img
class=
"buy-list"
:src=
"item.img"
style=
"width: 670rpx; height: 670rpx"
/>
<view>
<view>
<text
class=
"retail-price"
>
零售价:¥
{{
item
.
p
rice
}}
/盒
</text>
<text
class=
"retail-price"
>
零售价:¥
{{
item
.
oriP
rice
}}
/盒
</text>
<text
class=
"presale-price"
>
预售价:¥
{{
item
.
price
}}
/盒
</text>
<text
class=
"presale-price"
>
预售价:¥
{{
item
.
price
}}
/盒
</text>
</view>
</view>
<view>
<view>
...
@@ -57,8 +57,8 @@
...
@@ -57,8 +57,8 @@
width: 284rpx;
width: 284rpx;
height: 128rpx;
height: 128rpx;
float: right;
float: right;
margin-top: -
98
rpx;
margin-top: -
80
rpx;
margin-right:
30
rpx;
margin-right:
16
rpx;
"
"
/>
/>
</view>
</view>
...
@@ -159,11 +159,7 @@ let sortData;
...
@@ -159,11 +159,7 @@ let sortData;
const
light
=
ref
(
0
);
const
light
=
ref
(
0
);
const
sortList
=
ref
([]);
const
sortList
=
ref
([]);
const
tabsData
=
ref
([]);
const
tabsData
=
ref
([]);
const
buyList
=
ref
([
const
buyList
=
ref
([]);
{
img
:
'/static/assistingAgriculture/presale/buy.png'
,
price
:
'29.9'
,
text
:
'应季好物'
},
{
img
:
'/static/assistingAgriculture/presale/buy.png'
,
price
:
'29.9'
,
text
:
'猪肉蛋禽'
},
{
img
:
'/static/assistingAgriculture/presale/buy.png'
,
price
:
'29.9'
,
text
:
'米面粮油'
},
]);
const
shopList
=
ref
([
const
shopList
=
ref
([
{
img
:
'/static/assistingAgriculture/presale/img7.png'
,
price
:
'29.9'
,
text
:
'应季好物'
},
{
img
:
'/static/assistingAgriculture/presale/img7.png'
,
price
:
'29.9'
,
text
:
'应季好物'
},
{
img
:
'/static/assistingAgriculture/presale/img7.png'
,
price
:
'29.9'
,
text
:
'应季好物'
},
{
img
:
'/static/assistingAgriculture/presale/img7.png'
,
price
:
'29.9'
,
text
:
'应季好物'
},
...
@@ -272,10 +268,10 @@ const getStrictSelectionList = () => {
...
@@ -272,10 +268,10 @@ const getStrictSelectionList = () => {
// 筑农首页-分类查询商品列表
// 筑农首页-分类查询商品列表
const
getPresaleProd
=
()
=>
{
const
getPresaleProd
=
()
=>
{
getPresaleProdList
(
params
).
then
((
res
)
=>
{
getPresaleProdList
(
params
).
then
((
res
)
=>
{
// res.data
.forEach((item) => {
res
.
data
.
records
.
forEach
((
item
)
=>
{
// item.imgUrl
= import.meta.env.VITE_APP_IMG_URL + item.pic;
item
.
img
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
+
item
.
pic
;
//
});
});
// tabsData.value = res.data
;
buyList
.
value
=
res
.
data
.
records
;
});
});
};
};
// 左侧数据列表
// 左侧数据列表
...
@@ -443,7 +439,6 @@ page {
...
@@ -443,7 +439,6 @@ page {
color
:
#b3b3b3
;
color
:
#b3b3b3
;
}
}
.presale-price
{
.presale-price
{
left
:
20rpx
;
display
:
block
;
display
:
block
;
margin-left
:
60rpx
;
margin-left
:
60rpx
;
font-size
:
30rpx
;
font-size
:
30rpx
;
...
...
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