Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
h5
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
h5
Commits
4a5a4638
提交
4a5a4638
authored
10月 31, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:网点页面优化
上级
247a1dc6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
38 行增加
和
13 行删除
+38
-13
index.vue
src/pages/index/comp/network-list/index.vue
+26
-10
index.vue
src/pages/index/index.vue
+12
-3
没有找到文件。
src/pages/index/comp/network-list/index.vue
浏览文件 @
4a5a4638
...
...
@@ -24,9 +24,9 @@
/>
</view>
</view>
<view
class=
"content-info"
>
浏览
115 | 交易198
</view>
<view
class=
"content-info"
>
浏览
{{
i
.
id
}}
| 交易
{{
i
.
backUserAccountId
}}
</view>
</view>
<view
class=
"content-type"
>
航拍/航测 | CAAC证书 | 测绘乙级
</view>
<view
class=
"content-type"
>
{{
i
.
brandName
}}
</view>
<view
class=
"content-location"
>
<image
src=
"../../../../static/img/location.png"
mode=
"widthFix"
/>
<text>
{{
i
.
address
}}
</text>
...
...
@@ -36,7 +36,7 @@
</view>
</scroll-view>
<scroll-view
v-else
class=
"list-view-click animate__animated animate__slideInRight"
scroll-y
>
<view
v-for=
"(i, j) in
l
ist"
:key=
"j"
class=
"list-item"
@
click=
"handleSelect(j)"
>
<view
v-for=
"(i, j) in
getCurrentL
ist"
:key=
"j"
class=
"list-item"
@
click=
"handleSelect(j)"
>
<image
class=
"item-image"
:src=
"i.brandLogo"
mode=
"widthFix"
/>
<view
class=
"item-content"
>
<view
class=
"content-title"
>
{{
i
.
companyName
}}
</view>
...
...
@@ -47,9 +47,9 @@
</view>
<view
class=
"serve-star"
>
⭐⭐⭐⭐
</view>
</view>
<view
class=
"content-info"
>
浏览
115 | 交易198
</view>
<view
class=
"content-info"
>
浏览
{{
i
.
id
}}
| 交易
{{
i
.
backUserAccountId
}}
</view>
</view>
<view
class=
"content-type"
>
航拍/航测 | CAAC证书 | 测绘乙级
</view>
<view
class=
"content-type"
>
{{
i
.
brandName
}}
</view>
<view
class=
"content-location"
>
<image
src=
"../../../../static/img/location.png"
mode=
"widthFix"
/>
<text>
{{
i
.
address
}}
</text>
...
...
@@ -60,7 +60,7 @@
</view>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
PropType
}
from
'vue'
import
{
computed
,
PropType
,
ref
,
watch
}
from
'vue'
import
{
InterListType
}
from
'@/api/interface'
import
{
listCompanyInfoByCoopIdType
}
from
'@/api/interface/common'
...
...
@@ -74,6 +74,10 @@ const props = defineProps({
isclick
:
{
type
:
Boolean
,
default
:
false
},
currentItem
:
{
type
:
Object
as
unknown
as
PropType
<
ListType
[
0
]
>
,
default
:
()
=>
({})
}
})
// 事件
...
...
@@ -82,10 +86,20 @@ const emits = defineEmits(['onSelect'])
const
handleSelect
=
(
j
:
number
)
=>
{
emits
(
'onSelect'
,
props
.
list
[
j
])
}
// 组件挂载
onMounted
(()
=>
{
// console.log('列表组件 --->', props.list)
// 当前选择的项目
const
currentItem
=
ref
<
ListType
[
0
]
>
()
// 获取当前列表
const
getCurrentList
=
computed
(()
=>
{
return
props
.
list
?.
filter
((
i
)
=>
i
.
id
===
currentItem
.
value
?.
id
)
})
// 监听变化
watch
(
()
=>
props
.
currentItem
,
()
=>
{
currentItem
.
value
=
props
.
currentItem
console
.
log
(
props
.
currentItem
)
}
)
</
script
>
<
style
scoped
lang=
"scss"
>
.network-list
{
...
...
@@ -123,7 +137,7 @@ onMounted(() => {
position
:
relative
;
width
:
100%
;
margin-top
:
14
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
//
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-size
:
20
rpx
;
font-weight
:
400
;
color
:
#888d9c
;
...
...
@@ -222,6 +236,8 @@ onMounted(() => {
height
:
216
rpx
;
z-index
:
30
;
overflow-x
:
auto
;
box-sizing
:
border-box
;
padding-left
:
16
rpx
;
.list-item
{
position
:
relative
;
display
:
flex
;
...
...
src/pages/index/index.vue
浏览文件 @
4a5a4638
...
...
@@ -47,6 +47,7 @@
v-if=
"networkList.length !== 0"
:list=
"networkList"
:isclick=
"isclick"
:current-item=
"currentItem"
@
on-select=
"handleSelect"
/>
<view
v-else
class=
"network-none"
>
空空如也
</view>
...
...
@@ -176,7 +177,8 @@ import weChatSDK from 'z-weixin-ts'
layer: null,
parkList: [],
markers: [],
isclick:false,
isclick: false,
currentItem: {},
icon: {
type: 'image',
image: 'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/b0364bd1-f193-4b93-ac9f-cfb6e2624d6b.png',
...
...
@@ -249,10 +251,11 @@ import weChatSDK from 'z-weixin-ts'
position
:
element
.
position
,
icon
:
this
.
icon
,
});
console
.
log
(
'labelMarker'
,
labelMarker
)
//
console.log('labelMarker',labelMarker)
this
.
markers
.
push
(
labelMarker
);
labelMarker
.
on
(
'click'
,
(
e
)
=>
{
console
.
log
(
'执行了--->'
,
e
)
this
.
currentItem
=
{...
element
,...
this
.
networkList
[
index
]};
// console.log('执行到此处 --->', {...element,...this.networkList[index]})
this
.
openInfo
({...
element
,...
this
.
networkList
[
index
]});
this
.
isclick
=
true
});
...
...
@@ -268,6 +271,12 @@ import weChatSDK from 'z-weixin-ts'
if
(
zoom
>
5
)
this
.
map
.
setZoom
(
5
);
// 设置地图层级
}
// 展示当前定位
const
marker
=
new
AMap
.
Marker
({
position
:
[
this
.
location
.
lng
,
this
.
location
.
lat
]
})
this
.
map
.
add
(
marker
);
},
// 在指定位置打开信息窗体
openInfo
(
obj
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论