提交 cf908661 authored 作者: matian's avatar matian

updates

上级 f1e0bed8
......@@ -39,7 +39,7 @@ const logout = async () => {
<img :src="userInfo.avatar || 'https://webapp-pub.ezijing.com/website/base/images/avatar.svg'" />
</div>
<div class="app-header-user-main">
<h3>{{ userStore.name }}</h3>
<h3>{{ userInfo.name }}</h3>
<p>{{ userInfo.email || userInfo.mobile }}</p>
</div>
<div class="app-header-user-buttons">
......
<script setup lang="ts">
import { getChannelDetail } from '../api'
const route = useRoute()
const props = defineProps<Props>()
interface Props {
id: string
}
const channelInfo: any = ref({})
getChannelDetail({ id: route.query.id || props.id }).then(res => {
const params: any = { id: route.query.id }
getChannelDetail(params).then(res => {
channelInfo.value = res.data
})
// 列表配置
......
......@@ -4,10 +4,11 @@ const props = defineProps({
type: Array
}
})
const totalListMap = toRefs(props.totalList)
</script>
<template>
<div class="statistics-list">
<div class="item" v-for="(item, index) in props.totalList" :key="index">
<div class="item" v-for="(item, index) in totalListMap" :key="index">
<div class="item_desc">
<div class="tit">{{ item.name }}</div>
<div class="text">
......
<script setup lang="ts">
import { getContactDetail } from '../api'
const route = useRoute()
interface Props {
id: string
}
const props = defineProps<Props>()
const contactInfo: any = ref({})
const params: any = { id: route.query.id || props.id }
const params: any = { id: route.query.id }
getContactDetail(params).then(res => {
contactInfo.value = res.data
......
......@@ -4,9 +4,8 @@ const route = useRoute()
interface Props {
id: string
}
const props = defineProps<Props>()
const projectInfo: any = ref({})
const params: any = { id: route.query.id || props.id }
const params: any = { id: route.query.id }
getProjectDetail(params).then(res => {
projectInfo.value = res.data
})
......
<script setup lang="ts">
import { getSchoolDetail } from '../api'
const route = useRoute()
interface Props {
id: string
}
const props = defineProps<Props>()
const schoolDatail: any = ref({})
const params: any = { id: route.query.id || props.id }
const params: any = { id: route.query.id }
getSchoolDetail(params).then(res => {
schoolDatail.value = res.data
})
......
......@@ -4,7 +4,9 @@ const route = useRoute()
const router = useRouter()
const gooseInfo: any = ref({})
getGooseUserDetail({ id: route.query.id }).then(res => {
const params: any = { id: route.query.id }
getGooseUserDetail(params).then(res => {
gooseInfo.value = res.data
})
</script>
......
......@@ -4,7 +4,8 @@ import { getPeakUserDetail } from '../api'
const route = useRoute()
const router = useRouter()
const infoList: any = ref({})
getPeakUserDetail({ id: route.query.id }).then(res => {
const params: any = { id: route.query.id }
getPeakUserDetail(params).then(res => {
res.data.custom_fields = JSON.parse(res.data.custom_fields)
infoList.value = res.data
})
......
......@@ -5,7 +5,8 @@ const router = useRouter()
const wechatFollow: any = ref([])
const other_system_customers: any = ref({})
getwechatUserDetail({ id: route.query.id }).then(res => {
const params: any = { id: route.query.id }
getwechatUserDetail(params).then(res => {
const { follow, other_system_customer, ...info } = res.data
other_system_customers.value = other_system_customer
wechatFollow.value = res.data.follow.map((item: any) => {
......
......@@ -2,12 +2,9 @@
import { getZwsUserDetail } from '../api'
const route = useRoute()
const router = useRouter()
interface Props {
id: string
}
const props = defineProps<Props>()
const zwsInfo: any = ref({})
const params: any = { id: route.query.id || props.id }
const params: any = { id: route.query.id }
getZwsUserDetail(params).then(res => {
zwsInfo.value = res.data
console.log(res)
......
......@@ -24,13 +24,13 @@ export default defineConfig(({ mode }) => ({
cert: fs.readFileSync(path.join(__dirname, './https/dev.ezijing.com.pem'))
},
proxy: {
'/api/users': {
// target: 'http://localhost-customer-system-backend.ezijing.com',
target: 'https://customer-backend-api.ezijing.com',
rewrite: path => path.replace(/^\/api\/users/, ''),
changeOrigin: true
},
'/api': 'https://resource-center.ezijing.com'
// '/api/users': {
// // target: 'http://localhost-customer-system-backend.ezijing.com',
// target: 'https://customer-backend-api.ezijing.com',
// rewrite: path => path.replace(/^\/api\/users/, ''),
// changeOrigin: true
// },
'/api': 'https://customer-backend-api.ezijing.com'
}
},
resolve: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论