|
@@ -106,6 +106,29 @@
|
|
|
<span>{{ relationAdminName }}</span>
|
|
|
<van-icon name="edit" class="editIcon" @click="editClk(1)" />
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 自定义货币符号 -->
|
|
|
+ <div v-if="!symbolShow" class="userInfo l-flex-between">
|
|
|
+ <span class="userInfoLeft">{{ $t("user.currencySymbol") }}: </span>
|
|
|
+ <div class="cust_vantBorder">
|
|
|
+ <van-field class="relationClass" v-model="cofficentForm.currencySymbol"
|
|
|
+ :placeholder="$t('user.currencySymbolPlace')">
|
|
|
+ <template #button>
|
|
|
+ <van-button type="primary" @click="mailboxChg(cofficentForm.currencySymbol, 5)">{{
|
|
|
+ $t("user.confirmLog") }}
|
|
|
+ </van-button>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ </div>
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(5)" />
|
|
|
+ </div>
|
|
|
+ <div v-else class="userInfo l-flex-between">
|
|
|
+ <span class="userInfoLeft">{{ $t("user.currencySymbol") }}: </span>
|
|
|
+ <span>{{ symbolShow }}</span>
|
|
|
+ <van-icon name="edit" class="editIcon" @click="editClk(5)" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lineBox"></div>
|
|
@@ -149,7 +172,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<!-- <div class="taskListRow flex-col" @click="pushPageList('/shandeMch')">
|
|
|
<div class="taskIcon shandeMchIcon"></div>
|
|
|
<div class="taskRight">
|
|
@@ -244,6 +266,8 @@ export default {
|
|
|
const user = getLoginUser();
|
|
|
const router = useRouter();
|
|
|
const relationAdminName = ref("");
|
|
|
+ // 货币符号,默认¥
|
|
|
+ const symbolShow = ref("¥");
|
|
|
const relationType = ref(true);
|
|
|
const sys = ref(null);
|
|
|
// 修改的个人信息
|
|
@@ -252,6 +276,7 @@ export default {
|
|
|
mailBox: accountDetail.value.email,
|
|
|
phone: accountDetail.value.phone,
|
|
|
area: "",
|
|
|
+ symbol: accountDetail.value.symbol,
|
|
|
});
|
|
|
// 点击修改图标
|
|
|
const editClk = (idx) => {
|
|
@@ -262,6 +287,7 @@ export default {
|
|
|
mailboxShow.value = true;
|
|
|
phoneNumberShow.value = true;
|
|
|
areaShow.value = true;
|
|
|
+ symbolShow.value = "¥";
|
|
|
break;
|
|
|
case 2:
|
|
|
cofficentForm.mailBox = accountDetail.value.email;
|
|
@@ -269,6 +295,7 @@ export default {
|
|
|
mailboxShow.value = !mailboxShow.value;
|
|
|
phoneNumberShow.value = true;
|
|
|
areaShow.value = true;
|
|
|
+ symbolShow.value = "¥";
|
|
|
break;
|
|
|
case 3:
|
|
|
cofficentForm.phone = accountDetail.value.phone;
|
|
@@ -276,6 +303,7 @@ export default {
|
|
|
mailboxShow.value = true;
|
|
|
phoneNumberShow.value = !phoneNumberShow.value;
|
|
|
areaShow.value = true;
|
|
|
+ symbolShow.value = "¥";
|
|
|
break;
|
|
|
case 4:
|
|
|
cofficentForm.area = accountDetail.value.area;
|
|
@@ -283,6 +311,15 @@ export default {
|
|
|
mailboxShow.value = true;
|
|
|
phoneNumberShow.value = true;
|
|
|
areaShow.value = !areaShow.value;
|
|
|
+ symbolShow.value = "¥";
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ cofficentForm.symbol = accountDetail.value.symbol;
|
|
|
+ relationType.value = true;
|
|
|
+ mailboxShow.value = true;
|
|
|
+ phoneNumberShow.value = true;
|
|
|
+ areaShow.value = true;
|
|
|
+ symbolShow.value = !symbolShow.value;
|
|
|
break;
|
|
|
}
|
|
|
};
|
|
@@ -346,6 +383,24 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
+ case 5:
|
|
|
+ if (!e) {
|
|
|
+ Toast(t("user.currencySymbolPlace"));
|
|
|
+ } else {
|
|
|
+ const params = {
|
|
|
+ id: user.id,
|
|
|
+ currencySymbol: e,
|
|
|
+ };
|
|
|
+ const { data } = await updateAdmin(params);
|
|
|
+ symbolShow.value = true;
|
|
|
+ if (data.code === "00000") {
|
|
|
+ Toast(data.message);
|
|
|
+ setTimeout(() => {
|
|
|
+ getAcccountDetail();
|
|
|
+ }, 500);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
};
|
|
|
// 获取账户详情
|
|
@@ -517,7 +572,8 @@ export default {
|
|
|
getAreaName,
|
|
|
isAbroad,
|
|
|
checkIsAbroad,
|
|
|
- isInland
|
|
|
+ isInland,
|
|
|
+ symbolShow
|
|
|
};
|
|
|
}
|
|
|
};
|