feat: 完成二级分类真实实拍图替换与功能优化

本次提交内容包括:
1. 替换13个二级分类为真实商业实拍图,同步更新本地与线上数据库
2. 新增会员拨打额度耗尽引导开通会员功能
3. 优化发布页分类选择逻辑,增加会员权益展示
4. 修复分类名称显示问题,完善相关交互逻辑
5. 新增图片同步工具脚本,确保线上线下数据一致性
这个提交包含在:
2026-10-28 14:13:32 +08:00
父节点 111054d984
当前提交 f13fb6cdab
共有 47 个文件被更改,包括 3203 次插入 和 225 次删除

查看文件

@@ -13,19 +13,29 @@
<image class="fc-icon fc-icon--md" :src="iconUrl('phone-orange')" mode="aspectFit" />
<text class="call-modal__phone">{{ contactLabel }}</text>
</view>
<text class="call-modal__quota">
<text class="call-modal__quota" :class="{ 'call-modal__quota--warn': isQuotaEmpty }">
{{ quotaText }}
</text>
</view>
<!-- 额度耗尽引导开通会员 -->
<view v-if="isQuotaEmpty" class="call-modal__vip-box" @click="goMember">
<image class="fc-icon fc-icon--sm" :src="iconUrl('crown')" mode="aspectFit" />
<view class="call-modal__vip-info">
<text class="call-modal__vip-title">开通同城 VIP 会员</text>
<text class="call-modal__vip-desc">每日无限次拨打 · 免费浏览 · 极速发布</text>
</view>
<text class="call-modal__vip-arrow">去开通 ›</text>
</view>
<!-- 风险提示 -->
<view class="call-modal__warn">
<image class="fc-icon fc-icon--sm" :src="iconUrl('info')" mode="aspectFit" />
<text class="call-modal__warn-text">请自行鉴别农产品信息真伪,在未核实清楚前不要提前给对方转账,慎防诈骗!</text>
</view>
<!-- 免责声明勾选 -->
<view class="call-modal__agree" @click="agree = !agree">
<!-- 免责声明勾选(额度耗尽无需勾选) -->
<view v-if="!isQuotaEmpty" class="call-modal__agree" @click="agree = !agree">
<view class="call-modal__checkbox" :class="{ 'call-modal__checkbox--on': agree }">
<text v-if="agree" class="call-modal__checkbox-tick">✓</text>
</view>
@@ -33,14 +43,17 @@
<text class="call-modal__agree-link" @click.stop="goDisclaimer">《平台免责声明》</text>
</view>
<!-- 主拨打按钮 -->
<!-- 主操作按钮:有额度显示立即拨打,耗尽显示开通会员 -->
<view
class="call-modal__btn"
:class="{ 'call-modal__btn--disabled': loading }"
:class="{
'call-modal__btn--disabled': loading && !isQuotaEmpty,
'call-modal__btn--vip': isQuotaEmpty
}"
@click="handleDial"
>
<image class="fc-icon fc-icon--sm" :src="iconUrl('phone')" mode="aspectFit" />
<text>{{ loading ? '连接中…' : '立即拨打' }}</text>
<image class="fc-icon fc-icon--sm" :src="iconUrl(isQuotaEmpty ? 'crown' : 'phone')" mode="aspectFit" />
<text>{{ isQuotaEmpty ? '开通会员立即拨打' : (loading ? '连接中…' : '立即拨打') }}</text>
</view>
</view>
</view>
@@ -83,12 +96,25 @@ export default {
},
},
computed: {
/**
* 联系对象名称脱敏或提示
*/
contactLabel() {
return this.contactName ? `联系 ${this.contactName}` : '确认后直接拨打'
},
/**
* 额度是否已用尽
*/
isQuotaEmpty() {
return !this.unlimited && Number(this.quotaTotal) > 0 && Number(this.quotaLeft) <= 0
},
/**
* 额度展示文案
*/
quotaText() {
if (this.unlimited || this.quotaTotal === 0) return '会员尊享 · 不限拨打次数'
const left = Math.max(0, Number(this.quotaLeft) || 0)
if (left <= 0) return '今日拨打额度已用完(0 次)'
return `今日剩余 ${left} 次拨打机会`
},
},
@@ -101,9 +127,13 @@ export default {
this.$emit('close')
},
/**
* 点击拨打:先校验免责声明勾选,再交由父级执行拨打接口
* 点击拨打或引导开通会员
*/
handleDial() {
if (this.isQuotaEmpty) {
this.goMember()
return
}
if (this.loading) return
if (!this.agree) {
uni.showToast({ title: '请先勾选同意平台免责声明', icon: 'none' })
@@ -111,6 +141,13 @@ export default {
}
this.$emit('confirm')
},
/**
* 跳转会员中心开通特权
*/
goMember() {
this.handleClose()
uni.navigateTo({ url: '/pages/member/index' })
},
/**
* 查看平台免责声明详情
*/
@@ -185,6 +222,44 @@ export default {
margin-top: 12rpx;
font-size: 22rpx;
color: #64748b;
&--warn {
color: #e65100;
font-weight: 700;
}
}
.call-modal__vip-box {
margin-top: 20rpx;
padding: 18rpx 20rpx;
border-radius: 18rpx;
background: linear-gradient(135deg, #f0fdf4, #fff8e8);
border: 1rpx solid #ffe3a6;
display: flex;
align-items: center;
gap: 16rpx;
}
.call-modal__vip-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.call-modal__vip-title {
font-size: 26rpx;
font-weight: 700;
color: #8a5a00;
}
.call-modal__vip-desc {
margin-top: 4rpx;
font-size: 20rpx;
color: #b45309;
}
.call-modal__vip-arrow {
font-size: 24rpx;
font-weight: 700;
color: #f5a623;
flex-shrink: 0;
}
.call-modal__warn {
@@ -266,5 +341,11 @@ export default {
&--disabled {
opacity: 0.6;
}
&--vip {
background: linear-gradient(135deg, #00e070, #00d26a 45%, #f5a623);
color: #04301e;
box-shadow: 0 8rpx 24rpx rgba(245, 166, 35, 0.35);
}
}
</style>