From 3579868cc7571b6951d51e269ea5906c94c8ac8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=80=AA?= <690927457@qq.com> Date: Thu, 16 Nov 2023 00:11:40 +0800 Subject: [PATCH] 2023.11.16 --- config/index.js | 2 +- pages/index/aikefu.vue | 17 +++++++++-------- store/index.js | 1 + 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/config/index.js b/config/index.js index 37863da..33e2254 100644 --- a/config/index.js +++ b/config/index.js @@ -1,6 +1,6 @@ // isdev 为 true 表示开发环境 false 表示发布环境 const isdev = true; -const baseUrl = isdev ? 'http://5a0a6573.r9.cpolar.top' : 'http://eb467b6.r19.cpolar.top';// 办公室接口 & 测试环境 +const baseUrl = isdev ? 'http://e07b2b5.r9.cpolar.top' : 'http://eb467b6.r19.cpolar.top';// 办公室接口 & 测试环境 // const baseUrl = isdev ? 'http://192.168.1.133:8899' : 'https://api.gwkjxb.com';// 办公室接口 & 正式环境 // const baseUrl = 'https://api.gwkjxb.com';// 正式环境(由于本地测试后台没有启动,暂时通用正式服) diff --git a/pages/index/aikefu.vue b/pages/index/aikefu.vue index 558ee60..7a34619 100644 --- a/pages/index/aikefu.vue +++ b/pages/index/aikefu.vue @@ -46,14 +46,7 @@ is_loading.value = false return } - // 滚动条设置 - uni.createSelectorQuery().in(instance).select('#scroll-view-content').boundingClientRect((res)=>{ - let top = res.height-w_h.value+100; - if(top>0){ - scrollTop.value = top; - } - // console.log(res.height,w_h.value) - }).exec() + records.value.push({ content:in_content.value, type:2 @@ -83,6 +76,14 @@ duration:2000 }) } + // 滚动条设置 + uni.createSelectorQuery().in(instance).select('#scroll-view-content').boundingClientRect((res)=>{ + let top = res.height-w_h.value+100; + if(top>0){ + scrollTop.value = top; + } + // console.log(res.height,w_h.value) + }).exec() }