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
bfe59b18
Commit
bfe59b18
authored
Oct 27, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
165a08ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
16 deletions
+61
-16
index.vue
pages/index/index.vue
+2
-2
goodDetail.vue
v3/goodDetail/goodDetail.vue
+35
-5
settlementCenter.vue
v3/settlementCenter/settlementCenter.vue
+22
-7
My.vue
views/My.vue
+2
-2
No files found.
pages/index/index.vue
View file @
bfe59b18
...
...
@@ -68,9 +68,9 @@
<!-- 悬浮授权手机号模块 -->
<view
class=
"auth-phone-module"
v-if=
"!userStore.memberInfo?.mobile"
>
<image
class=
"auth-phone-bg"
:src=
"$baseUrl + 'homepage/Q3Res/accessBg.png'"
></image>
<image
class=
"auth-phone-bg"
:src=
"$baseUrl + 'homepage/Q3Res/accessBg
2
.png'"
></image>
<view
class=
"auth-phone-btn-container"
>
<image
class=
"auth-phone-btn"
:src=
"$baseUrl + 'homepage/Q3Res/accessBtn.png'"
@
tap=
"handleAuthPhoneClick"
>
<image
class=
"auth-phone-btn"
:src=
"$baseUrl + 'homepage/Q3Res/accessBtn
2
.png'"
@
tap=
"handleAuthPhoneClick"
>
</image>
</view>
</view>
...
...
v3/goodDetail/goodDetail.vue
View file @
bfe59b18
...
...
@@ -218,7 +218,8 @@ export default {
activityId
:
''
,
// 活动ID
sessionKey
:
''
,
// 会话密钥
appGoodsId
:
''
// 应用商品ID
}
},
isSubmitting
:
false
// 用于防连点
}
},
computed
:
{
...
...
@@ -849,17 +850,28 @@ export default {
// 确认兑换
async
confirmExchange
()
{
this
.
closeModal
();
// 防连点检查
if
(
this
.
isSubmitting
)
return
;
this
.
isSubmitting
=
true
;
try
{
this
.
closeModal
();
// 非实物商品:直接下单
if
(
!
this
.
isPhysicalGoods
())
{
await
this
.
exchangeGoods
();
// 非实物商品:直接下单
if
(
!
this
.
isPhysicalGoods
())
{
await
this
.
exchangeGoods
();
}
}
finally
{
this
.
isSubmitting
=
false
;
}
},
// 兑换商品(仅处理非实物商品)
async
exchangeGoods
()
{
try
{
// 防连点检查
if
(
this
.
isSubmitting
)
return
;
this
.
isSubmitting
=
true
;
uni
.
showLoading
({
title
:
'兑换中...'
});
...
...
@@ -880,6 +892,8 @@ export default {
title
:
error
.
message
||
'兑换失败,请重试'
,
icon
:
'none'
});
}
finally
{
this
.
isSubmitting
=
false
;
}
},
...
...
@@ -1123,6 +1137,22 @@ export default {
min-height
:
100vh
;
background-color
:
#f5f5f5
;
box-sizing
:
border-box
;
overflow-x
:
hidden
;
/* 禁止横向滚动 */
position
:
relative
;
}
/* 禁止整个页面横向滚动 */
page
{
overflow-x
:
hidden
;
width
:
100%
;
}
/* 确保所有内容区域都不会超出屏幕宽度 */
.content
,
.goods-carousel
,
.coupon-card
{
max-width
:
100%
;
box-sizing
:
border-box
;
}
/* 顶部导航栏 */
...
...
v3/settlementCenter/settlementCenter.vue
View file @
bfe59b18
...
...
@@ -150,7 +150,9 @@ export default {
homeStore
:
null
,
// 弹窗状态
showConfirmModal
:
false
,
showAddressModal
:
false
showAddressModal
:
false
,
// 用于防连点
isSubmitting
:
false
}
},
onLoad
(
options
)
{
...
...
@@ -395,12 +397,19 @@ export default {
// 确认兑换
async
confirmExchange
()
{
// 将用户填写的订单备注赋值给remark字段
this
.
orderParams
.
remark
=
this
.
orderNotes
;
// 添加订单来源子渠道
this
.
orderParams
.
orderSubSource
=
this
.
orderSubSource
;
this
.
closeModal
();
await
this
.
createOrder
();
// 防连点检查
if
(
this
.
isSubmitting
)
return
;
this
.
isSubmitting
=
true
;
try
{
// 将用户填写的订单备注赋值给remark字段
this
.
orderParams
.
remark
=
this
.
orderNotes
;
// 添加订单来源子渠道
this
.
orderParams
.
orderSubSource
=
this
.
orderSubSource
;
this
.
closeModal
();
await
this
.
createOrder
();
}
finally
{
this
.
isSubmitting
=
false
;
}
},
// 判断是否为实物商品
...
...
@@ -412,6 +421,10 @@ export default {
// 创建订单
async
createOrder
()
{
try
{
// 防连点检查
if
(
this
.
isSubmitting
)
return
;
this
.
isSubmitting
=
true
;
uni
.
showLoading
({
title
:
'下单中...'
});
...
...
@@ -433,6 +446,8 @@ export default {
console
.
error
(
'下单失败:'
,
error
);
uni
.
hideLoading
();
this
.
navigateToPayResult
(
false
,
null
,
error
.
message
);
}
finally
{
this
.
isSubmitting
=
false
;
}
},
...
...
views/My.vue
View file @
bfe59b18
...
...
@@ -95,9 +95,9 @@
<!-- 添加宝宝信息模块 -->
<view
class=
"add-baby-info-module"
v-if=
"cfgStatus.isRegister && (!babyInfo?.allBabyBaseInfo || babyInfo.allBabyBaseInfo.length === 0)"
>
<image
class=
"add-baby-info-bg"
:src=
"$baseUrl + 'homepage/Q3Res/addBabyInfoBg.png'"
></image>
<image
class=
"add-baby-info-bg"
:src=
"$baseUrl + 'homepage/Q3Res/addBabyInfoBg
2
.png'"
></image>
<view
class=
"add-baby-info-btn-container"
>
<image
class=
"add-baby-info-btn"
:src=
"$baseUrl + 'homepage/Q3Res/addBabyInfoBtn.png'"
<image
class=
"add-baby-info-btn"
:src=
"$baseUrl + 'homepage/Q3Res/addBabyInfoBtn
2
.png'"
@
tap=
"handleAddBabyInfoClick"
></image>
</view>
</view>
...
...
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