功能:新增微信小程序界面
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
<view class="profile-page-root">
|
||||
<navigation-bar title="个人中心" back="{{false}}" color="#ffffff" background="transparent"></navigation-bar>
|
||||
<view class="profile-bg"></view>
|
||||
|
||||
<scroll-view class="profile-scroll" scroll-y enable-flex enhanced show-scrollbar="false">
|
||||
<view class="page-shell profile-page">
|
||||
<view class="page-content profile-content">
|
||||
<view wx:if="{{!isLoggedIn}}" class="page-card guest-card">
|
||||
<image class="guest-avatar" src="{{defaultAvatar}}" mode="aspectFill"></image>
|
||||
<view class="guest-title">还没有登录账号</view>
|
||||
<view class="guest-desc">登录后可以查看订单、收藏作品、领取和使用优惠。</view>
|
||||
<view class="primary-btn" bindtap="handleOpenAuth">去登录</view>
|
||||
</view>
|
||||
|
||||
<block wx:elif="{{userInfo}}">
|
||||
<view class="page-card profile-card">
|
||||
<view class="profile-top">
|
||||
<image class="avatar" src="{{userInfo.avatar || defaultAvatar}}" mode="aspectFill"></image>
|
||||
<view class="profile-copy">
|
||||
<view class="nickname">{{userInfo.nickname || 'Yumi 用户'}}</view>
|
||||
<view class="account">{{userInfo.account}}</view>
|
||||
<view wx:if="{{userInfo.signature}}" class="signature">{{userInfo.signature}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="summary-strip profile-stats">
|
||||
<view class="summary-metric" bindtap="handleOpenOrders">
|
||||
<text class="summary-label">订单</text>
|
||||
<text class="summary-value">{{orderCount}}</text>
|
||||
<text class="summary-note">查看预约记录</text>
|
||||
</view>
|
||||
<view class="summary-metric" bindtap="handleOpenWishlist">
|
||||
<text class="summary-label">收藏</text>
|
||||
<text class="summary-value">{{wishlistCount}}</text>
|
||||
<text class="summary-note">回看喜欢的作品</text>
|
||||
</view>
|
||||
<view class="summary-metric" bindtap="handleOpenCoupons">
|
||||
<text class="summary-label">优惠券</text>
|
||||
<text class="summary-value">{{couponCount}}</text>
|
||||
<text class="summary-note">结算前可直接使用</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="shop-box" bindtap="handleSwitchShop">
|
||||
<view>
|
||||
<view class="shop-label">当前登录门店</view>
|
||||
<view class="shop-name">{{userInfo.shopName || '暂未选择门店'}}</view>
|
||||
</view>
|
||||
<view class="shop-link">{{(userInfo.shopIds && userInfo.shopIds.length > 1) ? '切换' : '查看'}}</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{needSetPassword}}" class="password-tip">
|
||||
建议尽快补充登录密码,之后切换设备会更方便。
|
||||
</view>
|
||||
|
||||
<view class="secondary-btn edit-btn" bindtap="handleOpenSettings">编辑资料与设置</view>
|
||||
</view>
|
||||
|
||||
<view class="page-card menu-card">
|
||||
<view class="section-title">常用入口</view>
|
||||
<view class="section-subtitle">订单、收藏、优惠券和账号设置都集中在这里。</view>
|
||||
<view class="menu-item" bindtap="handleOpenOrders">
|
||||
<text>我的订单</text>
|
||||
<text class="menu-arrow">></text>
|
||||
</view>
|
||||
<view class="menu-item" bindtap="handleOpenWishlist">
|
||||
<text>我的收藏</text>
|
||||
<text class="menu-arrow">></text>
|
||||
</view>
|
||||
<view class="menu-item" bindtap="handleOpenCoupons">
|
||||
<text>我的优惠券</text>
|
||||
<text class="menu-arrow">></text>
|
||||
</view>
|
||||
<view class="menu-item" bindtap="handleOpenSettings">
|
||||
<text>设置中心</text>
|
||||
<text class="menu-arrow">></text>
|
||||
</view>
|
||||
<view class="menu-item logout-item" bindtap="handleLogout">
|
||||
<text>退出登录</text>
|
||||
<text class="menu-arrow">></text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user