mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:03:26 +08:00
【优化】页面设计自定义前端效果增加【返回上一级】【返回首页】按钮,顶部标题从商城名称,调整为页面设计名称。
This commit is contained in:
@@ -6,7 +6,15 @@
|
|||||||
<!--无网络组件-->
|
<!--无网络组件-->
|
||||||
<u-no-network></u-no-network>
|
<u-no-network></u-no-network>
|
||||||
<!--头部组件-->
|
<!--头部组件-->
|
||||||
<u-navbar leftIcon="search" :title="appTitle" safeAreaInsetTop fixed placeholder @leftClick="goSearch"></u-navbar>
|
<u-navbar :title="homeTitle" safeAreaInsetTop fixed placeholder>
|
||||||
|
<view class="coreshop-navbar-left-slot" slot="left">
|
||||||
|
<u-icon name="arrow-left" size="19" @click="goNavigateBack"></u-icon>
|
||||||
|
<u-line direction="column" :hairline="false" length="16" margin="0 8px"></u-line>
|
||||||
|
<u-icon name="home" size="22" @click="goHome"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view slot="right">
|
||||||
|
</view>
|
||||||
|
</u-navbar>
|
||||||
<!--首页模块化组合组件-->
|
<!--首页模块化组合组件-->
|
||||||
<coreshop-page :coreshopdata="pageData"></coreshop-page>
|
<coreshop-page :coreshopdata="pageData"></coreshop-page>
|
||||||
<!--版权组件-->
|
<!--版权组件-->
|
||||||
@@ -72,10 +80,6 @@
|
|||||||
this.$store.commit('userInfo', val);
|
this.$store.commit('userInfo', val);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
appTitle() {
|
|
||||||
this.homeTitle = this.$store.state.config.shopName;
|
|
||||||
return this.homeTitle || '';
|
|
||||||
},
|
|
||||||
// 获取店铺联系人手机号
|
// 获取店铺联系人手机号
|
||||||
shopMobile() {
|
shopMobile() {
|
||||||
return this.$store.state.config.shopMobile || 0;
|
return this.$store.state.config.shopMobile || 0;
|
||||||
@@ -133,6 +137,7 @@
|
|||||||
this.$u.api.getPageConfig({ code: this.pageCode }).then(res => {
|
this.$u.api.getPageConfig({ code: this.pageCode }).then(res => {
|
||||||
if (res.status == true) {
|
if (res.status == true) {
|
||||||
this.pageData = res.data.items;
|
this.pageData = res.data.items;
|
||||||
|
this.homeTitle = res.data.name;
|
||||||
}
|
}
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|||||||
Reference in New Issue
Block a user