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 }> {
|
||||
return http({
|
||||
url: '/test/anon/website/saveConsult',
|
||||
url: '/anon/website/saveConsult',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
@ -13,7 +13,7 @@ export default class Website {
|
||||
// 获取成功案例数据
|
||||
async getCommentPage (params: any): Promise<{ data: SystemInfo }> {
|
||||
return http({
|
||||
url: '/test/anon/website/commentPage',
|
||||
url: '/anon/website/commentPage',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
@ -21,7 +21,7 @@ export default class Website {
|
||||
// 获取成功案例数据
|
||||
async getCasePage (params: any): Promise<{ data: SystemInfo }> {
|
||||
return http({
|
||||
url: '/test/anon/website/casePage',
|
||||
url: '/anon/website/casePage',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
@ -29,7 +29,7 @@ export default class Website {
|
||||
// new获取系统网站信息
|
||||
async getWebInfo (): Promise<{ data: SystemInfo }> {
|
||||
return http({
|
||||
url: '/test/anon/website/info',
|
||||
url: '/anon/website/info',
|
||||
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>
|
||||
<p class="text-gray-400 text-lg">{{caseData.successInfo?.remark || ''}}</p>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 案例筛选 -->
|
||||
<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"
|
||||
: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)"
|
||||
@ -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> -->
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 案例展示 -->
|
||||
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<!-- 案例1 -->
|
||||
@ -43,7 +43,7 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 案例2 -->
|
||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||
<div class="h-56 overflow-hidden relative">
|
||||
@ -60,7 +60,7 @@
|
||||
</a>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<!-- 案例3 -->
|
||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||
<div class="h-56 overflow-hidden relative">
|
||||
@ -77,7 +77,7 @@
|
||||
</a>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<!-- 案例4 -->
|
||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||
<div class="h-56 overflow-hidden relative">
|
||||
@ -94,7 +94,7 @@
|
||||
</a>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<!-- 案例5 -->
|
||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||
<div class="h-56 overflow-hidden relative">
|
||||
@ -111,7 +111,7 @@
|
||||
</a>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<!-- 案例6 -->
|
||||
<!-- <div class="bg-dark/60 border border-primary/20 rounded-xl overflow-hidden card-hover group">
|
||||
<div class="h-56 overflow-hidden relative">
|
||||
@ -129,7 +129,7 @@
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text-center mt-12">
|
||||
<a href="#contact" class="btn-secondary inline-flex items-center">
|
||||
查看更多案例 <i class="fa fa-arrow-right ml-2"></i>
|
||||
@ -168,7 +168,7 @@ const currentType = ref('0')
|
||||
const getCaseData = async () => {
|
||||
console.log('88')
|
||||
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)
|
||||
if(res.code == 200){
|
||||
let resLs = res.data?.records || []
|
||||
@ -185,11 +185,11 @@ const getCaseData = async () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const changeType = (item) => {
|
||||
currentType.value = item.type
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user