diff --git a/App.vue b/App.vue index f277e0f0..29c91b1b 100644 --- a/App.vue +++ b/App.vue @@ -85,16 +85,6 @@ version: 'v3.0.0', // 货币价格符号 currency_symbol: '¥', - // 主题类型 主题颜色 - // 黄色 yellow #f6c133 - // 红色 red #ff0036 - // 黑色 black #333333 - // 绿色 green #20a53a - // 橙色 orange #fe6f04 - // 蓝色 blue #1677ff - // 棕色 brown #8B4513 - // 紫色 purple #623cec - default_theme: 'yellow', }, /** @@ -1292,8 +1282,9 @@ // 根据配置的静态url地址+插件标识符 return this.data.static_url + 'static/plugins/images/' + type + '/'; } else { + var theme = this.get_theme_value(); // 根据配置的静态url地址+主题标识+参数类型组合远程静态文件地址 - return this.data.static_url + 'static/app/' + this.data.default_theme + '/' + type + '/'; + return this.data.static_url + 'static/app/' + theme + '/' + type + '/'; } }, @@ -1817,7 +1808,18 @@ }, // 获取主题 get_theme_value() { - return uni.getStorageSync('theme') || 'yellow' + + // 主题类型 主题颜色 + // 黄色 yellow #f6c133 + // 红色 red #ff0036 + // 黑色 black #333333 + // 绿色 green #20a53a + // 橙色 orange #fe6f04 + // 蓝色 blue #1677ff + // 棕色 brown #8B4513 + // 紫色 purple #623cec + var default_theme = 'brown'; + return uni.getStorageSync('theme') || default_theme; }, // 设置主题 diff --git a/components/iconfont/iconfont.vue b/components/iconfont/iconfont.vue index 78268e25..de50ec80 100644 --- a/components/iconfont/iconfont.vue +++ b/components/iconfont/iconfont.vue @@ -24,8 +24,8 @@ \ No newline at end of file diff --git a/static/goods-bg/goods-black.png b/static/goods-bg/goods-black.png new file mode 100644 index 00000000..bacf142d Binary files /dev/null and b/static/goods-bg/goods-black.png differ diff --git a/static/goods-bg/goods-brown.png b/static/goods-bg/goods-brown.png new file mode 100644 index 00000000..dd86a6e7 Binary files /dev/null and b/static/goods-bg/goods-brown.png differ diff --git a/static/goods-bg/goods-bule.png b/static/goods-bg/goods-bule.png new file mode 100644 index 00000000..ec3f360c Binary files /dev/null and b/static/goods-bg/goods-bule.png differ diff --git a/static/goods-bg/goods-green.png b/static/goods-bg/goods-green.png new file mode 100644 index 00000000..a1960ca3 Binary files /dev/null and b/static/goods-bg/goods-green.png differ diff --git a/static/goods-bg/goods-orange.png b/static/goods-bg/goods-orange.png new file mode 100644 index 00000000..a6ab0c44 Binary files /dev/null and b/static/goods-bg/goods-orange.png differ diff --git a/static/goods-bg/goods-purple.png b/static/goods-bg/goods-purple.png new file mode 100644 index 00000000..15276ef2 Binary files /dev/null and b/static/goods-bg/goods-purple.png differ diff --git a/static/goods-bg/goods-red.png b/static/goods-bg/goods-red.png new file mode 100644 index 00000000..97d3c9bd Binary files /dev/null and b/static/goods-bg/goods-red.png differ diff --git a/static/goods-bg/goods-yellow.png b/static/goods-bg/goods-yellow.png new file mode 100644 index 00000000..5fa9b355 Binary files /dev/null and b/static/goods-bg/goods-yellow.png differ