提交 82697bdf 作者: ZhangLingKun

功能:问题修复

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