11
This commit is contained in:
parent
eba427c0f3
commit
18e2d6f938
|
@ -24,10 +24,72 @@
|
||||||
<view class="iconfont icon-xiangyou1"></view>
|
<view class="iconfont icon-xiangyou1"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" @click="isbackcar=true">
|
<view class="btn" @click="showkf=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>
|
||||||
电话咨询
|
电话咨询
|
||||||
</view>
|
</view>
|
||||||
|
<u-mask :show="showkf" :z-index='100' />
|
||||||
|
<view class="kfbox" v-if="showkf">
|
||||||
|
<view class="tit">
|
||||||
|
请选择您要联系的客服
|
||||||
|
</view>
|
||||||
|
<view class="words">
|
||||||
|
我们根据选择为您提供服务
|
||||||
|
</view>
|
||||||
|
<!-- <view class="phone_box">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uwiRmed6Kz4OUJh00HBD" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
官方客服
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
000-260-1559
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="phone_box" v-if="areaInfo.serviceName1!=''&&areaInfo.serviceName1&&areaInfo.servicePhone1!=''&&areaInfo.servicePhone1" @click="callPhone(areaInfo.servicePhone1)">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/unsZOLTPuYrpQKF8MpFt" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName1}}
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
{{areaInfo.servicePhone1}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="phone_box" v-if="areaInfo.serviceName2!=''&&areaInfo.serviceName2&&areaInfo.servicePhone2!=''&&areaInfo.servicePhone2" @click="callPhone(areaInfo.servicePhone2)">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/unsZOLTPuYrpQKF8MpFt" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName2}}
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
{{areaInfo.servicePhone2}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="phone_box" v-if="areaInfo.serviceName3!=''&&areaInfo.serviceName3&&areaInfo.servicePhone3!=''&&areaInfo.servicePhone3" @click="callPhone(areaInfo.servicePhone3)">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/unsZOLTPuYrpQKF8MpFt" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName3}}
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
{{areaInfo.servicePhone3}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<image class="close" src="https://lxnapi.ccttiot.com/bike/img/static/ulwJylk0JSmOdmU3FnnG" mode="" @click="showkf=false"></image>
|
||||||
|
</view>
|
||||||
<u-mask :show="isbackcar" :z-index='100' duration='0' @click="isbackcar = false" />
|
<u-mask :show="isbackcar" :z-index='100' duration='0' @click="isbackcar = false" />
|
||||||
<view class="pops" v-if="isbackcar">
|
<view class="pops" v-if="isbackcar">
|
||||||
<view class="tits" style="font-weight: 600;text-align: center;display: flex;justify-content: center;">
|
<view class="tits" style="font-weight: 600;text-align: center;display: flex;justify-content: center;">
|
||||||
|
@ -84,7 +146,8 @@
|
||||||
tabindex:0,
|
tabindex:0,
|
||||||
classlist:[],
|
classlist:[],
|
||||||
wordlist:[],
|
wordlist:[],
|
||||||
isbackcar:false
|
isbackcar:false,
|
||||||
|
showkf:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -225,6 +288,9 @@
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber:phone
|
phoneNumber:phone
|
||||||
})
|
})
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.showkf=false
|
||||||
|
},500)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,7 +304,78 @@
|
||||||
.page {
|
.page {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
padding-bottom: 300rpx;
|
padding-bottom: 300rpx;
|
||||||
|
.kfbox{
|
||||||
|
padding: 48rpx 30rpx;
|
||||||
|
position: fixed;
|
||||||
|
left: 82rpx;
|
||||||
|
top: 410rpx;
|
||||||
|
width: 590rpx;
|
||||||
|
// height: 282rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 30rpx 30rpx 30rpx 30rpx;
|
||||||
|
z-index: 110;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.close{
|
||||||
|
position: relative;
|
||||||
|
bottom: -124rpx;
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
}
|
||||||
|
.phone_box{
|
||||||
|
margin-top:32rpx;
|
||||||
|
width: 528rpx;
|
||||||
|
height: 144rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0,0,0,0.1);
|
||||||
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
|
.img{
|
||||||
|
width: 86rpx;
|
||||||
|
height: 86rpx;
|
||||||
|
image{
|
||||||
|
width: 86rpx;
|
||||||
|
height: 86rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.info{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-left: 34rpx;
|
||||||
|
.name{
|
||||||
|
width: 100%;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
.phone{
|
||||||
|
width: 100%;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tit{
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
.words{
|
||||||
|
margin-bottom: 42rpx;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.pops {
|
.pops {
|
||||||
|
|
||||||
padding: 46rpx 36rpx;
|
padding: 46rpx 36rpx;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 400rpx;
|
top: 400rpx;
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -109,5 +108,6 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
|
@ -73,9 +73,87 @@
|
||||||
<view class="paybtn" v-if="orderInfo.status==3&&orderInfo.paid==0" @click="topay1()">
|
<view class="paybtn" v-if="orderInfo.status==3&&orderInfo.paid==0" @click="topay1()">
|
||||||
去支付
|
去支付
|
||||||
</view>
|
</view>
|
||||||
|
<view class="kefus">
|
||||||
|
<view class="txt1">
|
||||||
|
对订单有疑问?
|
||||||
|
</view>
|
||||||
|
<view class="btn1" @click="showkf=true">
|
||||||
|
联系客服
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-mask :show="show" @click="show = false" :z-index='100' />
|
<u-mask :show="show" @click="show = false" :z-index='100' />
|
||||||
|
<u-mask :show="showkf" :z-index='100' />
|
||||||
|
<view class="kfbox" v-if="showkf">
|
||||||
|
<view class="tit">
|
||||||
|
请选择您要联系的客服
|
||||||
|
</view>
|
||||||
|
<view class="words">
|
||||||
|
我们根据选择为您提供服务
|
||||||
|
</view>
|
||||||
|
<!-- <view class="phone_box">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uwiRmed6Kz4OUJh00HBD" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
官方客服
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
000-260-1559
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="phone_box"
|
||||||
|
v-if="areaInfo.serviceName1!=''&&areaInfo.serviceName1&&areaInfo.servicePhone1!=''&&areaInfo.servicePhone1"
|
||||||
|
@click="callPhone(areaInfo.servicePhone1)">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/unsZOLTPuYrpQKF8MpFt" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName1}}
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
{{areaInfo.servicePhone1}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="phone_box"
|
||||||
|
v-if="areaInfo.serviceName2!=''&&areaInfo.serviceName2&&areaInfo.servicePhone2!=''&&areaInfo.servicePhone2"
|
||||||
|
@click="callPhone(areaInfo.servicePhone2)">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/unsZOLTPuYrpQKF8MpFt" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName2}}
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
{{areaInfo.servicePhone2}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="phone_box"
|
||||||
|
v-if="areaInfo.serviceName3!=''&&areaInfo.serviceName3&&areaInfo.servicePhone3!=''&&areaInfo.servicePhone3"
|
||||||
|
@click="callPhone(areaInfo.servicePhone3)">
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/unsZOLTPuYrpQKF8MpFt" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="name">
|
||||||
|
{{areaInfo.serviceName3}}
|
||||||
|
</view>
|
||||||
|
<view class="phone">
|
||||||
|
{{areaInfo.servicePhone3}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<image class="close" src="https://lxnapi.ccttiot.com/bike/img/static/ulwJylk0JSmOdmU3FnnG" mode=""
|
||||||
|
@click="showkf=false"></image>
|
||||||
|
</view>
|
||||||
|
<!-- <image class="kefu" src="https://lxnapi.ccttiot.com/bike/img/static/u8osHvZfHL7u3lbveVXx" mode=""
|
||||||
|
@click="showkf=true"></image> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -108,7 +186,9 @@
|
||||||
loading: false,
|
loading: false,
|
||||||
showIconAndCallout: false,
|
showIconAndCallout: false,
|
||||||
ispaid: false,
|
ispaid: false,
|
||||||
_mapContext: null
|
_mapContext: null,
|
||||||
|
showkf: false,
|
||||||
|
areaInfo: {},
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -124,6 +204,16 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
callPhone(phone){
|
||||||
|
this.isbackcar=false
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber:phone
|
||||||
|
})
|
||||||
|
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.showkf=false
|
||||||
|
},500)
|
||||||
|
},
|
||||||
// 骑行结束支付
|
// 骑行结束支付
|
||||||
topay1() {
|
topay1() {
|
||||||
if (this.ispaid == false) {
|
if (this.ispaid == false) {
|
||||||
|
@ -550,7 +640,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
getpolyline() {
|
getpolyline() {
|
||||||
this.$u.post("/system/device/trajectoryByOrderNo?orderNo=" + this.orderId).then((res) => {
|
this.$u.post("/system/device/trajectoryByOrderNo?orderNo=" + this.orderId).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.polyline[0].points = JSON.parse(res.data).map(coord => ({
|
this.polyline[0].points = JSON.parse(res.data).map(coord => ({
|
||||||
latitude: coord[1],
|
latitude: coord[1],
|
||||||
|
@ -559,7 +649,7 @@
|
||||||
let abb;
|
let abb;
|
||||||
try {
|
try {
|
||||||
abb = JSON.parse(res.data);
|
abb = JSON.parse(res.data);
|
||||||
console.log(abb,'abbbb');
|
console.log(abb, 'abbbb');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error parsing tripRouteStr:", error);
|
console.error("Error parsing tripRouteStr:", error);
|
||||||
return;
|
return;
|
||||||
|
@ -605,7 +695,7 @@
|
||||||
// let totalDistance = this.calculateTotalDistance(path);
|
// let totalDistance = this.calculateTotalDistance(path);
|
||||||
let baseSpeed = 300; // 设置一个基础速度,单位为距离每秒移动的像素数
|
let baseSpeed = 300; // 设置一个基础速度,单位为距离每秒移动的像素数
|
||||||
// let duration = totalDistance > 0 ? totalDistance * baseSpeed : 60000; // 根据路径长度动态计算持续时间
|
// let duration = totalDistance > 0 ? totalDistance * baseSpeed : 60000; // 根据路径长度动态计算持续时间
|
||||||
let duration = abb.length*300;
|
let duration = abb.length * 300;
|
||||||
// console.log(duration,'durationduration',totalDistance);
|
// console.log(duration,'durationduration',totalDistance);
|
||||||
this._mapContext.includePoints({
|
this._mapContext.includePoints({
|
||||||
points: formattedPath,
|
points: formattedPath,
|
||||||
|
@ -636,6 +726,93 @@
|
||||||
.page {
|
.page {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
|
||||||
|
.kefu {
|
||||||
|
position: fixed;
|
||||||
|
right: 30rpx;
|
||||||
|
bottom: 500rpx;
|
||||||
|
width: 82rpx;
|
||||||
|
height: 82rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kfbox {
|
||||||
|
padding: 48rpx 30rpx;
|
||||||
|
position: fixed;
|
||||||
|
left: 82rpx;
|
||||||
|
top: 410rpx;
|
||||||
|
width: 590rpx;
|
||||||
|
// height: 282rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 30rpx 30rpx 30rpx 30rpx;
|
||||||
|
z-index: 110;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.close {
|
||||||
|
position: relative;
|
||||||
|
bottom: -124rpx;
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phone_box {
|
||||||
|
margin-top: 32rpx;
|
||||||
|
width: 528rpx;
|
||||||
|
height: 144rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0, 0, 0, 0.1);
|
||||||
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.img {
|
||||||
|
width: 86rpx;
|
||||||
|
height: 86rpx;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 86rpx;
|
||||||
|
height: 86rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-left: 34rpx;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 100%;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phone {
|
||||||
|
width: 100%;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tit {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
|
||||||
|
.words {
|
||||||
|
margin-bottom: 42rpx;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.map {
|
.map {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
@ -647,7 +824,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
right: 30rpx;
|
right: 30rpx;
|
||||||
bottom: 600rpx;
|
bottom: 650rpx;
|
||||||
// background-color: #fff;
|
// background-color: #fff;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
width: 82rpx;
|
width: 82rpx;
|
||||||
|
@ -672,7 +849,32 @@
|
||||||
// height: 420rpx;
|
// height: 420rpx;
|
||||||
background: #F7F7F7;
|
background: #F7F7F7;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
|
.kefus{
|
||||||
|
padding: 18rpx 38rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
width: 708rpx;
|
||||||
|
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||||
|
.txt{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #3D3D3D;
|
||||||
|
}
|
||||||
|
.btn1{
|
||||||
|
margin-top: 26rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 626rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
background: #64B6A7;
|
||||||
|
border-radius: 14rpx 14rpx 14rpx 14rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
.paybtn {
|
.paybtn {
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -158,6 +158,15 @@
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"enablePullDownRefresh" : false
|
"enablePullDownRefresh" : false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "addcode",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText" : "",
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"enablePullDownRefresh" : false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -412,12 +412,19 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="bot_btn">
|
<view class="bot_btn">
|
||||||
<view class="cont" @click="topage(1)" v-if="areaInfo.deposit!=0">
|
<!-- <view class="cont" @click="topage(1)" v-if="areaInfo.deposit!=0">
|
||||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uYfTj4a3NkSNY0AqYHFc" mode="" v-if='gps.deptId==100'></image>
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uYfTj4a3NkSNY0AqYHFc" mode="" v-if='gps.deptId==100'></image>
|
||||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/uixPe8LlgKO7aUauIPVG" mode="" v-else style="width:59.46rpx;height: 49.87rpx;"></image>
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uixPe8LlgKO7aUauIPVG" mode="" v-else style="width:59.46rpx;height: 49.87rpx;"></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
押金充值
|
押金充值
|
||||||
</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="cont" @click="topage(10)" >
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uG1iB3C69uNIr9Zx7qH6" mode="" v-if='gps.deptId==100'></image>
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uDMXuZiiktkF0EWBrZv3" mode="" v-else style="width:59.46rpx;height: 49.87rpx;"></image>
|
||||||
|
<view class="text">
|
||||||
|
我的订单
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cont" @click="topage(2)">
|
<!-- <view class="cont" @click="topage(2)">
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/uFHC2R6R3pgUOTShLxoQ" mode=""
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uFHC2R6R3pgUOTShLxoQ" mode=""
|
||||||
|
@ -5315,6 +5322,17 @@
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_user/khfw/khfw'
|
url: '/page_user/khfw/khfw'
|
||||||
})
|
})
|
||||||
|
}else if(num == 10){
|
||||||
|
if (uni.getStorageSync('token')) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/page_user/good_list'
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.seeDetail = true
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/login/login?isindex=true'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
225
pages_admin/addcode.vue
Normal file
225
pages_admin/addcode.vue
Normal file
|
@ -0,0 +1,225 @@
|
||||||
|
<template>
|
||||||
|
<view class="page">
|
||||||
|
<u-navbar title="添加收款码" :border-bottom="false" :background="bgc" title-color='#000' title-size='36' height='45'
|
||||||
|
back-icon-color='#000'></u-navbar>
|
||||||
|
<view class="img">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/u5PppHgzfFN8r8RN4pg3" mode="" v-if="userImgs==''" @click="btn()"></image>
|
||||||
|
<image :src="userImgs" mode="" v-else style="height: 413rpx;"></image>
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uFp9riSLtpmuq6gyKfdr" mode="" class="close" v-if="userImgs!=''" @click="userImgs=''"></image>
|
||||||
|
</view>
|
||||||
|
<view class="txt">
|
||||||
|
请上传微信收款二维码
|
||||||
|
</view>
|
||||||
|
<view class="tips">
|
||||||
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uNll6TfepDq2dsCsE8wL" mode=""></image>
|
||||||
|
请上传图例中二维码收款中保存收款码的图片而非黄底截图二维码
|
||||||
|
</view>
|
||||||
|
<view class="btn" @click="sub()">
|
||||||
|
确认上传
|
||||||
|
</view>
|
||||||
|
<view class="txt2">
|
||||||
|
上传成功后如需更换,请联系客服
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
bgc: {
|
||||||
|
backgroundColor: "#fff",
|
||||||
|
},
|
||||||
|
imglist:[],
|
||||||
|
token: '',
|
||||||
|
upurl:'',
|
||||||
|
userImgs:'',
|
||||||
|
deptId:''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
this.getQiniuToken()
|
||||||
|
console.log(e);
|
||||||
|
this.deptId=e.deptId
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
sub(){
|
||||||
|
if(this.userImgs==''){
|
||||||
|
uni.showToast({
|
||||||
|
title: '请上传收款码',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
const encodedUserImgs = encodeURIComponent(this.userImgs);
|
||||||
|
this.$u.post(`/appVerify/uploadPaymentCode?collectionCode=${encodedUserImgs}&deptId=${this.deptId}`)
|
||||||
|
.then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
btn(){
|
||||||
|
let _this=this
|
||||||
|
let math='static/'+_this.$u.guid(20)
|
||||||
|
uni.chooseMessageFile({
|
||||||
|
count: 1,
|
||||||
|
type: 'all',
|
||||||
|
success (res) {
|
||||||
|
// tempFilePath可以作为img标签的src属性显示图片
|
||||||
|
const tempFilePaths = res.tempFiles
|
||||||
|
// let tempFilePaths = chooseImageRes.tempFilePaths;
|
||||||
|
// console.log(tempFilePaths)
|
||||||
|
// tempFilePaths.forEach(item=>{
|
||||||
|
// // 上传图片到七牛云
|
||||||
|
|
||||||
|
// })
|
||||||
|
wx.uploadFile({
|
||||||
|
url: 'https://up-z2.qiniup.com',
|
||||||
|
name: 'file',
|
||||||
|
filePath: tempFilePaths[0].path,
|
||||||
|
formData: {
|
||||||
|
token: _this.token, //后端返回的token
|
||||||
|
key:'bike/img/'+math
|
||||||
|
},
|
||||||
|
success: function(res) {
|
||||||
|
|
||||||
|
let str = JSON.parse(res.data)
|
||||||
|
|
||||||
|
_this.userImgs = _this.upurl +'/'+ str.key
|
||||||
|
console.log(_this.userImgs)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// uni.chooseFile({
|
||||||
|
// success: (chooseImageRes) => {
|
||||||
|
// let tempFilePaths = chooseImageRes.tempFilePaths;
|
||||||
|
// console.log(tempFilePaths)
|
||||||
|
// tempFilePaths.forEach(item=>{
|
||||||
|
// // 上传图片到七牛云
|
||||||
|
// wx.uploadFile({
|
||||||
|
// url: 'https://saxn40pko.hn-bkt.clouddn.com',
|
||||||
|
// name: 'file',
|
||||||
|
// filePath: item,
|
||||||
|
// formData: {
|
||||||
|
// token: _this.token, //后端返回的token
|
||||||
|
// key:'yasiimg/web/'+math
|
||||||
|
// },
|
||||||
|
// success: function(res) {
|
||||||
|
|
||||||
|
// let str = JSON.parse(res.data)
|
||||||
|
// // console.log(str.key)
|
||||||
|
// // _this.userImgs = 'https://file.langsi.online/' + str.key+'.pdf'
|
||||||
|
// console.log(_this.userImgs)
|
||||||
|
// _this.imglist.push(_this.userImgs)
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// })
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
// 获取上传七牛云token
|
||||||
|
getQiniuToken() {
|
||||||
|
console.log('diaou');
|
||||||
|
this.$u.get("/common/qiniu/uploadInfo").then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.token=res.token
|
||||||
|
console.log(res,'resres');
|
||||||
|
this.upurl=res.domain
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// this.$u.get('https://v2.ielts.langsi.online/file/getToken').then(res => {
|
||||||
|
// console.log(res.data);
|
||||||
|
// this.token = res.data.token
|
||||||
|
// }).catch(err => {
|
||||||
|
// console.log(err)
|
||||||
|
// })
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.page{
|
||||||
|
.btn{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
width: 626rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
background: #64B6A7;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
.txt2{
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
width: 626rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.img{
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
margin-top: 200rpx;
|
||||||
|
width: 300rpx;
|
||||||
|
// height: 300rpx;
|
||||||
|
image{
|
||||||
|
width: 300rpx;
|
||||||
|
height: 300rpx;
|
||||||
|
}
|
||||||
|
.close{
|
||||||
|
background: #FFFFFF;
|
||||||
|
// border-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 50rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.txt{
|
||||||
|
margin-top: 20rpx;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.tips{
|
||||||
|
margin-top: 40rpx;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: flex-end;
|
||||||
|
image{
|
||||||
|
width: 170rpx;
|
||||||
|
height: 210rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -115,7 +115,10 @@
|
||||||
border: false,
|
border: false,
|
||||||
isThrottled: false,
|
isThrottled: false,
|
||||||
moneyInfo:{},
|
moneyInfo:{},
|
||||||
ownerInfo:{}
|
ownerInfo:{},
|
||||||
|
imglist:[],
|
||||||
|
token: '',
|
||||||
|
upurl:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
@ -222,72 +225,89 @@
|
||||||
|
|
||||||
return `${month}-${day} ${hours}:${minutes}`;
|
return `${month}-${day} ${hours}:${minutes}`;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
payBtn() {
|
payBtn() {
|
||||||
if (this.realprice != 0) {
|
if(this.info.collectionCode==null){
|
||||||
// 检查是否已经在等待三秒的时间内
|
|
||||||
if (this.isThrottled) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请勿重复点击',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 设置节流标志位
|
|
||||||
this.isThrottled = true;
|
|
||||||
|
|
||||||
if (parseFloat(this.realprice) > parseFloat(this.info.withdrawableAmount)) {
|
|
||||||
|
|
||||||
uni.showToast({
|
|
||||||
title: '提现金额不能大于可提现金额',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
let data = {
|
|
||||||
amount: this.realprice,
|
|
||||||
areaId: this.areaId
|
|
||||||
}
|
|
||||||
this.$u.post('/appVerify/admin/withdraw', data).then((res) => {
|
|
||||||
if (res.code == 200) {
|
|
||||||
this.amount = ''
|
|
||||||
this.Quantity = 0
|
|
||||||
this.realprice = 0
|
|
||||||
this.price = 0
|
|
||||||
this.list = []
|
|
||||||
this.pageNum = 1
|
|
||||||
this.getareaInfo()
|
|
||||||
this.getlist()
|
|
||||||
uni.showToast({
|
|
||||||
title: '提现成功',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.msg,
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}).catch(error => {
|
|
||||||
console.error("Error fetching area data:", error);
|
|
||||||
}).finally(() => {
|
|
||||||
// 三秒后解除节流
|
|
||||||
setTimeout(() => {
|
|
||||||
this.isThrottled = false;
|
|
||||||
}, 3000);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '提现金额不能为0',
|
title: '请上传收款二维码',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 1000
|
||||||
});
|
});
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages_admin/addcode?deptId='+this.info.deptId
|
||||||
|
})
|
||||||
|
},1100)
|
||||||
|
}else{
|
||||||
|
if (this.realprice != 0) {
|
||||||
|
// 检查是否已经在等待三秒的时间内
|
||||||
|
if (this.isThrottled) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请勿重复点击',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 设置节流标志位
|
||||||
|
this.isThrottled = true;
|
||||||
|
|
||||||
|
if (parseFloat(this.realprice) > parseFloat(this.info.withdrawableAmount)) {
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: '提现金额不能大于可提现金额',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
let data = {
|
||||||
|
amount: this.realprice,
|
||||||
|
areaId: this.areaId
|
||||||
|
}
|
||||||
|
this.$u.post('/appVerify/admin/withdraw', data).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.amount = ''
|
||||||
|
this.Quantity = 0
|
||||||
|
this.realprice = 0
|
||||||
|
this.price = 0
|
||||||
|
this.list = []
|
||||||
|
this.pageNum = 1
|
||||||
|
this.getareaInfo()
|
||||||
|
this.getlist()
|
||||||
|
uni.showToast({
|
||||||
|
title: '提现成功',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
console.error("Error fetching area data:", error);
|
||||||
|
}).finally(() => {
|
||||||
|
// 三秒后解除节流
|
||||||
|
setTimeout(() => {
|
||||||
|
this.isThrottled = false;
|
||||||
|
}, 3000);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '提现金额不能为0',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
getareaInfo() {
|
getareaInfo() {
|
||||||
let data = {
|
let data = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user