接口联调

This commit is contained in:
xuli3099
2025-08-14 14:01:54 +08:00
parent 28f24a90fd
commit a9141dfb6b
5 changed files with 92 additions and 16 deletions

View File

@@ -108,9 +108,9 @@
<view class="white-bg" v-if="commonServiceList.length>0">
<view class="w-b-title">常用服务</view>
<view class="logo-list">
<view v-for="(item,index) in commonServiceList" class="l-l-item" :key="index">
<img :src="item.imgSrc" />
<text class="font-gray">{{ item.name }}</text>
<view v-for="(item,index) in commonServiceList" class="l-l-item" :key="index" @click="handleJump(item.bizUrl)">
<img :src="'static/images/business/'+item.icon+'.png'" />
<text class="font-gray">{{ item.bizName }}</text>
</view>
<!-- <view class="l-l-item" @click="handleAddCommonSercice">
<img :src="'static/images/business/icon-add.png'">
@@ -305,8 +305,14 @@ const getSalesTask = async ()=>{
// 常用服务
let commonServiceList = ref([])
const getCommonServices = async ()=>{
let res = await getUserFavorite({});
commonServiceList.value = res.list || []
let data = await getUserFavorite({});
commonServiceList.value = data || []
}
// 跳转
let handleJump=(url)=>{
if(url){
uni.navigateTo({ url })
}
}
// 添加常用服务