|
@@ -1,11 +1,11 @@
|
|
<template>
|
|
<template>
|
|
<ion-page class="list-page">
|
|
<ion-page class="list-page">
|
|
- <ion-header class="header-theme2">
|
|
|
|
|
|
+ <ion-header class="header-theme2 header-theme3">
|
|
<ion-toolbar>
|
|
<ion-toolbar>
|
|
<ion-title>信息登记</ion-title>
|
|
<ion-title>信息登记</ion-title>
|
|
</ion-toolbar>
|
|
</ion-toolbar>
|
|
</ion-header>
|
|
</ion-header>
|
|
- <ion-content class="qr_content">
|
|
|
|
|
|
+ <ion-content>
|
|
<div class="bw-vue-form">
|
|
<div class="bw-vue-form">
|
|
<div class="form-detail">
|
|
<div class="form-detail">
|
|
<ion-label>姓名</ion-label>
|
|
<ion-label>姓名</ion-label>
|
|
@@ -42,6 +42,7 @@ import {alertController} from "@ionic/vue";
|
|
import {getUserByID} from "@/api/siteUserInfo";
|
|
import {getUserByID} from "@/api/siteUserInfo";
|
|
import {useRouter} from "vue-router";
|
|
import {useRouter} from "vue-router";
|
|
import {getWxOpenId} from "@/api/wechat";
|
|
import {getWxOpenId} from "@/api/wechat";
|
|
|
|
+import {useUserStore} from "@/store/modules/user";
|
|
|
|
|
|
|
|
|
|
const presentAlert = async (message) => {
|
|
const presentAlert = async (message) => {
|
|
@@ -63,24 +64,19 @@ export default defineComponent({
|
|
const user = ref({userNo: '', name: '', IDCard: '', siteName: ''});
|
|
const user = ref({userNo: '', name: '', IDCard: '', siteName: ''});
|
|
const urlParams = getUrlParams();
|
|
const urlParams = getUrlParams();
|
|
const userId = urlParams["userId"];
|
|
const userId = urlParams["userId"];
|
|
- const openId = ref("");
|
|
|
|
|
|
+ const userStore = useUserStore();
|
|
|
|
|
|
const getUser = async function () {
|
|
const getUser = async function () {
|
|
const reqData = await getUserByID(userId);
|
|
const reqData = await getUserByID(userId);
|
|
user.value = reqData;
|
|
user.value = reqData;
|
|
};
|
|
};
|
|
|
|
|
|
- const getOpenId = async function () {
|
|
|
|
- const reqData = await getWxOpenId();
|
|
|
|
- openId.value = reqData;
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
const onCompany = function () {
|
|
const onCompany = function () {
|
|
- router.push({path: '/jobUserInfo/companyedit', query: {reload: 1, openId: openId.value}});
|
|
|
|
|
|
+ router.push({path: '/jobUserInfo/companyedit', query: {reload: 1, openId: userStore.getOpenId}});
|
|
};
|
|
};
|
|
|
|
|
|
const onJobUser = function () {
|
|
const onJobUser = function () {
|
|
- router.push({path: '/jobUserInfo/useredit', query: {reload: 1, openId: openId.value}});
|
|
|
|
|
|
+ router.push({path: '/jobUserInfo/useredit', query: {reload: 1, openId: userStore.getOpenId}});
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -90,8 +86,6 @@ export default defineComponent({
|
|
getUser();
|
|
getUser();
|
|
}
|
|
}
|
|
|
|
|
|
- getOpenId();
|
|
|
|
-
|
|
|
|
return {
|
|
return {
|
|
user,
|
|
user,
|
|
onCompany,
|
|
onCompany,
|
|
@@ -101,6 +95,10 @@ export default defineComponent({
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<style lang="less">
|
|
<style lang="less">
|
|
|
|
+.bw-vue-form{
|
|
|
|
+ padding: 20px 10px;
|
|
|
|
+}
|
|
|
|
+
|
|
.page_button {
|
|
.page_button {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
@@ -110,4 +108,10 @@ export default defineComponent({
|
|
width: 150px;
|
|
width: 150px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.header-theme3{
|
|
|
|
+ ion-title{
|
|
|
|
+ margin-left: 0px !important;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
</style>
|
|
</style>
|