提交 20eee670 作者: ZhangLingKun

修复:接口替换

上级 18de6338
......@@ -73,3 +73,39 @@ export type cooperationServiceBitmap = InterListFunction<
score: number
}
>
// 合作商家列表-根据合作标签id获取
export type listCompanyInfoByCoopIdType = InterListFunction<
{
coopId: number
lat: number
lon: number
pageNo: number
pageSize: number
},
{
address: string
brandLogo: string
brandName: string
companyName: string
companyType: number
companyUserName: string
content: string
creditCode: string
fullName: string
id: number
lat: number
leader: number
licenseImg: string
lon: number
phoneNum: number
remark: string
score: string
userAccountId: number
backImg: string
city: string
distance: number
district: string
province: string
backUserAccountId: number
}
>
import {
BackEndLoginType,
cooperationServiceBitmap,
getSecondDistrictInfo
getSecondDistrictInfo,
listCompanyInfoByCoopIdType
} from '@/api/interface/common'
import request from '../request'
......@@ -17,4 +18,8 @@ export default class CommonAPI {
// 服务商网点数据
static cooperationServiceBitmap: cooperationServiceBitmap = (params) =>
request.get('/userapp/cooperation/service/bitmap', params)
// 合作商家列表-根据合作标签id获取
static listCompanyInfoByCoopId: listCompanyInfoByCoopIdType = (params) =>
request.get('/userapp/cooperation/listCompanyInfoByCoopId', params)
}
......@@ -4,7 +4,7 @@
<view v-for="(i, j) in list" :key="j" class="list-item" @click="handleSelect(j)">
<image class="item-image" :src="getNetworkLevel(0)"></image>
<view class="item-content">
<view class="content-title">{{ i.name }}</view>
<view class="content-title">{{ i.companyName }}</view>
<view class="content-price">
<u-icon
size="16"
......@@ -22,9 +22,9 @@
import { onMounted, PropType } from 'vue'
import weChatSDK from 'z-weixin-ts'
import { InterListType } from '@/api/interface'
import { cooperationServiceBitmap } from '@/api/interface/common'
import { listCompanyInfoByCoopIdType } from '@/api/interface/common'
type ListType = InterListType<cooperationServiceBitmap>
type ListType = InterListType<listCompanyInfoByCoopIdType>
// 传参
const props = defineProps({
......
......@@ -82,12 +82,12 @@ export default {
const { pageNo, pageSize } = this.pagination
const { lat, lng } = this.location
const { tagId } = this.networkTypeList[this.currentTypeIndex]
const res = await CommonAPI.cooperationServiceBitmap({
const res = await CommonAPI.listCompanyInfoByCoopId({
pageNo,
pageSize,
lat,
lon: lng,
type: tagId
coopId: tagId
})
if (res && res.code === '200') {
this.networkList = res.result.list || []
......@@ -216,7 +216,7 @@ export default {
// 构建信息窗体中显示的内容
const domStr = `
<div class="map-open-info">
<div class="park-name">${obj.name || '-'}</div>
<div class="park-name">${obj.companyName || '-'}</div>
<div class="content">网点位置:${obj.address || '-'}</div>
<div class="content">${contentStr || ''}</div>
<div class="content">服务评分:${starStr}</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论