feat: 新增地址选择插件及订阅消息等多项功能优化
- 新增地址选择插件,支持地图位置选择并返回地址和经纬度 - 新增微信订阅消息发送功能,支持审核结果、提现通知等场景 - 新增订单支付状态查询、提现收款人姓名保存等接口 - 新增服务区域管理,支持按省市区划分并同步到信息发布 - 新增资金流水和营收报表导出功能 - 新增可用优惠券查询、订单退款拆分处理等功能 - 优化后台角标显示、首页数据统计、UI配置下发等 - 修复订单支付并发问题、地区管理逻辑等
这个提交包含在:
@@ -4,22 +4,26 @@
|
||||
:class="{ 'fc-post-card--compact': compact }"
|
||||
@click="$emit('click', post)"
|
||||
>
|
||||
<!-- 缩略图:有真实实拍图展示实拍大图;无图时展示高品质分类徽章微名片 -->
|
||||
<!-- 缩略图:有真实实拍图展示实拍大图;无图时展示分类图标微名片(分类名统一由下方分类标签承载,避免重复) -->
|
||||
<view class="fc-post-card__thumb" :class="{ 'fc-post-card__thumb--badge': !thumbUrl }">
|
||||
<image v-if="thumbUrl" class="fc-post-card__thumb-img" :src="thumbUrl" mode="aspectFill" />
|
||||
<view v-else class="fc-post-card__deco-badge">
|
||||
<view class="fc-post-card__deco-halo">
|
||||
<image class="fc-post-card__deco-icon" :src="categoryIconUrl(post.categoryId)" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="fc-post-card__deco-name">{{ shortCatName }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 内容主体 -->
|
||||
<view class="fc-post-card__body">
|
||||
<view class="fc-post-card__title fc-ellipsis-2">{{ post.title }}</view>
|
||||
<view v-if="post.isTop || (post.tags && post.tags.length)" class="fc-post-card__tags">
|
||||
<view v-if="post.isTop || post.categoryName || (post.tags && post.tags.length)" class="fc-post-card__tags">
|
||||
<text v-if="post.isTop" class="fc-tag fc-post-card__tag fc-post-card__tag--top">置顶</text>
|
||||
<!-- 分类标签:列表卡片固定展示,图标 + 分类名 -->
|
||||
<view v-if="post.categoryName" class="fc-tag fc-post-card__tag fc-post-card__tag--cat">
|
||||
<image class="fc-post-card__tag-icon" :src="categoryIconUrl(post.categoryId)" mode="aspectFit" />
|
||||
<text>{{ post.categoryName }}</text>
|
||||
</view>
|
||||
<text v-for="t in (post.tags || []).slice(0, 2)" :key="t" class="fc-tag fc-post-card__tag">{{ t }}</text>
|
||||
</view>
|
||||
<view class="fc-post-card__meta">
|
||||
@@ -74,11 +78,6 @@ export default {
|
||||
distanceText() {
|
||||
return this.post.distance == null ? '' : formatKm(this.post.distance)
|
||||
},
|
||||
/** 缩略图角标精简分类名(2~4字) */
|
||||
shortCatName() {
|
||||
const n = this.post.categoryName || ''
|
||||
return n.length > 4 ? n.slice(0, 4) : (n || '同城精选')
|
||||
},
|
||||
/**
|
||||
* 帖子封面图:优先使用实际上传封面或第一张实拍图,无图时回退为空由图标微卡片兜底
|
||||
*/
|
||||
@@ -160,8 +159,8 @@ export default {
|
||||
}
|
||||
|
||||
.fc-post-card__deco-halo {
|
||||
width: 76rpx;
|
||||
height: 76rpx;
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
display: flex;
|
||||
@@ -171,16 +170,8 @@ export default {
|
||||
}
|
||||
|
||||
.fc-post-card__deco-icon {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
|
||||
.fc-post-card__deco-name {
|
||||
margin-top: 10rpx;
|
||||
font-size: 20rpx;
|
||||
font-weight: 600;
|
||||
color: $fc-primary-text;
|
||||
letter-spacing: 0.5rpx;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
}
|
||||
|
||||
/* 内容主体 */
|
||||
@@ -201,7 +192,8 @@ export default {
|
||||
}
|
||||
.fc-post-card__tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-wrap: nowrap;
|
||||
overflow: hidden;
|
||||
gap: 8rpx;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
@@ -209,6 +201,19 @@ export default {
|
||||
margin: 0;
|
||||
font-size: 20rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
/* 分类标签:浅绿底 + 墨绿字(亮绿背景禁用白字),与全局 fc-tag 规范一致 */
|
||||
.fc-post-card__tag--cat {
|
||||
gap: 6rpx;
|
||||
padding: 2rpx 14rpx 2rpx 10rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
.fc-post-card__tag-icon {
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.fc-post-card__tag--top {
|
||||
background: $fc-gradient-primary;
|
||||
@@ -304,16 +309,12 @@ export default {
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
.fc-post-card__deco-halo {
|
||||
width: 58rpx;
|
||||
height: 58rpx;
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
}
|
||||
.fc-post-card__deco-icon {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
.fc-post-card__deco-name {
|
||||
margin-top: 6rpx;
|
||||
font-size: 18rpx;
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
}
|
||||
.fc-post-card__title {
|
||||
font-size: 27rpx;
|
||||
@@ -329,6 +330,13 @@ export default {
|
||||
font-size: 18rpx;
|
||||
padding: 2rpx 8rpx;
|
||||
}
|
||||
.fc-post-card__tag--cat {
|
||||
padding: 2rpx 12rpx 2rpx 8rpx;
|
||||
}
|
||||
.fc-post-card__tag-icon {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
.fc-post-card__meta {
|
||||
font-size: 20rpx;
|
||||
margin-bottom: 4rpx;
|
||||
|
||||
在新工单中引用
屏蔽一个用户