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