Files
JayuCloud/JC-ArtList-WeChat/pages/shop-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

151 lines
6.6 KiB
Plaintext

<navigation-bar title="{{shopInfo ? shopInfo.shopName : '门店详情'}}" showBack="{{true}}" fallbackPath="{{returnTo || '/pages/home/index'}}" color="#ffffff" background="transparent" safeAreaMode="overlay"></navigation-bar>
<view class="page-shell shop-page" style="{{themeVars}}">
<view class="shop-hero">
<image wx:if="{{shopImages.length}}" class="shop-hero-image" src="{{shopImages[0]}}" mode="aspectFill" lazy-load="{{true}}"></image>
<view class="shop-hero-mask"></view>
</view>
<view wx:if="{{loadError}}" class="page-content shop-content">
<view class="page-card empty-card">
<text class="empty-title">暂时无法查看门店详情</text>
<text class="empty-desc">{{loadError}}</text>
<view class="ghost-btn" bindtap="handleBack">返回上一页</view>
</view>
</view>
<view wx:elif="{{shopInfo}}" class="page-content shop-content">
<view class="page-card shop-card">
<view class="section-kicker">门店详情</view>
<view class="shop-title">{{shopInfo.shopName}}</view>
<view class="shop-address" bindtap="handleCopyAddress">{{shopInfo.address || '门店地址待补充'}}</view>
<view wx:if="{{distanceText}}" class="shop-distance">{{distanceText}}</view>
<view wx:if="{{trustProfile}}" class="trust-grid">
<view class="trust-card">
<text class="trust-value">{{trustProfile.ratingText}}</text>
<text class="trust-label">{{trustProfile.reviewCount}} 条评价</text>
</view>
<view class="trust-card">
<text class="trust-value">{{trustProfile.productCount}}</text>
<text class="trust-label">在售作品</text>
</view>
<view class="trust-card">
<text class="trust-value">{{trustProfile.businessStatusText || '可浏览'}}</text>
<text class="trust-label">{{trustProfile.availabilityText}}</text>
</view>
</view>
<view class="summary-strip shop-summary">
<view class="summary-metric">
<text class="summary-label">营业时间</text>
<text class="summary-value shop-summary-value">{{trustProfile.businessHoursText || shopInfo.businessHours || '待补充'}}</text>
<text class="summary-note">以到店服务时间为准</text>
</view>
<view class="summary-metric">
<text class="summary-label">环境图片</text>
<text class="summary-value shop-summary-value">{{shopImages.length ? shopImages.length : 0}} 张</text>
<text class="summary-note">支持点击放大查看</text>
</view>
</view>
<view class="detail-group">
<view class="detail-label">营业时间</view>
<view class="detail-value">{{trustProfile.businessHoursText || shopInfo.businessHours || '待补充'}}</view>
</view>
<view class="detail-group">
<view class="detail-label">门店介绍</view>
<view class="detail-value">{{shopInfo.description || '门店介绍待补充'}}</view>
</view>
<view class="copy-row">
<view class="ghost-btn" bindtap="handleCopyName">复制门店名</view>
<view class="ghost-btn" bindtap="handleCopyAddress">复制地址</view>
</view>
<view class="contact-row">
<view class="primary-btn contact-btn" bindtap="handleContactManager">联系店长</view>
<view wx:if="{{managerContact}}" class="contact-copy">
{{managerContact.contactName || '店长'}} · {{managerContact.phoneAvailable ? '点击“联系店长”获取当次号码' : (managerContact.platformContactText || '暂无电话')}}
</view>
</view>
<view wx:if="{{shopInfo.longitude && shopInfo.latitude}}" class="map-row">
<view class="primary-btn map-btn" bindtap="handleOpenLocation">查看地图位置</view>
<view class="ghost-btn map-btn" bindtap="handleOpenAmapNavigation">复制高德导航链接</view>
<view class="ghost-btn map-btn" bindtap="handleCopyTencentNavigation">复制备用导航</view>
</view>
</view>
<view wx:if="{{trustProfile && trustProfile.featuredProducts.length}}" class="section-block">
<view class="section-head">
<view class="section-copy">
<text class="section-kicker">可预约作品</text>
<text class="section-title">先看看本店热门款</text>
<text class="section-subtitle">{{trustProfile.availabilityText}}</text>
</view>
</view>
<view class="featured-list">
<view
wx:for="{{trustProfile.featuredProducts}}"
wx:key="id"
class="featured-card"
data-id="{{item.id}}"
bindtap="handleOpenProduct"
>
<image wx:if="{{item.imageUrl}}" class="featured-cover" src="{{item.imageUrl}}" mode="aspectFill" lazy-load="{{true}}"></image>
<view wx:else class="featured-cover placeholder">作</view>
<view class="featured-info">
<text class="featured-title">{{item.title || '美甲作品'}}</text>
<text class="featured-price">¥{{item.priceText}}</text>
<text class="featured-hint">{{item.bookingHint || '下单前选择美甲师和时间'}}</text>
</view>
</view>
</view>
</view>
<view wx:if="{{trustProfile && trustProfile.recentReviews.length}}" class="section-block">
<view class="section-head">
<view class="section-copy">
<text class="section-kicker">近期评价</text>
<text class="section-title">真实体验反馈</text>
</view>
</view>
<view class="review-list">
<view wx:for="{{trustProfile.recentReviews}}" wx:key="id" class="review-card">
<view class="review-head">
<text>{{item.productTitle || '订单评价'}}</text>
<text>{{item.ratingText}}</text>
</view>
<text class="review-content">{{item.content || '用户已完成评价'}}</text>
<text class="review-time">{{item.submittedText}}</text>
</view>
</view>
</view>
<view class="section-block">
<view class="section-head">
<view class="section-copy">
<text class="section-kicker">实景展示</text>
<text class="section-title">门店环境图</text>
<text class="section-subtitle">点击图片可以放大查看,更直观地感受门店氛围。</text>
</view>
</view>
<view class="gallery-list">
<image
wx:for="{{shopImages}}"
wx:key="*this"
class="gallery-image"
src="{{item}}"
mode="aspectFill"
data-url="{{item}}"
bindtap="handlePreviewImage"
lazy-load="{{true}}"
></image>
</view>
</view>
</view>
</view>