Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
h5
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
h5
Commits
82697bdf
提交
82697bdf
authored
7月 12, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:问题修复
上级
c5b7a813
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
111 行增加
和
107 行删除
+111
-107
index.vue
pages/network/index.vue
+111
-107
没有找到文件。
pages/network/index.vue
浏览文件 @
82697bdf
...
...
@@ -3,30 +3,30 @@
<view
class=
"map-content-wrap"
>
<view
class=
"map-content"
id=
"map"
></view>
<view
class=
"map-marker-operate"
>
<view
v-for=
"(v, i) in mapBtnList"
:key=
"i"
:class=
"
{ 'operate-item': true, 'operate-item-active': i === selectBtnIndex }"
@click="changeTabEvent(i)"
>
{{
v
}}
<view
v-for=
"(v, i) in mapBtnList"
:key=
"i"
:class=
"
{ 'operate-item': true, 'operate-item-active': i === selectBtnIndex }"
@click="changeTabEvent(i)"
>
{{
v
}}
</view>
</view>
</view>
<view
class=
"websit-node-list"
>
<view
class=
"websit-node-list-search"
>
<pick-region
@
getRegion=
"handleGetRegion"
>
<pick-region
@
getRegion=
"handleGetRegion"
>
<view
class=
"location-select"
>
<view>
深圳
</view>
<image
src=
"../../static/images/icon-down.png"
/>
</view
></pick-region>
<view
class=
"search-content"
>
<image
src=
"../../static/images/search-icon.png"
/>
<input
placeholder=
""
placeholder-style=
"font-size: 28rpx;color: #B2B2B2;"
/>
</view>
></pick-region>
<view
class=
"search-content"
>
<image
src=
"../../static/images/search-icon.png"
/>
<input
placeholder=
""
placeholder-style=
"font-size: 28rpx;color: #B2B2B2;"
/>
</view>
</view>
<scroll-view
class=
"websit-node-list-scroll"
scroll-y
@
scrolltolower=
"scrollToLower"
>
<network-item
v-for=
"(v,i) in websitListPagination"
:key=
"i"
:networkItem=
"v"
/>
...
...
@@ -36,82 +36,86 @@
</
template
>
<
script
>
import
wx
from
'weixin-js-sdk'
;
import
NetworkItem
from
"./components/network-item/index.vue"
import
PickRegion
from
'@/components/pick-regions/pick-regions.vue'
export
default
{
data
()
{
return
{
title
:
'Hello'
,
location
:
{},
locationData
:
{
adcode
:
"440305"
,
city
:
"深圳市"
,
city_code
:
"156440300"
,
district
:
"南山区"
,
location
:
{
lat
:
39.9219
,
lng
:
116.44355
},
name
:
"中国,广东省,深圳市,南山区"
,
nation
:
"中国"
,
nation_code
:
"156"
,
province
:
"广东省"
,
import
wx
from
'weixin-js-sdk'
;
import
NetworkItem
from
"./components/network-item/index.vue"
import
PickRegion
from
'@/components/pick-regions/pick-regions.vue'
export
default
{
data
()
{
return
{
title
:
'Hello'
,
location
:
{},
locationData
:
{
adcode
:
"440305"
,
city
:
"深圳市"
,
city_code
:
"156440300"
,
district
:
"南山区"
,
location
:
{
lat
:
39.9219
,
lng
:
116.44355
},
isHeight
:
false
,
websitHeight
:
0
,
mapBtnList
:[
'服务网点'
,
'租赁网点'
,
'培训网点'
,
'维修网点'
],
selectBtnIndex
:
0
}
},
components
:{
NetworkItem
,
PickRegion
},
onLoad
(
option
)
{
let
str
=
this
.
getQueryString
(
"location"
)
||
JSON
.
stringify
(
this
.
locationData
);
this
.
location
=
JSON
.
parse
(
str
);
},
filters
:{
getPhoneStr
(
value
){
let
str
=
String
(
value
)
return
str
.
substring
(
0
,
3
)
+
'****'
+
str
.
substring
(
str
.
length
-
4
,
str
.
length
)
name
:
"中国,广东省,深圳市,南山区"
,
nation
:
"中国"
,
nation_code
:
"156"
,
province
:
"广东省"
,
},
isHeight
:
false
,
websitHeight
:
0
,
mapBtnList
:[
'服务网点'
,
'租赁网点'
,
'培训网点'
,
'维修网点'
],
selectBtnIndex
:
0
}
},
components
:{
NetworkItem
,
PickRegion
},
onLoad
(
option
)
{
let
str
=
this
.
getQueryString
(
"location"
)
||
JSON
.
stringify
(
this
.
locationData
);
this
.
location
=
JSON
.
parse
(
str
);
uni
.
showToast
({
title
:
'哈哈哈'
,
icon
:
'none'
})
},
filters
:{
getPhoneStr
(
value
){
let
str
=
String
(
value
)
return
str
.
substring
(
0
,
3
)
+
'****'
+
str
.
substring
(
str
.
length
-
4
,
str
.
length
)
}
},
onReachBottom
()
{
if
(
this
.
currentTipIndex
!=
0
)
{
if
(
this
.
query
.
pageNo
*
this
.
query
.
pageSize
<
this
.
total
)
{
switch
(
this
.
currentTipIndex
)
{
case
1
:
this
.
query
.
pageNo
++
this
.
getFlyerDotList
()
break
;
case
2
:
this
.
query
.
pageNo
++
this
.
getDeviceDotList
()
break
;
}
}
}
},
methods
:
{
toAddWebsit
()
{
wx
.
miniProgram
.
navigateTo
({
url
:
"/page-home/cooperation/cooperation"
});
},
onReachBottom
()
{
if
(
this
.
currentTipIndex
!=
0
)
{
if
(
this
.
query
.
pageNo
*
this
.
query
.
pageSize
<
this
.
total
)
{
switch
(
this
.
currentTipIndex
)
{
case
1
:
this
.
query
.
pageNo
++
this
.
getFlyerDotList
()
break
;
case
2
:
this
.
query
.
pageNo
++
this
.
getDeviceDotList
()
break
;
}
}
getQueryString
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
,
"i"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
{
return
decodeURIComponent
(
r
[
2
]);
}
return
null
;
},
methods
:
{
toAddWebsit
()
{
wx
.
miniProgram
.
navigateTo
({
url
:
"/page-home/cooperation/cooperation"
});
},
getQueryString
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
,
"i"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
{
return
decodeURIComponent
(
r
[
2
]);
}
return
null
;
},
}
}
}
</
script
>
<!-- 内嵌高德地图 -->
<
script
module=
"ModuleInstance"
lang=
"renderjs"
>
...
...
@@ -371,37 +375,37 @@
padding
:
0
20
rpx
;
.location-select
{
font-size
:
28
rpx
;
color
:
#000000
;
line-height
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
white-space
:
nowrap
;
image
{
width
:
16
rpx
;
height
:
10
rpx
;
vertical-align
:
bottom
;
margin-left
:
14
rpx
;
}
margin-right
:
32rpx
;
color
:
#000000
;
line-height
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
white-space
:
nowrap
;
image
{
width
:
16
rpx
;
height
:
10
rpx
;
vertical-align
:
bottom
;
margin-left
:
14
rpx
;
}
margin-right
:
32rpx
;
}
.search-content
{
width
:
570
rpx
;
height
:
64
rpx
;
background
:
#fdf1ed
;
border-radius
:
32
rpx
;
display
:
flex
;
align-items
:
center
;
padding
:
12
rpx
20
rpx
;
box-sizing
:
border-box
;
image
{
height
:
64
rpx
;
background
:
#fdf1ed
;
border-radius
:
32
rpx
;
display
:
flex
;
align-items
:
center
;
padding
:
12
rpx
20
rpx
;
box-sizing
:
border-box
;
image
{
width
:
28
rpx
;
height
:
28
rpx
;
margin-right
:
20
rpx
;
vertical-align
:
bottom
;
}
input
{
}
input
{
flex
:
1
;
}
}
}
}
&
-scroll
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论