111
This commit is contained in:
parent
9a45c7aa03
commit
b09524e012
12
api/api.js
12
api/api.js
@ -20,10 +20,10 @@ const api = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getArticleDetail(id) { //获取详情
|
getArticleDetail(id) { //获取详情
|
||||||
return request('/clinical/article/'+id,{}, 'get', false);
|
return request('/clinical/article/'+id,{}, 'get', true);
|
||||||
},
|
},
|
||||||
getVideoDetail(id) { //获取详情
|
getVideoDetail(id) { //获取详情
|
||||||
return request('/clinical/video/'+id,{}, 'get', false);
|
return request('/clinical/video/'+id,{}, 'get', true);
|
||||||
},
|
},
|
||||||
collectArticle(id){
|
collectArticle(id){
|
||||||
return request('/clinical/article/collect/'+id, {}, 'post',false);
|
return request('/clinical/article/collect/'+id, {}, 'post',false);
|
||||||
@ -105,7 +105,7 @@ const api = {
|
|||||||
return request('/exchange/list', data, 'post',true,'application/json');
|
return request('/exchange/list', data, 'post',true,'application/json');
|
||||||
},
|
},
|
||||||
getExchangeDetail(id){
|
getExchangeDetail(id){
|
||||||
return request('/exchange/'+id,{}, 'get', false);
|
return request('/exchange/'+id,{}, 'get', true);
|
||||||
},
|
},
|
||||||
getExchangeVote(id){
|
getExchangeVote(id){
|
||||||
return request('/exchange/vote/'+id,{}, 'get', false);
|
return request('/exchange/vote/'+id,{}, 'get', false);
|
||||||
@ -141,7 +141,7 @@ const api = {
|
|||||||
return request('/exchange/draft/search', data, 'post',false,'application/json');
|
return request('/exchange/draft/search', data, 'post',false,'application/json');
|
||||||
},
|
},
|
||||||
saveDraft(data){
|
saveDraft(data){
|
||||||
return request('/exchange/draft', data, 'post',false,'application/json');
|
return request('/exchange/draft', data, 'post',true,'application/json');
|
||||||
},
|
},
|
||||||
delDraft(id){
|
delDraft(id){
|
||||||
return request('/exchange/draft/'+id, {}, 'delete',false);
|
return request('/exchange/draft/'+id, {}, 'delete',false);
|
||||||
@ -179,8 +179,8 @@ const api = {
|
|||||||
givePoint(data){
|
givePoint(data){
|
||||||
return request('/reward',data,'post',true);
|
return request('/reward',data,'post',true);
|
||||||
},
|
},
|
||||||
h5Login(data){
|
h5Login(data){
|
||||||
return request('/login/hcp',data,'post');
|
return request('/login/hcp',data,'post',true);
|
||||||
},
|
},
|
||||||
readRecord(data){
|
readRecord(data){
|
||||||
return request('/user/case/read',data,'post',false,'application/json');
|
return request('/user/case/read',data,'post',false,'application/json');
|
||||||
|
|||||||
@ -2095,13 +2095,13 @@ const readRecord=()=>{
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
padding: 0 12rpx;
|
padding: 0 30rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #4b5563;
|
color: #4b5563;
|
||||||
line-height: 38rpx;
|
line-height: 28rpx;
|
||||||
|
|
||||||
:deep(.u-image) {
|
:deep(.u-image) {
|
||||||
margin-top: 10rpx;
|
margin-top: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
|
|||||||
@ -206,7 +206,7 @@ const labelObj = reactive({
|
|||||||
});
|
});
|
||||||
const getCaseLabel = (lev,pid=0) => {
|
const getCaseLabel = (lev,pid=0) => {
|
||||||
api.getCaseLabel({
|
api.getCaseLabel({
|
||||||
pid:pid
|
pId:pid
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (lev == 1) {
|
if (lev == 1) {
|
||||||
labelObj.list1 = res.data.data;
|
labelObj.list1 = res.data.data;
|
||||||
|
|||||||
10
unpackage/dist/dev/mp-weixin/api/api.js
vendored
10
unpackage/dist/dev/mp-weixin/api/api.js
vendored
@ -17,10 +17,10 @@ const api = {
|
|||||||
return utils_request.request("/clinical/stats", data, "get", true);
|
return utils_request.request("/clinical/stats", data, "get", true);
|
||||||
},
|
},
|
||||||
getArticleDetail(id) {
|
getArticleDetail(id) {
|
||||||
return utils_request.request("/clinical/article/" + id, {}, "get", false);
|
return utils_request.request("/clinical/article/" + id, {}, "get", true);
|
||||||
},
|
},
|
||||||
getVideoDetail(id) {
|
getVideoDetail(id) {
|
||||||
return utils_request.request("/clinical/video/" + id, {}, "get", false);
|
return utils_request.request("/clinical/video/" + id, {}, "get", true);
|
||||||
},
|
},
|
||||||
collectArticle(id) {
|
collectArticle(id) {
|
||||||
return utils_request.request("/clinical/article/collect/" + id, {}, "post", false);
|
return utils_request.request("/clinical/article/collect/" + id, {}, "post", false);
|
||||||
@ -101,7 +101,7 @@ const api = {
|
|||||||
return utils_request.request("/exchange/list", data, "post", true, "application/json");
|
return utils_request.request("/exchange/list", data, "post", true, "application/json");
|
||||||
},
|
},
|
||||||
getExchangeDetail(id) {
|
getExchangeDetail(id) {
|
||||||
return utils_request.request("/exchange/" + id, {}, "get", false);
|
return utils_request.request("/exchange/" + id, {}, "get", true);
|
||||||
},
|
},
|
||||||
getExchangeVote(id) {
|
getExchangeVote(id) {
|
||||||
return utils_request.request("/exchange/vote/" + id, {}, "get", false);
|
return utils_request.request("/exchange/vote/" + id, {}, "get", false);
|
||||||
@ -137,7 +137,7 @@ const api = {
|
|||||||
return utils_request.request("/exchange/draft/search", data, "post", false, "application/json");
|
return utils_request.request("/exchange/draft/search", data, "post", false, "application/json");
|
||||||
},
|
},
|
||||||
saveDraft(data) {
|
saveDraft(data) {
|
||||||
return utils_request.request("/exchange/draft", data, "post", false, "application/json");
|
return utils_request.request("/exchange/draft", data, "post", true, "application/json");
|
||||||
},
|
},
|
||||||
delDraft(id) {
|
delDraft(id) {
|
||||||
return utils_request.request("/exchange/draft/" + id, {}, "delete", false);
|
return utils_request.request("/exchange/draft/" + id, {}, "delete", false);
|
||||||
@ -176,7 +176,7 @@ const api = {
|
|||||||
return utils_request.request("/reward", data, "post", true);
|
return utils_request.request("/reward", data, "post", true);
|
||||||
},
|
},
|
||||||
h5Login(data) {
|
h5Login(data) {
|
||||||
return utils_request.request("/login/hcp", data, "post");
|
return utils_request.request("/login/hcp", data, "post", true);
|
||||||
},
|
},
|
||||||
readRecord(data) {
|
readRecord(data) {
|
||||||
return utils_request.request("/user/case/read", data, "post", false, "application/json");
|
return utils_request.request("/user/case/read", data, "post", false, "application/json");
|
||||||
|
|||||||
@ -466,13 +466,13 @@
|
|||||||
.box .info.data-v-eca06f3c {
|
.box .info.data-v-eca06f3c {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 12rpx;
|
padding: 0 30rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #4b5563;
|
color: #4b5563;
|
||||||
line-height: 38rpx;
|
line-height: 28rpx;
|
||||||
}
|
}
|
||||||
.box .info.data-v-eca06f3c .u-image {
|
.box .info.data-v-eca06f3c .u-image {
|
||||||
margin-top: 10rpx;
|
margin-top: 8rpx;
|
||||||
}
|
}
|
||||||
.box .info .name.data-v-eca06f3c {
|
.box .info .name.data-v-eca06f3c {
|
||||||
margin-left: 15rpx;
|
margin-left: 15rpx;
|
||||||
|
|||||||
@ -71,7 +71,7 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
const getCaseLabel = (lev, pid = 0) => {
|
const getCaseLabel = (lev, pid = 0) => {
|
||||||
api_api.api.getCaseLabel({
|
api_api.api.getCaseLabel({
|
||||||
pid
|
pId: pid
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (lev == 1) {
|
if (lev == 1) {
|
||||||
labelObj.list1 = res.data.data;
|
labelObj.list1 = res.data.data;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user