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
a4034d75
Commit
a4034d75
authored
Aug 14, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店铺首页购物车
parent
e6ee2728
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
detail.vue
src/pages/assistingAgriculture/detail/detail.vue
+7
-2
index.vue
src/pages/assistingAgriculture/shop/index.vue
+2
-6
No files found.
src/pages/assistingAgriculture/detail/detail.vue
View file @
a4034d75
...
...
@@ -35,7 +35,7 @@
</view>
-->
</view>
<view
class=
"evaluate"
>
<view
class=
"evaluate-num"
>
<view
class=
"evaluate-num"
@
click=
"jumpPjPgae"
>
<text
class=
"env"
>
评价(
{{
commentData
.
count
}}
)
</text>
<text
class=
"num"
>
好评率(
{{
commentData
.
high
}}
%)
</text>
<wd-icon
name=
"arrow-right"
size=
"32rpx"
style=
"margin-top: 2rpx"
></wd-icon>
...
...
@@ -143,6 +143,11 @@ onLoad((options) => {
function
handleClick
(
e
)
{
console
.
log
(
e
);
}
function
jumpPjPgae
()
{
xma
.
navigateTo
({
url
:
`/pages/assistingAgriculture/detail/comment?shopId=
${
dataDetails
.
value
.
prod
.
shopId
}
`
,
});
}
function
onChange
(
e
)
{
console
.
log
(
e
);
}
...
...
@@ -211,7 +216,7 @@ const share = () => {
function
toStore
()
{
// TODO: 跳转到筑农严选
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/shop/index'
,
url
:
`/pages/assistingAgriculture/shop/index?shopId=
${
dataDetails
.
value
.
prod
.
shopId
}
`
,
});
}
function
toCart
()
{
...
...
src/pages/assistingAgriculture/shop/index.vue
View file @
a4034d75
...
...
@@ -185,12 +185,9 @@ function toCart() {
url
:
'/pages/assistingAgriculture/cart/cart'
,
});
}
const
addPurchase
=
ref
(
0
);
const
sgyBasketlistFn
=
()
=>
{
const
query
=
{
shopId
:
currentShopId
.
value
,
shopType
:
'3'
,
};
sgyBasketlist
(
query
).
then
((
res
)
=>
{
sgyBasketlist
().
then
((
res
)
=>
{
if
(
res
.
code
===
0
)
{
res
.
data
.
forEach
((
shop
)
=>
{
addPurchase
.
value
+=
shop
.
prodInfos
.
length
;
...
...
@@ -208,7 +205,6 @@ function clearFn() {
});
}
const
addPurchase
=
ref
(
0
);
const
addShoppingCart
=
(
item
)
=>
{
const
params
=
{
shopId
:
item
.
shopId
,
...
...
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