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
059fb2d3
Commit
059fb2d3
authored
Aug 13, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面链接跳转
parent
ea8d1d2c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
1 deletion
+29
-1
Search.vue
src/Components/assistingAgriculture/index/Search.vue
+5
-0
card.vue
src/pages/assistingAgriculture/album/card.vue
+7
-1
building.vue
src/pages/assistingAgriculture/index/building.vue
+6
-0
presale.vue
src/pages/assistingAgriculture/index/presale.vue
+5
-0
searchPage.vue
src/pages/assistingAgriculture/searchPage/searchPage.vue
+5
-0
index.vue
src/pages/index/index.vue
+1
-0
No files found.
src/Components/assistingAgriculture/index/Search.vue
View file @
059fb2d3
...
...
@@ -15,6 +15,7 @@
class=
"text"
:placeholder=
"placeholderText"
placeholder-style=
"font-size:16rpx;"
@
focus=
"toSearch"
/>
</view>
</view>
...
...
@@ -22,6 +23,7 @@
<
script
setup
>
import
{
defineProps
}
from
'vue'
;
const
emit
=
defineEmits
([
'search'
]);
const
props
=
defineProps
({
iconSrc
:
{
type
:
String
,
...
...
@@ -32,6 +34,9 @@ const props = defineProps({
default
:
''
,
},
});
const
toSearch
=
()
=>
{
emit
(
'search'
);
};
// 返回上一级
function
back
()
{
xma
.
navigateBack
({
...
...
src/pages/assistingAgriculture/album/card.vue
View file @
059fb2d3
...
...
@@ -3,7 +3,7 @@
<div
class=
"img-wrap"
>
<wd-img
v-for=
"(item, index) in item.images"
:key=
"index"
:src=
"item"
enable-preview
/>
</div>
<div
class=
"text"
>
<div
class=
"text"
@
click=
"toReviewDetails(item.evaluationId)"
>
{{
item
.
evaluation
}}
</div>
<div
class=
"user-info flex-between"
>
...
...
@@ -27,6 +27,12 @@ const props = defineProps({
default
:
()
=>
[],
},
});
// 查看评论详情
const
toReviewDetails
=
(
id
)
=>
{
xma
.
navigateTo
({
url
:
`/pages/assistingAgriculture/reviewDetails/reviewDetails?evaluationId=
${
id
}
`
,
});
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/pages/assistingAgriculture/index/building.vue
View file @
059fb2d3
...
...
@@ -7,6 +7,7 @@
backIcon=
"black"
iconSrc=
"/static/assistingAgriculture/assets/blackLeft.png"
placeholderText=
"请输入要搜索的内容"
@
search=
"toSearch"
></Search>
</view>
<!-- 轮播图-->
...
...
@@ -173,6 +174,11 @@ onMounted(async () => {
platformProdList
();
getshoppingCartListFn
();
});
// 搜索
const
toSearch
=
()
=>
{
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/searchPage/searchPage'
});
};
// 获取购物车列表
const
getshoppingCartListFn
=
()
=>
{
getshoppingCartList
({}).
then
((
res
)
=>
{
...
...
src/pages/assistingAgriculture/index/presale.vue
View file @
059fb2d3
...
...
@@ -6,6 +6,7 @@
backIcon=
"black"
iconSrc=
"/static/assistingAgriculture/assets/left.png"
placeholderText=
"输入商品名称"
@
search=
"toSearch"
></Search>
</view>
<view
class=
"nav"
>
...
...
@@ -158,6 +159,10 @@ onMounted(async () => {
presaleSortList
();
getshoppingCartListFn
();
});
// 搜索
const
toSearch
=
()
=>
{
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/searchPage/searchPage'
});
};
// 获取购物车列表
const
getshoppingCartListFn
=
()
=>
{
getshoppingCartList
({}).
then
((
res
)
=>
{
...
...
src/pages/assistingAgriculture/searchPage/searchPage.vue
View file @
059fb2d3
...
...
@@ -71,6 +71,11 @@ const baseImgurl = import.meta.env.VITE_APP_IMG_URL;
function
changeValue
({
value
})
{
console
.
log
(
value
);
}
const
back
=
()
=>
{
uni
.
navigateBack
({
delta
:
1
,
});
};
// 搜索
const
toSearch
=
(
data
)
=>
{
const
keyword
=
data
.
detail
.
value
;
...
...
src/pages/index/index.vue
View file @
059fb2d3
...
...
@@ -555,6 +555,7 @@ page {
.imgs
{
width
:
88rpx
;
height
:
88rpx
;
margin-bottom
:
5rpx
;
}
}
}
...
...
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