From bcd5428f82df2022385ce2ec985a2b5f3fb6c7d8 Mon Sep 17 00:00:00 2001 From: sx <2427911852@qq.com> Date: Tue, 4 Mar 2025 17:10:55 +0800 Subject: [PATCH] =?UTF-8?q?2025.03.04=E5=B7=A5=E4=BD=9C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=20=E8=BD=AF=E4=BB=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/api/index.js | 4 +- jiuyi2/common/js/config.js | 3 +- jiuyi2/common/js/util.js | 2 +- jiuyi2/components/index/appVerUpdate.vue | 111 +++++++++++++++++++++++ jiuyi2/pages/index/article.vue | 4 + jiuyi2/pages/index/durian.vue | 5 + jiuyi2/pages/index/index.nvue | 8 ++ jiuyi2/pages/index/integralMall.vue | 6 +- jiuyi2/pages/index/myTeam.vue | 5 + jiuyi2/vite.config.js | 3 +- 10 files changed, 145 insertions(+), 6 deletions(-) create mode 100644 jiuyi2/components/index/appVerUpdate.vue diff --git a/jiuyi2/api/index.js b/jiuyi2/api/index.js index b5fb15a7..b2299a9f 100644 --- a/jiuyi2/api/index.js +++ b/jiuyi2/api/index.js @@ -103,9 +103,9 @@ const api = { * 获取未读消息数量 * @param {Object} param */ - getNoReadNum() { + getAppVersion() { return util.request({ - url: '/shopify/region/all', + url: '/system/appversion/latest', method: 'GET', }) }, diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index d9448b2f..ea5d4755 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -6,7 +6,8 @@ const config = { // host: 'h5api', // #endif // #ifndef H5 - host: 'http://91f.xyz:8080', + // host: 'http://91f.xyz:8080', + host: 'http://3f609e6a.r24.cpolar.top', // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/common/js/util.js b/jiuyi2/common/js/util.js index 36f0c9ca..17db9ca8 100644 --- a/jiuyi2/common/js/util.js +++ b/jiuyi2/common/js/util.js @@ -213,7 +213,7 @@ const util = { responseType: params.responseType || 'text', // 请求成功返回 success: res => { - console.log('request success', url, res, params.data ? params.data : '') + // console.log('request success', url, res, params.data ? params.data : '') // 关闭加载效果 if (params.load) { uni.hideLoading() diff --git a/jiuyi2/components/index/appVerUpdate.vue b/jiuyi2/components/index/appVerUpdate.vue new file mode 100644 index 00000000..83e43dcb --- /dev/null +++ b/jiuyi2/components/index/appVerUpdate.vue @@ -0,0 +1,111 @@ + + + + + \ No newline at end of file diff --git a/jiuyi2/pages/index/article.vue b/jiuyi2/pages/index/article.vue index b1e74a16..ef465df0 100644 --- a/jiuyi2/pages/index/article.vue +++ b/jiuyi2/pages/index/article.vue @@ -36,6 +36,10 @@ }).then(rs => { if (rs.code == 200) { Object.assign(wrap, rs.data) + // 设置标题 + uni.setNavigationBarTitle({ + title: rs.data.agreementType + }) return } util.alert({ diff --git a/jiuyi2/pages/index/durian.vue b/jiuyi2/pages/index/durian.vue index 4414ebef..4c591c8f 100644 --- a/jiuyi2/pages/index/durian.vue +++ b/jiuyi2/pages/index/durian.vue @@ -317,6 +317,11 @@ 置换流量 + + + 玩法规则说明 + + diff --git a/jiuyi2/pages/index/index.nvue b/jiuyi2/pages/index/index.nvue index 364e4ef3..d4752dc4 100644 --- a/jiuyi2/pages/index/index.nvue +++ b/jiuyi2/pages/index/index.nvue @@ -21,6 +21,8 @@ // api import api from '@/api/index.js' + // 版本更新弹窗 + import appVerUpdateAlt from '@/components/index/appVerUpdate.vue'; // 顶部状态栏 import statusBar from '@/components/header/statusBar.vue' // 引入视频 @@ -216,6 +218,10 @@ // handleProBuy({ // productId: 42, // }) + + setTimeout(() => { + proxy.$refs.appVerUpdateRef.init() + }, 1000) }) onShow(() => { @@ -830,6 +836,8 @@ + + diff --git a/jiuyi2/pages/index/integralMall.vue b/jiuyi2/pages/index/integralMall.vue index f78a2614..4732375e 100644 --- a/jiuyi2/pages/index/integralMall.vue +++ b/jiuyi2/pages/index/integralMall.vue @@ -113,9 +113,13 @@ {{item.price}}购买 - + + + 玩法规则说明 + + diff --git a/jiuyi2/pages/index/myTeam.vue b/jiuyi2/pages/index/myTeam.vue index 1994316e..17518191 100644 --- a/jiuyi2/pages/index/myTeam.vue +++ b/jiuyi2/pages/index/myTeam.vue @@ -194,6 +194,11 @@ + + + 玩法规则说明 + + diff --git a/jiuyi2/vite.config.js b/jiuyi2/vite.config.js index fc5535df..c135185a 100644 --- a/jiuyi2/vite.config.js +++ b/jiuyi2/vite.config.js @@ -3,7 +3,8 @@ import { } from 'vite'; import uni from '@dcloudio/vite-plugin-uni'; -let target = 'http://91f.xyz:8080' +// let target = 'http://91f.xyz:8080' +let target = 'http://3f609e6a.r24.cpolar.top' export default defineConfig({ plugins: [uni()],