diff --git a/.local.config.js b/.local.config.js
new file mode 100644
index 0000000..28cf028
--- /dev/null
+++ b/.local.config.js
@@ -0,0 +1,43 @@
+// 本地调试配置示例文件
+// 复制此文件并重命名为 local.config.js 以使用自定义本地配置
+
+const localDevConfig = ({
+ '460': { // 制氧设备平台
+ uniacid: 460,
+ domain: 'https://xcx30.5g-quickapp.com/',
+ },
+ '576-xcx30.5g': { // 活性石灰装备
+ uniacid: 576,
+ domain: 'https://xcx30.5g-quickapp.com/',
+ },
+ '2285': { // 数码喷墨墨水
+ uniacid: 2285,
+ domain: 'https://xcx.aigc-quickapp.com/',
+ },
+ '2811': { // POCT检测分析平台
+ uniacid: 2811,
+ domain: 'https://xcx6.aigc-quickapp.com/',
+ },
+ '2724': { // 生物菌肥
+ uniacid: 2724,
+ domain: 'https://xcx.aigc-quickapp.com/',
+ },
+ '2505': { // 煤矿钻机
+ uniacid: 2505,
+ domain: 'https://xcx.aigc-quickapp.com/',
+ },
+ '2777': { // 养老服务
+ uniacid: 2777,
+ domain: 'https://xcx.aigc-quickapp.com/',
+ },
+ '1': { // 开发平台
+ uniacid: 1,
+ domain: 'https://dev.aigc-quickapp.com',
+ },
+ '1-test': { // 测试平台
+ uniacid: 1,
+ domain: 'https://test.aigc-quickapp.com',
+ },
+})['2811']; // 选择要使用的环境配置
+
+export default localDevConfig;
\ No newline at end of file
diff --git a/.local.config.js.example b/.local.config.js.example
index fd74a22..28cf028 100644
--- a/.local.config.js.example
+++ b/.local.config.js.example
@@ -6,18 +6,30 @@ const localDevConfig = ({
uniacid: 460,
domain: 'https://xcx30.5g-quickapp.com/',
},
+ '576-xcx30.5g': { // 活性石灰装备
+ uniacid: 576,
+ domain: 'https://xcx30.5g-quickapp.com/',
+ },
'2285': { // 数码喷墨墨水
uniacid: 2285,
domain: 'https://xcx.aigc-quickapp.com/',
- },
- '2724': { // 德龙生物肥料
+ },
+ '2811': { // POCT检测分析平台
+ uniacid: 2811,
+ domain: 'https://xcx6.aigc-quickapp.com/',
+ },
+ '2724': { // 生物菌肥
uniacid: 2724,
domain: 'https://xcx.aigc-quickapp.com/',
- },
+ },
+ '2505': { // 煤矿钻机
+ uniacid: 2505,
+ domain: 'https://xcx.aigc-quickapp.com/',
+ },
'2777': { // 养老服务
uniacid: 2777,
domain: 'https://xcx.aigc-quickapp.com/',
- },
+ },
'1': { // 开发平台
uniacid: 1,
domain: 'https://dev.aigc-quickapp.com',
@@ -26,6 +38,6 @@ const localDevConfig = ({
uniacid: 1,
domain: 'https://test.aigc-quickapp.com',
},
-})['2724']; // 选择要使用的环境配置
+})['2811']; // 选择要使用的环境配置
export default localDevConfig;
\ No newline at end of file
diff --git a/App.vue b/App.vue
index 7382b24..2625d3c 100644
--- a/App.vue
+++ b/App.vue
@@ -8,7 +8,7 @@
export default {
mixins: [auth],
- onLaunch: function(options) {
+ onLaunch: async function(options) {
// 方式:支持快应用,从url中query部分获取uniacid,或useragent中获取uniacid
if(options.query.uniacid){
uni.setStorageSync('uniacid', options.query.uniacid);
@@ -40,7 +40,7 @@
// #endif
// #ifdef H5
- if (uni.getSystemInfoSync().platform == 'ios') {
+ if (this.$util.getDeviceInfo().platform == 'ios') {
uni.setStorageSync('initUrl', location.href);
}
// #endif
@@ -61,7 +61,8 @@
// 主题风格
if (uni.getStorageSync('themeStyle')) {
- this.$store.commit('setThemeStyle', configExternal.loadThemeSync(uni.getStorageSync('themeStyle')));
+ const themeData = await configExternal.loadTheme(uni.getStorageSync('themeStyle'));
+ this.$store.commit('setThemeStyle', themeData);
this.$store.dispatch('themeColorSet');
}
diff --git a/common/js/config-external.js b/common/js/config-external.js
index 26cc8f1..c1edd73 100644
--- a/common/js/config-external.js
+++ b/common/js/config-external.js
@@ -14,7 +14,7 @@ export const langConfig = {
// 主题配置
export const themeConfig = {
// 主题列表
- themeList: ['default', 'red', 'green', 'blue'],
+ themeList: ['default', 'red', 'green', 'blue', 'pink', 'gold', 'purple', 'yellow', 'black'],
// 默认主题
defaultTheme: 'default'
};
@@ -98,28 +98,6 @@ class ConfigExternal {
return this.loadPromises[key];
}
- /**
- * 加载主题配置(同步方式)
- * @param {string} theme - 主题名称
- * @returns {object} - 主题配置
- */
- loadThemeSync(theme = themeConfig.defaultTheme) {
- if (this.loadedConfigs[`theme_${theme}`]) {
- return this.loadedConfigs[`theme_${theme}`];
- }
-
- try {
- // 动态加载主题配置
- const themeData = require(`@/common/js/style_color.js`)['default'][theme];
- console.log('sync themeData => ', themeData);
- this.loadedConfigs[`theme_${theme}`] = themeData;
- return themeData;
- } catch (error) {
- console.error(`加载主题 ${theme} 失败:`, error);
- return {};
- }
- }
-
/**
* 加载主题配置(异步方式)
* @param {string} theme - 主题名称
diff --git a/common/js/config.js b/common/js/config.js
index 4727bb0..992a535 100644
--- a/common/js/config.js
+++ b/common/js/config.js
@@ -43,19 +43,21 @@ let localDevConfig = { uniacid: 0, domain: defaultDomain };
// #ifndef PRODUCTION
// 尝试动态加载本地配置文件
-try {
- // 尝试从项目根目录加载本地配置文件
- // 使用相对路径的方式,确保在不同平台下都能正确解析
- let customConfig = require('@/.local.config.js').default;
- if (customConfig) {
- localDevConfig = customConfig;
+if (process?.env?.NODE_ENV === 'development') {
+ try {
+ // 尝试从项目根目录加载本地配置文件
+ // 使用相对路径的方式,确保在不同平台下都能正确解析
+ let customConfig = require('@/.local.config.js').default;
+ if (customConfig) {
+ localDevConfig = customConfig;
+ }
+ } catch (e) {
+ // 如果本地配置文件不存在或加载失败,保持使用默认配置
+ // 只在开发模式下输出提示信息
+ // #ifdef WEB
+ console.log('本地配置文件 .local.config.js 不存在,使用默认配置');
+ // #endif
}
-} catch (e) {
- // 如果本地配置文件不存在或加载失败,保持使用默认配置
- // 只在开发模式下输出提示信息
- // #ifdef WEB
- console.log('本地配置文件 .local.config.js 不存在,使用默认配置');
- // #endif
}
// #endif
diff --git a/common/js/diy.js b/common/js/diy.js
index 539e0fc..526d53f 100644
--- a/common/js/diy.js
+++ b/common/js/diy.js
@@ -1,7 +1,9 @@
import WxMap from 'common/js/map-wx-jssdk.js';
import Config from '@/common/js/config.js';
+import util from '@/common/js/util.js';
+
+let systemInfo = util.getDeviceInfo();
-let systemInfo = uni.getSystemInfoSync();
export default {
data() {
return {
diff --git a/common/js/lang.js b/common/js/lang.js
index bc03c0b..5fec1bf 100644
--- a/common/js/lang.js
+++ b/common/js/lang.js
@@ -1,8 +1,8 @@
import { langConfig } from './config-external.js';
-var locale = uni.getStorageSync('lang') || "zh-cn"; //设置语言
+
// 缓存已加载的语言包
-var loadedLangPacks = {};
+const loadedLangPacks = {};
// 处理页面目录映射
function processRoutePath(route) {
@@ -64,6 +64,8 @@ export default {
let _this = getCurrentPages()[getCurrentPages().length - 1];
if (!_this) return;
+ const locale = uni.getStorageSync('lang') || "zh-cn"; //设置语言
+
var value = '';
try {
//公共语言包(同步加载)
@@ -72,7 +74,7 @@ export default {
//当前页面语言包(同步加载)
let route = _this.route;
let langPath = processRoutePath(route);
- // console.log(`当前页面语言包路径: ${langPath}`);
+ console.log(`当前语言: ${locale}, 当前页面语言包路径: ${langPath}`);
// 加载当前页面语言包
let currentPageLang = loadLangPackSync(locale, langPath);
@@ -113,7 +115,7 @@ export default {
if (value == undefined || (value == 'title' && field == 'title')) value = ''; // field
// 多语言调试,注释后可以关闭控制台输出
- // console.log(`字段: ${field}, 值: ${value}`)
+ console.log(`字段: ${field}, 值: ${value}`)
return value;
},
/**
@@ -126,10 +128,14 @@ export default {
if (!_this) return;
uni.setStorageSync("lang", value);
- locale = uni.getStorageSync('lang') || "zh-cn"; //设置语言
+ const locale = uni.getStorageSync('lang') || "zh-cn"; //设置语言
// 清空已加载的语言包缓存
- loadedLangPacks = {};
+ for (let key in loadedLangPacks) {
+ if (!key.startsWith(locale)) {
+ delete loadedLangPacks[key];
+ }
+ }
this.refresh();
@@ -141,7 +147,7 @@ export default {
refresh() {
let _this = getCurrentPages()[getCurrentPages().length - 1];
if (!_this) return;
- locale = uni.getStorageSync('lang') || "zh-cn"; //设置语言
+ const locale = uni.getStorageSync('lang') || "zh-cn"; //设置语言
this.title(this.lang("title"));
diff --git a/common/js/map/openMap.js b/common/js/map/openMap.js
index 9333ec7..943738c 100644
--- a/common/js/map/openMap.js
+++ b/common/js/map/openMap.js
@@ -1,3 +1,4 @@
+import util from '@/common/js/util.js'
import TransformCoordinate from './transformCoordinate.js'
function openMapByDefault(latitude, longitude, name) {
@@ -85,7 +86,8 @@ export default {
openMap(latitude, longitude, name, coord_type = 'gcj02') {
let arr = getCoordByType(longitude, latitude, coord_type)
// #ifdef APP-PLUS
- switch (uni.getSystemInfoSync().platform) {
+ let platform = util.getDeviceInfo().platform;
+ switch (platform) {
case 'android':
console.log('运行Android上')
openMapByAndroid(arr[1], arr[0], name)
diff --git a/common/js/navigation.js b/common/js/navigation.js
index 0550cd0..6494306 100644
--- a/common/js/navigation.js
+++ b/common/js/navigation.js
@@ -1,4 +1,5 @@
-import { EventSafety } from './event-safety'
+import { EventSafety } from '@/common/js/event-safety.js'
+import util from '@/common/js/util.js'
export class NavigationHelper {
constructor() {
@@ -59,7 +60,7 @@ export class NavigationHelper {
// 微信小程序精确计算
try {
const menuButtonInfo = wx.getMenuButtonBoundingClientRect()
- const systemInfo = uni.getSystemInfoSync()
+ let systemInfo = util.getDeviceInfo();
const height = menuButtonInfo.bottom +
(menuButtonInfo.top - systemInfo.statusBarHeight)
@@ -119,7 +120,7 @@ export class NavigationHelper {
// 获取状态栏高度
getStatusBarHeight() {
// #ifdef MP-WEIXIN
- const systemInfo = uni.getSystemInfoSync()
+ let systemInfo = util.getDeviceInfo();
return systemInfo.statusBarHeight || 20
// #endif
// #ifdef H5
@@ -138,7 +139,7 @@ export class NavigationHelper {
// 获取安全区域
getSafeAreaInsets() {
try {
- const systemInfo = uni.getSystemInfoSync()
+ let systemInfo = util.getDeviceInfo();
return systemInfo.safeArea || {
top: 0,
bottom: 0,
diff --git a/common/js/style_color.js b/common/js/style_color.js
index e5fea27..7bd7a24 100644
--- a/common/js/style_color.js
+++ b/common/js/style_color.js
@@ -20,7 +20,7 @@ export default {
main_color_shallow: '#FFF4F4',//淡背景
price_color: 'rgb(252,82,39)',//价格颜色
btn_text_color: '#FFFFFF',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgb(252,82,39,1)',//价格
promotion_tag: '#FF4646',
goods_card_bg: '#201A18',//会员卡背景
@@ -31,38 +31,38 @@ export default {
goods_btn_color: '#FF4646',//按钮颜色
goods_btn_color_shallow: '#F7B500',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#7c7878',
super_member_end_bg: '#201a18',
super_member_start_text_color: '#FFDBA6',
super_member_end_text_color: '#FFEBCA',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#F4391c',//背景色
- hovenav_text_color: '#FFFFFF'
+ ...{
+ hover_nav_bg_color: '#FFFC', //背景色: 红色 '#c6251b', 白色: '#FFFC'
+ hover_nav_text_color: '#000' // 文字颜色: 白色 '#FFFFFF', 黑色: '#000'
},
},
'green': {
@@ -76,7 +76,7 @@ export default {
main_color_shallow: '#F0FFF5',//淡背景
price_color: 'rgba(252,82,39,1)',//价格颜色
btn_text_color: '#FFFFFF',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgba(252,82,39,1)',//价格
promotion_tag: '#19C650',
goods_card_bg: '#201A18',//会员卡背景
@@ -87,38 +87,38 @@ export default {
goods_btn_color: '#19C650',//按钮颜色
goods_btn_color_shallow: '#FA6400',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#7c7878',
super_member_end_bg: '#201a18',
super_member_start_text_color: '#FFDBA6',
super_member_end_text_color: '#FFEBCA',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#19C650',//背景色
- hovenav_text_color: '#FFFFFF'
+ ...{
+ hover_nav_bg_color: '#19C650',//背景色
+ hover_nav_text_color: '#FFFFFF'
},
},
'blue': {
@@ -132,7 +132,7 @@ export default {
main_color_shallow: '#E2F3FF',
price_color: 'rgba(252,82,39,1)',//价格颜色
btn_text_color: '#FFFFFF',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgba(252,82,39,1)',//价格
promotion_tag: '#36ABFF',
goods_card_bg: '#201A18',//会员卡背景
@@ -143,38 +143,38 @@ export default {
goods_btn_color: '#36ABFF',//按钮颜色
goods_btn_color_shallow: '#FA6400',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#7c7878',
super_member_end_bg: '#201a18',
super_member_start_text_color: '#FFDBA6',
super_member_end_text_color: '#FFEBCA',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#36ABFF',//背景色
- hovenav_text_color: '#FFFFFF'
+ ...{
+ hover_nav_bg_color: '#36ABFF',//背景色
+ hover_nav_text_color: '#FFFFFF'
},
},
'pink': {
@@ -188,7 +188,7 @@ export default {
main_color_shallow: '#FFF5F8',//淡背景
price_color: 'rgba(252,82,39,1)',//价格颜色
btn_text_color: '#FFFFFF',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgba(252,82,39,1)',//价格
promotion_tag: '#FF407E',
goods_card_bg: '#201A18',//会员卡背景
@@ -199,38 +199,38 @@ export default {
goods_btn_color: '#FF407E',//按钮颜色
goods_btn_color_shallow: '#F7B500',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#7c7878',
super_member_end_bg: '#201a18',
super_member_start_text_color: '#FFDBA6',
super_member_end_text_color: '#FFEBCA',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#FF407E',//背景色
- hovenav_text_color: '#FFFFFF'
+ ...{
+ hover_nav_bg_color: '#FF407E',//背景色
+ hover_nav_text_color: '#FFFFFF'
},
},
'gold': {
@@ -244,7 +244,7 @@ export default {
main_color_shallow: '#FFFAF1',//淡背景
price_color: 'rgba(252,82,39,1)',//价格颜色
btn_text_color: '#FFFFFF',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgba(252,82,39,1)',//价格
promotion_tag: '#CFAF70',
goods_card_bg: '#201A18',//会员卡背景
@@ -255,38 +255,38 @@ export default {
goods_btn_color: '#CFAF70',//按钮颜色
goods_btn_color_shallow: '#444444',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#7c7878',
super_member_end_bg: '#201a18',
super_member_start_text_color: '#FFDBA6',
super_member_end_text_color: '#FFEBCA',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#CFAF70',//背景色
- hovenav_text_color: '#FFFFFF'
+ ...{
+ hover_nav_bg_color: '#CFAF70',//背景色
+ hover_nav_text_color: '#FFFFFF'
},
},
'purple': {
@@ -300,7 +300,7 @@ export default {
main_color_shallow: '#F8F3FF',//淡背景
price_color: 'rgba(252,82,39,1)',//价格颜色
btn_text_color: '#FFFFFF',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgba(252,82,39,1)',//价格
promotion_tag: '#A253FF',
goods_card_bg: '#201A18',//会员卡背景
@@ -311,38 +311,38 @@ export default {
goods_btn_color: '#A253FF',//按钮颜色
goods_btn_color_shallow: '#222222',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#7c7878',
super_member_end_bg: '#201a18',
super_member_start_text_color: '#FFDBA6',
super_member_end_text_color: '#FFEBCA',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#A253FF',//背景色
- hovenav_text_color: '#FFFFFF'
+ ...{
+ hover_nav_bg_color: '#A253FF',//背景色
+ hover_nav_text_color: '#FFFFFF'
},
},
'yellow': {
@@ -356,7 +356,7 @@ export default {
main_color_shallow: '#FFFBEF',//淡背景
price_color: 'rgba(252,82,39,1)',//价格颜色
btn_text_color: '#303133',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgba(252,82,39,1)',//价格
promotion_tag: '#FFD009',
goods_card_bg: '#201A18',//会员卡背景
@@ -367,38 +367,38 @@ export default {
goods_btn_color: '#FFD009',//按钮颜色
goods_btn_color_shallow: '#1D262E',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#7c7878',
super_member_end_bg: '#201a18',
super_member_start_text_color: '#FFDBA6',
super_member_end_text_color: '#FFEBCA',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#FFD009',//背景色
- hovenav_text_color: '#303133'
+ ...{
+ hover_nav_bg_color: '#FFD009',//背景色
+ hover_nav_text_color: '#303133'
},
},
'black': {
@@ -412,7 +412,7 @@ export default {
main_color_shallow: '#efefef',//淡背景
price_color: 'rgba(255,0,0,1)',//价格颜色
btn_text_color: '#FFFFFF',//按钮文字颜色
- goods_detail: {
+ ...{
goods_price: 'rgba(255,0,0,1)',//价格
promotion_tag: '#222222',
goods_card_bg: '#201A18',//会员卡背景
@@ -423,38 +423,38 @@ export default {
goods_btn_color: '#222222',//按钮颜色
goods_btn_color_shallow: '#FA8B00',//副按钮颜色
},
- pintuan: {
+ ...{
pintuan_label_bg: '#F7B500',
pintuan_label_color: '#FFFFFF',
pintuan_color: '#FA6400',
pintuan_promotion_color: '#FA3A1D',//活动背景
pintuan_promotion_aux_color: '#FD9A01',//活动背景辅色
},
- super_member: {
+ ...{
super_member_start_bg: '#fadcb5',
super_member_end_bg: '#f6bd74',
super_member_start_text_color: '#ab6126',
super_member_end_text_color: '#d19336',
},
- bargain: {
+ ...{
bargain_promotion_color: '#F0353E',//活动背景
bargain_promotion_aux_color: '#FD9A01',//活动辅色
},
- seckill: {
+ ...{
seckill_promotion_color: '#F83530',//活动背景
seckill_promotion_aux_color: '#FD9A01',//活动辅色
},
- giftcard: {
+ ...{
giftcard_promotion_color: '#FF3369',//活动背景
giftcard_promotion_aux_color: '#F7B500',//活动辅色
},
- groupby: {
+ ...{
groupby_promotion_color: '#E64136',//活动背景
groupby_promotion_aux_color: '#F7B500',//活动辅色
},
- hoverNav: {
- hovenav_bg_color: '#222222',//背景色
- hovenav_text_color: '#FFFFFF'
+ ...{
+ hover_nav_bg_color: '#222222',//背景色
+ hover_nav_text_color: '#FFFFFF'
},
}
}
diff --git a/common/js/util.js b/common/js/util.js
index 2874026..d47f9e7 100644
--- a/common/js/util.js
+++ b/common/js/util.js
@@ -32,10 +32,28 @@ export const adaptSubpackageUrl = (url) => {
*/
// 定义前缀映射表
const urlPrefixMap = {
+ '/pages/promotion/': '/pages_promotion/',
+ '/pages/order/': '/pages_order/',
'/pages/goods/': '/pages_goods/',
+
'/pages/contact/': '/pages_tool/contact/',
'/pages/member/': '/pages_tool/member/',
- '/pages/vr': '/pages_tool/vr/'
+ '/pages/login/': '/pages_tool/login/',
+ '/pages/agreement/': '/pages_tool/agreement/',
+ '/pages/article/': '/pages_tool/article/',
+ '/pages/cases/': '/pages_tool/cases/',
+ '/pages/contact/': '/pages_tool/contact/',
+ '/pages/files/': '/pages_tool/files/',
+ '/pages/form/': '/pages_tool/form/',
+ '/pages/help/': '/pages_tool/help/',
+ '/pages/notice/': '/pages_tool/notice/',
+ '/pages/pay/': '/pages_tool/pay/',
+ '/pages/recharge/': '/pages_tool/recharge/',
+ '/pages/seal/': '/pages_tool/seal/',
+ '/pages/storeclose/': '/pages_tool/storeclose/',
+ '/pages/vr/': '/pages_tool/vr/',
+ '/pages/weapp/': '/pages_tool/weapp/',
+ '/pages/webview/': '/pages_tool/webview/',
};
// 构建正则表达式
@@ -518,7 +536,7 @@ export default {
* 检测苹果X以上的手机
*/
isIPhoneX() {
- let res = uni.getSystemInfoSync();
+ let res = this.getDeviceInfo();
if (res.model.search('iPhone X') != -1) {
return true;
}
@@ -526,13 +544,33 @@ export default {
},
//判断安卓还是iOS
isAndroid() {
- let platform = uni.getSystemInfoSync().platform
+ let platform = this.getDeviceInfo().platform;
if (platform == 'ios') {
return false;
} else if (platform == 'android') {
return true;
}
},
+ /**
+ * 获取设备信息(包含降级处理)
+ */
+ getDeviceInfo() {
+ try {
+ return uni.getDeviceInfo();
+ } catch (e) {
+ return uni.getSystemInfoSync();
+ }
+ },
+ /**
+ * 获取窗口信息(包含降级处理)
+ */
+ getWindowInfo() {
+ try {
+ return uni.getWindowInfo();
+ } catch (e) {
+ return uni.getSystemInfoSync();
+ }
+ },
/**
* 深度拷贝对象
* @param {Object} obj
@@ -677,7 +715,7 @@ export default {
*/
uniappIsIPhoneX() {
let isIphoneX = false;
- let systemInfo = uni.getSystemInfoSync();
+ let systemInfo = this.getDeviceInfo();
// #ifdef MP
if (systemInfo.model.search('iPhone X') != -1 || systemInfo.model.search('iPhone 11') != -1 || systemInfo.model.search('iPhone 12') != -1 || systemInfo.model.search('iPhone 13') != -1) {
isIphoneX = true;
@@ -704,7 +742,7 @@ export default {
*/
uniappIsIPhone11() {
let isIphone11 = false;
- let systemInfo = uni.getSystemInfoSync();
+ let systemInfo = this.getDeviceInfo();
// #ifdef MP
if (systemInfo.model.search('iPhone 11') != -1) {
isIphone11 = true;
@@ -715,7 +753,7 @@ export default {
// #ifdef H5
//判断该浏览器是否为safaria浏览器
isSafari() {
- let res = uni.getSystemInfoSync();
+ let res = this.getDeviceInfo();
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 &&
ua.indexOf('linux') === -1 && ua.indexOf('android') === -1 && ua.indexOf('chrome') === -1 &&
diff --git a/components-diy/diy-category.vue b/components-diy/diy-category.vue
index f907f50..7cc9036 100644
--- a/components-diy/diy-category.vue
+++ b/components-diy/diy-category.vue
@@ -161,15 +161,11 @@ let menuButtonInfo = {};
menuButtonInfo = uni.getMenuButtonBoundingClientRect();
// #endif
-import nsGoodsSkuCategory from '@/components/ns-goods-sku/ns-goods-sku-category.vue';
import DiyMinx from './minx.js'
var contentWrapHeight, query, cartPosition;
// 商品分类
export default {
- components: {
- nsGoodsSkuCategory
- },
name: 'diy-category',
props: {
value: {
diff --git a/components-diy/diy-digit.vue b/components-diy/diy-digit.vue
index 4a51a91..83cdf74 100644
--- a/components-diy/diy-digit.vue
+++ b/components-diy/diy-digit.vue
@@ -1,4 +1,4 @@
-
+
@@ -38,16 +38,10 @@
diff --git a/components/hover-nav/hover-nav.vue b/components/hover-nav/hover-nav.vue
index f2b71f6..61ad55b 100644
--- a/components/hover-nav/hover-nav.vue
+++ b/components/hover-nav/hover-nav.vue
@@ -181,8 +181,6 @@ export default {
bottom: 320rpx;
// #endif
z-index: 10;
- // background: #fff;
- // box-shadow: 2rpx 2rpx 22rpx rgba(0, 0, 0, 0.3);
border-radius: 120rpx;
padding: 20rpx 0;
display: flex;
@@ -201,9 +199,8 @@ export default {
line-height: 1;
margin: 14rpx 0;
transition: 0.1s;
- background: #c6251b;
- // background: var(--hover-nav-bg-color);
- color: #fff;
+ background: var(--hover-nav-bg-color);
+ color: var(--hover-nav-text-color);
border-radius: 40rpx;
width: 80rpx;
height: 80rpx;
diff --git a/pages_tool/components/img-cropping/cropping.vue b/components/img-cropping/img-cropping.vue
similarity index 100%
rename from pages_tool/components/img-cropping/cropping.vue
rename to components/img-cropping/img-cropping.vue
diff --git a/pages_promotion/components/l-time/l-time.vue b/components/l-time/l-time.vue
similarity index 100%
rename from pages_promotion/components/l-time/l-time.vue
rename to components/l-time/l-time.vue
diff --git a/pages_promotion/components/l-time/time.js b/components/l-time/time.js
similarity index 100%
rename from pages_promotion/components/l-time/time.js
rename to components/l-time/time.js
diff --git a/components/mescroll/mescroll-uni.vue b/components/mescroll/mescroll-uni.vue
index ccc425a..3d0ef07 100644
--- a/components/mescroll/mescroll-uni.vue
+++ b/components/mescroll/mescroll-uni.vue
@@ -62,8 +62,6 @@
// 引入回到顶部组件
import MescrollTop from './components/mescroll-top.vue';
- import nsLoading from '@/components/ns-loading/ns-loading.vue';
-
export default {
name: 'mescroll-uni',
components: {
diff --git a/pages_tool/components/myp-one/myp-one.vue b/components/myp-one/myp-one.vue
similarity index 100%
rename from pages_tool/components/myp-one/myp-one.vue
rename to components/myp-one/myp-one.vue
diff --git a/components/ns-adv/ns-adv.vue b/components/ns-adv/ns-adv.vue
index 0d44df7..978f3bd 100644
--- a/components/ns-adv/ns-adv.vue
+++ b/components/ns-adv/ns-adv.vue
@@ -1,120 +1,120 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/ns-birthday-gift/ns-birthday-gift.vue b/components/ns-birthday-gift/ns-birthday-gift.vue
index e34abb7..254126c 100644
--- a/components/ns-birthday-gift/ns-birthday-gift.vue
+++ b/components/ns-birthday-gift/ns-birthday-gift.vue
@@ -80,14 +80,10 @@
-
-
\ No newline at end of file
diff --git a/components/ns-goods-action-icon/ns-goods-action-icon.vue b/components/ns-goods-action-icon/ns-goods-action-icon.vue
index f958edd..dded95b 100644
--- a/components/ns-goods-action-icon/ns-goods-action-icon.vue
+++ b/components/ns-goods-action-icon/ns-goods-action-icon.vue
@@ -20,7 +20,6 @@
\ No newline at end of file
diff --git a/components/ns-goods-sku/ns-goods-sku-index.vue b/components/ns-goods-sku/ns-goods-sku-index.vue
index 4e632ca..345b7a1 100644
--- a/components/ns-goods-sku/ns-goods-sku-index.vue
+++ b/components/ns-goods-sku/ns-goods-sku-index.vue
@@ -2,235 +2,233 @@
-
+
\ No newline at end of file
diff --git a/components/ns-goods-sku/ns-goods-sku.vue b/components/ns-goods-sku/ns-goods-sku.vue
index a7441d7..2275870 100644
--- a/components/ns-goods-sku/ns-goods-sku.vue
+++ b/components/ns-goods-sku/ns-goods-sku.vue
@@ -1,6 +1,6 @@
-
+
-
+
-
-
\ No newline at end of file
+}
+
diff --git a/components/ns-new-gift/ns-new-gift.vue b/components/ns-new-gift/ns-new-gift.vue
index a6553c9..eed5fa9 100644
--- a/components/ns-new-gift/ns-new-gift.vue
+++ b/components/ns-new-gift/ns-new-gift.vue
@@ -75,12 +75,8 @@
\ No newline at end of file
diff --git a/pages_tool/components/ns-progress/ns-progress.vue b/components/ns-progress/ns-progress.vue
similarity index 100%
rename from pages_tool/components/ns-progress/ns-progress.vue
rename to components/ns-progress/ns-progress.vue
diff --git a/components/ns-select-time/ns-select-time.vue b/components/ns-select-time/ns-select-time.vue
index 15a5553..8d39484 100644
--- a/components/ns-select-time/ns-select-time.vue
+++ b/components/ns-select-time/ns-select-time.vue
@@ -30,12 +30,8 @@
diff --git a/pages_goods/cart.vue b/pages_goods/cart.vue
index 07cdbbe..f72c838 100644
--- a/pages_goods/cart.vue
+++ b/pages_goods/cart.vue
@@ -1,7 +1,8 @@
-
+
-
+
- {{globalStoreInfo.store_name}}
+ {{ globalStoreInfo.store_name }}
-
+
-
+
- {{ isEnEnv ? item.en_goods_name : item.goods_name }}
+ {{ isEnEnv ?
+ item.en_goods_name : item.goods_name }}
-
+
{{ x.spec_name }}:{{ x.spec_value_name }}
{{ i < item.sku_spec_format.length - 1 ? ';' : '' }}
-
+
-
+
-
+
- {{ $lang('common.currencySymbol') }}
+ {{
+ $lang('common.currencySymbol') }}
{{ parseFloat(item.member_price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(item.member_price).toFixed(2).split('.')[1] }}
-
+ .{{
+ parseFloat(item.member_price).toFixed(2).split('.')[1]
+ }}
+
- {{ $lang('common.currencySymbol') }}
- {{ parseFloat(item.discount_price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(item.discount_price).toFixed(2).split('.')[1] }}
-
+ {{
+ $lang('common.currencySymbol') }}
+ {{ parseFloat(item.discount_price).toFixed(2).split('.')[0]
+ }}
+ .{{
+ parseFloat(item.discount_price).toFixed(2).split('.')[1]
+ }}
+
@@ -73,19 +90,25 @@
- {{ $lang('common.currencySymbol') }}
+ {{
+ $lang('common.currencySymbol') }}
{{ parseFloat(item.member_price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(item.member_price).toFixed(2).split('.')[1] }}
-
+ .{{
+ parseFloat(item.member_price).toFixed(2).split('.')[1]
+ }}
+
- {{ $lang('common.currencySymbol') }}
+ {{
+ $lang('common.currencySymbol') }}
{{ parseFloat(item.price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(item.price).toFixed(2).split('.')[1] }}
+ .{{
+ parseFloat(item.price).toFixed(2).split('.')[1]
+ }}
@@ -100,14 +123,16 @@
满减
- {{ Number(mitem.limit) }}减{{ mitem.discount_money }}
+ {{ Number(mitem.limit) }}减{{
+ mitem.discount_money }}
- {{ $lang('del') }}
+ {{ $lang('del') }}
@@ -124,7 +149,8 @@
-
+
{{ goodsItem.sku_name }}
@@ -134,23 +160,32 @@
{{ x.spec_name }}:{{ x.spec_value_name }}
{{ i < goodsItem.sku_spec_format.length - 1 ? '; ' : '' }}
-
+
-
- {{ $lang('common.currencySymbol') }}
- {{ parseFloat(goodsItem.member_price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(goodsItem.member_price).toFixed(2).split('.')[1] }}
-
+
+ {{
+ $lang('common.currencySymbol') }}
+ {{ parseFloat(goodsItem.member_price).toFixed(2).split('.')[0]
+ }}
+ .{{
+ parseFloat(goodsItem.member_price).toFixed(2).split('.')[1]
+ }}
+
- {{ $lang('common.currencySymbol') }}
- {{ parseFloat(goodsItem.discount_price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(goodsItem.discount_price).toFixed(2).split('.')[1] }}
+ {{
+ $lang('common.currencySymbol') }}
+ {{ parseFloat(goodsItem.discount_price).toFixed(2).split('.')[0]
+ }}
+ .{{
+ parseFloat(goodsItem.discount_price).toFixed(2).split('.')[1]
+ }}
@@ -165,7 +200,8 @@
-
+
@@ -201,7 +237,7 @@
¥{{ discount.order_money | moneyFormat }}
-
+
@@ -213,9 +249,11 @@
-
+
-
+
{{ $lang('common.currencySymbol') }}
@@ -237,24 +275,30 @@
{{ discount.coupon_info.coupon_name }}
-
+
最多可抵¥{{ discount.coupon_info.discount_limit }}
-
+
有效期:{{ $util.timeStampTurnTime(discount.coupon_info.end_time) }}
-
+
有效期:领取之日起{{ discount.coupon_info.fixed_term }}天内有效
有效期:长期有效
-
-
+
+
-
+
@@ -262,7 +306,8 @@
-
+
+
{{ $lang('allElection') }}
@@ -270,8 +315,10 @@
{{ $lang('total') }}:
{{ $lang('common.currencySymbol') }}
- {{ parseFloat(discount.order_money).toFixed(2).split('.')[0] }}
- .{{ parseFloat(discount.order_money).toFixed(2).split('.')[1] }}
+ {{ parseFloat(discount.order_money).toFixed(2).split('.')[0]
+ }}
+ .{{ parseFloat(discount.order_money).toFixed(2).split('.')[1]
+ }}
{{ parseFloat(totalPrice).toFixed(2).split('.')[0] }}
@@ -288,16 +335,20 @@
-
+
-
+
@@ -307,52 +358,30 @@
-
-
+
-
\ No newline at end of file
diff --git a/pages_goods/category.vue b/pages_goods/category.vue
index 57902b4..0f41340 100644
--- a/pages_goods/category.vue
+++ b/pages_goods/category.vue
@@ -12,10 +12,8 @@
-
-
+
-
@@ -25,19 +23,7 @@
-
-
-
\ No newline at end of file
diff --git a/pages_goods/components/ns-goods-action-button/ns-goods-action-button.vue b/pages_goods/components/ns-goods-action-button/ns-goods-action-button.vue
deleted file mode 100644
index 7798141..0000000
--- a/pages_goods/components/ns-goods-action-button/ns-goods-action-button.vue
+++ /dev/null
@@ -1,96 +0,0 @@
-
- {{ disabledText }}
-
- {{ textPrice }}
- {{ text }}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages_goods/components/ns-goods-action-icon/ns-goods-action-icon.vue b/pages_goods/components/ns-goods-action-icon/ns-goods-action-icon.vue
deleted file mode 100644
index f958edd..0000000
--- a/pages_goods/components/ns-goods-action-icon/ns-goods-action-icon.vue
+++ /dev/null
@@ -1,146 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ text }}
- {{ cornerMark > 99 ? '99+' : cornerMark }}
-
-
-
-
-
-
-
-
diff --git a/pages_goods/components/ns-goods-action/ns-goods-action.vue b/pages_goods/components/ns-goods-action/ns-goods-action.vue
deleted file mode 100644
index 4e9e0f5..0000000
--- a/pages_goods/components/ns-goods-action/ns-goods-action.vue
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
diff --git a/pages_goods/components/ns-goods-promotion/ns-goods-promotion.vue b/pages_goods/components/ns-goods-promotion/ns-goods-promotion.vue
deleted file mode 100644
index d102e84..0000000
--- a/pages_goods/components/ns-goods-promotion/ns-goods-promotion.vue
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
-
-
-
- 限时折扣
- 当前商品正在参加{{ item.promotion_name }}
-
-
-
-
-
- 团购
- 当前商品正在参加{{ item.promotion_name }}
-
-
-
-
- 拼团
- 当前商品正在参加{{ item.promotion_name }}
-
-
-
-
- 秒杀
- 当前商品正在参加{{ item.promotion_name }}
-
-
-
-
- 专题活动
- 当前商品正在参加{{ item.promotion_name }}
-
-
-
-
- 砍价
- 当前商品正在参加{{ item.promotion_name }}
-
-
-
-
- 拼团返利
- 当前商品正在参加{{ item.promotion_name }}
-
-
-
-
-
-
-
-
-
diff --git a/pages_goods/detail.vue b/pages_goods/detail.vue
index 875d0e2..2328b31 100644
--- a/pages_goods/detail.vue
+++ b/pages_goods/detail.vue
@@ -513,50 +513,17 @@
-
-
+
-
diff --git a/pages_goods/list.vue b/pages_goods/list.vue
index 8d9c4d8..d7eef2a 100644
--- a/pages_goods/list.vue
+++ b/pages_goods/list.vue
@@ -1,34 +1,43 @@
-
+
-
+
-
+
-
- {{langstatus?$lang('Random'):'综合'}}
+
+ {{ langstatus ? $lang('Random') : '综合' }}
- {{langstatus?$lang('Sales'):'销量'}}
+
+ {{ langstatus ? $lang('Sales') : '销量' }}
- {{langstatus?$lang('Price'):'价格'}}
+ {{ langstatus ? $lang('Price') : '价格' }}
-
-
+
+
+
+
- {{langstatus?$lang('Filter'):'筛选'}}
+ {{ langstatus ? $lang('Filter') : '筛选' }}
@@ -39,18 +48,21 @@
-
+
- {{ goodsTag(item) }}
+ {{ goodsTag(item) }}
+
-
-
+
+
{{ isEnEnv ? item.en_goods_name : item.goods_name }}
@@ -58,15 +70,18 @@
{{ $lang('common.currencySymbol') }}
- {{ parseFloat(showPrice(item)).toFixed(2).split('.')[0] }}
- .{{ parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}
+ {{
+ parseFloat(showPrice(item)).toFixed(2).split('.')[0] }}
+ .{{
+ parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}
- {{langstatus?$lang('Make'):'询底价'}}
+ {{ langstatus ? $lang('Make') : '询底价' }}
-
-
-
+
+
+
@@ -79,34 +94,35 @@
{{ showMarketPrice(item) }}
- 已售{{ item.sale_num }}{{ item.unit ? item.unit : '件' }}
+ 已售{{ item.sale_num }}{{ item.unit
+ ? item.unit : '件' }}
{{ config.text }}
@@ -114,11 +130,12 @@
-
+
@@ -127,29 +144,35 @@
+ @click="toDetail(item)"
+ :style="{ left: listPosition[index] ? listPosition[index].left : '', top: listPosition[index] ? listPosition[index].top : '' }">
- {{ goodsTag(item) }}
+ {{ goodsTag(item) }}
+
-
+
{{ isEnEnv ? item.en_goods_name : item.goods_name }}
-
+
{{ $lang('common.currencySymbol') }}
- {{ parseFloat(showPrice(item)).toFixed(2).split('.')[0] }}
- .{{ parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}
+ {{
+ parseFloat(showPrice(item)).toFixed(2).split('.')[0] }}
+ .{{
+ parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}
- {{langstatus?$lang('Make'):'询底价'}}
+ {{ langstatus ? $lang('Make') : '询底价' }}
-
+
@@ -160,48 +183,50 @@
{{ showMarketPrice(item) }}
-
-
- 已售{{ item.sale_num }}{{ item.unit ? item.unit : '件' }}
+
+
+ 已售{{ item.sale_num }}{{ item.unit
+ ? item.unit : '件' }}
-
+
-
+
{{ config.text }}
-
+
-
+
@@ -219,7 +244,7 @@
筛选
-
-
-
-
+
-
-
+
\ No newline at end of file
diff --git a/pages_order/detail.vue b/pages_order/detail.vue
index 659d78b..16202b9 100644
--- a/pages_order/detail.vue
+++ b/pages_order/detail.vue
@@ -1,7 +1,8 @@
-
+
@@ -64,9 +65,9 @@
{{ orderData.delivery_store_name }}
@@ -108,8 +109,11 @@
复制
-
-
+
+
@@ -121,7 +125,8 @@
-
+
{{ goodsItem.sku_name }}
@@ -129,16 +134,18 @@
{{ x.spec_value_name }}
- {{ i < goodsItem.sku_spec_format.length - 1 ? '; ' : '' }}
-
+ {{ i < goodsItem.sku_spec_format.length - 1 ? '; ' : '' }}
{{ $lang('common.currencySymbol') }}
- {{ parseFloat(goodsItem.price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(goodsItem.price).toFixed(2).split('.')[1] }}
+ {{
+ parseFloat(goodsItem.price).toFixed(2).split('.')[0]
+ }}
+ .{{
+ parseFloat(goodsItem.price).toFixed(2).split('.')[1] }}
@@ -152,8 +159,10 @@
次卡抵扣
-{{ $lang('common.currencySymbol') }}
- {{ parseFloat(goodsItem.card_promotion_money).toFixed(2).split('.')[0] }}
- .{{ parseFloat(goodsItem.card_promotion_money).toFixed(2).split('.')[1] }}
+ {{
+ parseFloat(goodsItem.card_promotion_money).toFixed(2).split('.')[0] }}
+ .{{
+ parseFloat(goodsItem.card_promotion_money).toFixed(2).split('.')[1] }}
@@ -164,7 +173,8 @@
{{ item.value.title }}:
-
+
@@ -176,13 +186,15 @@
-
+
{{ orderData.order_status == 10 ? '申请售后' : '申请退款' }}
-
+
{{ orderData.order_status == 10 ? '查看售后' : '查看退款' }}
@@ -315,11 +327,12 @@
我的卡包:
- 查看
+ 查看
-
-
+
@@ -608,216 +633,209 @@
\ No newline at end of file
diff --git a/pages_order/detail_point.vue b/pages_order/detail_point.vue
index a62cc38..37ee721 100644
--- a/pages_order/detail_point.vue
+++ b/pages_order/detail_point.vue
@@ -1,14 +1,18 @@
-
+
-
-
-
+
+
+
- {{ orderData.order_status == 0 ? '待支付' : orderData.order_status == 1 ? '已完成' : orderData.order_status == -1 ? '已关闭' : '' }}
+ {{ orderData.order_status == 0 ? '待支付' : orderData.order_status == 1 ? '已完成' :
+ orderData.order_status == -1 ? '已关闭' : '' }}
@@ -79,7 +83,7 @@
-
- 全部
- 全部
+
+ @click="changeCategory(item.category_id)">
{{ item.category_name }}
-
+
-
+
@@ -124,40 +124,22 @@
-
-
+
-
@@ -165,8 +147,10 @@ export default {
/deep/ .uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
max-height: unset !important;
}
+
.quick-nav {
margin-bottom: 20rpx;
+
.quick-nav-item {
display: flex;
align-items: center;
@@ -190,6 +174,7 @@ export default {
}
}
}
+
.content {
overflow: hidden;
padding: 0 30rpx 160rpx;
@@ -202,12 +187,14 @@ export default {
background-size: 100%;
background-repeat: no-repeat;
box-sizing: border-box;
+
.goods-item {
margin-bottom: 20rpx;
background: #ffffff;
padding: $padding;
display: flex;
border-radius: 10rpx;
+
&:last-child {
margin-bottom: 0;
}
@@ -221,6 +208,7 @@ export default {
border-radius: 10rpx;
overflow: hidden;
flex-shrink: 0;
+
image {
width: 100%;
height: 100%;
@@ -241,6 +229,7 @@ export default {
.goods-name {
width: 100%;
line-height: 1.3;
+
.name {
line-height: 1.3;
word-break: break-all;
@@ -250,10 +239,12 @@ export default {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
+
.label-list {
display: flex;
align-items: center;
margin-top: 6rpx;
+
.label-item {
padding: 4rpx 10rpx;
font-size: $font-size-tag;
@@ -285,6 +276,7 @@ export default {
padding: 0 $padding;
border-radius: 50rpx;
border: 2rpx solid $base-color;
+
text {
color: $base-color;
border-radius: 40rpx;
@@ -299,6 +291,7 @@ export default {
}
}
}
+
.active-btn {
position: fixed;
bottom: 40rpx;
@@ -312,10 +305,12 @@ export default {
border-radius: 50rpx;
background-color: $base-color;
color: #fff;
+
.btn {
flex: 1;
text-align: center;
}
+
.share-btn {
margin: 0;
padding: 0;
@@ -355,6 +350,7 @@ export default {
border: none;
line-height: 1;
height: auto;
+
text {
margin-top: 20rpx;
font-size: $font-size-tag;
@@ -367,6 +363,7 @@ export default {
font-size: 80rpx;
line-height: initial;
}
+
.icon-fuzhilianjie,
.icon-pengyouquan,
.icon-haowuquan,
@@ -383,39 +380,48 @@ export default {
text-align: center;
}
}
+
.poster-layer {
.generate-poster {
padding: 40rpx 0;
+
.iconfont {
font-size: 80rpx;
color: #07c160;
line-height: initial;
}
- > view {
+
+ >view {
text-align: center;
+
&:last-child {
margin-top: 20rpx;
}
}
}
+
.image-wrap {
width: 64%;
height: 854rpx;
margin: 60rpx auto 40rpx auto;
box-shadow: 0 0 32rpx rgba(100, 100, 100, 0.3);
+
image {
width: 480rpx;
height: 854rpx;
}
}
+
.msg {
padding: 40rpx;
}
+
.save {
text-align: center;
height: 80rpx;
line-height: 80rpx;
}
+
.close {
position: absolute;
top: 0;
diff --git a/pages_promotion/fenxiao/index.vue b/pages_promotion/fenxiao/index.vue
index dc128d6..178e244 100644
--- a/pages_promotion/fenxiao/index.vue
+++ b/pages_promotion/fenxiao/index.vue
@@ -261,12 +261,8 @@
\ No newline at end of file
diff --git a/pages_promotion/fenxiao/ranking_list.vue b/pages_promotion/fenxiao/ranking_list.vue
index 6a134eb..69f4db2 100644
--- a/pages_promotion/fenxiao/ranking_list.vue
+++ b/pages_promotion/fenxiao/ranking_list.vue
@@ -3,17 +3,22 @@
-
+
-
+
- {{info.nickname}}
+ {{ info.nickname }}
- 点击提现
- 我的团队
+ 点击提现
+ 我的团队
@@ -26,7 +31,7 @@
分销佣金
- {{ info.today_commission}}元
+ {{ info.today_commission }}元
@@ -50,7 +55,7 @@
推广人数
- {{ info.one_child_num}}人
+ {{ info.one_child_num }}人
@@ -67,20 +72,21 @@
- 佣金排行
- 推广排行
+ 佣金排行
+ 推广排行
{{ index + 1 }}
-
+
{{ item.nickname }}
- ¥{{ item.total_commission|moneyFormat }}
+ ¥{{ item.total_commission | moneyFormat }}
{{ item.child_num }}人
@@ -97,337 +103,319 @@
diff --git a/pages_promotion/fenxiao/relation.vue b/pages_promotion/fenxiao/relation.vue
index 36927b5..a210bcd 100644
--- a/pages_promotion/fenxiao/relation.vue
+++ b/pages_promotion/fenxiao/relation.vue
@@ -72,25 +72,9 @@
\ No newline at end of file
diff --git a/pages_promotion/point/detail.vue b/pages_promotion/point/detail.vue
index 5dfd5ad..592c3bb 100644
--- a/pages_promotion/point/detail.vue
+++ b/pages_promotion/point/detail.vue
@@ -5,7 +5,8 @@
-
+
+
@@ -13,12 +14,21 @@
-
+
-
+
+
+
+
-
@@ -27,7 +37,8 @@
{{ pointInfo.point }}积分
- +{{ $lang('common.currencySymbol') }}{{ pointInfo.exchange_price }}
+ +{{ $lang('common.currencySymbol') }}{{ pointInfo.exchange_price
+ }}
@@ -35,26 +46,36 @@
{{ pointInfo.price }}
-
- 库存:{{ pointInfo.stock }}{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}
+
+ 库存:{{ pointInfo.stock }}{{
+ pointInfo.stock >= 0 ?
+ pointInfo.unit : '' }}
库存:无限{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}
- {{ isEnEnv ? pointInfo.en_goods_name : pointInfo.goods_name }}
+ {{ isEnEnv ? pointInfo.en_goods_name :
+ pointInfo.goods_name
+ }}
{{ pointInfo.name }}
- 内含{{ pointInfo.balance }}元
+ 内含{{ pointInfo.balance
+ }}元
无门槛优惠券
- {{ '满' + pointInfo.at_least + '减' + pointInfo.money }}
+ {{ '满' + pointInfo.at_least +
+ '减' + pointInfo.money
+ }}
满{{ pointInfo.at_least }}元
{{ pointInfo.discount }}折
- 最多优惠{{ pointInfo.discount_limit }}元
+ 最多优惠{{
+ pointInfo.discount_limit }}元
- {{ pointInfo.validity_type == 1 ? '领取之日起' + pointInfo.fixed_term + '天内有效' : $util.timeStampTurnTime(pointInfo.end_time) + '到期' }}
+ {{ pointInfo.validity_type == 1 ? '领取之日起' + pointInfo.fixed_term + '天内有效' :
+ $util.timeStampTurnTime(pointInfo.end_time) + '到期' }}
@@ -71,22 +92,23 @@
-
@@ -136,7 +165,8 @@
-
+
{{ item.service_name }}
@@ -144,7 +174,8 @@
-
+
@@ -152,62 +183,52 @@
- 兑换详情
+
+ 兑换详情
+
-
+
+
暂无兑换详情!
-
+
-
+
-
-
-
+
+
+
-
-
-
+
+
-
diff --git a/pages_promotion/point/list.vue b/pages_promotion/point/list.vue
index c1331b1..db7101a 100644
--- a/pages_promotion/point/list.vue
+++ b/pages_promotion/point/list.vue
@@ -2,16 +2,19 @@
-
-
+ :style="{ 'padding-top': menuButtonBounding.top + 'px', height: menuButtonBounding.height + 'px' }">
+
+
搜索商品
-
+
@@ -20,7 +23,7 @@
-
+
@@ -28,9 +31,9 @@
我的积分
- {{point}}
+ {{ point }}
积分
-
+
-
-
-
+
储值{{ parseFloat(item.buy_price) }}元
可得{{ item.point }}积分
@@ -92,10 +96,13 @@
-
-
+
+
-
+
- {{ couponItem.at_least == 0 ? '无门槛优惠券' : '满' + parseFloat(couponItem.at_least).toFixed(0) + '可用' }}
+ {{ couponItem.at_least == 0 ? '无门槛优惠券' : '满' +
+ parseFloat(couponItem.at_least).toFixed(0) + '可用' }}
- 全场券
- 指定券
+ 全场券
+
+ 指定券
@@ -139,7 +150,9 @@
-
+
@@ -188,17 +201,19 @@
+
- {{ parseFloat(item.price).toFixed(2).split(".")[0] }}
- .{{ parseFloat(item.price).toFixed(2).split(".")[1] }}元
+ {{
+ parseFloat(item.price).toFixed(2).split(".")[0] }}
+ .{{
+ parseFloat(item.price).toFixed(2).split(".")[1] }}元
兑换
-
-
+
+
库存:{{ isNaN(parseInt(item.stock)) ? 0 : parseInt(item.stock) }}
-
+
已兑:{{ isNaN(parseInt(item.sale_num)) ? 0 : parseInt(item.sale_num) }}
@@ -216,19 +231,19 @@
- {{ isEnEnv ? 'Integral Description' : '积分说明'}}
+ {{ isEnEnv ? 'Integral Description' : '积分说明' }}
- {{ isEnEnv ? 'Integral Acquisition' : '积分的获取'}}
+ {{ isEnEnv ? 'Integral Acquisition' : '积分的获取' }}
1、积分可在注册、签到、分享、消费、充值时获得。
2、在购买部分商品时可获得积分。
- {{ isEnEnv ? 'Integral Use' : '积分的使用'}}
+ {{ isEnEnv ? 'Integral Use' : '积分的使用' }}
1、积分可用于兑换积分中心的商品。
2、积分可在参与某些活动时使用。
3、积分不得转让,出售,不设有效期。
- {{ isEnEnv ? 'Integral Query' : '积分的查询'}}
+ {{ isEnEnv ? 'Integral Query' : '积分的查询' }}
1、积分可在会员中心中查询具体数额以及明细。
@@ -238,356 +253,350 @@
-
-
+
-
\ No newline at end of file
diff --git a/pages_promotion/point/order_list.vue b/pages_promotion/point/order_list.vue
index 66b6a83..1f87102 100644
--- a/pages_promotion/point/order_list.vue
+++ b/pages_promotion/point/order_list.vue
@@ -1,36 +1,43 @@
-
-
+
+
{{ statusItem.name }}
-
-
+
+
-
+
-
+
-
+
-
+
@@ -42,9 +49,12 @@
积分
+
- {{ $lang('common.currencySymbol') }}
- {{ parseFloat(orderItem.price).toFixed(2).split(".")[0] }}
- .{{ parseFloat(orderItem.price).toFixed(2).split(".")[1] }}
+ {{
+ $lang('common.currencySymbol') }}
+ {{
+ parseFloat(orderItem.price).toFixed(2).split(".")[0] }}
+ .{{
+ parseFloat(orderItem.price).toFixed(2).split(".")[1] }}
@@ -58,8 +68,10 @@
-
+
@@ -83,509 +96,495 @@
diff --git a/pages_promotion/point/payment.vue b/pages_promotion/point/payment.vue
index 155cf6f..f8a2fb7 100644
--- a/pages_promotion/point/payment.vue
+++ b/pages_promotion/point/payment.vue
@@ -2,9 +2,9 @@
+ 'padding-top': menuButtonBounding.top + 'px',
+ height: menuButtonBounding.height + 'px'
+ }">
确认订单
@@ -18,11 +18,12 @@
-
+
{{ deliveryItem.title }}
@@ -31,10 +32,12 @@
-
-
+
由 {{ storeInfo.currStore.store_name }} 提供配送
@@ -49,14 +52,19 @@
-
+
- {{ orderCreateData.member_address.name ? orderCreateData.member_address.name : '' }}
- {{ orderCreateData.member_address.mobile ? orderCreateData.member_address.mobile : '' }}
+ {{ orderCreateData.member_address.name ?
+ orderCreateData.member_address.name : '' }}
+ {{ orderCreateData.member_address.mobile ?
+ orderCreateData.member_address.mobile : '' }}
- {{ orderCreateData.member_address.full_address ? orderCreateData.member_address.full_address : '' }}
- {{ orderCreateData.member_address.address ? orderCreateData.member_address.address : '' }}
+ {{ orderCreateData.member_address.full_address ?
+ orderCreateData.member_address.full_address : '' }}
+ {{ orderCreateData.member_address.address ? orderCreateData.member_address.address : ''
+ }}
@@ -69,11 +77,14 @@
-
+
送达时间
- {{ orderCreateData.buyer_ask_delivery_title ? orderCreateData.buyer_ask_delivery_title : '请选择送达时间' }}
+ {{
+ orderCreateData.buyer_ask_delivery_title ?
+ orderCreateData.buyer_ask_delivery_title : '请选择送达时间' }}
@@ -82,7 +93,9 @@
-
+
@@ -104,20 +117,22 @@
姓名
-
+
预留手机
+ placeholder-class="color-tip placeholder" class="input"
+ v-model="member_address.mobile" />
自提时间
- {{orderCreateData.buyer_ask_delivery_title}}
+ {{ orderCreateData.buyer_ask_delivery_title }}
@@ -137,27 +152,35 @@
手机号码
-
+
-
+
-
+
-
+
-
+
@@ -182,7 +205,8 @@
@@ -196,7 +220,8 @@
积分
-
+
运费
{{ $lang('common.currencySymbol') }}
@@ -206,8 +231,9 @@
-
- {{orderPaymentData.delivery.error_msg}}
+
+ {{ orderPaymentData.delivery.error_msg }}
@@ -221,12 +247,14 @@
-
+
@@ -241,22 +269,29 @@
-
+
-
+
{{ item.store_name }}
({{ item.distance }}km)
-
+
营业时间:{{ item.open_date }}
-
+
地址:{{ item.full_address }}{{ item.address }}
-
+
所选择收货地址附近没有可以自提的门店
@@ -267,7 +302,8 @@
-
+
@@ -277,48 +313,28 @@
\ No newline at end of file
diff --git a/pages_tool/agreement/contenr.vue b/pages_tool/agreement/contenr.vue
index 7dfcaa9..0477a08 100644
--- a/pages_tool/agreement/contenr.vue
+++ b/pages_tool/agreement/contenr.vue
@@ -7,8 +7,6 @@
\ No newline at end of file
diff --git a/pages_tool/cases/index.vue b/pages_tool/cases/index.vue
index 50303ad..6eb35d8 100644
--- a/pages_tool/cases/index.vue
+++ b/pages_tool/cases/index.vue
@@ -86,7 +86,6 @@
-
-
\ No newline at end of file
diff --git a/pages_tool/contact/contact.vue b/pages_tool/contact/contact.vue
index 47a76d5..085721a 100644
--- a/pages_tool/contact/contact.vue
+++ b/pages_tool/contact/contact.vue
@@ -46,7 +46,7 @@
{{ item.position }}
{{ item.address }}
-
@@ -54,12 +54,12 @@
{{ $lang('call') }}
-
{{ item.email }}
- {{ $lang('copy') }}
+ {{ $lang('copy') }}
@@ -143,13 +143,9 @@
\ No newline at end of file
diff --git a/pages_tool/goods/brand.vue b/pages_tool/goods/brand.vue
index 1865f85..864e6d1 100644
--- a/pages_tool/goods/brand.vue
+++ b/pages_tool/goods/brand.vue
@@ -16,124 +16,100 @@
-
-
+
-
\ No newline at end of file
diff --git a/pages_tool/goods/coupon.vue b/pages_tool/goods/coupon.vue
index 2b332ba..a95e53c 100644
--- a/pages_tool/goods/coupon.vue
+++ b/pages_tool/goods/coupon.vue
@@ -2,42 +2,53 @@
- 全部
- 满减券
- 折扣券
-
+ 全部
+ 满减券
+ 折扣券
+
-
+
-
+
-
+
¥
{{ parseFloat(item.money) }}
-
+
{{ parseFloat(item.discount) }}
折
- 满{{ item.at_least }}元可用
- 无门槛优惠券
+ 满{{ item.at_least }}元可用
+ 无门槛优惠券
{{ item.coupon_name }}
- 指定商品
+ 指定商品
全场商品
(最大优惠{{ item.discount_limit }}元)
- {{ item.use_channel_name }}
-
@@ -62,414 +73,397 @@
-
-
+
-
\ No newline at end of file
diff --git a/pages_tool/goods/coupon_receive.vue b/pages_tool/goods/coupon_receive.vue
index eb910ea..ff2eb34 100644
--- a/pages_tool/goods/coupon_receive.vue
+++ b/pages_tool/goods/coupon_receive.vue
@@ -30,10 +30,8 @@
-
-
+
-
diff --git a/pages_tool/goods/evaluate.vue b/pages_tool/goods/evaluate.vue
index 19ea5bc..2f306be 100644
--- a/pages_tool/goods/evaluate.vue
+++ b/pages_tool/goods/evaluate.vue
@@ -74,26 +74,7 @@
diff --git a/pages_tool/login/find.vue b/pages_tool/login/find.vue
index bf8281f..07d65a9 100644
--- a/pages_tool/login/find.vue
+++ b/pages_tool/login/find.vue
@@ -87,11 +87,7 @@
\ No newline at end of file
diff --git a/pages_tool/member/address.vue b/pages_tool/member/address.vue
index 055f213..aad8d7a 100644
--- a/pages_tool/member/address.vue
+++ b/pages_tool/member/address.vue
@@ -100,25 +100,8 @@
import {
Weixin
} from 'common/js/wx-jssdk.js';
-import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
-import nsLogin from '@/components/ns-login/ns-login.vue';
-import loadingCover from '@/components/loading-cover/loading-cover.vue';
-import nsEmpty from '@/components/ns-empty/ns-empty.vue';
-
-// #ifdef MP-WEIXIN
-import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
-// #endif
export default {
- components: {
- MescrollUni,
- nsLogin,
- loadingCover,
- nsEmpty,
- // #ifdef MP-WEIXIN
- privacyPopup
- // #endif
- },
data() {
return {
addressList: [],
diff --git a/pages_tool/member/address_edit.vue b/pages_tool/member/address_edit.vue
index d028016..cd0fa86 100644
--- a/pages_tool/member/address_edit.vue
+++ b/pages_tool/member/address_edit.vue
@@ -79,14 +79,10 @@
\ No newline at end of file
diff --git a/pages_tool/member/card.vue b/pages_tool/member/card.vue
index 2d5d236..0096af2 100644
--- a/pages_tool/member/card.vue
+++ b/pages_tool/member/card.vue
@@ -5,8 +5,9 @@
-
-
+
+
{{ memberInfo.nickname }}
@@ -22,15 +23,18 @@
{{ levelInfo.level_name }}
{{ levelInfo.level_name }}可享受消费折扣和
会员大礼包等权益
-
+
-
+
-
+
@@ -118,113 +122,106 @@
\ No newline at end of file
diff --git a/pages_tool/member/card_buy.vue b/pages_tool/member/card_buy.vue
index 9597f20..d188504 100644
--- a/pages_tool/member/card_buy.vue
+++ b/pages_tool/member/card_buy.vue
@@ -6,7 +6,8 @@
-
+
{{ memberInfo.nickname }}
@@ -22,26 +23,27 @@
:circular="swiperConfig.circular" :previous-margin="swiperConfig.previousMargin"
:next-margin="swiperConfig.nextMargin" @change="swiperChange" @animationfinish="animationfinish"
:current="curIndex">
-
+
+ ? 'item-left'
+ : i === curIndex + 1
+ ? 'item-right'
+ : 'item-center'
+ ]">
-
-
+
+
- {{ levelList[curIndex].level_name }}
- {{ levelList[curIndex].level_name }}可享受消费折扣和
- 会员大礼包等权益
-
+
+ {{ levelList[curIndex].level_name }}
+ {{
+ levelList[curIndex].level_name }}可享受消费折扣和
+
+ 会员大礼包等权益
+
@@ -78,8 +85,10 @@
-
-
+
+
{{ cardType[item.key].name }}
@@ -172,7 +181,8 @@
购买既视为同意
- 《{{ agreement.title }}》
+ 《{{ agreement.title
+ }}》
@@ -198,7 +208,8 @@
-
+
@@ -209,221 +220,210 @@
\ No newline at end of file
diff --git a/pages_tool/member/collection.vue b/pages_tool/member/collection.vue
index 5153e8b..1a0a6cd 100644
--- a/pages_tool/member/collection.vue
+++ b/pages_tool/member/collection.vue
@@ -1,19 +1,24 @@
-
+
-
+
-
+
{{ item.sku_name }}
¥
- {{ parseFloat(item.discount_price).toFixed(2).split('.')[0] }}
- .{{ parseFloat(item.discount_price).toFixed(2).split('.')[1] }}
+ {{
+ parseFloat(item.discount_price).toFixed(2).split('.')[0] }}
+ .{{
+ parseFloat(item.discount_price).toFixed(2).split('.')[1] }}
@@ -35,65 +40,48 @@
-
\ No newline at end of file
diff --git a/pages_tool/member/coupon.vue b/pages_tool/member/coupon.vue
index 660888b..96aa047 100644
--- a/pages_tool/member/coupon.vue
+++ b/pages_tool/member/coupon.vue
@@ -70,23 +70,8 @@
diff --git a/pages_tool/order/refund.vue b/pages_tool/order/refund.vue
index 8d57d4e..7f7e6cb 100644
--- a/pages_tool/order/refund.vue
+++ b/pages_tool/order/refund.vue
@@ -104,11 +104,7 @@
+
+
diff --git a/pages_tool/components/uni-calendar/calendar.js b/uni_modules/uni-calendar/components/uni-calendar/calendar.js
similarity index 100%
rename from pages_tool/components/uni-calendar/calendar.js
rename to uni_modules/uni-calendar/components/uni-calendar/calendar.js
diff --git a/pages_tool/components/uni-calendar/uni-calendar-item.vue b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
similarity index 100%
rename from pages_tool/components/uni-calendar/uni-calendar-item.vue
rename to uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
diff --git a/pages_tool/components/uni-calendar/uni-calendar.vue b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
similarity index 100%
rename from pages_tool/components/uni-calendar/uni-calendar.vue
rename to uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
diff --git a/pages_tool/components/uni-calendar/util.js b/uni_modules/uni-calendar/components/uni-calendar/util.js
similarity index 100%
rename from pages_tool/components/uni-calendar/util.js
rename to uni_modules/uni-calendar/components/uni-calendar/util.js
diff --git a/components/uni-count-down/uni-count-down.vue b/uni_modules/uni-count-down/components/uni-count-down/uni-count-down.vue
similarity index 95%
rename from components/uni-count-down/uni-count-down.vue
rename to uni_modules/uni-count-down/components/uni-count-down/uni-count-down.vue
index 2bdf21d..333817c 100644
--- a/components/uni-count-down/uni-count-down.vue
+++ b/uni_modules/uni-count-down/components/uni-count-down/uni-count-down.vue
@@ -1,252 +1,252 @@
-
-
-
- {{ d }}
-
- {{ showColon ? '天' : '天' }}
-
- {{ h }}
-
- {{ showColon ? ':' : '时' }}
-
- {{ i }}
-
- {{ showColon ? ':' : '分' }}
-
- {{ s }}
-
- 秒
-
-
-
-
+
+
+
+ {{ d }}
+
+ {{ showColon ? '天' : '天' }}
+
+ {{ h }}
+
+ {{ showColon ? ':' : '时' }}
+
+ {{ i }}
+
+ {{ showColon ? ':' : '分' }}
+
+ {{ s }}
+
+ 秒
+
+
+
+
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/changelog.md b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/changelog.md
new file mode 100644
index 0000000..401063e
--- /dev/null
+++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/changelog.md
@@ -0,0 +1,85 @@
+## 2.2.2(2021-12-10)
+- 修复 clear-icon 属性在小程序平台不生效的 bug
+## 2.2.1(2021-12-10)
+- 修复 日期范围选在小程序平台,必须多点击一次才能取消选中状态的 bug
+## 2.2.0(2021-11-19)
+- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
+- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-datetime-picker](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker)
+## 2.1.5(2021-11-09)
+- 新增 提供组件设计资源,组件样式调整
+## 2.1.4(2021-09-10)
+- 修复 hide-second 在移动端的 bug
+- 修复 单选赋默认值时,赋值日期未高亮的 bug
+- 修复 赋默认值时,移动端未正确显示时间的 bug
+## 2.1.3(2021-09-09)
+- 新增 hide-second 属性,支持只使用时分,隐藏秒
+## 2.1.2(2021-09-03)
+- 优化 取消选中时(范围选)直接开始下一次选择, 避免多点一次
+- 优化 移动端支持清除按钮,同时支持通过 ref 调用组件的 clear 方法
+- 优化 调整字号大小,美化日历界面
+- 修复 因国际化导致的 placeholder 失效的 bug
+## 2.1.1(2021-08-24)
+- 新增 支持国际化
+- 优化 范围选择器在 pc 端过宽的问题
+## 2.1.0(2021-08-09)
+- 新增 适配 vue3
+## 2.0.19(2021-08-09)
+- 新增 支持作为 uni-forms 子组件相关功能
+- 修复 在 uni-forms 中使用时,选择时间报 NAN 错误的 bug
+## 2.0.18(2021-08-05)
+- 修复 type 属性动态赋值无效的 bug
+- 修复 ‘确认’按钮被 tabbar 遮盖 bug
+- 修复 组件未赋值时范围选左、右日历相同的 bug
+## 2.0.17(2021-08-04)
+- 修复 范围选未正确显示当前值的 bug
+- 修复 h5 平台(移动端)报错 'cale' of undefined 的 bug
+## 2.0.16(2021-07-21)
+- 新增 return-type 属性支持返回 date 日期对象
+## 2.0.15(2021-07-14)
+- 修复 单选日期类型,初始赋值后不在当前日历的 bug
+- 新增 clearIcon 属性,显示框的清空按钮可配置显示隐藏(仅 pc 有效)
+- 优化 移动端移除显示框的清空按钮,无实际用途
+## 2.0.14(2021-07-14)
+- 修复 组件赋值为空,界面未更新的 bug
+- 修复 start 和 end 不能动态赋值的 bug
+- 修复 范围选类型,用户选择后再次选择右侧日历(结束日期)显示不正确的 bug
+## 2.0.13(2021-07-08)
+- 修复 范围选择不能动态赋值的 bug
+## 2.0.12(2021-07-08)
+- 修复 范围选择的初始时间在一个月内时,造成无法选择的bug
+## 2.0.11(2021-07-08)
+- 优化 弹出层在超出视窗边缘定位不准确的问题
+## 2.0.10(2021-07-08)
+- 修复 范围起始点样式的背景色与今日样式的字体前景色融合,导致日期字体看不清的 bug
+- 优化 弹出层在超出视窗边缘被遮盖的问题
+## 2.0.9(2021-07-07)
+- 新增 maskClick 事件
+- 修复 特殊情况日历 rpx 布局错误的 bug,rpx -> px
+- 修复 范围选择时清空返回值不合理的bug,['', ''] -> []
+## 2.0.8(2021-07-07)
+- 新增 日期时间显示框支持插槽
+## 2.0.7(2021-07-01)
+- 优化 添加 uni-icons 依赖
+## 2.0.6(2021-05-22)
+- 修复 图标在小程序上不显示的 bug
+- 优化 重命名引用组件,避免潜在组件命名冲突
+## 2.0.5(2021-05-20)
+- 优化 代码目录扁平化
+## 2.0.4(2021-05-12)
+- 新增 组件示例地址
+## 2.0.3(2021-05-10)
+- 修复 ios 下不识别 '-' 日期格式的 bug
+- 优化 pc 下弹出层添加边框和阴影
+## 2.0.2(2021-05-08)
+- 修复 在 admin 中获取弹出层定位错误的bug
+## 2.0.1(2021-05-08)
+- 修复 type 属性向下兼容,默认值从 date 变更为 datetime
+## 2.0.0(2021-04-30)
+- 支持日历形式的日期+时间的范围选择
+ > 注意:此版本不向后兼容,不再支持单独时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker)
+## 1.0.6(2021-03-18)
+- 新增 hide-second 属性,时间支持仅选择时、分
+- 修复 选择跟显示的日期不一样的 bug
+- 修复 chang事件触发2次的 bug
+- 修复 分、秒 end 范围错误的 bug
+- 优化 更好的 nvue 适配
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/package.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/package.json
new file mode 100644
index 0000000..d2959e5
--- /dev/null
+++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/package.json
@@ -0,0 +1,90 @@
+{
+ "id": "uni-datetime-picker",
+ "displayName": "uni-datetime-picker 日期选择器",
+ "version": "2.2.2",
+ "description": "uni-datetime-picker 日期时间选择器,支持日历,支持范围选择",
+ "keywords": [
+ "uni-datetime-picker",
+ "uni-ui",
+ "uniui",
+ "日期时间选择器",
+ "日期时间"
+],
+ "repository": "https://github.com/dcloudio/uni-ui",
+ "engines": {
+ "HBuilderX": ""
+ },
+ "directories": {
+ "example": "../../temps/example_temps"
+ },
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
+ },
+ "uni_modules": {
+ "dependencies": [
+ "uni-scss",
+ "uni-icons"
+ ],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "n"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ },
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ }
+ }
+ }
+ }
+}
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/readme.md b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/readme.md
new file mode 100644
index 0000000..940c0b2
--- /dev/null
+++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/readme.md
@@ -0,0 +1,21 @@
+
+
+> `重要通知:组件升级更新 2.0.0 后,支持日期+时间范围选择,组件 ui 将使用日历选择日期,ui 变化较大,同时支持 PC 和 移动端。此版本不向后兼容,不再支持单独的时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker)。若仍需使用旧版本,可在插件市场下载*非uni_modules版本*,旧版本将不再维护`
+
+## DatetimePicker 时间选择器
+
+> **组件名:uni-datetime-picker**
+> 代码块: `uDatetimePicker`
+
+
+该组件的优势是,支持**时间戳**输入和输出(起始时间、终止时间也支持时间戳),可**同时选择**日期和时间。
+
+若只是需要单独选择日期和时间,不需要时间戳输入和输出,可使用原生的 picker 组件。
+
+**_点击 picker 默认值规则:_**
+
+- 若设置初始值 value, 会显示在 picker 显示框中
+- 若无初始值 value,则初始值 value 为当前本地时间 Date.now(), 但不会显示在 picker 显示框中
+
+### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker)
+#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
\ No newline at end of file
diff --git a/components/uni-drawer/uni-drawer.vue b/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue
similarity index 100%
rename from components/uni-drawer/uni-drawer.vue
rename to uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue
diff --git a/components/uni-grid-item/uni-grid-item.vue b/uni_modules/uni-grid-item/components/uni-grid-item/uni-grid-item.vue
similarity index 93%
rename from components/uni-grid-item/uni-grid-item.vue
rename to uni_modules/uni-grid-item/components/uni-grid-item/uni-grid-item.vue
index e7fb018..c0027de 100644
--- a/components/uni-grid-item/uni-grid-item.vue
+++ b/uni_modules/uni-grid-item/components/uni-grid-item/uni-grid-item.vue
@@ -19,12 +19,8 @@