Browse Source

openId=>openid

lighter 1 year ago
parent
commit
722dcc948d

+ 2 - 2
src/api/electronic-health-card.js

@@ -39,9 +39,9 @@ export function getOrderIdByOutAppId(qrCodeText) {
     })
 }
 
-export function getEncryptOpenId() {
+export function getEncryptOpenid() {
     return request({
-        url: '/electronicHealthCard/getEncryptOpenId',
+        url: '/electronicHealthCard/getEncryptOpenid',
         method: 'get',
     })
 }

+ 2 - 2
src/api/patient-id-cards.js

@@ -8,9 +8,9 @@ export function getToken(code) {
   })
 }
 
-export function getPatientIdByOpenId() {
+export function getPatientIdByOpenid() {
   return request({
-    url: '/patientCards/getPatientIdByOpenId',
+    url: '/patientCards/getPatientIdByOpenid',
     method: 'get',
   })
 }

+ 2 - 2
src/views/Home.vue

@@ -8,7 +8,7 @@
 </template>
 
 <script setup>
-import { getToken, getPatientIdByOpenId } from '../api/patient-id-cards'
+import { getToken, getPatientIdByOpenid } from '../api/patient-id-cards'
 import store from '../store'
 import { useRouter } from 'vue-router'
 import { onMounted } from 'vue'
@@ -48,7 +48,7 @@ const onAppStart = () => {
 }
 
 function getPatientCards() {
-  getPatientIdByOpenId().then((cards) => {
+  getPatientIdByOpenid().then((cards) => {
     store.dispatch({
       type: 'storePatientCards',
       cards,

+ 2 - 2
src/views/hospital-service/electronic-health-card/ActiveHealthCard.vue

@@ -5,13 +5,13 @@
 </template>
 
 <script>
-import {getEncryptOpenId} from '../../../api/electronic-health-card'
+import {getEncryptOpenid} from '../../../api/electronic-health-card'
 import {onMounted} from "vue";
 export default {
   setup() {
 
     onMounted(() => {
-      getEncryptOpenId().then(res => {
+      getEncryptOpenid().then(res => {
         const encryptData = encodeURI(res);
         const redirectUri = encodeURI('http://staticweb.hnthyy.cn/electronicHealthCardHome')
         window.location.href = `https://health.tengmed.com/open/batchActiveCard?open_id=${encryptData}&redirect_uri=${redirectUri}`

+ 2 - 2
src/views/hospital-service/electronic-health-card/LinkHealthCardResult.vue

@@ -46,7 +46,7 @@
 import {onMounted, ref} from "vue";
 import {useRouter} from "vue-router";
 import {linkHealthCard} from '../../../api/electronic-health-card'
-import {getPatientIdByOpenId} from "../../../api/patient-id-cards";
+import {getPatientIdByOpenid} from "../../../api/patient-id-cards";
 import store from "../../../store";
 
 export default {
@@ -73,7 +73,7 @@ export default {
           linkHealthCard(val).then(res => {
             if (res.healthCardId) {
               resultCode.value = 0
-              getPatientIdByOpenId().then((cards) => {
+              getPatientIdByOpenid().then((cards) => {
                 store.dispatch({
                   type: 'storePatientCards',
                   cards

+ 2 - 2
src/views/hospital-service/electronic-health-card/NewUserReg.vue

@@ -38,7 +38,7 @@ import {register} from '../../../api/electronic-health-card'
 import {analyseIdCard} from "../../../api/electronic-health-card";
 import {resize} from "../../../utils/image";
 import {showToast} from "vant";
-import {getPatientIdByOpenId} from "../../../api/patient-id-cards";
+import {getPatientIdByOpenid} from "../../../api/patient-id-cards";
 import store from "../../../store";
 
 export default {
@@ -78,7 +78,7 @@ export default {
           message: '申领成功。',
           position: 'top'
         })
-        getPatientIdByOpenId().then((cards) => {
+        getPatientIdByOpenid().then((cards) => {
           store.dispatch({
             type: 'storePatientCards',
             cards,

+ 2 - 2
src/views/mine/patient-id-cards/PatientCardInfo.vue

@@ -41,7 +41,7 @@ import {onMounted, ref} from 'vue'
 import {useRouter} from 'vue-router'
 import {showConfirmDialog, showToast} from 'vant'
 import {
-  getPatientIdByOpenId,
+  getPatientIdByOpenid,
   relieveBindCard,
   relieveBindCardButCanceled,
   setDefaultCard,
@@ -66,7 +66,7 @@ const setThisDefaultCard = () => {
       message: '设置成功',
       position: 'top'
     })
-    getPatientIdByOpenId().then((cards) => {
+    getPatientIdByOpenid().then((cards) => {
       store.dispatch({
         type: 'storePatientCards',
         cards