多商户详情全站搜索新增开关
parent
a12e3dd801
commit
9948b8aa8f
4
App.vue
4
App.vue
|
|
@ -42,7 +42,9 @@
|
|||
// 门店详情顶部导航返回按钮(0 否, 1 是)
|
||||
is_realstore_top_nav_back: 1,
|
||||
// 门店详情搜索框内扫码加购(0否, 1是)
|
||||
is_realstore_top_search_scan: 1,
|
||||
is_realstore_top_search_scan: 1,
|
||||
// 多商户详情页面展示全站搜索(0否, 1是)
|
||||
is_shop_whole_search: 1,
|
||||
// 开启浮动客服、前提是后台需要开启客服功能(0 否, 1 是)
|
||||
is_online_service_fixed: 1,
|
||||
// 分类页面商品列表模式一级分类使用图标类型(0 大图片, 1 icon图标)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
line-height: 52rpx;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
}
|
||||
.header-shop-whole-search input {
|
||||
width: calc(100% - 168rpx);
|
||||
}
|
||||
.search-btn {
|
||||
top: 20rpx;
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
<!-- 头部 -->
|
||||
<block v-if="(data.is_header || 0) == 1">
|
||||
<!-- 搜索 -->
|
||||
<view class="search padding-main bg-white pr oh br-b">
|
||||
<input class="bg-white fl padding-left-xxl text-size-xs round border-color-main" type="done" placeholder="请输入您搜索的商品关键字" :value="search_keywords_value || ''" placeholder-class="cr-grey" @input="search_keywords_event">
|
||||
<view class="search-btn pa">
|
||||
<button class="bg-main br-main cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" :data-value="'/pages/plugins/shop/search/search?shop_id=' + shop.id + '&'">搜本店</button>
|
||||
<button class="bg-main-pair br-main-pair cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" data-value="/pages/goods-search/goods-search?">搜全站</button>
|
||||
</view>
|
||||
<view :class="'padding-main bg-white pr oh br-b search '+(is_shop_whole_search == 1 ? '' : 'header-shop-whole-search')">
|
||||
<input class="bg-white fl padding-left-xxl text-size-xs round border-color-main" type="done" placeholder="请输入您搜索的商品关键字" :value="search_keywords_value || ''" placeholder-class="cr-grey" @input="search_keywords_event">
|
||||
<view class="search-btn pa">
|
||||
<button class="bg-main br-main cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" :data-value="'/pages/plugins/shop/search/search?shop_id='+shop.id+'&'">{{is_shop_whole_search == 1 ? '搜本店' : '搜索'}}</button>
|
||||
<button v-if="is_shop_whole_search == 1" class="bg-main-pair br-main-pair cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" data-value="/pages/goods-search/goods-search?">搜全站</button>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 顶部 -->
|
||||
<view class="header plugins-shop-data-list bg-white oh">
|
||||
|
|
@ -129,7 +129,8 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
common_static_url: common_static_url,
|
||||
common_static_url: common_static_url,
|
||||
is_shop_whole_search: app.globalData.data.is_shop_whole_search || 0,
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: '',
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@
|
|||
border-style: solid;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.header-shop-whole-search input {
|
||||
width: calc(100% - 168rpx);
|
||||
}
|
||||
.search-btn {
|
||||
top: 20rpx;
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<view>
|
||||
<view v-if="(shop || null) != null" class="pr">
|
||||
<!-- 搜索 -->
|
||||
<view class="search padding-main bg-white pr oh br-b">
|
||||
<view :class="'padding-main bg-white pr oh br-b search '+(is_shop_whole_search == 1 ? '' : 'header-shop-whole-search')">
|
||||
<input class="bg-white fl padding-left-xxl text-size-xs round border-color-main" type="done" placeholder="请输入您搜索的商品关键字" :value="search_keywords_value || ''" placeholder-class="cr-grey" @input="search_keywords_event">
|
||||
<view class="search-btn pa">
|
||||
<button class="bg-main br-main cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" :data-value="'/pages/plugins/shop/search/search?shop_id='+shop.id+'&'">搜本店</button>
|
||||
<button class="bg-main-pair br-main-pair cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" data-value="/pages/goods-search/goods-search?">搜全站</button>
|
||||
<button class="bg-main br-main cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" :data-value="'/pages/plugins/shop/search/search?shop_id='+shop.id+'&'">{{is_shop_whole_search == 1 ? '搜本店' : '搜索'}}</button>
|
||||
<button v-if="is_shop_whole_search == 1" class="bg-main-pair br-main-pair cr-white round text-size-xs" type="default" size="mini" hover-class="none" @tap="search_button_event" data-value="/pages/goods-search/goods-search?">搜全站</button>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 顶部 -->
|
||||
|
|
@ -171,7 +171,8 @@
|
|||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: '',
|
||||
currency_symbol: app.globalData.data.currency_symbol,
|
||||
currency_symbol: app.globalData.data.currency_symbol,
|
||||
is_shop_whole_search: app.globalData.data.is_shop_whole_search || 0,
|
||||
params: null,
|
||||
user: null,
|
||||
data_base: null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue