Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
h5
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
h5
Commits
20eee670
提交
20eee670
authored
8月 19, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:接口替换
上级
18de6338
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
48 行增加
和
7 行删除
+48
-7
common.ts
src/api/interface/common.ts
+36
-0
common.ts
src/api/modules/common.ts
+6
-1
index.vue
src/pages/index/comp/network-list/index.vue
+3
-3
index.vue
src/pages/index/index.vue
+3
-3
没有找到文件。
src/api/interface/common.ts
浏览文件 @
20eee670
...
@@ -73,3 +73,39 @@ export type cooperationServiceBitmap = InterListFunction<
...
@@ -73,3 +73,39 @@ export type cooperationServiceBitmap = InterListFunction<
score
:
number
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
}
>
src/api/modules/common.ts
浏览文件 @
20eee670
import
{
import
{
BackEndLoginType
,
BackEndLoginType
,
cooperationServiceBitmap
,
cooperationServiceBitmap
,
getSecondDistrictInfo
getSecondDistrictInfo
,
listCompanyInfoByCoopIdType
}
from
'@/api/interface/common'
}
from
'@/api/interface/common'
import
request
from
'../request'
import
request
from
'../request'
...
@@ -17,4 +18,8 @@ export default class CommonAPI {
...
@@ -17,4 +18,8 @@ export default class CommonAPI {
// 服务商网点数据
// 服务商网点数据
static
cooperationServiceBitmap
:
cooperationServiceBitmap
=
(
params
)
=>
static
cooperationServiceBitmap
:
cooperationServiceBitmap
=
(
params
)
=>
request
.
get
(
'/userapp/cooperation/service/bitmap'
,
params
)
request
.
get
(
'/userapp/cooperation/service/bitmap'
,
params
)
// 合作商家列表-根据合作标签id获取
static
listCompanyInfoByCoopId
:
listCompanyInfoByCoopIdType
=
(
params
)
=>
request
.
get
(
'/userapp/cooperation/listCompanyInfoByCoopId'
,
params
)
}
}
src/pages/index/comp/network-list/index.vue
浏览文件 @
20eee670
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view
v-for=
"(i, j) in list"
:key=
"j"
class=
"list-item"
@
click=
"handleSelect(j)"
>
<view
v-for=
"(i, j) in list"
:key=
"j"
class=
"list-item"
@
click=
"handleSelect(j)"
>
<image
class=
"item-image"
:src=
"getNetworkLevel(0)"
></image>
<image
class=
"item-image"
:src=
"getNetworkLevel(0)"
></image>
<view
class=
"item-content"
>
<view
class=
"item-content"
>
<view
class=
"content-title"
>
{{
i
.
n
ame
}}
</view>
<view
class=
"content-title"
>
{{
i
.
companyN
ame
}}
</view>
<view
class=
"content-price"
>
<view
class=
"content-price"
>
<u-icon
<u-icon
size=
"16"
size=
"16"
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
import
{
onMounted
,
PropType
}
from
'vue'
import
{
onMounted
,
PropType
}
from
'vue'
import
weChatSDK
from
'z-weixin-ts'
import
weChatSDK
from
'z-weixin-ts'
import
{
InterListType
}
from
'@/api/interface'
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
({
const
props
=
defineProps
({
...
...
src/pages/index/index.vue
浏览文件 @
20eee670
...
@@ -82,12 +82,12 @@ export default {
...
@@ -82,12 +82,12 @@ export default {
const
{
pageNo
,
pageSize
}
=
this
.
pagination
const
{
pageNo
,
pageSize
}
=
this
.
pagination
const
{
lat
,
lng
}
=
this
.
location
const
{
lat
,
lng
}
=
this
.
location
const
{
tagId
}
=
this
.
networkTypeList
[
this
.
currentTypeIndex
]
const
{
tagId
}
=
this
.
networkTypeList
[
this
.
currentTypeIndex
]
const
res
=
await
CommonAPI
.
cooperationServiceBitmap
({
const
res
=
await
CommonAPI
.
listCompanyInfoByCoopId
({
pageNo
,
pageNo
,
pageSize
,
pageSize
,
lat
,
lat
,
lon
:
lng
,
lon
:
lng
,
type
:
tagId
coopId
:
tagId
})
})
if
(
res
&&
res
.
code
===
'200'
)
{
if
(
res
&&
res
.
code
===
'200'
)
{
this
.
networkList
=
res
.
result
.
list
||
[]
this
.
networkList
=
res
.
result
.
list
||
[]
...
@@ -216,7 +216,7 @@ export default {
...
@@ -216,7 +216,7 @@ export default {
// 构建信息窗体中显示的内容
// 构建信息窗体中显示的内容
const
domStr
=
`
const
domStr
=
`
<div class="map-open-info">
<div class="map-open-info">
<div class="park-name">
${
obj
.
n
ame
||
'-'
}
</div>
<div class="park-name">
${
obj
.
companyN
ame
||
'-'
}
</div>
<div class="content">网点位置:
${
obj
.
address
||
'-'
}
</div>
<div class="content">网点位置:
${
obj
.
address
||
'-'
}
</div>
<div class="content">
${
contentStr
||
''
}
</div>
<div class="content">
${
contentStr
||
''
}
</div>
<div class="content">服务评分:
${
starStr
}
</div>
<div class="content">服务评分:
${
starStr
}
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论