新增门店详情顶部返回按钮开关

master
gongfuxiang 2022-04-21 12:07:36 +08:00
parent 3b2ea1c526
commit 7bf303d2d3
2 changed files with 8 additions and 4 deletions

View File

@ -36,7 +36,9 @@
// 使0 , 1
is_share_use_image: 1,
// 0 , 1
is_goods_bottom_opt_cart: 1,
is_goods_bottom_opt_cart: 1,
// 0 , 1
is_realstore_top_nav_back: 1,
// tabbar
tabbar_pages: [
"/pages/index/index",

View File

@ -8,12 +8,12 @@
<view v-if="is_single_page == 0" class="header-top padding-horizontal-main" :style="'padding-top:'+(status_bar_height+8)+'px;'">
<!-- 返回 -->
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-TOUTIAO || H5 || APP -->
<view class="nav-back dis-inline-block round tc va-m" @tap="top_nav_left_back_event">
<view v-if="is_realstore_top_nav_back == 1" class="nav-back dis-inline-block round tc va-m" @tap="top_nav_left_back_event">
<uni-icons type="arrowleft" size="20" color="#fff"></uni-icons>
</view>
<!-- #endif -->
<!-- 搜索 -->
<view class="nav-search fr va-m">
<view :class="'fr va-m '+(is_realstore_top_nav_back == 1 ? 'nav-search' : 'wh-auto')">
<!-- #ifndef H5 || MP-KUAISHOU -->
<component-search @onsearch="search_button_event" @onicon="search_icon_event" :propIsIconOnEvent="true" :propIsOnEvent="true" :propIsRequired="false" propIcon="scan" propIconColor="#fff" propPlaceholderClass="cr-grey" propTextColor="#fff" propPlaceholder="商品搜索" propBgColor="rgba(0, 0, 0, 0.1)" propBrColor="rgb(205 205 205 / 60%)"></component-search>
<!-- #endif -->
@ -255,7 +255,9 @@
//
share_info: {},
//
is_single_page: app.globalData.is_current_single_page() || 0
is_single_page: app.globalData.is_current_single_page() || 0,
//
is_realstore_top_nav_back: app.globalData.data.is_realstore_top_nav_back || 0,
};
},