功能:更新消息中心和 YumiNail 模块
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
<view class="auth-page-root">
|
||||
<navigation-bar title="账号中心" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="账号中心" showBack="{{true}}" fallbackPath="/pages/home/index" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<scroll-view
|
||||
class="auth-scroll"
|
||||
scroll-y
|
||||
enable-flex
|
||||
enhanced
|
||||
show-scrollbar="false"
|
||||
scroll-with-animation="{{true}}"
|
||||
scroll-into-view="{{keyboardAnchorId}}"
|
||||
>
|
||||
<view class="auth-scroll">
|
||||
<view class="page-shell auth-page-shell auth-page">
|
||||
<view class="page-content auth-content {{keyboardVisible ? 'keyboard-active' : ''}}">
|
||||
<view class="page-card auth-panel">
|
||||
@@ -294,7 +286,7 @@
|
||||
|
||||
<view wx:if="{{keyboardVisible}}" class="keyboard-spacer" style="height: {{keyboardInsetRpx}}rpx;"></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{showMiniShopSelector}}" class="mini-shop-mask" catchtouchmove="noop">
|
||||
<view class="page-card mini-shop-modal">
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
.auth-page-root {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.auth-scroll {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.auth-page-shell {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="购物车" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="购物车" showBack="{{false}}" isTabPage="{{true}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<view class="page-shell cart-page">
|
||||
<view class="page-content cart-content">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="我的优惠券" color="#2d2430" background="#fff7f8" bindback="handleBack"></navigation-bar>
|
||||
<navigation-bar title="我的优惠券" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<view class="page-shell coupons-page">
|
||||
<view class="page-content">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<view class="home-page-root">
|
||||
<navigation-bar title="{{navTitle}}" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="{{navTitle}}" showBack="{{false}}" isTabPage="{{true}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<scroll-view class="home-scroll" scroll-y enable-flex enhanced show-scrollbar="false" scroll-with-animation="{{true}}" scroll-into-view="{{keyboardAnchorId}}">
|
||||
<view class="home-scroll">
|
||||
<view class="page-shell home-page {{keyboardVisible ? 'keyboard-active' : ''}}">
|
||||
<view class="page-content">
|
||||
<view class="page-hero home-hero">
|
||||
@@ -142,5 +142,5 @@
|
||||
</view>
|
||||
<view wx:if="{{keyboardVisible}}" class="keyboard-light-spacer" style="height: {{keyboardInsetRpx}}rpx;"></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
.home-page-root {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.home-scroll {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.home-page {
|
||||
|
||||
@@ -1,7 +1,28 @@
|
||||
const auth = require('../../utils/auth')
|
||||
|
||||
Page({
|
||||
data: {
|
||||
navTitle: '游客模式'
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.syncNavTitle()
|
||||
wx.switchTab({
|
||||
url: '/pages/home/index'
|
||||
})
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.syncNavTitle()
|
||||
},
|
||||
|
||||
syncNavTitle() {
|
||||
const userInfo = auth.getStoredUserInfo()
|
||||
const navTitle = userInfo && String(userInfo.shopName || '').trim()
|
||||
? String(userInfo.shopName).trim()
|
||||
: '游客模式'
|
||||
this.setData({
|
||||
navTitle
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="Yumi Nail" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="{{navTitle}}" showBack="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<view class="redirect-page">
|
||||
<view class="redirect-card">
|
||||
<view class="redirect-title">正在进入首页</view>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
page {
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
background: #fff7f8;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="我的订单" color="#2d2430" background="#fff7f8" bindback="handleBack"></navigation-bar>
|
||||
<navigation-bar title="我的订单" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<view class="page-shell orders-page">
|
||||
<view class="page-content">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="{{product ? product.displayTitle : '作品详情'}}" color="#2d2430" background="#fff7f8" bindback="handleBack"></navigation-bar>
|
||||
<navigation-bar title="{{product ? product.displayTitle : '作品详情'}}" showBack="{{true}}" fallbackPath="/pages/products/index" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<view class="page-shell detail-page">
|
||||
<view wx:if="{{loadError}}" class="page-content">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="作品库" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="作品库" showBack="{{false}}" isTabPage="{{true}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<view class="page-shell product-page {{keyboardVisible ? 'keyboard-active' : ''}}">
|
||||
<view class="page-content product-page-content" style="{{keyboardVisible ? 'padding-bottom: ' + keyboardInsetRpx + 'rpx;' : ''}}">
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<view class="profile-page-root">
|
||||
<navigation-bar title="个人中心" back="{{false}}" color="#ffffff" background="transparent"></navigation-bar>
|
||||
<navigation-bar title="个人中心" showBack="{{false}}" isTabPage="{{true}}" color="#ffffff" background="transparent" safeAreaMode="overlay"></navigation-bar>
|
||||
<view class="profile-bg"></view>
|
||||
|
||||
<scroll-view class="profile-scroll" scroll-y enable-flex enhanced show-scrollbar="false">
|
||||
<view class="profile-scroll">
|
||||
<view class="page-shell profile-page">
|
||||
<view class="page-content profile-content">
|
||||
<view wx:if="{{!isLoggedIn}}" class="page-card guest-card">
|
||||
@@ -41,7 +41,7 @@
|
||||
<view class="shop-box" bindtap="handleSwitchShop">
|
||||
<view>
|
||||
<view class="shop-label">当前登录门店</view>
|
||||
<view class="shop-name">{{userInfo.shopName || '暂未选择门店'}}</view>
|
||||
<view class="shop-name">{{userInfo.shopName || '当前暂无可用门店'}}</view>
|
||||
</view>
|
||||
<view class="shop-link">{{(userInfo.shopIds && userInfo.shopIds.length > 1) ? '切换' : '查看'}}</view>
|
||||
</view>
|
||||
@@ -79,5 +79,5 @@
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
.profile-page-root {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.profile-scroll {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.profile-page {
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
<view class="settings-page-root">
|
||||
<navigation-bar title="设置中心" color="#2d2430" background="#fff7f8" bindback="handleBack"></navigation-bar>
|
||||
<navigation-bar title="设置中心" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<scroll-view
|
||||
class="settings-scroll"
|
||||
scroll-y
|
||||
enable-flex
|
||||
enhanced
|
||||
show-scrollbar="false"
|
||||
scroll-with-animation="{{true}}"
|
||||
scroll-into-view="{{keyboardAnchorId}}"
|
||||
>
|
||||
<view class="settings-scroll">
|
||||
<view class="page-shell settings-page-shell {{keyboardVisible ? 'keyboard-active' : ''}}">
|
||||
<view class="page-content">
|
||||
<view wx:if="{{!isLoggedIn}}" class="page-card empty-card">
|
||||
@@ -302,5 +294,5 @@
|
||||
|
||||
<view wx:if="{{keyboardVisible}}" class="keyboard-spacer" style="height: {{keyboardInsetRpx}}rpx;"></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
.settings-page-root {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.settings-scroll {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.settings-page-shell {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="{{shopInfo ? shopInfo.shopName : '门店详情'}}" color="#ffffff" background="transparent" bindback="handleBack"></navigation-bar>
|
||||
<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">
|
||||
<view class="shop-hero">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="我的收藏" color="#2d2430" background="#fff7f8" bindback="handleBack"></navigation-bar>
|
||||
<navigation-bar title="我的收藏" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<view class="page-shell wishlist-page">
|
||||
<view class="page-content">
|
||||
|
||||
Reference in New Issue
Block a user