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
ecfa5dfb
Commit
ecfa5dfb
authored
Aug 14, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
6497c3b5
989b45f0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
detail.vue
src/pages/assistingAgriculture/detail/detail.vue
+7
-2
index.vue
src/pages/assistingAgriculture/shop/index.vue
+2
-6
detail.vue
src/pages/storeEntry/detail.vue
+1
-1
No files found.
src/pages/assistingAgriculture/detail/detail.vue
View file @
ecfa5dfb
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</view>
-->
</view>
-->
</view>
</view>
<view
class=
"evaluate"
>
<view
class=
"evaluate"
>
<view
class=
"evaluate-num"
>
<view
class=
"evaluate-num"
@
click=
"jumpPjPgae"
>
<text
class=
"env"
>
评价(
{{
commentData
.
count
}}
)
</text>
<text
class=
"env"
>
评价(
{{
commentData
.
count
}}
)
</text>
<text
class=
"num"
>
好评率(
{{
commentData
.
high
}}
%)
</text>
<text
class=
"num"
>
好评率(
{{
commentData
.
high
}}
%)
</text>
<wd-icon
name=
"arrow-right"
size=
"32rpx"
style=
"margin-top: 2rpx"
></wd-icon>
<wd-icon
name=
"arrow-right"
size=
"32rpx"
style=
"margin-top: 2rpx"
></wd-icon>
...
@@ -143,6 +143,11 @@ onLoad((options) => {
...
@@ -143,6 +143,11 @@ onLoad((options) => {
function
handleClick
(
e
)
{
function
handleClick
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
}
}
function
jumpPjPgae
()
{
xma
.
navigateTo
({
url
:
`/pages/assistingAgriculture/detail/comment?shopId=
${
dataDetails
.
value
.
prod
.
shopId
}
`
,
});
}
function
onChange
(
e
)
{
function
onChange
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
}
}
...
@@ -211,7 +216,7 @@ const share = () => {
...
@@ -211,7 +216,7 @@ const share = () => {
function
toStore
()
{
function
toStore
()
{
// TODO: 跳转到筑农严选
// TODO: 跳转到筑农严选
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/shop/index'
,
url
:
`/pages/assistingAgriculture/shop/index?shopId=
${
dataDetails
.
value
.
prod
.
shopId
}
`
,
});
});
}
}
function
toCart
()
{
function
toCart
()
{
...
...
src/pages/assistingAgriculture/shop/index.vue
View file @
ecfa5dfb
...
@@ -185,12 +185,9 @@ function toCart() {
...
@@ -185,12 +185,9 @@ function toCart() {
url
:
'/pages/assistingAgriculture/cart/cart'
,
url
:
'/pages/assistingAgriculture/cart/cart'
,
});
});
}
}
const
addPurchase
=
ref
(
0
);
const
sgyBasketlistFn
=
()
=>
{
const
sgyBasketlistFn
=
()
=>
{
const
query
=
{
sgyBasketlist
().
then
((
res
)
=>
{
shopId
:
currentShopId
.
value
,
shopType
:
'3'
,
};
sgyBasketlist
(
query
).
then
((
res
)
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
res
.
data
.
forEach
((
shop
)
=>
{
res
.
data
.
forEach
((
shop
)
=>
{
addPurchase
.
value
+=
shop
.
prodInfos
.
length
;
addPurchase
.
value
+=
shop
.
prodInfos
.
length
;
...
@@ -208,7 +205,6 @@ function clearFn() {
...
@@ -208,7 +205,6 @@ function clearFn() {
});
});
}
}
const
addPurchase
=
ref
(
0
);
const
addShoppingCart
=
(
item
)
=>
{
const
addShoppingCart
=
(
item
)
=>
{
const
params
=
{
const
params
=
{
shopId
:
item
.
shopId
,
shopId
:
item
.
shopId
,
...
...
src/pages/storeEntry/detail.vue
View file @
ecfa5dfb
...
@@ -709,7 +709,7 @@ async function changeLocation() {
...
@@ -709,7 +709,7 @@ async function changeLocation() {
uni
.
request
({
uni
.
request
({
url
:
'/ws/geocoder/v1/'
,
url
:
'/ws/geocoder/v1/'
,
data
:
{
data
:
{
key
:
'
MN4BZ-7JXKW-2RYRD-32QGF-AHONV-PAFUN
'
,
key
:
'
B7VBZ-PT5RB-WRHUT-J2EEQ-3WTUE-APFX4
'
,
location
:
`
${
res
.
latitude
}
,
${
res
.
longitude
}
`
,
location
:
`
${
res
.
latitude
}
,
${
res
.
longitude
}
`
,
},
},
success
:
function
(
res
)
{
success
:
function
(
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