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() }