From d83f42d1e5c86fc0db6a367d42477b91d7053cab Mon Sep 17 00:00:00 2001 From: zpc Date: Sun, 23 Mar 2025 17:41:55 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shouye/detail.vue | 4 ---- pages/user/index.vue | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pages/shouye/detail.vue b/pages/shouye/detail.vue index 9e624c5..0bfe526 100644 --- a/pages/shouye/detail.vue +++ b/pages/shouye/detail.vue @@ -236,10 +236,6 @@ \ No newline at end of file From 08bca7b34a1632860db3cb08c8cbf98741fed29c Mon Sep 17 00:00:00 2001 From: zpc Date: Mon, 24 Mar 2025 04:07:13 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mall/index.vue | 1040 +++++++++++++++++++++--------------------- 1 file changed, 509 insertions(+), 531 deletions(-) diff --git a/pages/mall/index.vue b/pages/mall/index.vue index d07963b..c2d05d9 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -5,24 +5,11 @@ 商城好物 - - - - - - + @@ -33,12 +20,12 @@ - {{item.title}} + {{ item.title }} - ¥{{item.price}} + ¥{{ item.price }} @@ -91,7 +78,7 @@ 微信支付 - + @@ -99,12 +86,12 @@ - 吧唧币 - {{ orderData.goods.price*100 }} (剩余:{{ orderData.use_integral }}) + {{ $config.getAppSetting('currency2_name') }} + {{ orderData.goods.price * 100 }} (剩余:{{ orderData.use_integral }}) - + @@ -136,15 +123,15 @@ - + {{ - ` ¥${orderData.price}` + ` ¥${orderData.price}` }} - - {{orderData.price*100}}吧唧币 + + {{ orderData.price * 100 }}{{ $config.getAppSetting('currency2_name') }} @@ -155,578 +142,569 @@ \ No newline at end of file From 6f5e1e1790d4ed31ae93f8b776a8cf9a97030950 Mon Sep 17 00:00:00 2001 From: zpc Date: Mon, 24 Mar 2025 04:11:49 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/index/sign.vue | 416 ++++++++++++++++++++--------------------- 1 file changed, 208 insertions(+), 208 deletions(-) diff --git a/package/index/sign.vue b/package/index/sign.vue index e73d8db..fa82e6d 100644 --- a/package/index/sign.vue +++ b/package/index/sign.vue @@ -17,12 +17,12 @@ + backgroundImage: `url(${$img('/static/img/1_sign_bg.png')})` + }"> - + + backgroundImage: `url(${$img('/static/img/signBg.png')})` + + }"> - 恭喜获得 {{ sucData.num }} 吧唧币 + 恭喜获得 {{ sucData.num }} {{$config.getAppSetting('currency1_name')}} @@ -77,232 +77,232 @@ \ No newline at end of file From 4c15cabee23e026c3779f02e3c553fc8815a8cc8 Mon Sep 17 00:00:00 2001 From: zpc Date: Mon, 24 Mar 2025 04:20:41 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/common/config.js b/common/config.js index 6f3b749..405003d 100644 --- a/common/config.js +++ b/common/config.js @@ -8,6 +8,10 @@ import RequestManager from '@/common/request.js' let configData = null; let isLoading = false; let loadPromise = null; +const defaultConfig = { + "good_type": [{ "value": 0, "sort_order": 0, "is_show": 1, "name": "全部", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 1, "sort_order": 1, "is_show": 0, "name": "一番赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 2, "sort_order": 2, "is_show": 1, "name": "无限赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 3, "sort_order": 3, "is_show": 0, "name": "擂台赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 5, "sort_order": 4, "is_show": 0, "name": "积分赏", "pay_wechat": 0, "pay_balance": 0, "pay_currency": 0, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 0 }, { "value": 6, "sort_order": 5, "is_show": 1, "name": "全局赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 8, "sort_order": 6, "is_show": 1, "name": "领主赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 9, "sort_order": 7, "is_show": 1, "name": "连击赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 10, "sort_order": 8, "is_show": 0, "name": "商城赏", "pay_wechat": 1, "pay_balance": 0, "pay_currency": 0, "pay_currency2": 1, "pay_coupon": 0, "is_deduction": 0 }, { "value": 11, "sort_order": 9, "is_show": 0, "name": "自制赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }], + "app_setting": { "key": "app_setting", "app_name": "友达赏", "purchase_popup": "1", "exchange_times": "2", "balance_name": "钻石", "balance_icon": "https://mh.shhuanmeng.com/app/icons/20250322/3d823aaa01e96aeeafc39cbb2d579612.jpg", "currency1_name": "货币", "currency1_icon": "https://mh.shhuanmeng.com/app/icons/20250322/8188634352e7f9edf5a2a42329b7c2c9.jpg", "currency2_name": "积分1", "currency2_icon": "", "win_audio": "https://mh.shhuanmeng.com/static/web/static/mp3/open.mp3", "update_time": 1742716262 } +}; // 配置类 class ConfigManager { @@ -77,14 +81,22 @@ class ConfigManager { * @param {any} defaultValue 默认值,当键不存在时返回 * @returns {any} 配置值 */ - static get(key, defaultValue = null) { + static get(key) { if (!configData) { console.warn('配置数据尚未加载,获取本地缓存中。。。'); configData = uni.getStorageSync("configData"); - if (configData != null) { + if (configData != null && configData != "") { return configData; } - return defaultValue; + configData = defaultConfig; + // wx.restartMiniProgram({ + // success(res) { + // console.log('重启小程序成功', res); + // }, + // fail(err) { + // console.error('重启小程序失败', err); + // } + // }); } return key in configData ? configData[key] : defaultValue; }