|
@@ -24,6 +24,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="userInfoBox">
|
|
|
+
|
|
|
<!-- 地区 -->
|
|
|
<div v-if="isInland && user.type != '0'">
|
|
|
<div v-if="!areaShow" class="userInfo l-flex-between">
|
|
@@ -52,46 +53,54 @@
|
|
|
<van-icon name="edit" class="editIcon" @click="editClk(4)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 手机号 -->
|
|
|
+ <!-- 邮箱 -->
|
|
|
<div v-if="user.type != '0'">
|
|
|
- <div v-if="!phoneNumberShow" class="userInfo l-flex-between">
|
|
|
- <span class="userInfoLeft">{{ $t("user.phoneNumber") }}: </span>
|
|
|
+ <div v-if="!mailboxShow" class="userInfo l-flex-between">
|
|
|
+ <span class="userInfoLeft">{{ $t("user.mailbox") }}: </span>
|
|
|
<div>
|
|
|
- <van-field class="relationClass" v-model="cofficentForm.phone" :placeholder="$t('user.phoneNumberPlace')">
|
|
|
+ <van-field class="relationClass" v-model="cofficentForm.mailBox" :placeholder="$t('user.mailboxPlace')">
|
|
|
<template #button>
|
|
|
- <van-button type="primary" @click="mailboxChg(cofficentForm.phone, 3)">{{ $t("user.confirmLog") }}
|
|
|
+ <van-button type="primary" @click="mailboxChg(cofficentForm.mailBox, 2)">{{ $t("user.confirmLog") }}
|
|
|
</van-button>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
</div>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(3)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(2)" />
|
|
|
</div>
|
|
|
<div v-else class="userInfo l-flex-between">
|
|
|
- <span class="userInfoLeft">{{ $t("user.phoneNumber") }}: </span>
|
|
|
- <span>{{ accountDetail.phone }}</span>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(3)" />
|
|
|
+ <span class="userInfoLeft">{{ $t("user.mailbox") }}: </span>
|
|
|
+ <span>{{ accountDetail.email }}</span>
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(2)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 邮箱 -->
|
|
|
+ <!-- 上级账号 -->
|
|
|
+ <div v-if="isInland && user.type == '2'">
|
|
|
+ <div v-if="haveRelation" class="userInfo l-flex-between">
|
|
|
+ <span class="userInfoLeft">{{ $t("user.superiorAccount") }}: </span>
|
|
|
+ <span>{{ relationAdminName }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 手机号码 -->
|
|
|
<div v-if="user.type != '0'">
|
|
|
- <div v-if="!mailboxShow" class="userInfo l-flex-between">
|
|
|
- <span class="userInfoLeft">{{ $t("user.mailbox") }}: </span>
|
|
|
+ <div v-if="!phoneNumberShow" class="userInfo l-flex-between">
|
|
|
+ <span class="userInfoLeft">{{ $t("user.phoneNumber") }}: </span>
|
|
|
<div>
|
|
|
- <van-field class="relationClass" v-model="cofficentForm.mailBox" :placeholder="$t('user.mailboxPlace')">
|
|
|
+ <van-field class="relationClass" v-model="cofficentForm.phone" :placeholder="$t('user.phoneNumberPlace')">
|
|
|
<template #button>
|
|
|
- <van-button type="primary" @click="mailboxChg(cofficentForm.mailBox, 2)">{{ $t("user.confirmLog") }}
|
|
|
+ <van-button type="primary" @click="mailboxChg(cofficentForm.phone, 3)">{{ $t("user.confirmLog") }}
|
|
|
</van-button>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
</div>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(2)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(3)" />
|
|
|
</div>
|
|
|
<div v-else class="userInfo l-flex-between">
|
|
|
- <span class="userInfoLeft">{{ $t("user.mailbox") }}: </span>
|
|
|
- <span>{{ accountDetail.email }}</span>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(2)" />
|
|
|
+ <span class="userInfoLeft">{{ $t("user.phoneNumber") }}: </span>
|
|
|
+ <span>{{ accountDetail.phone }}</span>
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(3)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<!-- 关联上级 -->
|
|
|
<!-- <div v-if="isInland && user.type == '2'">
|
|
|
<div v-if="!relationType" class="userInfo l-flex-between">
|
|
@@ -668,6 +677,13 @@ export default {
|
|
|
// 是否内陆或海外
|
|
|
const isInland = ref(true);
|
|
|
const isAbroad = ref(false);
|
|
|
+ // 是否有上级账号
|
|
|
+ const haveRelation = ref(false);
|
|
|
+ const haveRelationCheck = () => {
|
|
|
+ if (user.relationAdminId !== null) {
|
|
|
+ haveRelation.value = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
// const checkIsAbroad = async () => {
|
|
|
// try {
|
|
|
// const { data } = await getIfForeign(user.id);
|
|
@@ -700,6 +716,7 @@ export default {
|
|
|
onMounted(() => {
|
|
|
checkInWechat();
|
|
|
checkIsAbroad();
|
|
|
+ haveRelationCheck();
|
|
|
})
|
|
|
// 获取回显的值
|
|
|
const getAreaName = (e) => {
|
|
@@ -731,6 +748,7 @@ export default {
|
|
|
isInWeChat,
|
|
|
getAreaName,
|
|
|
isAbroad,
|
|
|
+ haveRelation,
|
|
|
checkIsAbroad,
|
|
|
isInland,
|
|
|
symbolShow,
|