功能:收口小程序前后台安全与防重复提交
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<view class="page-hero home-hero">
|
||||
<text class="hero-kicker">{{isLoggedIn ? greeting : 'YUMI NAIL 小程序'}}</text>
|
||||
<text class="hero-title">{{displayName}}</text>
|
||||
<text class="hero-desc">先看门店氛围,再挑喜欢的作品,最后一站式完成收藏、加购和预约。</text>
|
||||
<text class="hero-desc">先选喜欢的作品。</text>
|
||||
|
||||
<view class="hero-action-row">
|
||||
<view class="hero-action primary" bindtap="handleProfileTap">{{isLoggedIn ? '进入个人中心' : '立即登录'}}</view>
|
||||
@@ -31,22 +31,22 @@
|
||||
<view class="summary-metric">
|
||||
<text class="summary-label">门店橱窗</text>
|
||||
<text class="summary-value">{{bannerImages.length ? bannerImages.length : 0}} 家</text>
|
||||
<text class="summary-note">先看环境,再决定去哪家</text>
|
||||
<text class="summary-note">看环境</text>
|
||||
</view>
|
||||
<view class="summary-metric">
|
||||
<text class="summary-label">精选作品</text>
|
||||
<text class="summary-value">{{featuredItems.length ? featuredItems.length : 0}} 款</text>
|
||||
<text class="summary-note">适合快速找到灵感</text>
|
||||
<text class="summary-note">找灵感</text>
|
||||
</view>
|
||||
<view class="summary-metric">
|
||||
<text class="summary-label">热门推荐</text>
|
||||
<text class="summary-value">{{popularItems.length ? popularItems.length : 0}} 条</text>
|
||||
<text class="summary-note">当前最受欢迎的预约款式</text>
|
||||
<text class="summary-note">热门款</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{!isLoggedIn}}" class="guest-tip">
|
||||
登录后可同步收藏、购物车和预约记录,切换设备也不会丢。
|
||||
登录后可同步收藏和预约记录。
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<view class="section-copy">
|
||||
<text class="section-kicker">门店氛围</text>
|
||||
<text class="section-title">先看看线下环境</text>
|
||||
<text class="section-subtitle">轮播展示门店图片和营业时间,帮助你快速判断想去的店。</text>
|
||||
<text class="section-subtitle">看店铺环境</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<swiper class="banner-swiper" indicator-dots autoplay circular interval="3200">
|
||||
<swiper-item wx:for="{{bannerImages}}" wx:key="id">
|
||||
<view class="banner-item" data-shop-id="{{item.shopId}}" bindtap="handleBannerTap">
|
||||
<image class="banner-image" src="{{item.imageUrl}}" mode="aspectFill"></image>
|
||||
<image class="banner-image" src="{{item.imageUrl}}" mode="aspectFill" lazy-load="{{true}}"></image>
|
||||
<view class="banner-mask">
|
||||
<view class="banner-badge">门店实拍</view>
|
||||
<view class="banner-title">{{item.shopName}}</view>
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<view wx:else class="page-card empty-card">
|
||||
<text class="empty-title">门店内容正在补充中</text>
|
||||
<text class="empty-desc">可以先浏览精选作品,稍后再回来查看门店环境展示。</text>
|
||||
<text class="empty-desc">先看看作品。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<view class="section-copy">
|
||||
<text class="section-kicker">快速入门</text>
|
||||
<text class="section-title">精选作品</text>
|
||||
<text class="section-subtitle">适合先快速逛一圈的热门款式,向右滑动查看更多。</text>
|
||||
<text class="section-subtitle">先看热门款</text>
|
||||
</view>
|
||||
<view class="section-link" bindtap="handleSeeAllFeatured">查看全部</view>
|
||||
</view>
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<view wx:else class="page-card empty-card">
|
||||
<text class="empty-title">精选作品正在整理中</text>
|
||||
<text class="empty-desc">等门店补齐款式后,这里会优先展示最值得先看的内容。</text>
|
||||
<text class="empty-desc">稍后再来看看。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<view class="section-copy">
|
||||
<text class="section-kicker">热门预约</text>
|
||||
<text class="section-title">最近大家都在看</text>
|
||||
<text class="section-subtitle">结合点赞和收藏热度展示当前最受欢迎的款式。</text>
|
||||
<text class="section-subtitle">热门款式</text>
|
||||
</view>
|
||||
<view class="section-link" bindtap="handleSeeAllPopular">查看全部</view>
|
||||
</view>
|
||||
@@ -121,6 +121,9 @@
|
||||
<product-card item="{{item}}" show-stats="{{true}}" bindselect="handleProductSelect"></product-card>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{popularItems.length && (loadingMore || !hasMore)}}" class="section-load-state">
|
||||
<text class="section-load-text">{{loadingMore ? '正在加载更多热门作品...' : '已经到底了'}}</text>
|
||||
</view>
|
||||
|
||||
<view wx:elif="{{loading}}" class="page-card empty-card">
|
||||
<text class="empty-title">正在加载首页内容</text>
|
||||
@@ -128,7 +131,7 @@
|
||||
|
||||
<view wx:else class="page-card empty-card">
|
||||
<text class="empty-title">还没有热门作品</text>
|
||||
<text class="empty-desc">当前门店还在补充作品数据,稍后再回来看看。</text>
|
||||
<text class="empty-desc">稍后再来看看。</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user