fix: 修改配置文件,修改成功案列接口默认typeId为空字符串
This commit is contained in:
parent
2e78b11b5b
commit
a75e9e84b1
@ -1 +1,4 @@
|
|||||||
window.APP_BASEURL='https://www.byhah.com'
|
// 正式环境
|
||||||
|
window.APP_BASEURL='http://120.55.250.12/api/website'
|
||||||
|
// 测试环境
|
||||||
|
// window.APP_BASEURL='https://www.byhah.com/test'
|
||||||
|
|||||||
@ -5,7 +5,7 @@ export default class Website {
|
|||||||
// 获取成功案例数据
|
// 获取成功案例数据
|
||||||
async toSaveConsult (params: any): Promise<{ data: SystemInfo }> {
|
async toSaveConsult (params: any): Promise<{ data: SystemInfo }> {
|
||||||
return http({
|
return http({
|
||||||
url: '/test/anon/website/saveConsult',
|
url: '/anon/website/saveConsult',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
@ -13,7 +13,7 @@ export default class Website {
|
|||||||
// 获取成功案例数据
|
// 获取成功案例数据
|
||||||
async getCommentPage (params: any): Promise<{ data: SystemInfo }> {
|
async getCommentPage (params: any): Promise<{ data: SystemInfo }> {
|
||||||
return http({
|
return http({
|
||||||
url: '/test/anon/website/commentPage',
|
url: '/anon/website/commentPage',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
@ -21,7 +21,7 @@ export default class Website {
|
|||||||
// 获取成功案例数据
|
// 获取成功案例数据
|
||||||
async getCasePage (params: any): Promise<{ data: SystemInfo }> {
|
async getCasePage (params: any): Promise<{ data: SystemInfo }> {
|
||||||
return http({
|
return http({
|
||||||
url: '/test/anon/website/casePage',
|
url: '/anon/website/casePage',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
@ -29,7 +29,7 @@ export default class Website {
|
|||||||
// new获取系统网站信息
|
// new获取系统网站信息
|
||||||
async getWebInfo (): Promise<{ data: SystemInfo }> {
|
async getWebInfo (): Promise<{ data: SystemInfo }> {
|
||||||
return http({
|
return http({
|
||||||
url: '/test/anon/website/info',
|
url: '/anon/website/info',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -65,4 +65,4 @@ export default class Website {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,10 +8,10 @@
|
|||||||
<h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4 text-glow">客户成功案例展示</h2>
|
<h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4 text-glow">客户成功案例展示</h2>
|
||||||
<p class="text-gray-400 text-lg">{{caseData.successInfo?.remark || ''}}</p>
|
<p class="text-gray-400 text-lg">{{caseData.successInfo?.remark || ''}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 案例筛选 -->
|
<!-- 案例筛选 -->
|
||||||
<div class="flex flex-wrap justify-center gap-4 mb-10">
|
<div class="flex flex-wrap justify-center gap-4 mb-10">
|
||||||
<button class="case-filter px-5 py-2 rounded-full"
|
<button class="case-filter px-5 py-2 rounded-full"
|
||||||
v-for="item in typeList" :key="'type'+ item.type"
|
v-for="item in typeList" :key="'type'+ item.type"
|
||||||
:class="currentType == item.type? 'active bg-primary text-white font-medium': 'bg-dark/60 border border-primary/20 text-light font-medium hover:bg-primary/20 transition-colors'"
|
:class="currentType == item.type? 'active bg-primary text-white font-medium': 'bg-dark/60 border border-primary/20 text-light font-medium hover:bg-primary/20 transition-colors'"
|
||||||
@click="changeType(item)"
|
@click="changeType(item)"
|
||||||
@ -21,7 +21,7 @@
|
|||||||
<button class="case-filter px-5 py-2 rounded-full bg-dark/60 border border-primary/20 text-light font-medium hover:bg-primary/20 transition-colors">乡村治理</button>
|
<button class="case-filter px-5 py-2 rounded-full bg-dark/60 border border-primary/20 text-light font-medium hover:bg-primary/20 transition-colors">乡村治理</button>
|
||||||
<button class="case-filter px-5 py-2 rounded-full bg-dark/60 border border-primary/20 text-light font-medium hover:bg-primary/20 transition-colors">智慧教育</button> -->
|
<button class="case-filter px-5 py-2 rounded-full bg-dark/60 border border-primary/20 text-light font-medium hover:bg-primary/20 transition-colors">智慧教育</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 案例展示 -->
|
<!-- 案例展示 -->
|
||||||
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||||
<!-- 案例1 -->
|
<!-- 案例1 -->
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 案例2 -->
|
<!-- 案例2 -->
|
||||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||||
<div class="h-56 overflow-hidden relative">
|
<div class="h-56 overflow-hidden relative">
|
||||||
@ -60,7 +60,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<!-- 案例3 -->
|
<!-- 案例3 -->
|
||||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||||
<div class="h-56 overflow-hidden relative">
|
<div class="h-56 overflow-hidden relative">
|
||||||
@ -77,7 +77,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<!-- 案例4 -->
|
<!-- 案例4 -->
|
||||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||||
<div class="h-56 overflow-hidden relative">
|
<div class="h-56 overflow-hidden relative">
|
||||||
@ -94,7 +94,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<!-- 案例5 -->
|
<!-- 案例5 -->
|
||||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||||
<div class="h-56 overflow-hidden relative">
|
<div class="h-56 overflow-hidden relative">
|
||||||
@ -111,7 +111,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<!-- 案例6 -->
|
<!-- 案例6 -->
|
||||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||||
<div class="h-56 overflow-hidden relative">
|
<div class="h-56 overflow-hidden relative">
|
||||||
@ -129,7 +129,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center mt-12">
|
<div class="text-center mt-12">
|
||||||
<a href="#contact" class="btn-secondary inline-flex items-center">
|
<a href="#contact" class="btn-secondary inline-flex items-center">
|
||||||
查看更多案例 <i class="fa fa-arrow-right ml-2"></i>
|
查看更多案例 <i class="fa fa-arrow-right ml-2"></i>
|
||||||
@ -168,7 +168,7 @@ const currentType = ref('0')
|
|||||||
const getCaseData = async () => {
|
const getCaseData = async () => {
|
||||||
console.log('88')
|
console.log('88')
|
||||||
const website = new Website()
|
const website = new Website()
|
||||||
const res = await website.getCasePage({typeId: '0',pageNum: 1,pageSize: 6})
|
const res = await website.getCasePage({typeId: '',pageNum: 1,pageSize: 6})
|
||||||
console.log('66',res)
|
console.log('66',res)
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
let resLs = res.data?.records || []
|
let resLs = res.data?.records || []
|
||||||
@ -185,11 +185,11 @@ const getCaseData = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const changeType = (item) => {
|
const changeType = (item) => {
|
||||||
currentType.value = item.type
|
currentType.value = item.type
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user