feat: 新增发布额度权益与订单管理功能,优化多端交互细节

这个提交包含在:
2026-10-23 15:42:55 +08:00
父节点 3a2fcf7142
当前提交 691747726b
共有 208 个文件被更改,包括 11880 次插入 和 2262 次删除

查看文件

@@ -10,8 +10,8 @@
paddingRight: capsulePadding ? (capsulePadding + 'px') : '24rpx',
}"
>
<!-- 返回按钮(层级置顶,保证可点击) -->
<view v-if="showBack" class="fc-navbar__back" @click="onBack">
<!-- 返回按钮(层级置顶,保证可点击,增加点击热区) -->
<view v-if="showBack" class="fc-navbar__back" @click.stop="onBack">
<text class="fc-navbar__back-icon">‹</text>
</view>
@@ -84,26 +84,48 @@ export default {
} catch (e) {}
},
/**
* 点击返回上一页,若无历史页面则返回首页
* 点击返回上一页,若无历史页面或返回失败则执行降级跳转
*/
onBack() {
this.$emit('back')
const pages = (typeof getCurrentPages === 'function') ? getCurrentPages() : []
if (pages && pages.length > 1) {
uni.navigateBack()
} else {
// #ifdef H5
uni.redirectTo({
url: '/pages/index/index',
uni.navigateBack({
delta: 1,
fail: () => {
uni.reLaunch({ url: '/pages/index/index' })
this.fallbackNavigation()
},
})
// #endif
// #ifndef H5
uni.reLaunch({ url: '/pages/index/index' })
// #endif
} else {
this.fallbackNavigation()
}
},
/**
* 导航失败时的降级逻辑(优先返回上一级业务列表,最后兜底首页)
*/
fallbackNavigation() {
// #ifdef H5
uni.redirectTo({
url: '/pages/index/index',
fail: () => {
uni.reLaunch({ url: '/pages/index/index' })
},
})
// #endif
// #ifndef H5
uni.navigateBack({
delta: 1,
fail: () => {
uni.redirectTo({
url: '/pages/member/orders',
fail: () => {
uni.reLaunch({ url: '/pages/index/index' })
},
})
},
})
// #endif
},
},
}
</script>
@@ -152,30 +174,31 @@ export default {
width: 100%;
}
.fc-navbar__back {
width: 68rpx;
height: 68rpx;
width: 80rpx;
height: 100%;
min-height: 76rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
cursor: pointer;
border-radius: 50%;
position: relative;
z-index: 3;
transition: background-color 0.2s ease, transform 0.15s ease;
z-index: 10;
transition: opacity 0.15s ease, transform 0.15s ease;
&:active {
transform: scale(0.9);
background-color: rgba(255, 255, 255, 0.2);
transform: scale(0.92);
opacity: 0.75;
}
}
.fc-navbar--white .fc-navbar__back:active {
background-color: rgba(0, 0, 0, 0.06);
opacity: 0.7;
}
.fc-navbar__back-icon {
font-size: 52rpx;
font-size: 54rpx;
line-height: 1;
font-weight: 300;
font-weight: 400;
margin-top: -6rpx;
pointer-events: none;
}
.fc-navbar__title {
flex: 1;
@@ -190,8 +213,8 @@ export default {
&--center {
position: absolute;
left: 0;
right: 0;
left: 80rpx;
right: 80rpx;
top: 0;
bottom: 0;
display: flex;
@@ -199,7 +222,7 @@ export default {
justify-content: center;
text-align: center;
pointer-events: none;
padding: 0 160rpx;
padding: 0 80rpx;
box-sizing: border-box;
z-index: 1;
}