|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<div class="page flex-col">
|
|
|
<s-header
|
|
|
- :name="sys ? sys.title : $t('public.sysName')"
|
|
|
- :noback="true"
|
|
|
- :isFixed="false"
|
|
|
+ :name="sys ? sys.title : $t('public.sysName')"
|
|
|
+ :noback="true"
|
|
|
+ :isFixed="false"
|
|
|
></s-header>
|
|
|
<div class="userPageBox">
|
|
|
<div class="userBaseBox">
|
|
@@ -34,110 +34,111 @@
|
|
|
<div class="cust_vantBorder">
|
|
|
<div class="filedInpPad">
|
|
|
<van-field
|
|
|
- @click-input="fieldValueInpClk"
|
|
|
- readonly
|
|
|
- clearable
|
|
|
- v-model="fieldValue"
|
|
|
- :placeholder="$t('user.regionPlace')"
|
|
|
+ @click-input="fieldValueInpClk"
|
|
|
+ readonly
|
|
|
+ clearable
|
|
|
+ v-model="fieldValue"
|
|
|
+ :placeholder="$t('user.regionPlace')"
|
|
|
>
|
|
|
<template #right-icon>
|
|
|
<div class="l-flex-RC">
|
|
|
<van-icon
|
|
|
- v-if="fieldValue"
|
|
|
- @click="
|
|
|
+ v-if="fieldValue"
|
|
|
+ @click="
|
|
|
fieldValue = '';
|
|
|
accountDetail.areaId = '';
|
|
|
"
|
|
|
- class="o-mr-6"
|
|
|
- name="clear"
|
|
|
+ class="o-mr-6"
|
|
|
+ name="clear"
|
|
|
/>
|
|
|
- <van-icon @click="fieldValueInpClk" name="arrow-down" />
|
|
|
+ <van-icon @click="fieldValueInpClk" name="arrow-down"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(4)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(4)"/>
|
|
|
</div>
|
|
|
<div v-else class="userInfo l-flex-between">
|
|
|
<span class="userInfoLeft">{{ $t("user.region") }}: </span>
|
|
|
<span>{{ fieldValue }}</span>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(4)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(4)"/>
|
|
|
</div>
|
|
|
<!-- 手机号 -->
|
|
|
<div v-if="!phoneNumberShow" class="userInfo l-flex-between">
|
|
|
<span class="userInfoLeft">{{ $t("user.phoneNumber") }}: </span>
|
|
|
<div class="cust_vantBorder">
|
|
|
<van-field
|
|
|
- class="relationClass"
|
|
|
- v-model="cofficentForm.phone"
|
|
|
- :placeholder="$t('user.phoneNumberPlace')"
|
|
|
+ class="relationClass"
|
|
|
+ v-model="cofficentForm.phone"
|
|
|
+ :placeholder="$t('user.phoneNumberPlace')"
|
|
|
>
|
|
|
<template #button>
|
|
|
<van-button
|
|
|
- type="primary"
|
|
|
- @click="mailboxChg(cofficentForm.phone, 3)"
|
|
|
- >{{ $t("user.confirmLog") }}
|
|
|
+ type="primary"
|
|
|
+ @click="mailboxChg(cofficentForm.phone, 3)"
|
|
|
+ >{{ $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(3)"/>
|
|
|
</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)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(3)"/>
|
|
|
</div>
|
|
|
<!-- 邮箱 -->
|
|
|
<div v-if="!mailboxShow" class="userInfo l-flex-between">
|
|
|
<span class="userInfoLeft">{{ $t("user.mailbox") }}: </span>
|
|
|
<div class="cust_vantBorder">
|
|
|
<van-field
|
|
|
- class="relationClass"
|
|
|
- v-model="cofficentForm.mailBox"
|
|
|
- :placeholder="$t('user.mailboxPlace')"
|
|
|
+ class="relationClass"
|
|
|
+ v-model="cofficentForm.mailBox"
|
|
|
+ :placeholder="$t('user.mailboxPlace')"
|
|
|
>
|
|
|
<template #button>
|
|
|
<van-button
|
|
|
- type="primary"
|
|
|
- @click="mailboxChg(cofficentForm.mailBox, 2)"
|
|
|
- >{{ $t("user.confirmLog") }}
|
|
|
+ type="primary"
|
|
|
+ @click="mailboxChg(cofficentForm.mailBox, 2)"
|
|
|
+ >{{ $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(2)"/>
|
|
|
</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)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(2)"/>
|
|
|
</div>
|
|
|
<!-- 关联上级 -->
|
|
|
<div v-if="!relationType" class="userInfo l-flex-between">
|
|
|
<span class="userInfoLeft">{{ $t("user.associateParent") }}: </span>
|
|
|
<div class="cust_vantBorder">
|
|
|
<van-field
|
|
|
- class="relationClass"
|
|
|
- v-model="cofficentForm.associateParent"
|
|
|
- :placeholder="$t('user.associateParentPlace')"
|
|
|
+ class="relationClass"
|
|
|
+ v-model="cofficentForm.associateParent"
|
|
|
+ :placeholder="$t('user.associateParentPlace')"
|
|
|
>
|
|
|
<template #button>
|
|
|
<van-button
|
|
|
- type="primary"
|
|
|
- @click="mailboxChg(cofficentForm.associateParent, 1)"
|
|
|
- >{{ $t("user.confirmLog") }}</van-button
|
|
|
+ type="primary"
|
|
|
+ @click="mailboxChg(cofficentForm.associateParent, 1)"
|
|
|
+ >{{ $t("user.confirmLog") }}
|
|
|
+ </van-button
|
|
|
>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
</div>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(1)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(1)"/>
|
|
|
</div>
|
|
|
<div v-else class="userInfo l-flex-between">
|
|
|
<span class="userInfoLeft">{{ $t("user.associateParent") }}: </span>
|
|
|
<span>{{ relationAdminName }}</span>
|
|
|
- <van-icon name="edit" class="editIcon" @click="editClk(1)" />
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(1)"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -151,9 +152,9 @@
|
|
|
<div class="operListBox">
|
|
|
<!-- 任务消息 -->
|
|
|
<div
|
|
|
- v-if="roleCheck()"
|
|
|
- class="taskListRow flex-col"
|
|
|
- @click="pushPageList('/taskMessage')"
|
|
|
+ v-if="roleCheck()"
|
|
|
+ class="taskListRow flex-col"
|
|
|
+ @click="pushPageList('/taskMessage')"
|
|
|
>
|
|
|
<div class="taskIcon taskMessageIcon"></div>
|
|
|
<div class="taskRight">
|
|
@@ -163,8 +164,8 @@
|
|
|
|
|
|
<!-- 提现帐号 -->
|
|
|
<div
|
|
|
- class="taskListRow flex-col"
|
|
|
- @click="pushPageList('/joinpayMch')"
|
|
|
+ class="taskListRow flex-col"
|
|
|
+ @click="pushPageList('/joinpayMch')"
|
|
|
>
|
|
|
<div class="taskIcon joinPayMchIcon"></div>
|
|
|
<div class="taskRight">
|
|
@@ -183,8 +184,8 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 绑定微信 -->
|
|
|
-<!-- <div v-if="isInWeChat" class="taskListRow flex-col" @click="pushPageList('/bindWechat')">-->
|
|
|
- <div class="taskListRow flex-col" @click="pushPageList('/bindWechat')">
|
|
|
+ <div v-if="isInWeChat" class="taskListRow flex-col" @click="pushPageList('/bindWechat')">
|
|
|
+<!-- <div class="taskListRow flex-col" @click="pushPageList('/bindWechat')">-->
|
|
|
<div class="taskIcon bindWechatIcon"></div>
|
|
|
<div class="taskRight">
|
|
|
<div class="taskTitle">
|
|
@@ -195,8 +196,8 @@
|
|
|
|
|
|
<!-- 修改密码 -->
|
|
|
<div
|
|
|
- class="taskListRow flex-col"
|
|
|
- @click="pushPageList('/changepassword')"
|
|
|
+ class="taskListRow flex-col"
|
|
|
+ @click="pushPageList('/changepassword')"
|
|
|
>
|
|
|
<div class="taskIcon changePasswordIcon"></div>
|
|
|
<div class="taskRight">
|
|
@@ -224,20 +225,20 @@
|
|
|
<nav-bar></nav-bar>
|
|
|
<!-- 退出登录弹窗 -->
|
|
|
<kDialog
|
|
|
- :dialogTitle="$t('user.logOutTips')"
|
|
|
- :cancelBtnTxt="$t('user.cancelLog')"
|
|
|
- :confirmBtnTxt="$t('user.confirmLog')"
|
|
|
- ref="kDialogRef"
|
|
|
- :dialogContent="$t('user.logOutContent')"
|
|
|
- @confirmclk="confirmClk"
|
|
|
+ :dialogTitle="$t('user.logOutTips')"
|
|
|
+ :cancelBtnTxt="$t('user.cancelLog')"
|
|
|
+ :confirmBtnTxt="$t('user.confirmLog')"
|
|
|
+ ref="kDialogRef"
|
|
|
+ :dialogContent="$t('user.logOutContent')"
|
|
|
+ @confirmclk="confirmClk"
|
|
|
>
|
|
|
</kDialog>
|
|
|
<!-- 地区弹窗 -->
|
|
|
<kCascader
|
|
|
- @getareaname="getAreaName"
|
|
|
- :selectId="accountDetail.areaId"
|
|
|
- @areapopfinish="areaPopFinish"
|
|
|
- ref="kCascaderRef"
|
|
|
+ @getareaname="getAreaName"
|
|
|
+ :selectId="accountDetail.areaId"
|
|
|
+ @areapopfinish="areaPopFinish"
|
|
|
+ ref="kCascaderRef"
|
|
|
></kCascader>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -246,11 +247,11 @@
|
|
|
// 导入地区弹窗
|
|
|
import kCascader from "@/components/commom/kCascader/index.vue";
|
|
|
// 导入接口
|
|
|
-import { getAdmin } from "@/service/merchantManage";
|
|
|
-import { updateAdmin } from "@/service/merchantManage";
|
|
|
+import {getAdmin} from "@/service/merchantManage";
|
|
|
+import {updateAdmin} from "@/service/merchantManage";
|
|
|
// 引入弹窗
|
|
|
import kDialog from "@/components/commom/kDialog/index.vue";
|
|
|
-import { onMounted, reactive, ref } from "vue";
|
|
|
+import {onMounted, reactive, ref} from "vue";
|
|
|
import sHeader from "@/components/SimpleHeader";
|
|
|
import navBar from "@/components/NavBar";
|
|
|
import {
|
|
@@ -258,15 +259,16 @@ import {
|
|
|
$M_EmailAvailable,
|
|
|
$M_PhoneTest,
|
|
|
} from "@/common/js/utils";
|
|
|
-import { useRouter } from "vue-router";
|
|
|
-import { tAdminGetRelation, tAdminSetRelationAdmin } from "@/service/user";
|
|
|
-import { Toast } from "vant";
|
|
|
-import { useI18n } from "vue-i18n";
|
|
|
+import {useRouter} from "vue-router";
|
|
|
+import {tAdminGetRelation, tAdminSetRelationAdmin} from "@/service/user";
|
|
|
+import {Toast} from "vant";
|
|
|
+import {useI18n} from "vue-i18n";
|
|
|
+
|
|
|
export default {
|
|
|
- components: { sHeader, navBar, kDialog, kCascader },
|
|
|
+ components: {sHeader, navBar, kDialog, kCascader},
|
|
|
setup() {
|
|
|
// 引入语言
|
|
|
- const { t } = useI18n();
|
|
|
+ const {t} = useI18n();
|
|
|
// 账户信息
|
|
|
const accountDetail = ref({});
|
|
|
// 控制都去显示隐藏
|
|
@@ -327,7 +329,7 @@ export default {
|
|
|
if (!e) {
|
|
|
Toast(t("user.associateParentPlace"));
|
|
|
} else {
|
|
|
- const { data } = await tAdminSetRelationAdmin({
|
|
|
+ const {data} = await tAdminSetRelationAdmin({
|
|
|
adminId: user.id,
|
|
|
username: e,
|
|
|
});
|
|
@@ -350,7 +352,7 @@ export default {
|
|
|
id: user.id,
|
|
|
email: e,
|
|
|
};
|
|
|
- const { data } = await updateAdmin(params);
|
|
|
+ const {data} = await updateAdmin(params);
|
|
|
mailboxShow.value = true;
|
|
|
if (data.code === "00000") {
|
|
|
Toast(data.message);
|
|
@@ -370,7 +372,7 @@ export default {
|
|
|
id: user.id,
|
|
|
phone: e,
|
|
|
};
|
|
|
- const { data } = await updateAdmin(params);
|
|
|
+ const {data} = await updateAdmin(params);
|
|
|
phoneNumberShow.value = true;
|
|
|
if (data.code === "00000") {
|
|
|
Toast(data.message);
|
|
@@ -384,7 +386,7 @@ export default {
|
|
|
};
|
|
|
// 获取账户详情
|
|
|
const getAcccountDetail = () => {
|
|
|
- getAdmin({ id: user.id }).then((res) => {
|
|
|
+ getAdmin({id: user.id}).then((res) => {
|
|
|
accountDetail.value = res.data.data;
|
|
|
|
|
|
// 查询地址回显
|
|
@@ -404,12 +406,12 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
router.push({
|
|
|
path: "login",
|
|
|
- query: { relation_admin_id: sys.value.relationAdminId },
|
|
|
+ query: {relation_admin_id: sys.value.relationAdminId},
|
|
|
});
|
|
|
}, 200);
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
- router.push({ path: "login" });
|
|
|
+ router.push({path: "login"});
|
|
|
}, 200);
|
|
|
}
|
|
|
};
|
|
@@ -426,7 +428,7 @@ export default {
|
|
|
getAcccountDetail();
|
|
|
});
|
|
|
const gettAdminGetRelation = async () => {
|
|
|
- const { data } = await tAdminGetRelation({
|
|
|
+ const {data} = await tAdminGetRelation({
|
|
|
relationAdminId: user.relationAdminId,
|
|
|
});
|
|
|
if (typeof data === "string") {
|
|
@@ -434,13 +436,13 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
const operUnipay = () => {
|
|
|
- router.push({ path: "uniPay" });
|
|
|
+ router.push({path: "uniPay"});
|
|
|
};
|
|
|
const onperExitSys = () => {
|
|
|
kDialogRef.value.openDialog();
|
|
|
};
|
|
|
const pushPageList = (url) => {
|
|
|
- router.push({ path: url });
|
|
|
+ router.push({path: url});
|
|
|
};
|
|
|
const roleCheck = () => {
|
|
|
if (user.isAdmined) {
|
|
@@ -466,7 +468,7 @@ export default {
|
|
|
id: user.id,
|
|
|
areaId: e.selectId,
|
|
|
};
|
|
|
- const { data } = await updateAdmin(params);
|
|
|
+ const {data} = await updateAdmin(params);
|
|
|
areaShow.value = true;
|
|
|
if (data.code === "00000") {
|
|
|
Toast(data.message);
|
|
@@ -479,7 +481,7 @@ export default {
|
|
|
const checkInWechat = () => {
|
|
|
const ua = window.navigator.userAgent.toLowerCase();
|
|
|
// 如果是在微信中打开
|
|
|
- if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
|
|
+ if (/MicroMessenger/i.test(ua)) {
|
|
|
isInWeChat.value = true;
|
|
|
}
|
|
|
};
|
|
@@ -600,6 +602,7 @@ export default {
|
|
|
.userInfoBox {
|
|
|
margin-top: 25px;
|
|
|
padding: 0px 15px 20px;
|
|
|
+
|
|
|
.userInfo {
|
|
|
// width: 87%;
|
|
|
margin: 0 auto;
|
|
@@ -663,8 +666,7 @@ export default {
|
|
|
&.taskMessageIcon::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
- background: #fff url("../assets/user/taskMessageIcon.png") top
|
|
|
- center no-repeat;
|
|
|
+ background: #fff url("../assets/user/taskMessageIcon.png") top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
width: 0.6rem;
|
|
|
height: 0.6rem;
|
|
@@ -675,8 +677,7 @@ export default {
|
|
|
&.joinPayMchIcon::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
- background: #fff url("../assets/user/joinPayMchIcon.png") top center
|
|
|
- no-repeat;
|
|
|
+ background: #fff url("../assets/user/joinPayMchIcon.png") top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
width: 0.6rem;
|
|
|
height: 0.6rem;
|
|
@@ -687,8 +688,7 @@ export default {
|
|
|
&.shandeMchIcon::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
- background: #fff url("../assets/user/shandeMchIcon.png") top center
|
|
|
- no-repeat;
|
|
|
+ background: #fff url("../assets/user/shandeMchIcon.png") top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
width: 0.6rem;
|
|
|
height: 0.6rem;
|
|
@@ -699,8 +699,7 @@ export default {
|
|
|
&.bindWechatIcon::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
- background: #fff url("../assets/user/bindWechatIcon.png") top
|
|
|
- center no-repeat;
|
|
|
+ background: #fff url("../assets/user/bindWechatIcon.png") top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
width: 0.6rem;
|
|
|
height: 0.6rem;
|
|
@@ -711,8 +710,7 @@ export default {
|
|
|
&.changePasswordIcon::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
- background: #fff url("../assets/user/changePasswordIcon.png") top
|
|
|
- center no-repeat;
|
|
|
+ background: #fff url("../assets/user/changePasswordIcon.png") top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
width: 0.6rem;
|
|
|
height: 0.6rem;
|
|
@@ -734,8 +732,7 @@ export default {
|
|
|
&.loginOutIcon::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
- background: #fff url("../assets/user/loginOut.png") top center
|
|
|
- no-repeat;
|
|
|
+ background: #fff url("../assets/user/loginOut.png") top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
width: 0.6rem;
|
|
|
height: 0.6rem;
|
|
@@ -755,8 +752,7 @@ export default {
|
|
|
position: absolute;
|
|
|
width: 6px;
|
|
|
height: 12px;
|
|
|
- background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng51122feddbc4a9b3e0b055ed6181d290e60825befaa5c777794f1412ff817e57)
|
|
|
- top center no-repeat;
|
|
|
+ background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng51122feddbc4a9b3e0b055ed6181d290e60825befaa5c777794f1412ff817e57) top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
right: 0.55rem;
|
|
|
top: 0.5rem;
|