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
911010a0
Commit
911010a0
authored
Aug 07, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筑农严选页面接口联调
parent
9f1da310
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
building.vue
src/pages/assistingAgriculture/index/building.vue
+19
-10
index.vue
src/pages/assistingAgriculture/index/index.vue
+0
-5
No files found.
src/pages/assistingAgriculture/index/building.vue
View file @
911010a0
...
@@ -27,17 +27,11 @@
...
@@ -27,17 +27,11 @@
src=
"/static/assistingAgriculture/assets/culture.png"
src=
"/static/assistingAgriculture/assets/culture.png"
style=
"width: 366rpx; height: 362rpx"
style=
"width: 366rpx; height: 362rpx"
/>
/>
<view
class=
"right-img
"
>
<view
v-for=
"(item, index) in rightList"
:key=
"index
"
>
<img
<img
class=
"delicacy"
class=
"right-sort"
src=
"/static/assistingAgriculture/assets/delicacy.png"
:src=
"item.icon"
style=
"height: 176rpx; margin-left: 8rpx"
style=
"width: 336rpx; height: 176rpx; margin-left: 8rpx"
/>
<img
@
tap=
"toPresale"
class=
"fresh"
src=
"/static/assistingAgriculture/assets/fresh.png"
style=
"height: 176rpx; margin-left: 8rpx"
/>
/>
</view>
</view>
</view>
</view>
...
@@ -116,7 +110,10 @@
...
@@ -116,7 +110,10 @@
<
script
setup
>
<
script
setup
>
import
Search
from
'../../../components/assistingAgriculture/index/Search.vue'
;
import
Search
from
'../../../components/assistingAgriculture/index/Search.vue'
;
import
{
getStrictSelection
}
from
'../../../api/assistingAgriculture/building'
;
import
{
onMounted
}
from
'vue'
;
const
current
=
ref
(
0
);
const
current
=
ref
(
0
);
const
rightList
=
ref
([]);
const
light
=
ref
(
0
);
const
light
=
ref
(
0
);
// 轮播图
// 轮播图
const
swiperList
=
ref
([
const
swiperList
=
ref
([
...
@@ -148,6 +145,18 @@ const detailList = ref([
...
@@ -148,6 +145,18 @@ const detailList = ref([
const
choice
=
(
index
)
=>
{
const
choice
=
(
index
)
=>
{
light
.
value
=
index
;
light
.
value
=
index
;
};
};
onMounted
(
async
()
=>
{
getStrictSelectionList
();
});
// 筑农严选分类
const
getStrictSelectionList
=
()
=>
{
getStrictSelection
().
then
((
res
)
=>
{
res
.
data
.
forEach
((
item
)
=>
{
item
.
icon
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
+
item
.
pic
;
});
rightList
.
value
=
res
.
data
.
splice
(
0
,
2
);
});
};
function
handleClick
(
e
)
{
function
handleClick
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
}
}
...
...
src/pages/assistingAgriculture/index/index.vue
View file @
911010a0
...
@@ -90,7 +90,6 @@ const detailList = ref([
...
@@ -90,7 +90,6 @@ const detailList = ref([
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
getList
();
getList
();
getPresaleCategoryList
();
getPresaleCategoryList
();
getStrictSelectionList
();
getPresale
();
getPresale
();
});
});
// 获取筑农专区分类;
// 获取筑农专区分类;
...
@@ -115,10 +114,6 @@ const getPresaleCategoryList = () => {
...
@@ -115,10 +114,6 @@ const getPresaleCategoryList = () => {
list
.
value
=
res
.
data
;
list
.
value
=
res
.
data
;
});
});
};
};
// 筑农严选分类
const
getStrictSelectionList
=
()
=>
{
getStrictSelection
().
then
((
res
)
=>
{});
};
// 预售板块轮播图
// 预售板块轮播图
const
getPresale
=
()
=>
{
const
getPresale
=
()
=>
{
getPresaleList
({
place
:
'index_top'
}).
then
((
res
)
=>
{
getPresaleList
({
place
:
'index_top'
}).
then
((
res
)
=>
{
...
...
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