From 9e4b34e4b293de3b6fd23496eae204c54ea371fe Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 19 Apr 2025 16:14:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config.js | 4 +- pages/shouye/index.vue | 26 +-- pages/user/login.vue | 498 +++++++++++++++++++++-------------------- 3 files changed, 262 insertions(+), 266 deletions(-) diff --git a/common/config.js b/common/config.js index 53b43a0..bee9d11 100644 --- a/common/config.js +++ b/common/config.js @@ -8,7 +8,7 @@ import RequestManager from '@/common/request.js' let configData = null; let isLoading = false; let loadPromise = null; -const wx_version = "100"; +const wx_version = "103"; 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": 0, "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 }, { "value": 15, "sort_order": 15, "is_show": 0, "name": "福利屋", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 0, "pay_currency2": 0, "pay_coupon": 0, "is_deduction": 0 }, { "value": 16, "sort_order": 16, "is_show": 1, "name": "翻倍赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 17, "sort_order": 17, "is_show": 0, "name": "外卖盒子", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 0, "pay_currency2": 0, "pay_coupon": 0, "is_deduction": 0 }], "app_setting": { @@ -31,7 +31,7 @@ const defaultConfig = { "daily_coupon_limit": "0", "update_time": 1744550962 }, - version: "100" + version: wx_version }; // 配置类 diff --git a/pages/shouye/index.vue b/pages/shouye/index.vue index 0e54e36..ac92cb0 100644 --- a/pages/shouye/index.vue +++ b/pages/shouye/index.vue @@ -137,7 +137,7 @@ - + @@ -327,24 +327,7 @@ export default { }); }, - // colrdo() { - // //插入一条弹幕 - // let that = this - // let a = 0 - // that.timer = setInterval(function () { - // // that.$refs.lffBarrage.add({ - // // item: that.notice_list[a].content, - // // // title: that.notice_list[a].title, - // // // color: that.notice_list[a].color, - // // headimg: that.notice_list[a].headimg - // // }); - // if (a < that.notice_list.length - 1) { - // a++ - // } else { - // a = 0 - // } - // }, 5000) - // }, + torili() { uni.setStorageSync("rili", this.yushou_rili); this.gotoPage("/pages/shouye/rili"); @@ -388,9 +371,7 @@ export default { keyword: that.keyword, }, success: function (res) { - that.mescroll.endByPage(res.data.data.length, res.data.last_page); - console.log(res.data.data, "res.data.data"); - + let _data = res.data.data; let isWXPay = that.$config.GetVersion() if (isWXPay) { @@ -402,6 +383,7 @@ export default { } _data = _data2; } + that.mescroll.endByPage(_data.length, res.data.last_page); if (num == 1) { that.listdata = _data; } else { diff --git a/pages/user/login.vue b/pages/user/login.vue index 316cc76..aecc8ff 100644 --- a/pages/user/login.vue +++ b/pages/user/login.vue @@ -44,277 +44,291 @@ 授权登录 + version:v1.0.3 + \ No newline at end of file