icon样式优化
parent
14748d12da
commit
5414b98e4a
|
|
@ -10,7 +10,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { common_styles_computer } from '@/common/js/common/common.js';
|
||||
import { common_styles_computer, common_img_computer } from '@/common/js/common/common.js';
|
||||
export default {
|
||||
props: {
|
||||
propValue: {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view class="iconfont-container" :class="propClass">
|
||||
<view class="iconfont-container" :class="propClass" :style="'display:'+propContainerDisplay+';'">
|
||||
<text class="iconfont" :class="name" :style="[{ color: color }, { 'font-size': size }]" @tap="$emit('click', $event)"></text>
|
||||
</view>
|
||||
</template>
|
||||
|
|
@ -23,6 +23,10 @@
|
|||
type: String,
|
||||
default: '',
|
||||
},
|
||||
propContainerDisplay: {
|
||||
type: String,
|
||||
default: 'inline-block',
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -32,10 +36,6 @@
|
|||
/* @/static/icon/ */
|
||||
@import url('@/static/icon/iconfont.css');
|
||||
/* @import url('https://at.alicdn.com/t/c/font_4227145_kbr2f9jt68b.css'); */
|
||||
|
||||
.iconfont-container {
|
||||
display: inline-block;
|
||||
}
|
||||
.iconfont {
|
||||
display: flex;
|
||||
font-size: inherit;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
}
|
||||
|
||||
// 设置顶部导航的默认颜色
|
||||
app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
|
||||
this.set_navigation_bar_color();
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
|
|
@ -89,6 +89,9 @@
|
|||
|
||||
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
|
||||
params['is_cache'] = 0;
|
||||
|
||||
// 设置顶部导航的默认颜色
|
||||
this.set_navigation_bar_color();
|
||||
}
|
||||
} else {
|
||||
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
|
||||
|
|
@ -134,6 +137,9 @@
|
|||
uni.setNavigationBarTitle({
|
||||
title: this.data.name
|
||||
});
|
||||
|
||||
// 设置顶部导航的默认颜色
|
||||
this.set_navigation_bar_color();
|
||||
}
|
||||
|
||||
// 分享菜单处理
|
||||
|
|
@ -163,6 +169,11 @@
|
|||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 状态栏设置
|
||||
set_navigation_bar_color() {
|
||||
app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style></style>
|
||||
|
|
@ -452,9 +452,7 @@
|
|||
}
|
||||
|
||||
// 设置顶部导航的默认颜色
|
||||
if(this.data_mode == 3) {
|
||||
app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data_list, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
|
||||
}
|
||||
this.set_navigation_bar_color();
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
|
|
@ -500,6 +498,9 @@
|
|||
|
||||
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
|
||||
params['is_cache'] = 0;
|
||||
|
||||
// 设置顶部导航的默认颜色
|
||||
this.set_navigation_bar_color();
|
||||
}
|
||||
} else {
|
||||
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
|
||||
|
|
@ -565,6 +566,9 @@
|
|||
// 存储缓存
|
||||
uni.setStorageSync(cache_key, upd_data);
|
||||
|
||||
// 设置顶部导航的默认颜色
|
||||
this.set_navigation_bar_color();
|
||||
|
||||
// 弹屏广告插件处理
|
||||
this.plugins_popupscreen_handle();
|
||||
|
||||
|
|
@ -606,6 +610,13 @@
|
|||
});
|
||||
},
|
||||
|
||||
// 设置顶部导航的默认颜色
|
||||
set_navigation_bar_color() {
|
||||
if(this.data_mode == 3) {
|
||||
app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data_list, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
|
||||
}
|
||||
},
|
||||
|
||||
// 初始化返回公共处理
|
||||
init_result_common_handle() {
|
||||
var theme_view = app.globalData.get_theme_value_view();
|
||||
|
|
|
|||
Loading…
Reference in New Issue