|
@@ -7,16 +7,19 @@ style:
|
|
|
import { useUserStore } from '../../../store'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
|
|
|
-import { desinTopBg, rightArrowIcon } from '@designer-hub/assets/src/svgs'
|
|
|
-import { log } from 'console'
|
|
|
-const collapseValue = ref<string[]>(['item1'])
|
|
|
+import { rightArrowIcon } from '@designer-hub/assets/src/svgs'
|
|
|
+import { getVendorAppInfo } from '../../../core/libs/requests'
|
|
|
+import SectionHeading from '@designer-hub/app/src/components/section-heading.vue'
|
|
|
const userStore = useUserStore()
|
|
|
const { isLogined, userInfo } = storeToRefs(userStore)
|
|
|
+const { data, run: setData } = useRequest(() => getVendorAppInfo())
|
|
|
const logout = () => {
|
|
|
- console.log('logout')
|
|
|
- userStore.userInfo = {}
|
|
|
+ userStore.clearUserInfo()
|
|
|
uni.reLaunch({ url: '/pages/login/index' })
|
|
|
}
|
|
|
+onMounted(async () => {
|
|
|
+ await setData()
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -24,14 +27,14 @@ const logout = () => {
|
|
|
<div class="flex-1">
|
|
|
<div class="flex justify-between items-center mb-[30px]">
|
|
|
<div class="text-black/40 text-sm font-normal font-['PingFang_SC'] leading-none">头像</div>
|
|
|
- <img class="w-7 h-7 rounded-full" src="https://via.placeholder.com/28x28" />
|
|
|
+ <wd-img width="28" height="28" class="w-7 h-7 rounded-full" :src="data?.avatar" />
|
|
|
</div>
|
|
|
<div class="flex justify-between items-center mb-[30px]">
|
|
|
<div class="text-black/40 text-sm font-normal font-['PingFang_SC'] leading-none">名称</div>
|
|
|
<div
|
|
|
class="text-right text-[#999999] text-sm font-normal font-['PingFang_SC'] leading-none"
|
|
|
>
|
|
|
- GELATO
|
|
|
+ {{ data?.vendorName }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex justify-between items-center mb-[30px]">
|
|
@@ -39,7 +42,7 @@ const logout = () => {
|
|
|
<div
|
|
|
class="text-right text-[#999999] text-sm font-normal font-['PingFang_SC'] leading-none"
|
|
|
>
|
|
|
- 1254022
|
|
|
+ {{ data?.id }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex justify-between items-center mb-[30px]">
|
|
@@ -49,7 +52,8 @@ const logout = () => {
|
|
|
<div
|
|
|
class="text-right text-[#999999] text-sm font-normal font-['PingFang_SC'] leading-none"
|
|
|
>
|
|
|
- 李晓东
|
|
|
+ <!-- 李晓东 -->
|
|
|
+ {{ data?.contactName }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex justify-between items-center mb-[30px]">
|
|
@@ -59,15 +63,17 @@ const logout = () => {
|
|
|
<div
|
|
|
class="text-right text-[#999999] text-sm font-normal font-['PingFang_SC'] leading-none"
|
|
|
>
|
|
|
- 132****1452
|
|
|
+ <!-- 132****1452 -->
|
|
|
+ {{ data?.mobile }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="flex justify-between items-center">
|
|
|
+ <!-- <div class="flex justify-between items-center">
|
|
|
<div class="text-black/40 text-sm font-normal font-['PingFang_SC'] leading-none">
|
|
|
修改密码
|
|
|
</div>
|
|
|
<wd-img width="15px" height="15px" :src="rightArrowIcon"></wd-img>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
+ <SectionHeading title="修改密码" size="sm" end-arrow></SectionHeading>
|
|
|
</div>
|
|
|
<div class="w-full mt-[50px]">
|
|
|
<wd-button block :round="false" @click="logout">
|