多商户店铺详情顶部返回按钮处理

This commit is contained in:
gongfuxiang
2025-08-11 23:46:41 +08:00
parent 0ef6eb76b6
commit 4669c71eee
2 changed files with 15 additions and 6 deletions

13
App.vue
View File

@ -7,10 +7,10 @@
data: {
// 基础配置
// 数据接口请求地址
request_url:'http://shopxo.com/',
request_url:'https://new.shopxo.vip/',
// 静态资源地址如系统根目录不在public目录下面请在静态地址后面加public目录、如https://d1.shopxo.vip/public/
static_url:'http://shopxo.com/',
static_url:'https://new.shopxo.vip/',
// 系统类型默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立
system_type: 'default',
@ -121,13 +121,16 @@
// 首页开启地理位置选择0否, 1是优先级高于logo展示
is_home_location_choice: 0,
// 门店详情顶部导航返回按钮0否, 1是
// 多商户 - 店铺详情顶部导航返回按钮0否, 1是
is_shop_top_nav_back: 1,
// 多门店 - 门店详情顶部导航返回按钮0否, 1是
is_realstore_top_nav_back: 1,
// 门店详情搜索框内扫码加购0否, 1是
// 多门店 - 门店详情搜索框内扫码加购0否, 1是
is_realstore_top_search_scan: 1,
// 门店详情阻止跳转到商品详情页面去0否, 1是
// 多门店 - 门店详情阻止跳转到商品详情页面去0否, 1是
is_realstore_forbid_to_goods_detail: 0,
// 钱包插件货币符号使用当前 currency_symbol 数据的固定值0否, 1是

View File

@ -2,7 +2,7 @@
<view :class="theme_view">
<!-- 搜索 -->
<view class="flex-row jc-sb align-c padding-main bg-white oh bs-bb z-i search-content" :style="'padding-top:' + (status_bar_height > 0 ? status_bar_height + 5 : 0)+'px;'">
<view @tap="top_nav_left_back_event" class="dis-inline-block padding-right-sm">
<view v-if="top_nav_left_back_status == 1" @tap="top_nav_left_back_event" class="dis-inline-block padding-right-sm">
<iconfont name="icon-arrow-left" size="40rpx" propClass="pr top-xs z-i"></iconfont>
</view>
<view class="flex-1 wh-auto">
@ -219,6 +219,12 @@
"status": 0,
"count": 0
},
// 左侧返回按钮
top_nav_left_back_status: app.globalData.data.is_shop_top_nav_back || 0,
// #ifdef MP-TOUTIAO
top_nav_left_back_status : 0,
// #endif
// 状态栏高度
status_bar_height: 0,
// #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU || MP-ALIPAY || APP
status_bar_height: parseInt(app.globalData.get_system_info('statusBarHeight', 0, true)),