|
|
@@ -2,6 +2,7 @@
|
|
|
<view class="me-page app-content">
|
|
|
<block v-if="isLoggedIn">
|
|
|
<view class="page-hero">
|
|
|
+ <view class="status-space" :style="{ height: statusBarHeight + 'px' }"></view>
|
|
|
<view class="hero-panel">
|
|
|
<view class="profile-card">
|
|
|
<view class="profile-header-row">
|
|
|
@@ -47,10 +48,12 @@
|
|
|
<view class="finance-col" v-if="lookMoney == 1">
|
|
|
<view class="finance-label">账户余额(元)</view>
|
|
|
<view class="finance-amount">¥{{ moneyFormat(myInfo.balance) }}</view>
|
|
|
- <view class="finance-actions">
|
|
|
- <view class="pill-btn" @click="pageTo({ url: '/pagesStore/me/shopYeChange' })">变动明细</view>
|
|
|
- <view class="pill-btn" @click="pageTo({ url: '/pagesStore/me/withdraw' })">提现记录</view>
|
|
|
- <view class="pill-btn pill-btn-solid" v-if="Number(myInfo.txBalance) > 0" @click="checkToApplyCash">提现</view>
|
|
|
+ <view class="finance-actions balance-actions">
|
|
|
+ <view class="balance-action-row">
|
|
|
+ <view class="pill-btn" @click="pageTo({ url: '/pagesStore/me/shopYeChange' })">变动明细</view>
|
|
|
+ <view class="pill-btn" @click="pageTo({ url: '/pagesStore/me/withdraw' })">提现记录</view>
|
|
|
+ </view>
|
|
|
+ <view class="pill-btn pill-btn-solid balance-withdraw-btn" v-if="Number(myInfo.txBalance) > 0" @click="checkToApplyCash">提现</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -92,6 +95,7 @@
|
|
|
<block v-else>
|
|
|
<view class="guest-page">
|
|
|
<view class="guest-hero">
|
|
|
+ <view class="status-space" :style="{ height: statusBarHeight + 'px' }"></view>
|
|
|
<view class="guest-hero-inner">
|
|
|
<text class="guest-hero-title">我的</text>
|
|
|
<text class="guest-hero-desc">登录后管理门店</text>
|
|
|
@@ -258,6 +262,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
constant: this.$constant,
|
|
|
+ statusBarHeight: 0,
|
|
|
myInfo: {},
|
|
|
version: "1.0.0",
|
|
|
lookMoney: 0,
|
|
|
@@ -304,6 +309,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad () {
|
|
|
+ this.setStatusBarHeight();
|
|
|
// #ifdef APP-PLUS
|
|
|
if (plus.runtime.version) {
|
|
|
this.version = plus.runtime.version;
|
|
|
@@ -315,6 +321,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
iconSrc,
|
|
|
+ setStatusBarHeight () {
|
|
|
+ try {
|
|
|
+ const systemInfo = uni.getSystemInfoSync();
|
|
|
+ this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
|
+ } catch (e) {
|
|
|
+ this.statusBarHeight = 0;
|
|
|
+ }
|
|
|
+ },
|
|
|
goLogin () {
|
|
|
uni.removeStorageSync("manualLogout");
|
|
|
this.$util.pageTo({ url: "/admin/home/login" });
|
|
|
@@ -514,10 +528,10 @@ export default {
|
|
|
overflow: hidden;
|
|
|
background: linear-gradient(
|
|
|
180deg,
|
|
|
- #a8d8bc 0%,
|
|
|
- #b8e0c8 22%,
|
|
|
- #c8e9d6 48%,
|
|
|
- #daf0e4 76%,
|
|
|
+ #5db88a 0%,
|
|
|
+ #7acea7 35%,
|
|
|
+ #8ddcb7 58%,
|
|
|
+ #b4e5cd 76%,
|
|
|
#f2f7f4 100%
|
|
|
);
|
|
|
}
|
|
|
@@ -539,6 +553,21 @@ export default {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
+/* #ifdef APP-PLUS */
|
|
|
+.page-hero {
|
|
|
+ overflow: visible;
|
|
|
+}
|
|
|
+
|
|
|
+.page-hero::after {
|
|
|
+ bottom: -150upx;
|
|
|
+ height: 260upx;
|
|
|
+}
|
|
|
+/* #endif */
|
|
|
+
|
|
|
+.status-space {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
.hero-panel {
|
|
|
position: relative;
|
|
|
z-index: 1;
|
|
|
@@ -662,6 +691,20 @@ export default {
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
+/* #ifdef MP-WEIXIN */
|
|
|
+.quick-action-icon {
|
|
|
+ transform: translateY(40upx);
|
|
|
+}
|
|
|
+
|
|
|
+.quick-action + .quick-action {
|
|
|
+ margin-left: 60upx;
|
|
|
+}
|
|
|
+
|
|
|
+.quick-action-text {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
+/* #endif */
|
|
|
+
|
|
|
.expire-card {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
@@ -812,6 +855,25 @@ export default {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
+.balance-actions {
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-start;
|
|
|
+ justify-content: flex-start;
|
|
|
+}
|
|
|
+
|
|
|
+.balance-action-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.balance-action-row .pill-btn + .pill-btn {
|
|
|
+ margin-left: 12upx;
|
|
|
+}
|
|
|
+
|
|
|
+.balance-withdraw-btn {
|
|
|
+ margin-top: 14upx;
|
|
|
+}
|
|
|
+
|
|
|
.finance-col:not(.cash-col) .finance-actions .pill-btn {
|
|
|
font-size: 24upx;
|
|
|
}
|