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
ef5597af
Commit
ef5597af
authored
Aug 12, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品购买跳转
parent
61a12582
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
detail.vue
src/pages/assistingAgriculture/detail/detail.vue
+1
-1
loading.vue
src/pages/index/loading.vue
+2
-2
confirmOrder.vue
src/pages/shop/confirmOrder.vue
+3
-3
No files found.
src/pages/assistingAgriculture/detail/detail.vue
View file @
ef5597af
...
@@ -223,7 +223,7 @@ function toCart() {
...
@@ -223,7 +223,7 @@ function toCart() {
function
toSettle
()
{
function
toSettle
()
{
// TODO: 跳转到结算页面
// TODO: 跳转到结算页面
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/cart/ConfirmOrder'
,
url
:
`/pages/assistingAgriculture/cart/ConfirmOrder?type=qg&prodId=
${
dataDetails
.
value
.
skus
[
0
].
prodId
}
&skuId=
${
dataDetails
.
value
.
skus
[
0
].
skuId
}
`
,
});
});
}
}
</
script
>
</
script
>
...
...
src/pages/index/loading.vue
View file @
ef5597af
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import
{
getToken
}
from
'../../utils/auth'
;
import
{
getToken
}
from
'../../utils/auth'
;
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
await
signIn
();
//
await signIn();
//
if (!getToken()) await signIn2();
if
(
!
getToken
())
await
signIn2
();
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
});
});
...
...
src/pages/shop/confirmOrder.vue
View file @
ef5597af
...
@@ -231,10 +231,10 @@ function groupBuyConfirmFn(prodId, skuId) {
...
@@ -231,10 +231,10 @@ function groupBuyConfirmFn(prodId, skuId) {
res
.
data
.
orderItems
[
0
].
pic
=
imgUrl
+
res
.
data
.
orderItems
[
0
].
pic
;
res
.
data
.
orderItems
[
0
].
pic
=
imgUrl
+
res
.
data
.
orderItems
[
0
].
pic
;
orderInfo
.
value
=
res
.
data
;
orderInfo
.
value
=
res
.
data
;
resolve
(
res
.
data
.
shopId
);
resolve
(
res
.
data
.
shopId
);
}
else
{
}
else
{
wx
.
showToast
({
wx
.
showToast
({
title
:
res
.
msg
title
:
res
.
msg
,
})
})
;
}
}
});
});
});
});
...
...
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