feat: 新增师傅入驻审核与接单状态联动功能

- 新增师傅资质审核模块及权限
- 未审核通过的师傅默认禁用接单状态
- 新增售后退款申诉功能与相关界面
- 新增用户钱包管理及充值功能
- 更新服务定价矩阵相关数据库结构
- 修复微信支付证书验证问题
这个提交包含在:
2026-11-17 10:28:01 +08:00
父节点 ad73da1db4
当前提交 0370cb9bd6
共有 107 个文件被更改,包括 13666 次插入 和 1447 次删除

查看文件

@@ -36,13 +36,24 @@
</view>
<!-- 优惠券抵扣(红底白字“券”徽章 + 红色负值,1:1 复刻 frame_006) -->
<view class="fee-row">
<view class="fee-row" v-if="Number(discountAmount) > 0">
<view class="coupon-label-wrap">
<view class="quan-badge">券</view>
<text class="fee-label">优惠券</text>
</view>
<text class="fee-value discount">- ¥{{ discountAmount || '0.00' }}</text>
</view>
<!-- 应付合计高亮行 -->
<view class="fee-divider"></view>
<view class="fee-row total-row">
<text class="fee-label total-label">应付合计</text>
<text class="fee-value total-value">¥{{ payAmount || '0.00' }}</text>
</view>
<view class="fee-guarantee-tip">
<image class="fgt-ico" src="/static/icons/home-guarantee.svg" mode="aspectFit" />
<text class="fgt-txt">平台明码标价,资金全程托管保障,无师傅私下加价</text>
</view>
</view>
</view>
</view>
@@ -159,6 +170,50 @@
font-weight: 600;
}
.fee-divider {
height: 1rpx;
background: #F0F0F2;
margin: 16rpx 0;
}
.total-row {
padding-top: 10rpx;
}
.total-label {
font-size: 32rpx;
font-weight: 700;
color: #1F1F1F;
}
.total-value {
font-size: 36rpx;
font-weight: 700;
color: #F0710D;
}
.fee-guarantee-tip {
margin-top: 24rpx;
background: #FFF7F0;
border-radius: 12rpx;
padding: 14rpx 20rpx;
display: flex;
align-items: center;
gap: 12rpx;
}
.fgt-ico {
width: 28rpx;
height: 28rpx;
flex-shrink: 0;
}
.fgt-txt {
font-size: 22rpx;
color: #F0710D;
line-height: 1.4;
}
.clickable-hover:active {
opacity: 0.85;
}

查看文件

@@ -226,13 +226,21 @@
const gBase = Number(goods.base_price) || 0;
const hasCustomSpecPrice = Number(spec.base_price) > 0;
const sBase = hasCustomSpecPrice ? Number(spec.base_price) : gBase;
const specPrices = (spec.service_prices && typeof spec.service_prices === 'object') ? spec.service_prices : {};
const rawTypes = goods.service_types || [];
const hasExplicitDefault = rawTypes.some(x => Number(x.is_default) === 1);
const resolvedTypes = rawTypes.map((st, idx) => {
const isDef = Number(st.is_default) === 1 || (!hasExplicitDefault && idx === 0);
const sCode = st.code || '';
let effectivePrice = Number(st.price) || 0;
if (typeof specPrices[sCode] !== 'undefined' && Number(specPrices[sCode]) > 0) {
effectivePrice = Number(specPrices[sCode]);
} else if (isDef && hasCustomSpecPrice) {
effectivePrice = sBase;
}
return {
...st,
price: (isDef && hasCustomSpecPrice) ? sBase : (Number(st.price) || 0)
price: effectivePrice
};
});
const defType = resolvedTypes.find(st => Number(st.is_default) === 1) || resolvedTypes[0] || { code: 'install', name: '安装', price: sBase };

查看文件

@@ -36,7 +36,7 @@
<!-- 核心资产卡片(仅聚焦余额与优惠券,无冗余项) -->
<view class="assets-card">
<view class="asset-item clickable-hover" @tap="showBalanceTip">
<view class="asset-item clickable-hover" @tap="go('/pages/user/wallet')">
<view class="asset-val-box">
<text class="asset-symbol">¥</text>
<text class="asset-number">{{ user ? Number(user.balance).toFixed(2) : '0.00' }}</text>
@@ -139,6 +139,15 @@
<image class="arrow-ico" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<view class="menu-item clickable-hover" @tap="go('/pages/mine/aftersale')">
<view class="menu-item-l">
<image class="menu-ico" src="/static/icons/menu-aftersale.svg" mode="aspectFit" />
<text class="menu-txt">售后记录</text>
</view>
<view class="menu-item-r">
<image class="arrow-ico" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<view class="menu-item clickable-hover" v-if="isMerchantAccount" @tap="go('/pages/mine/account?focus=members')">
<view class="menu-item-l">
<image class="menu-ico" src="/static/icons/menu-subaccount.svg" mode="aspectFit" />
@@ -384,7 +393,7 @@
uni.showToast({ title: '已切换为师傅身份' });
setTimeout(() => {
switchingRole.value = false;
uni.reLaunch({ url: res.redirect });
uni.reLaunch({ url: (res && res.redirect) ? res.redirect : '/pages/master/workbench' });
}, 500);
} catch (e) {
switchingRole.value = false;