From 40bf8f84330d2063892da474675011dd33ea4d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=80=AA?= <690927457@qq.com> Date: Mon, 11 Dec 2023 01:12:26 +0800 Subject: [PATCH] 1211 --- api/index.js | 2 +- config/index.js | 2 +- pages/index/index.vue | 4 ++++ pages/user/userInfo.vue | 7 ++++--- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/api/index.js b/api/index.js index 4882e59..1e6bbea 100644 --- a/api/index.js +++ b/api/index.js @@ -21,7 +21,7 @@ const API = { todoFinished:data => net.PUT("/user/todo",data),// 修改待办列表状态 // 百科 getArticleList:data => net.GET("/article/list",data),// 百科列表 - getArticleDetail:data => net.GET("/article/"+data.id),// 文章详情 + getArticleDetail:(data,userId) => net.GET("/article/"+data.id,null,true,{"userId":userId}),// 文章详情 // 我的 getStarList:data => net.GET("/favorite/list",data),// 收藏列表 /* diff --git a/config/index.js b/config/index.js index ef3e1f2..fe68f91 100644 --- a/config/index.js +++ b/config/index.js @@ -1,6 +1,6 @@ // isdev 为 true 表示开发环境 false 表示发布环境 const isdev = true; -const baseUrl = isdev ? 'http://47.116.50.126:8888' : 'http://eb467b6.r19.cpolar.top';// 办公室接口 & 测试环境 +const baseUrl = isdev ? 'https://api.jimingyiliao.com' : '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/index.vue b/pages/index/index.vue index 6824741..bc1c1a1 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -19,6 +19,10 @@ inputDialog.value.open() },0) } + let s = `$http({code:'1s'});if` + // // let arr = /\$http\((\S*)\)\;if/.exec(s); + let arr = s.match(/\$http\((.*)\)\;if/) + console.log(arr[1]) }) // 变量 diff --git a/pages/user/userInfo.vue b/pages/user/userInfo.vue index 3ebce89..254db58 100644 --- a/pages/user/userInfo.vue +++ b/pages/user/userInfo.vue @@ -42,7 +42,8 @@ hospitals.value = res.data.list } } - function onClickH() { + function onInputH() { + console.log(hValue.value) h_queryParams.value.key = hValue.value getHospitalList() @@ -215,8 +216,8 @@ 手术医院 - - + +