sunran 3 年 前
コミット
5c5e21ac7c

+ 8 - 8
src/views/zhulao/api/index.js

@@ -12,12 +12,12 @@ export function getArticleList(params) {
     })
 }
 // 资讯 详情
-export function getArticleMessage(params) {
+export function getArticleMessage(data) {
     return request({
-        url: '/cms/portal/article/' + params.id,
-        method: 'get',
+        url: '/cms/portal/article/get',
+        method: 'post',
         requestBase: 'VUE_APP_ZL_WSS_ZP',
-        params
+        data
     })
 }
 // 视频 分类
@@ -67,11 +67,11 @@ export function institutions_search(params) {
     })
 }
 // 获取养老机构管理详细信息 /cms/portal/institutions/{id}
-export function institutions_detail(id, params) {
+export function institutions_detail(data) {
     return request({
-        url: '/cms/portal/institutions/' + id,
-        method: 'get',
+        url: '/cms/portal/institutions/get',
+        method: 'post',
         requestBase: 'VUE_APP_ZL_WSS_ZP',
-        params
+        data
     })
 }

+ 4 - 2
src/views/zhulao/views/circle/detail.vue

@@ -51,6 +51,7 @@
   </div>
 </template>
 <script>
+import { serverAPI } from '../../../../utils/vaildInterfacefn.js'
 import { institutions_detail } from '../../api/index.js'
 export default {
   data() {
@@ -67,9 +68,10 @@ export default {
   },
   methods: {
     async getInstitutions_detail() {
-      var detailData = await institutions_detail(this.institutionsId, {})
+      var detailData = await serverAPI('zpsmzjylfwqjgxq', {
+        id: this.institutionsId,
+      })
       this.institutionsItem = detailData.data
-      console.log(this.institutionsItem)
     },
   },
 }

+ 0 - 1
src/views/zhulao/views/healthAssessmen/details.vue

@@ -84,7 +84,6 @@ export default {
         uid: JSON.parse(sessionStorage.getItem('healthUser')).uid,
         id: this.id,
       })
-      console.log(res, '111')
       this.ascvd = res.ascvd
       this.ultrasonic = res.ultrasonic
     },

+ 0 - 8
src/views/zhulao/views/healthAssessmen/index.vue

@@ -50,17 +50,9 @@ export default {
   created() {
     this.userInfo = JSON.parse(sessionStorage.getItem('userInfo'))
     this.healthUser = JSON.parse(sessionStorage.getItem('healthUser'))
-    // this.userApi()
     this.queryaction()
   },
   methods: {
-    // async userApi() {
-    //   const res = await userApi({
-    //     command: 'getDefaultHealthRange',
-    //     terminalType: 1,
-    //   })
-    //   console.log(res)
-    // },
     async queryaction() {
       const res = await serverAPI(
         'zpsmzjkgllxcxjk',

+ 1 - 4
src/views/zhulao/views/healthAssessmen/typeDetails/header.vue

@@ -37,12 +37,9 @@ export default {
       unit: '',
     }
   },
-  created() {
-    console.log(this.name)
-  },
+  created() {},
   methods: {
     search() {
-      console.log('w')
       this.$emit('onSerach', {
         selectValue: this.selectValue,
         healthTypeValue: this.healthTypeValue,

+ 3 - 2
src/views/zhulao/views/home/newsDetails.vue

@@ -5,6 +5,7 @@
   </div>
 </template>
 <script>
+import { serverAPI } from '../../../../utils/vaildInterfacefn.js'
 import { getArticleMessage } from '../../api/index.js'
 export default {
   data() {
@@ -16,9 +17,9 @@ export default {
     this.id = this.$route.query.id
     this.getArticleMessage()
   },
-  methods: {
+  methods: { 
     async getArticleMessage() {
-      const res = await getArticleMessage({ id: this.id })
+      const res = await serverAPI('zpsmzxxqjk',{ id: this.id })
       this.content = res.data.content
     },
   },