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
8b79d350
Commit
8b79d350
authored
Oct 27, 2025
by
jt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feihesanqi_20251014' of gitlab2.dui88.com:fh/20250528_FHQ1 into feihesanqi_20251014
parents
51f86cca
6a9e49af
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 @
8b79d350
...
@@ -83,3 +83,24 @@ export const fetchSeckillTakeOrder = (data) => api.post('/c/seckill/takeOrder',
...
@@ -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 @
8b79d350
...
@@ -76,7 +76,7 @@ export const useUserStore = defineStore("userInfo", {
...
@@ -76,7 +76,7 @@ export const useUserStore = defineStore("userInfo", {
* @param {Object} data : {encryptedData, iv, code}
* @param {Object} data : {encryptedData, iv, code}
* @returns
* @returns
*/
*/
async
phoneCallback
(
data
,
onOpenRegisterFn
=
()
=>
{},
cb
=
null
,
cb2
=
null
,
invitationInfo
=
null
)
{
async
phoneCallback
(
data
,
onOpenRegisterFn
=
()
=>
{
},
cb
=
null
,
cb2
=
null
,
invitationInfo
=
null
)
{
uni
.
login
({
uni
.
login
({
provider
:
"weixin"
,
provider
:
"weixin"
,
success
:
async
(
res
)
=>
{
success
:
async
(
res
)
=>
{
...
@@ -84,9 +84,7 @@ export const useUserStore = defineStore("userInfo", {
...
@@ -84,9 +84,7 @@ export const useUserStore = defineStore("userInfo", {
if
(
res
.
errMsg
===
"login:ok"
)
{
if
(
res
.
errMsg
===
"login:ok"
)
{
// 用户手机授权F
// 用户手机授权F
const
{
const
{
data
:
{
data
babyExistence
}
}
=
await
fetchAutoPhone
({
}
=
await
fetchAutoPhone
({
phoneEncryptedData
:
data
.
encryptedData
,
phoneEncryptedData
:
data
.
encryptedData
,
phoneIv
:
data
.
iv
,
phoneIv
:
data
.
iv
,
...
@@ -94,9 +92,12 @@ export const useUserStore = defineStore("userInfo", {
...
@@ -94,9 +92,12 @@ export const useUserStore = defineStore("userInfo", {
codeLogin
:
res
.
code
,
codeLogin
:
res
.
code
,
...
invitationInfo
,
...
invitationInfo
,
});
});
const
{
babyExistence
}
=
data
||
{};
!
babyExistence
&&
onOpenRegisterFn
&&
onOpenRegisterFn
();
!
babyExistence
&&
onOpenRegisterFn
&&
onOpenRegisterFn
();
if
(
!
babyExistence
.
value
&&
cb
)
{
if
(
!
babyExistence
&&
cb
)
{
cb
();
cb
();
}
}
...
...
v3/goodDetail/goodDetail.vue
View file @
8b79d350
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<view
class=
"product-details"
>
<view
class=
"product-details"
>
<text
class=
"product-points"
>
{{
goodsData
.
points
}}{{
goodsData
.
creditsTypeName
||
'积分'
<text
class=
"product-points"
>
{{
goodsData
.
points
}}{{
goodsData
.
creditsTypeName
||
'积分'
}}
</text>
}}
</text>
<text
class=
"product-stock"
>
库存
{{
formatCount
(
goodsData
.
sal
eCount
)
}}
件
</text>
<text
class=
"product-stock"
>
库存
{{
formatCount
(
goodsData
.
exchang
eCount
)
}}
件
</text>
</view>
</view>
</view>
</view>
...
...
v3/orderDetail/orderDetail.vue
View file @
8b79d350
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