From ac6d837840e97271c90a2da4b73772c5837f0dc7 Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 4 Jun 2024 12:00:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dof-api.js | 4 ++-- index-style.css | 4 +--- index.html | 10 +++++++++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/dof-api.js b/dof-api.js index c8c1b06..1d7b518 100644 --- a/dof-api.js +++ b/dof-api.js @@ -1,6 +1,6 @@ -// const baseurl = "http://192.168.110.39:8080"; // 本地 +const baseurl = "http://192.168.110.39:8080"; // 本地 // const baseurl = "http://lottery.unipay.test.86698.cn/api"; // 测试 -const baseurl = "https://lottery.unipay.api.86698.cn"; // 正式 +// const baseurl = "https://lottery.unipay.api.86698.cn"; // 正式 // 统一请求 // 返送之前 axios.interceptors.request.use((config) => { diff --git a/index-style.css b/index-style.css index 49d20aa..edda938 100644 --- a/index-style.css +++ b/index-style.css @@ -8,14 +8,12 @@ width: 100%; padding-bottom: 0.2rem; position: relative; + background-color: #3387c2; } .banner { width: 100%; height: 3.68rem; - background: url("https://lsxd-customcard-h5.oss-cn-hangzhou.aliyuncs.com/department-of-finance/img/banner1.png?v=222") - no-repeat; - background-size: 100%; } .goods-box { diff --git a/index.html b/index.html index b823d7a..6c4c6c8 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,9 @@
- +
@@ -119,6 +121,11 @@ createApp({ setup() { const state = reactive({ + bg: [ + "https://lsxd-customcard-h5.oss-cn-hangzhou.aliyuncs.com/department-of-finance/img/banner1.png?v=222", + "https://lsxd-customcard-h5.oss-cn-hangzhou.aliyuncs.com/department-of-finance/img/banner2.png?v=333", + ], + id: 11, token: "", showPage: false, showPop: false, @@ -279,6 +286,7 @@ try { req.axiosGet("/front/homeData").then(res => { if (res.code === 200) { + state.id = res.data.id; state.goodsList = res.data.prizes; // 设置勾选 let el = res.data.prizes.find(item => item.is_receive === 1);