Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
88dbcbe7
Commit
88dbcbe7
authored
Oct 27, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
a29a091c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
333 additions
and
109 deletions
+333
-109
goods.js
api/goods.js
+21
-0
user.js
stores/user.js
+6
-5
goodDetail.vue
v3/goodDetail/goodDetail.vue
+1
-1
orderDetail.vue
v3/orderDetail/orderDetail.vue
+305
-103
No files found.
api/goods.js
View file @
88dbcbe7
...
...
@@ -83,3 +83,24 @@ export const fetchSeckillTakeOrder = (data) => api.post('/c/seckill/takeOrder',
/**
* 订单物流信息
* @param {Object} data - 请求参数
* @param {string} data.order_no - 订单ID (必须)
* @returns {Promise} API响应
* @description 获取订单物流信息
*/
export
const
fetchOrderExpressRoute
=
(
data
)
=>
api
.
get
(
'/c/order/express/route'
,
data
);
/**
* 取消订单
* @param {Object} data - 请求参数
* @param {string} data.order_no - 订单ID (必须)
* @returns {Promise} API响应
* @description 取消订单
*/
export
const
fetchOrderCancel
=
(
data
)
=>
api
.
post
(
'/c/order/cancel'
,
data
);
stores/user.js
View file @
88dbcbe7
...
...
@@ -76,7 +76,7 @@ export const useUserStore = defineStore("userInfo", {
* @param {Object} data : {encryptedData, iv, code}
* @returns
*/
async
phoneCallback
(
data
,
onOpenRegisterFn
=
()
=>
{},
cb
=
null
,
cb2
=
null
,
invitationInfo
=
null
)
{
async
phoneCallback
(
data
,
onOpenRegisterFn
=
()
=>
{
},
cb
=
null
,
cb2
=
null
,
invitationInfo
=
null
)
{
uni
.
login
({
provider
:
"weixin"
,
success
:
async
(
res
)
=>
{
...
...
@@ -84,9 +84,7 @@ export const useUserStore = defineStore("userInfo", {
if
(
res
.
errMsg
===
"login:ok"
)
{
// 用户手机授权F
const
{
data
:
{
babyExistence
}
data
}
=
await
fetchAutoPhone
({
phoneEncryptedData
:
data
.
encryptedData
,
phoneIv
:
data
.
iv
,
...
...
@@ -94,9 +92,12 @@ export const useUserStore = defineStore("userInfo", {
codeLogin
:
res
.
code
,
...
invitationInfo
,
});
const
{
babyExistence
}
=
data
||
{};
!
babyExistence
&&
onOpenRegisterFn
&&
onOpenRegisterFn
();
if
(
!
babyExistence
.
value
&&
cb
)
{
if
(
!
babyExistence
&&
cb
)
{
cb
();
}
...
...
v3/goodDetail/goodDetail.vue
View file @
88dbcbe7
...
...
@@ -73,7 +73,7 @@
<view
class=
"product-details"
>
<text
class=
"product-points"
>
{{
goodsData
.
points
}}{{
goodsData
.
creditsTypeName
||
'积分'
}}
</text>
<text
class=
"product-stock"
>
库存
{{
formatCount
(
goodsData
.
sal
eCount
)
}}
件
</text>
<text
class=
"product-stock"
>
库存
{{
formatCount
(
goodsData
.
exchang
eCount
)
}}
件
</text>
</view>
</view>
...
...
v3/orderDetail/orderDetail.vue
View file @
88dbcbe7
This diff is collapsed.
Click to expand it.
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