分类细节优化

master
gongfuxiang 2022-07-09 17:56:54 +08:00
parent c8cd23d3d2
commit 7f6e67e55c
4 changed files with 15 additions and 11 deletions

10
App.vue
View File

@ -36,7 +36,9 @@
// 0 , 1
is_goods_bottom_opt_cart: 1,
// 0 , 1
is_realstore_top_nav_back: 1,
is_realstore_top_nav_back: 1,
// 使0 , 1 icon
category_goods_model_icon_type: 0,
// tabbar
tabbar_pages: [
"/pages/index/index",
@ -45,16 +47,16 @@
"/pages/user/user"
],
//
request_url: 'http://shopxo.com/',
request_url: 'https://d1.shopxo.vip/',
// publicpublichttps://d1.shopxo.vip/public/
static_url: 'http://shopxo.com/',
static_url: 'https://d1.shopxo.vip/',
// default
system_type: 'default',
//
application_title: "ShopXO",
application_describe: "ShopXO开源商城、MIT协议、可商用、可二次开发、满足99%电商运营需求",
//
version: "v2.2.8",
version: "v2.2.9",
//
currency_symbol: "¥",
//

View File

@ -32,7 +32,7 @@
<block v-for="(item, index) in category_list" :key="index">
<view :class="'text-size-sm item tc cr-base cp dis-inline-block ' + (nav_active_index == index ? 'cr-main border-color-main fw-b' : '')" :data-index="index" :data-itemtwoindex="-1" :data-itemthreeindex="-1" @tap="nav_event">
<view :class="'icon-content circle br auto ' + (nav_active_index == index ? 'border-color-main' : '')">
<image :src="((item.icon || null) == null) ? common_static_url+'images.png' : item.icon" mode="aspectFit" class="icon dis-block auto wh-auto ht-auto circle"></image>
<image :src="((item[category_goods_model_icon_field] || null) == null) ? common_static_url+'images.png' : item[category_goods_model_icon_field]" mode="aspectFit" class="icon dis-block auto wh-auto ht-auto circle"></image>
</view>
<view class="margin-top-xs">{{item.name}}</view>
</view>
@ -221,7 +221,9 @@
//
share_info: {},
//
is_single_page: app.globalData.is_current_single_page() || 0
is_single_page: app.globalData.is_current_single_page() || 0,
//
category_goods_model_icon_field: app.globalData.data.category_goods_model_icon_type == 0 ? 'big_images' : 'icon'
};
},

View File

@ -68,7 +68,7 @@
<text>品牌</text>
<text class="arrow-bottom pa cr-grey cp" v-if="search_map_list.brand_list.length > 3" @tap="more_event" data-value="brand_list"></text>
</view>
<view v-if="(search_map_info.brand || null) != null" class="map-content brand-info oh margin-top-lg">
<view v-if="(search_map_info.brand || null) != null && (params.brand || null) != null" class="map-content brand-info oh margin-top-lg">
<image v-if="(search_map_info.brand.logo || null) != null" :src="search_map_info.brand.logo" mode="aspectFit" class="fl"></image>
<view v-else class="info-logo-empty tc fl">{{search_map_info.brand.name}}</view>
<view class="info-right fr">
@ -305,12 +305,12 @@
//
var category_id = this.params.category_id || 0;
var brand_id = this.params.brand_id || 0;
var brand = this.params.brand || 0;
var keywords = this.params.keywords || '';
this.setData({
share_info: {
path: '/pages/goods-search/goods-search',
query: 'category_id=' + category_id + '&brand_id=' + brand_id + '&keywords=' + keywords
query: 'category_id=' + category_id + '&brand=' + brand + '&keywords=' + keywords
}
});
@ -414,7 +414,7 @@
//
post_data['category_id'] = params['category_id'] || 0;
post_data['brand_id'] = params['brand_id'] || 0;
post_data['brand'] = params['brand'] || 0;
//
var temp_field = this.map_fields_list;

View File

@ -13,7 +13,7 @@
<view v-if="(brand_list || null) != null && brand_list.length > 0" class="data-list padding-horizontal-main padding-top-main oh">
<block v-for="(item, index) in brand_list" :key="index">
<view v-if="(item.is_not_show || 0) == 0" class="item border-radius-main bg-white oh spacing-mb">
<navigator :url="'/pages/goods-search/goods-search?brand_id=' + item.id" hover-class="none">
<navigator :url="'/pages/goods-search/goods-search?brand=' + item.id" hover-class="none">
<image :src="item.logo" mode="aspectFit"></image>
<view class="padding-main tc">
<view class="single-text fw-b cr-base">{{item.name}}</view>