Files
JayuCloud/JC-ArtList-WeChat/pages/order-detail/index.wxml
T
xiaowang 99fa38f110
自动发布开发环境 Nacos 配置 / publish (push) Successful in 25s
feat(artlist): 全场景脱敏与单次拨号取号,补齐账号加密与协议版本
- 手机号/账号全场景一律脱敏:SensitiveFieldPolicy 删除完整值分支与 ADMIN_EDIT,SELF_PROFILE 同样脱敏;convertToVO 全调用点统一脱敏
- 联系信息接口不再返回号码:toContact 置空 phone 并给出 phoneAvailable,补齐 ensureUserCanSeeShop 真实可见范围校验
- 新增 POST /contact-info/dial,按 scene(SHOP_MANAGER/ORDER_ARTIST/PRODUCT_ARTIST/PLATFORM) 一次一取;DialTargetProvider 抽象直连/隐私号,未配置隐私号返回 9001 且不回退真实号;/contact-info/** 按用户限流并记录审计
- 验证码与换绑手机号改为服务端按当前登录用户取号,客户端 phone/oldPhone 参数兼容忽略;前端与小程序同步去掉回传
- 消息发布人昵称兜底改为脱敏账号,避免 account 明文写入 publisher_name
- 新增 V5 账号加密与账号哈希、V6 协议文本改为全场景脱敏与单次拨号取号
2026-11-04 22:04:14 +08:00

74 lines
3.6 KiB
Plaintext

<navigation-bar title="订单详情" showBack="{{true}}" fallbackPath="/pages/orders/index" color="{{navThemeColor || '#4A443F'}}" background="{{navThemeBackground || '#FDFBF9'}}"></navigation-bar>
<view class="page-shell detail-page" style="{{themeVars}}">
<view class="page-content">
<view wx:if="{{!isLoggedIn}}" class="page-card empty-card">
<text class="empty-title">登录后查看订单</text>
<text class="empty-desc">订单详情需要先登录</text>
</view>
<view wx:elif="{{loading}}" class="page-card empty-card">
<text class="empty-title">正在加载订单</text>
</view>
<block wx:elif="{{order}}">
<view class="page-hero">
<text class="hero-kicker">预约订单</text>
<text class="hero-title">{{order.orderNo}}</text>
<text class="hero-desc">{{order.shopName || '当前门店'}} · {{order.statusText}}</text>
<view class="summary-strip">
<view class="summary-metric">
<text class="summary-label">订单金额</text>
<text class="summary-value">{{order.amountText}}</text>
</view>
<view class="summary-metric">
<text class="summary-label">项目数</text>
<text class="summary-value">{{order.items.length}}</text>
</view>
</view>
</view>
<view class="page-card timeline-card">
<view wx:for="{{order.timeline}}" wx:key="key" class="timeline-node {{item.done ? 'done' : ''}} {{item.active ? 'active' : ''}}">
<text class="timeline-title">{{item.title}}</text>
<text class="timeline-text">{{item.text}}</text>
</view>
</view>
<view class="page-card detail-card">
<view wx:for="{{order.items}}" wx:key="id" class="item-row">
<image class="item-thumb" src="{{item.productImageUrl}}" mode="aspectFill"></image>
<view class="item-main">
<text class="item-title">{{item.productTitle}}</text>
<text class="item-line">{{item.priceText}} x {{item.quantity}}</text>
<text wx:if="{{item.artistName}}" class="item-line">美甲师:{{item.artistName}}</text>
<text wx:if="{{item.appointmentText}}" class="item-line">预约:{{item.appointmentText}}</text>
<view wx:if="{{order.canApplyAfterSale}}" class="soft-chip" data-item-id="{{item.id}}" bindtap="openAfterSaleApply">申请售后</view>
</view>
</view>
</view>
<view wx:if="{{contact}}" class="page-card contact-card">
<text class="section-title">联系信息</text>
<text class="contact-line">{{contact.contactName || contact.roleLabel || '服务联系人'}}</text>
<text wx:if="{{contact.phoneAvailable}}" class="contact-line">
<view class="soft-chip" bindtap="handleDialArtist">拨打美甲师电话</view>
</text>
<text wx:if="{{contact.wechatAvailable && contact.wechatId}}" class="contact-line">微信:{{contact.wechatId}}</text>
<text wx:if="{{contact.platformContactText}}" class="contact-line">{{contact.platformContactText}}</text>
</view>
<view class="action-row">
<view class="secondary-btn" bindtap="openProgress">服务进度</view>
<view class="secondary-btn" bindtap="openAfterSales">售后记录</view>
<view wx:if="{{order.status == 1}}" class="secondary-btn danger" bindtap="handleCancelOrder">取消订单</view>
</view>
</block>
<view wx:else class="page-card empty-card">
<text class="empty-title">未找到订单</text>
<text class="empty-desc">请从订单中心重新进入</text>
</view>
</view>
</view>