提交 82697bdf 作者: ZhangLingKun

功能:问题修复

上级 c5b7a813
...@@ -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 20rpx; padding: 0 20rpx;
.location-select { .location-select {
font-size: 28rpx; font-size: 28rpx;
color: #000000; color: #000000;
line-height: 40rpx; line-height: 40rpx;
display: flex; display: flex;
align-items: center; align-items: center;
white-space: nowrap; white-space: nowrap;
image { image {
width: 16rpx; width: 16rpx;
height: 10rpx; height: 10rpx;
vertical-align: bottom; vertical-align: bottom;
margin-left: 14rpx; margin-left: 14rpx;
} }
margin-right: 32rpx; margin-right: 32rpx;
} }
.search-content { .search-content {
width: 570rpx; width: 570rpx;
height: 64rpx; height: 64rpx;
background: #fdf1ed; background: #fdf1ed;
border-radius: 32rpx; border-radius: 32rpx;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 12rpx 20rpx; padding: 12rpx 20rpx;
box-sizing: border-box; box-sizing: border-box;
image { image {
width: 28rpx; width: 28rpx;
height: 28rpx; height: 28rpx;
margin-right: 20rpx; margin-right: 20rpx;
vertical-align: bottom; vertical-align: bottom;
} }
input { input {
flex: 1; flex: 1;
} }
} }
} }
&-scroll{ &-scroll{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论