11
This commit is contained in:
parent
e166cdcbfe
commit
a65b8312e1
|
@ -19,13 +19,13 @@ const install = (Vue, vm) => {
|
||||||
|
|
||||||
// },
|
// },
|
||||||
// });
|
// });
|
||||||
uni.setStorageSync('deptId', 100);
|
uni.setStorageSync('deptId', 101);
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
// baseUrl: 'http://61.174.243.28:15861',
|
// baseUrl: 'http://61.174.243.28:15861',
|
||||||
// baseUrl: 'http://192.168.2.14:8080',
|
// baseUrl: 'http://192.168.2.14:8080',
|
||||||
// baseUrl: 'http://124.221.246.124:2289',
|
// baseUrl: 'http://124.221.246.124:2289',
|
||||||
// baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
|
baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
|
||||||
baseUrl: 'https://dche.ccttiot.com/prod-api',
|
// baseUrl: 'https://dche.ccttiot.com/prod-api',
|
||||||
loadingText: '努力加载中~',
|
loadingText: '努力加载中~',
|
||||||
// loadingTime: 2000,
|
// loadingTime: 2000,
|
||||||
// 设置自定义头部content-type
|
// 设置自定义头部content-type
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin" : {
|
"mp-weixin" : {
|
||||||
"libVersion" : "latest",
|
"libVersion" : "latest",
|
||||||
"appid" : "wx3428c498d5061192",
|
"appid" : "wx4d178f8c80348214",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : false
|
"urlCheck" : false
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,11 +24,52 @@
|
||||||
<view class="iconfont icon-xiangyou1"></view>
|
<view class="iconfont icon-xiangyou1"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" @click="callPhone">
|
<view class="btn" @click="isbackcar=true">
|
||||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uEM1RpP3J0K51qTjtnA5" mode=""></image>
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uEM1RpP3J0K51qTjtnA5" mode=""></image>
|
||||||
电话咨询:{{areaInfo.servicePhone}}
|
电话咨询
|
||||||
|
</view>
|
||||||
|
<u-mask :show="isbackcar" :z-index='100' duration='0' @click="isbackcar = false" />
|
||||||
|
<view class="pops" v-if="isbackcar">
|
||||||
|
<view class="tits" style="font-weight: 600;text-align: center;display: flex;justify-content: center;">
|
||||||
|
联系电话
|
||||||
|
</view>
|
||||||
|
<view class="cont_box" >
|
||||||
|
<view class="pohone_li" v-if="areaInfo.serviceName1!=''&&areaInfo.serviceName1&&areaInfo.servicePhone1!=''&&areaInfo.servicePhone1" @click="callPhone(areaInfo.servicePhone1)">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName1}}
|
||||||
|
</view>
|
||||||
|
<view class="pohone">
|
||||||
|
{{areaInfo.servicePhone1}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="pohone_li" v-if="areaInfo.serviceName2!=''&&areaInfo.serviceName2&&areaInfo.servicePhone2!=''&&areaInfo.servicePhone2" @click="callPhone(areaInfo.servicePhone2)">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName2}}
|
||||||
|
</view>
|
||||||
|
<view class="pohone">
|
||||||
|
{{areaInfo.servicePhone2}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="pohone_li" v-if="areaInfo.serviceName3!=''&&areaInfo.serviceName3&&areaInfo.servicePhone3!=''&&areaInfo.servicePhone3" @click="callPhone(areaInfo.servicePhone3)">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName3}}
|
||||||
|
</view>
|
||||||
|
<view class="pohone">
|
||||||
|
{{areaInfo.servicePhone3}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="btn_box">
|
||||||
|
<view class="btn1" @click="isbackcar = false">
|
||||||
|
取消
|
||||||
|
</view>
|
||||||
|
<!-- <view class="btn2" @click="backDevice()">
|
||||||
|
确定
|
||||||
|
</view> -->
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -42,7 +83,8 @@
|
||||||
areaInfo: {},
|
areaInfo: {},
|
||||||
tabindex:0,
|
tabindex:0,
|
||||||
classlist:[],
|
classlist:[],
|
||||||
wordlist:[]
|
wordlist:[],
|
||||||
|
isbackcar:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -121,7 +163,8 @@
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.areaInfo = res.data
|
this.areaInfo = res.data
|
||||||
|
// this.areaInfo.serviceName1='陶旭旭'
|
||||||
|
// this.areaInfo.servicePhone1='17795402553'
|
||||||
} else {
|
} else {
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
// title: res.msg,
|
// title: res.msg,
|
||||||
|
@ -177,9 +220,10 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
callPhone(){
|
callPhone(phone){
|
||||||
|
this.isbackcar=false
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber:this.areaInfo.servicePhone
|
phoneNumber:phone
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -193,6 +237,190 @@
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
.pops {
|
||||||
|
padding: 46rpx 36rpx;
|
||||||
|
position: fixed;
|
||||||
|
top: 400rpx;
|
||||||
|
left: 74rpx;
|
||||||
|
width: 604rpx;
|
||||||
|
// height: 606rpx;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||||
|
z-index: 110;
|
||||||
|
|
||||||
|
.close {
|
||||||
|
position: absolute;
|
||||||
|
left: 266rpx;
|
||||||
|
bottom: -100rpx;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 80rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading_box {
|
||||||
|
width: 100%;
|
||||||
|
// height: 200rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 336rpx;
|
||||||
|
height: 154rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
// .loader {
|
||||||
|
// width: 120rpx;
|
||||||
|
// aspect-ratio: 1;
|
||||||
|
// border-radius: 50%;
|
||||||
|
// clip-path: inset(-360rpx); /* 4倍的比例调整 */
|
||||||
|
// box-shadow: -240rpx 60rpx, -240rpx 60rpx, -240rpx 60rpx; /* 4倍的比例调整 */
|
||||||
|
// transform: translateY(-60rpx); /* 4倍的比例调整 */
|
||||||
|
// animation: l19 1s infinite linear;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// @keyframes l19 {
|
||||||
|
// 16.67% {box-shadow:-240rpx 60rpx,-240rpx 60rpx, 76rpx 60rpx} /* 4倍的比例调整 */
|
||||||
|
// 33.33% {box-shadow:-240rpx 60rpx, 0px 60rpx, 76rpx 60rpx} /* 4倍的比例调整 */
|
||||||
|
// 40%,60%{box-shadow: -76rpx 60rpx, 0px 60rpx, 76rpx 60rpx} /* 4倍的比例调整 */
|
||||||
|
// 66.67% {box-shadow: -76rpx 60rpx, 0px 60rpx, 240rpx 60rpx} /* 4倍的比例调整 */
|
||||||
|
// 83.33% {box-shadow: -76rpx 60rpx, 240rpx 60rpx,240rpx 60rpx} /* 4倍的比例调整 */
|
||||||
|
// 100% {box-shadow: 240rpx 60rpx, 240rpx 60rpx,240rpx 60rpx} /* 4倍的比例调整 */
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_box {
|
||||||
|
margin-top: 80rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.btn1 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 216rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
background: #989898;
|
||||||
|
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||||
|
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn2 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 268rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
background: #4C97E7;
|
||||||
|
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||||
|
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
margin-top: 20rpx;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 48rpx;
|
||||||
|
color: #4C97E7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cont {
|
||||||
|
height: 500rpx;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tits {
|
||||||
|
// width: 604rpx;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
margin-bottom: 54rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cont_box {
|
||||||
|
margin-top: 36rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
.pohone_li{
|
||||||
|
margin-top: 10rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
.name{
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
margin-bottom: 54rpx;
|
||||||
|
}
|
||||||
|
.pohone{
|
||||||
|
margin-left: 20rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
margin-bottom: 54rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
margin-top: 36rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
// align-items: center;
|
||||||
|
|
||||||
|
.yuan {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
margin-right: 12rpx;
|
||||||
|
width: 20rpx;
|
||||||
|
height: 20rpx;
|
||||||
|
background: #000;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
width: 90%;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
margin-left: 40rpx;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 470rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
background: #4C97E7;
|
||||||
|
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.act1 {
|
||||||
|
background-color: #ccc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.backimg{
|
.backimg{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
content = content.replace(/<img([^>]*)>/g, (match, group1) => {
|
content = content.replace(/<img([^>]*)>/g, (match, group1) => {
|
||||||
// 查找并移除可能存在的尾部斜杠
|
// 查找并移除可能存在的尾部斜杠
|
||||||
let cleanedGroup = group1.replace(/\s*\/$/, '');
|
let cleanedGroup = group1.replace(/\s*\/$/, '');
|
||||||
return `<img ${cleanedGroup} style="width: 350rpx; height: auto;" />`;
|
return `<img style="width: 85vw ; height: auto;" ${cleanedGroup} />`;
|
||||||
});
|
});
|
||||||
|
|
||||||
return content;
|
return content;
|
||||||
|
|
|
@ -2,36 +2,8 @@
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="用车指南" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="用车指南" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='45'></u-navbar>
|
height='45'></u-navbar>
|
||||||
<view class="cont">
|
<view class="cont" v-html="content"></view>
|
||||||
<view class="tit">
|
|
||||||
请在运营区内骑行,否则将断电
|
|
||||||
</view>
|
|
||||||
<view class="txt">
|
|
||||||
地图上 <span style="color: #4C97E7;">蓝色区域</span>即为运营区
|
|
||||||
</view>
|
|
||||||
<view class="txt">
|
|
||||||
1.在运营区外骑行时,车辆可能断电
|
|
||||||
</view>
|
|
||||||
<view class="txt">
|
|
||||||
2.在运营区外还车时,车辆无法及时维修,将额外收
|
|
||||||
取调度费
|
|
||||||
</view>
|
|
||||||
<view class="img">
|
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/unYY6S6EsKRM0AMI2AER" mode=""></image>
|
|
||||||
</view>
|
|
||||||
<view class="tit" style="margin-top: 58rpx;">
|
|
||||||
提前确认目的地是否有“还车P点”
|
|
||||||
</view>
|
|
||||||
<view class="txt">
|
|
||||||
地图上 <span style="color: #34C24D ;">绿色区域</span>标有“P”即为还车P点
|
|
||||||
</view>
|
|
||||||
<view class="txt">
|
|
||||||
请在P点内关锁还车,否则将在骑行费用以外,额外 收取调度费
|
|
||||||
</view>
|
|
||||||
<view class="img">
|
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/udVueXhudGgkoyD3tszY" mode=""></image>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,10 +15,61 @@
|
||||||
bgc: {
|
bgc: {
|
||||||
backgroundColor: "#fff",
|
backgroundColor: "#fff",
|
||||||
},
|
},
|
||||||
|
content: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.getword()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// getclass() {
|
||||||
|
|
||||||
|
// this.$u.get("/app/classify/list?&parentId=111?&classifyId=114" ).then((res) => {
|
||||||
|
|
||||||
|
// if (res.code == 200) {
|
||||||
|
// this.classlist = res.data
|
||||||
|
// let id =this.classlist[0].classifyId
|
||||||
|
// this.getword(id)
|
||||||
|
// } else {
|
||||||
|
// // uni.showToast({
|
||||||
|
// // title: res.msg,
|
||||||
|
// // icon: 'none',
|
||||||
|
// // duration: 2000
|
||||||
|
// // });
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
getword() {
|
||||||
|
|
||||||
|
this.$u.get("/app/article/list?classifyId=" + 100).then((res) => {
|
||||||
|
|
||||||
|
if (res.code == 200) {
|
||||||
|
let abb = res.rows.find(item => item.articleId == 19);
|
||||||
|
this.content = abb.content
|
||||||
|
this.content = this.replaceImgWithImage(this.content)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: res.msg,
|
||||||
|
// icon: 'none',
|
||||||
|
// duration: 2000
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
replaceImgWithImage(content) {
|
||||||
|
// 替换所有的 为 \u00A0
|
||||||
|
content = content.replace(/ /g, '\u00A0');
|
||||||
|
|
||||||
|
// 替换 <img> 标签的宽度和高度样式
|
||||||
|
content = content.replace(/<img([^>]*)>/g, (match, group1) => {
|
||||||
|
// 查找并移除可能存在的尾部斜杠
|
||||||
|
let cleanedGroup = group1.replace(/\s*\/$/, '');
|
||||||
|
return `<img style="width: 85vw ; height: auto;" ${cleanedGroup} />`;
|
||||||
|
});
|
||||||
|
|
||||||
|
return content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -55,44 +78,17 @@
|
||||||
page {
|
page {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
padding-bottom: 100rpx;
|
||||||
.cont {
|
.cont {
|
||||||
|
|
||||||
margin-top: 34rpx;
|
margin-top: 34rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 634rpx;
|
width: 634rpx;
|
||||||
.tit{
|
|
||||||
margin-bottom: 32rpx;
|
|
||||||
width: 610rpx;
|
|
||||||
height: 88rpx;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
// justify-content: center;
|
|
||||||
padding-left: 30rpx;
|
|
||||||
background: linear-gradient( 90deg, #91C4FA 0%, rgba(243,243,243,0) 100%);
|
|
||||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
|
||||||
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
|
|
||||||
font-weight: 500;
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: #3D3D3D;
|
|
||||||
line-height: 44rpx;
|
|
||||||
}
|
|
||||||
.txt{
|
|
||||||
margin-top: 16rpx;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #3D3D3D;
|
|
||||||
line-height: 38rpx;
|
|
||||||
}
|
|
||||||
.img{
|
|
||||||
margin-top: 38rpx;
|
|
||||||
width: 634rpx;
|
|
||||||
height: 348rpx;
|
|
||||||
image{
|
|
||||||
width: 634rpx;
|
|
||||||
height: 348rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -364,6 +364,15 @@
|
||||||
"enablePullDownRefresh" : false,
|
"enablePullDownRefresh" : false,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "bulelink",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText" : "",
|
||||||
|
"enablePullDownRefresh" : false,
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 其他 userpages 目录下的页面...
|
// 其他 userpages 目录下的页面...
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<view class="tab_top">
|
<!-- 自定义导航栏 -->
|
||||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uVcMTydm81zCMhHomXl1" mode="" @click="topage(6)">
|
<view class="navBarBox">
|
||||||
|
<!-- 状态栏占位 -->
|
||||||
|
<view class="statusBar" :style="{ paddingTop:statusBarHeight+'px' }"></view>
|
||||||
|
<!-- 真正的导航栏内容 -->
|
||||||
|
<view class="navBar" :style="{ height:navBarHeight+'px' }">
|
||||||
|
<!-- <view>导航栏标题</view> -->
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uVcMTydm81zCMhHomXl1" mode="" @tap="topage(6)">
|
||||||
</image>
|
</image>
|
||||||
<view class="txts" v-if="gps.deptId==100">
|
<view class="txts" v-if="gps.deptId==100">
|
||||||
创享电动车
|
创享电动车
|
||||||
|
@ -11,6 +17,9 @@
|
||||||
嵛你出行
|
嵛你出行
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<!-- <u-navbar :is-back="false" title="共享电动车" :border-bottom="false" :background="bgc" title-color='#2E4975'
|
<!-- <u-navbar :is-back="false" title="共享电动车" :border-bottom="false" :background="bgc" title-color='#2E4975'
|
||||||
title-size='36' height='36'></u-navbar> -->
|
title-size='36' height='36'></u-navbar> -->
|
||||||
<map class="map" id="map" ref="map" :scale="zoomSize" show-location v-if="showmap" :latitude="latitude"
|
<map class="map" id="map" ref="map" :scale="zoomSize" show-location v-if="showmap" :latitude="latitude"
|
||||||
|
@ -667,7 +676,9 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="masktips" style="width: 100%;">
|
<view class="masktips" style="width: 100%;">
|
||||||
未在停车点需支付管理费: <span style="color: coral;font-size: 42rpx;font-weight: 600;">{{areaInfo.vehicleManagementFee}}</span>元 <!-- ,你可查看最近 停车点 -->
|
未在停车点需支付管理费: <span
|
||||||
|
style="color: coral;font-size: 42rpx;font-weight: 600;">{{areaInfo.vehicleManagementFee}}</span>元
|
||||||
|
<!-- ,你可查看最近 停车点 -->
|
||||||
</view>
|
</view>
|
||||||
<view class="tipsimg">
|
<view class="tipsimg">
|
||||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/ur95KSdL2SBEojQHzyEv" mode=""></image>
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/ur95KSdL2SBEojQHzyEv" mode=""></image>
|
||||||
|
@ -902,7 +913,10 @@
|
||||||
buleback: false,
|
buleback: false,
|
||||||
bulepayback: false,
|
bulepayback: false,
|
||||||
bulebindcar: false,
|
bulebindcar: false,
|
||||||
backfalse:0
|
backfalse: 0,
|
||||||
|
statusBarHeight: 0,
|
||||||
|
// 导航栏高度
|
||||||
|
navBarHeight: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -915,8 +929,23 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
//获取手机状态栏高度
|
||||||
|
this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
|
||||||
|
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
// 获取微信胶囊的位置信息 width,height,top,right,left,bottom
|
||||||
|
const custom = wx.getMenuButtonBoundingClientRect()
|
||||||
|
|
||||||
|
|
||||||
|
// 导航栏高度(标题栏高度) = 胶囊高度 + (顶部距离 - 状态栏高度) * 2
|
||||||
|
this.navBarHeight = custom.height + (custom.top - this.statusBarHeight) * 2
|
||||||
|
|
||||||
|
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
this.gps.deptId = uni.getStorageSync('deptId');
|
this.gps.deptId = uni.getStorageSync('deptId');
|
||||||
console.log(e, 'eeeeeeeeeeeeeeeeeee');
|
|
||||||
if (e.q) {
|
if (e.q) {
|
||||||
this.qParam = e.q
|
this.qParam = e.q
|
||||||
|
|
||||||
|
@ -1177,9 +1206,9 @@
|
||||||
methods: {
|
methods: {
|
||||||
totxtpage() {
|
totxtpage() {
|
||||||
this.seeDetail = true
|
this.seeDetail = true
|
||||||
// uni.navigateTo({
|
uni.navigateTo({
|
||||||
// url:
|
url:'/page_user/bulelink'
|
||||||
// })
|
})
|
||||||
},
|
},
|
||||||
offopencar() {
|
offopencar() {
|
||||||
this.bulebindcar = true
|
this.bulebindcar = true
|
||||||
|
@ -1433,16 +1462,19 @@
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
// let parkingReturn = true
|
// let parkingReturn = true
|
||||||
// let isInParkingArea = false
|
// let isInParkingArea = false
|
||||||
let parkingReturn = res.data.parkingReturn /** 强制停车点还车 true:开启,false:关闭*/
|
let parkingReturn = res.data
|
||||||
|
.parkingReturn /** 强制停车点还车 true:开启,false:关闭*/
|
||||||
let isInParkingArea = res.data.isInParkingArea /** 是否在停车区内*/
|
let isInParkingArea = res.data.isInParkingArea /** 是否在停车区内*/
|
||||||
if (parkingReturn) {
|
if (parkingReturn) {
|
||||||
// 不可以在停车点外还车
|
// 不可以在停车点外还车
|
||||||
if (isInParkingArea) {
|
if (isInParkingArea) {
|
||||||
// 在停车点内
|
// 在停车点内
|
||||||
if (that.OrderdeviceInfos.onlineStatus == 1&&that.backfalse<1) {
|
if (that.OrderdeviceInfos.onlineStatus == 1 && that.backfalse <
|
||||||
|
1) {
|
||||||
// 设备未离线
|
// 设备未离线
|
||||||
that.backDevice()
|
that.backDevice()
|
||||||
} else if(that.OrderdeviceInfos.onlineStatus == 0||that.backfalse>=1) {
|
} else if (that.OrderdeviceInfos.onlineStatus == 0 || that
|
||||||
|
.backfalse >= 1) {
|
||||||
if (that.carstause) {
|
if (that.carstause) {
|
||||||
|
|
||||||
that.$u.post(
|
that.$u.post(
|
||||||
|
@ -1485,10 +1517,12 @@
|
||||||
} else {
|
} else {
|
||||||
if (isInParkingArea) {
|
if (isInParkingArea) {
|
||||||
// 在停车点内
|
// 在停车点内
|
||||||
if (that.OrderdeviceInfos.onlineStatus == 1&&that.backfalse<1) {
|
if (that.OrderdeviceInfos.onlineStatus == 1 && that.backfalse <
|
||||||
|
1) {
|
||||||
// 设备未离线
|
// 设备未离线
|
||||||
that.backDevice()
|
that.backDevice()
|
||||||
}else if(that.OrderdeviceInfos.onlineStatus == 0||that.backfalse>=1) {
|
} else if (that.OrderdeviceInfos.onlineStatus == 0 || that
|
||||||
|
.backfalse >= 1) {
|
||||||
if (that.carstause) {
|
if (that.carstause) {
|
||||||
|
|
||||||
that.$u.post(
|
that.$u.post(
|
||||||
|
@ -2556,7 +2590,8 @@
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// this.maskloading = false
|
// this.maskloading = false
|
||||||
// }, 700)
|
// }, 700)
|
||||||
if(this.buleback==false&&this.buleopen==false&&this.buleclose==false&&this.bulebindcar==false){
|
if (this.buleback == false && this.buleopen == false && this.buleclose == false && this
|
||||||
|
.bulebindcar == false) {
|
||||||
if (this.buletxt == '蓝牙连接中') {
|
if (this.buletxt == '蓝牙连接中') {
|
||||||
this.buletxt = '蓝牙连接成功!'
|
this.buletxt = '蓝牙连接成功!'
|
||||||
}
|
}
|
||||||
|
@ -4093,7 +4128,8 @@
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 29,
|
height: 29,
|
||||||
iconPath: item.type == 1 ?
|
iconPath: item.type == 1 ?
|
||||||
'https://lxnapi.ccttiot.com/bike/img/static/up2xXqAgwCX5iER600k3' : item
|
'https://lxnapi.ccttiot.com/bike/img/static/up2xXqAgwCX5iER600k3' :
|
||||||
|
item
|
||||||
.type == 2 ?
|
.type == 2 ?
|
||||||
'https://lxnapi.ccttiot.com/bike/img/static/u53BAQcFIX3vxsCzEZ7t' :
|
'https://lxnapi.ccttiot.com/bike/img/static/u53BAQcFIX3vxsCzEZ7t' :
|
||||||
'https://lxnapi.ccttiot.com/bike/img/static/uDNY5Q4zOiZTCBTA2Jdq',
|
'https://lxnapi.ccttiot.com/bike/img/static/uDNY5Q4zOiZTCBTA2Jdq',
|
||||||
|
@ -4409,6 +4445,7 @@
|
||||||
url: '/page_user/gzsb'
|
url: '/page_user/gzsb'
|
||||||
})
|
})
|
||||||
} else if (num == 6) {
|
} else if (num == 6) {
|
||||||
|
console.log('点击了');
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/my'
|
url: '/pages/my'
|
||||||
})
|
})
|
||||||
|
@ -4829,37 +4866,43 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab_top {
|
.navBarBox {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0rpx;
|
z-index: 10;
|
||||||
left: 0;
|
|
||||||
width: 750rpx;
|
.navBar {
|
||||||
height: 250rpx;
|
width: 100vw;
|
||||||
z-index: 1;
|
// padding-top: 85rpx;
|
||||||
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
padding-top: 104rpx;
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
// align-items: center;
|
// align-items: center;
|
||||||
// justify-content: center;
|
// justify-content: center;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
position: absolute;
|
margin-left: 20rpx;
|
||||||
top: 100rpx;
|
// position: absolute;
|
||||||
left: 30rpx;
|
|
||||||
width: 60rpx;
|
width: 60rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
|
z-index: 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
.txts {
|
.txts {
|
||||||
|
margin-left: -80rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
|
z-index: 10;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
|
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.my-location {
|
.my-location {
|
||||||
|
|
|
@ -113,8 +113,8 @@
|
||||||
confirm(e){
|
confirm(e){
|
||||||
// console.log(e);
|
// console.log(e);
|
||||||
uni.setStorageSync('adminAreaid', e[0].value);
|
uni.setStorageSync('adminAreaid', e[0].value);
|
||||||
|
this.areaId= e[0].value
|
||||||
|
this.getArea()
|
||||||
|
|
||||||
},
|
},
|
||||||
getArea() {
|
getArea() {
|
||||||
|
|
|
@ -610,7 +610,7 @@
|
||||||
'isStart': true
|
'isStart': true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, 2000)
|
}, 5000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -743,6 +743,10 @@
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.deviceInfos = res.data
|
this.deviceInfos = res.data
|
||||||
this.mac = res.data.mac
|
this.mac = res.data.mac
|
||||||
|
// this.deviceInfos.onlineStatus=0
|
||||||
|
if(this.deviceInfos.onlineStatus==0){
|
||||||
|
this.Binddevice()
|
||||||
|
}
|
||||||
this.latitude = parseFloat(this.deviceInfos.latitude)
|
this.latitude = parseFloat(this.deviceInfos.latitude)
|
||||||
this.longitude = parseFloat(this.deviceInfos.longitude)
|
this.longitude = parseFloat(this.deviceInfos.longitude)
|
||||||
this.getArea()
|
this.getArea()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user