|
@@ -2,7 +2,6 @@
|
|
|
<view class="me-page app-content">
|
|
<view class="me-page app-content">
|
|
|
<block v-if="isLoggedIn">
|
|
<block v-if="isLoggedIn">
|
|
|
<view class="page-hero">
|
|
<view class="page-hero">
|
|
|
- <view class="status-space" :style="{ height: statusBarHeight + 'px' }"></view>
|
|
|
|
|
<view class="hero-panel">
|
|
<view class="hero-panel">
|
|
|
<view class="profile-card">
|
|
<view class="profile-card">
|
|
|
<view class="profile-header-row">
|
|
<view class="profile-header-row">
|
|
@@ -18,15 +17,12 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="quick-actions">
|
|
<view class="quick-actions">
|
|
|
- <view class="quick-action" @click.stop="changeShop">
|
|
|
|
|
- <image class="quick-action-icon" :src="iconSrc('my-switch-shop')" mode="aspectFit" />
|
|
|
|
|
- <text class="quick-action-text">切换门店</text>
|
|
|
|
|
- </view>
|
|
|
|
|
<view class="quick-action" @click.stop="suggest">
|
|
<view class="quick-action" @click.stop="suggest">
|
|
|
<image class="quick-action-icon" :src="iconSrc('my-service')" mode="aspectFit" />
|
|
<image class="quick-action-icon" :src="iconSrc('my-service')" mode="aspectFit" />
|
|
|
<text class="quick-action-text">客服</text>
|
|
<text class="quick-action-text">客服</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -35,6 +31,26 @@
|
|
|
|
|
|
|
|
<view class="content-wrap">
|
|
<view class="content-wrap">
|
|
|
|
|
|
|
|
|
|
+ <!-- 采购账号常用功能:由工作台头部迁入 -->
|
|
|
|
|
+ <view class="function-grid">
|
|
|
|
|
+ <view class="function-item" @click="pageTo({ url: '/admin/shop/myShop' })">
|
|
|
|
|
+ <image class="function-icon" :src="iconSrc('store')" mode="aspectFit" />
|
|
|
|
|
+ <text class="function-text">切换门店</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="function-item" @click="pageTo({ url: '/admin/staff/list' })">
|
|
|
|
|
+ <image class="function-icon" :src="iconSrc('staff')" mode="aspectFit" />
|
|
|
|
|
+ <text class="function-text">我的员工</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="function-item" @click="pageTo({ url: '/admin/shop/add?id=' + getLoginInfo.shopId })">
|
|
|
|
|
+ <image class="function-icon" :src="iconSrc('stock-my-address')" mode="aspectFit" />
|
|
|
|
|
+ <text class="function-text">我的地址</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="function-item" @click="pageTo({ url: '/admin/stat/cgItem' })">
|
|
|
|
|
+ <image class="function-icon" :src="iconSrc('stock-purchase-stats')" mode="aspectFit" />
|
|
|
|
|
+ <text class="function-text">采购统计</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
<view class="menu-card">
|
|
<view class="menu-card">
|
|
|
<view class="menu-row" v-for="item in menuList" :key="item.key" @click="handleMenuTap(item)">
|
|
<view class="menu-row" v-for="item in menuList" :key="item.key" @click="handleMenuTap(item)">
|
|
|
<view class="menu-left">
|
|
<view class="menu-left">
|
|
@@ -231,10 +247,10 @@ export default {
|
|
|
menuList: [
|
|
menuList: [
|
|
|
{ key: "modifyName", name: "修改名称", icon: "modify_shop" },
|
|
{ key: "modifyName", name: "修改名称", icon: "modify_shop" },
|
|
|
{ key: "address", name: "修改门店", icon: "modify_shop" },
|
|
{ key: "address", name: "修改门店", icon: "modify_shop" },
|
|
|
- { key: "book", name: "使用教程", icon: "my-book" },
|
|
|
|
|
- { key: "lakala", name: "收款账户管理", icon: "pay-code" },
|
|
|
|
|
|
|
+ { key: "deletedWholesaler", name: "已删批发店", icon: "store-delete" },
|
|
|
|
|
+ { key: "dimission", name: "申请离职", icon: "staff" },
|
|
|
{ key: "password", name: "密码修改", icon: "my-password" },
|
|
{ key: "password", name: "密码修改", icon: "my-password" },
|
|
|
- { key: "cashSet", name: "提现账号", icon: "my-bell" },
|
|
|
|
|
|
|
+ { key: "mall", name: "零售商城", icon: "store" },
|
|
|
{ key: "logout", name: "退出登录", icon: "my-logout" }
|
|
{ key: "logout", name: "退出登录", icon: "my-logout" }
|
|
|
]
|
|
]
|
|
|
};
|
|
};
|
|
@@ -330,6 +346,12 @@ export default {
|
|
|
this.$util.pageTo({ url: "/admin/lakala/lakala" });
|
|
this.$util.pageTo({ url: "/admin/lakala/lakala" });
|
|
|
} else if (item.key == "password") {
|
|
} else if (item.key == "password") {
|
|
|
this.$util.pageTo({ url: "/admin/shop/password" });
|
|
this.$util.pageTo({ url: "/admin/shop/password" });
|
|
|
|
|
+ } else if (item.key == "mall") {
|
|
|
|
|
+ this.$util.pageTo({ url: "/pagesPurchase/open" });
|
|
|
|
|
+ } else if (item.key == "deletedWholesaler") {
|
|
|
|
|
+ this.$util.pageTo({ url: "/pagesPurchase/pb" });
|
|
|
|
|
+ } else if (item.key == "dimission") {
|
|
|
|
|
+ this.$util.pageTo({ url: "/admin/staff/dimission" });
|
|
|
} else if (item.key == "cashSet") {
|
|
} else if (item.key == "cashSet") {
|
|
|
this.$util.pageTo({ url: "/pagesStore/me/cashSet" });
|
|
this.$util.pageTo({ url: "/pagesStore/me/cashSet" });
|
|
|
} else if (item.key == "logout") {
|
|
} else if (item.key == "logout") {
|
|
@@ -373,9 +395,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- changeShop () {
|
|
|
|
|
- this.$util.pageTo({ url: "/admin/shop/myShop" });
|
|
|
|
|
- },
|
|
|
|
|
inAmountFn () {
|
|
inAmountFn () {
|
|
|
this.inAmountRemark = "";
|
|
this.inAmountRemark = "";
|
|
|
this.inAmountShow = true;
|
|
this.inAmountShow = true;
|
|
@@ -627,8 +646,9 @@ export default {
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
background: transparent;
|
|
background: transparent;
|
|
|
- align-self: center;
|
|
|
|
|
- margin-right:20upx;
|
|
|
|
|
|
|
+ align-self: flex-start;
|
|
|
|
|
+ margin-top: 14upx;
|
|
|
|
|
+ margin-right: 20upx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.quick-action {
|
|
.quick-action {
|
|
@@ -644,8 +664,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.quick-action-icon {
|
|
.quick-action-icon {
|
|
|
- width: 48upx;
|
|
|
|
|
- height: 48upx;
|
|
|
|
|
|
|
+ width: 64upx;
|
|
|
|
|
+ height: 64upx;
|
|
|
display: block;
|
|
display: block;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -663,7 +683,7 @@ export default {
|
|
|
|
|
|
|
|
/* #ifdef MP-WEIXIN */
|
|
/* #ifdef MP-WEIXIN */
|
|
|
.quick-action-icon {
|
|
.quick-action-icon {
|
|
|
- transform: translateY(40upx);
|
|
|
|
|
|
|
+ transform: translateY(2upx);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.quick-action + .quick-action {
|
|
.quick-action + .quick-action {
|
|
@@ -757,6 +777,43 @@ export default {
|
|
|
padding: 4upx 24upx 28upx;
|
|
padding: 4upx 24upx 28upx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.function-grid {
|
|
|
|
|
+ margin-top: 0;
|
|
|
|
|
+ min-height: 166upx;
|
|
|
|
|
+ padding: 30upx 12upx 24upx;
|
|
|
|
|
+ border-radius: 26upx;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ box-shadow: 0 8upx 24upx rgba(24, 37, 30, 0.05);
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: row;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: space-around;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.function-item {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.function-icon {
|
|
|
|
|
+ width: 58upx;
|
|
|
|
|
+ height: 58upx;
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.function-text {
|
|
|
|
|
+ margin-top: 14upx;
|
|
|
|
|
+ color: #202325;
|
|
|
|
|
+ font-size: 24upx;
|
|
|
|
|
+ line-height: 32upx;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.finance-stack {
|
|
.finance-stack {
|
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
|
}
|
|
}
|