|
|
@@ -40,6 +40,7 @@ import {resize} from "../../../utils/image";
|
|
|
import {showToast} from "vant";
|
|
|
import {getPatientIdByOpenId} from "../../../api/patient-id-cards";
|
|
|
import store from "../../../store";
|
|
|
+import {setStoreCards} from "../../../utils/pat-card";
|
|
|
|
|
|
export default {
|
|
|
setup() {
|
|
|
@@ -67,10 +68,10 @@ export default {
|
|
|
{ text: '朋友', value: '5' },
|
|
|
{ text: '其他', value: '6' },
|
|
|
]
|
|
|
- const onConfirmSelectRelation = (selectedOptions) => {
|
|
|
+ const onConfirmSelectRelation = (val) => {
|
|
|
showRelationPicker.value = false
|
|
|
- userinfo.relation = selectedOptions.value
|
|
|
- userinfo.relationLabel = selectedOptions.text
|
|
|
+ userinfo.relation = val.selectedOptions[0].value
|
|
|
+ userinfo.relationLabel = val.selectedOptions[0].text
|
|
|
}
|
|
|
|
|
|
const applyHealthCard = () => {
|
|
|
@@ -81,7 +82,7 @@ export default {
|
|
|
})
|
|
|
getPatientIdByOpenId(localStorage.getItem('openId')).then((cards) => {
|
|
|
if (cards.length > 0) {
|
|
|
- store.commit('SET_PATIENTCARDS', cards)
|
|
|
+ setStoreCards(cards)
|
|
|
}
|
|
|
router.push('/electronicHealthCardHome')
|
|
|
})
|