小鹿骑行最新
This commit is contained in:
parent
9d3e94012e
commit
da9514e206
|
|
@ -1,7 +1,7 @@
|
||||||
const install = (Vue, vm) => {
|
const install = (Vue, vm) => {
|
||||||
uni.setStorageSync('deptId', 100);
|
uni.setStorageSync('deptId', 100);
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
// baseUrl: 'http://192.168.2.124:4101', //键辉本地
|
// baseUrl: 'http://192.168.2.10:4101', //键辉本地
|
||||||
// baseUrl: 'http://192.168.0.102:4101', //景森本地
|
// baseUrl: 'http://192.168.0.102:4101', //景森本地
|
||||||
baseUrl: 'https://ele.ccttiot.com/prod-api', //线上
|
baseUrl: 'https://ele.ccttiot.com/prod-api', //线上
|
||||||
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上
|
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上
|
||||||
|
|
|
||||||
|
|
@ -1246,7 +1246,7 @@ function init() {
|
||||||
// && devices.devices[0].name != 'SMART_R2XS'
|
// && devices.devices[0].name != 'SMART_R2XS'
|
||||||
// && devices.devices[0].name != 'SMART_R2XS'
|
// && devices.devices[0].name != 'SMART_R2XS'
|
||||||
// )
|
// )
|
||||||
if (devices.devices[0].name.indexOf("CTPO") != -1 || devices.devices[0].name.indexOf("BBLE") != -1){
|
if (devices.devices[0].name.indexOf("BBLE") != -1){
|
||||||
// if ( devices.devices[0].name.indexOf("gjkg") != -1 ){
|
// if ( devices.devices[0].name.indexOf("gjkg") != -1 ){
|
||||||
// console.log("跳过",devices.devices[0].name)
|
// console.log("跳过",devices.devices[0].name)
|
||||||
// isnotexist = false;
|
// isnotexist = false;
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,11 @@
|
||||||
{{item.tit}}
|
{{item.tit}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rt">
|
<view class="rt" v-if="item.name == '查看运营区'">
|
||||||
|
<u-switch v-model="item.checked" :disabled="true" active-color="#2b2929" size="36"
|
||||||
|
inactive-color="#eee"></u-switch>
|
||||||
|
</view>
|
||||||
|
<view class="rt" v-else>
|
||||||
<u-switch v-model="item.checked" active-color="#4C97E7" size="36"
|
<u-switch v-model="item.checked" active-color="#4C97E7" size="36"
|
||||||
inactive-color="#eee"></u-switch>
|
inactive-color="#eee"></u-switch>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -105,7 +109,7 @@
|
||||||
list: [{
|
list: [{
|
||||||
name: '查看运营区',
|
name: '查看运营区',
|
||||||
tit: '是否允许',
|
tit: '是否允许',
|
||||||
checked: false,
|
checked: true,
|
||||||
txt: 1
|
txt: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -579,6 +579,7 @@
|
||||||
ljsbflag:false,
|
ljsbflag:false,
|
||||||
kefuflag: false,
|
kefuflag: false,
|
||||||
kefulist: [],
|
kefulist: [],
|
||||||
|
respData:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
|
@ -764,7 +765,6 @@
|
||||||
this.getgg()
|
this.getgg()
|
||||||
this.gethuiyuan()
|
this.gethuiyuan()
|
||||||
},1500)
|
},1500)
|
||||||
console.log(this.sn,'03333333303333333');
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
|
|
@ -1260,36 +1260,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 下单
|
// 开锁方法
|
||||||
getzf() {
|
openDevice() {
|
||||||
let data = {
|
|
||||||
deviceId: this.bikeobj.id,
|
|
||||||
suitId: this.suitId,
|
|
||||||
price: this.yucobj,
|
|
||||||
appId: this.$store.state.appid,
|
|
||||||
channelId: this.channelId,
|
|
||||||
creditUserId:this.selectedSubPayment,
|
|
||||||
checkVideo:this.videoUrl
|
|
||||||
}
|
|
||||||
uni.showLoading({
|
|
||||||
title: '加载中...',
|
|
||||||
mask: true
|
|
||||||
})
|
|
||||||
this.$u.post(`/app/order`, data).then((resp) => {
|
|
||||||
if (resp.code == 200) {
|
|
||||||
if(resp.data.needPay == true){
|
|
||||||
uni.requestPayment({
|
|
||||||
provider: 'wxpay',
|
|
||||||
timeStamp: resp.data.payParams.timeStamp,
|
|
||||||
nonceStr: resp.data.payParams.nonceStr,
|
|
||||||
package: resp.data.payParams.packageVal,
|
|
||||||
signType: resp.data.payParams.signType,
|
|
||||||
paySign: resp.data.payParams.paySign,
|
|
||||||
success: (respc) => {
|
|
||||||
console.log(respc, '支付成功')
|
|
||||||
this.bstId = resp.data.pay.bstId
|
|
||||||
this.wenbentxtflag = true
|
|
||||||
this.wenbentxt = '开锁中...'
|
|
||||||
let xllat = null
|
let xllat = null
|
||||||
let xllng = null
|
let xllng = null
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
|
|
@ -1304,7 +1276,7 @@
|
||||||
})
|
})
|
||||||
this.$u.put(`/app/order/openDevice?orderId=${this.bstId}&requiredIot=true&lon=${xllng}&lat=${xllat}`).then(res =>{
|
this.$u.put(`/app/order/openDevice?orderId=${this.bstId}&requiredIot=true&lon=${xllng}&lat=${xllat}`).then(res =>{
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$u.put(`/app/pay/refreshPayResult?no=${resp.data.pay.no}`).then((res) => {
|
this.$u.put(`/app/pay/refreshPayResult?no=${this.respData.pay.no}`).then((res) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index?orderid=' + this.bstId
|
url: '/pages/index/index?orderid=' + this.bstId
|
||||||
|
|
@ -1341,13 +1313,11 @@
|
||||||
let flag = false
|
let flag = false
|
||||||
that.zhezhaoflag = true
|
that.zhezhaoflag = true
|
||||||
that.$u.put(`/app/order/openDevice?orderId=${that.bstId}&requiredIot=false&lon=${xllng}&lat=${xllat}`).then(res =>{})
|
that.$u.put(`/app/order/openDevice?orderId=${that.bstId}&requiredIot=false&lon=${xllng}&lat=${xllat}`).then(res =>{})
|
||||||
that.$u.put(`/app/pay/refreshPayResult?no=${resp.data.pay.bstId}`).then((res) => {
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index?orderid=' + resp.data.pay.bstId
|
url: '/pages/index/index?orderid=' + that.respData.pay.bstId
|
||||||
})
|
})
|
||||||
}, 2000)
|
}, 2000)
|
||||||
}) //刷新支付结果
|
|
||||||
}else{
|
}else{
|
||||||
that.ver_dataflag = 1
|
that.ver_dataflag = 1
|
||||||
that.shibainum = 0
|
that.shibainum = 0
|
||||||
|
|
@ -1370,6 +1340,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
findDevice()
|
findDevice()
|
||||||
|
}else if(res.code == 40001){
|
||||||
|
// 当返回40001时,重新执行当前这一步
|
||||||
|
console.log('开锁返回40001,重新执行开锁请求...')
|
||||||
|
setTimeout(() => {
|
||||||
|
this.openDevice()
|
||||||
|
}, 1000) // 延迟1秒后重新执行
|
||||||
} else{
|
} else{
|
||||||
this.wenbentxt = ''
|
this.wenbentxt = ''
|
||||||
this.wenbentxtflag = false
|
this.wenbentxtflag = false
|
||||||
|
|
@ -1381,6 +1357,43 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 下单
|
||||||
|
getzf() {
|
||||||
|
let data = {
|
||||||
|
deviceId: this.bikeobj.id,
|
||||||
|
suitId: this.suitId,
|
||||||
|
price: this.yucobj,
|
||||||
|
appId: this.$store.state.appid,
|
||||||
|
channelId: this.channelId,
|
||||||
|
creditUserId:this.selectedSubPayment,
|
||||||
|
checkVideo:this.videoUrl
|
||||||
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中...',
|
||||||
|
mask: true
|
||||||
|
})
|
||||||
|
this.$u.post(`/app/order`, data).then((resp) => {
|
||||||
|
if (resp.code == 200) {
|
||||||
|
if(resp.data.needPay == true){
|
||||||
|
uni.requestPayment({
|
||||||
|
provider: 'wxpay',
|
||||||
|
timeStamp: resp.data.payParams.timeStamp,
|
||||||
|
nonceStr: resp.data.payParams.nonceStr,
|
||||||
|
package: resp.data.payParams.packageVal,
|
||||||
|
signType: resp.data.payParams.signType,
|
||||||
|
paySign: resp.data.payParams.paySign,
|
||||||
|
success: (respc) => {
|
||||||
|
console.log(respc, '支付成功')
|
||||||
|
this.bstId = resp.data.pay.bstId
|
||||||
|
this.respData = resp.data // 保存响应数据供开锁方法使用
|
||||||
|
this.wenbentxtflag = true
|
||||||
|
this.wenbentxt = '开锁中...'
|
||||||
|
// 调用开锁方法
|
||||||
|
this.$u.put(`/app/pay/refreshPayResult?no=${this.respData.pay.no}`).then((res) => {
|
||||||
|
this.openDevice()
|
||||||
|
}) //刷新支付结果
|
||||||
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,11 @@
|
||||||
{{item.tit}}
|
{{item.tit}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rt">
|
<view class="rt" v-if="item.name == '查看运营区'">
|
||||||
|
<u-switch v-model="item.checked" :disabled="true" active-color="#2b2929" size="36"
|
||||||
|
inactive-color="#eee"></u-switch>
|
||||||
|
</view>
|
||||||
|
<view class="rt" v-else>
|
||||||
<u-switch v-model="item.checked" active-color="#4C97E7" size="36"
|
<u-switch v-model="item.checked" active-color="#4C97E7" size="36"
|
||||||
inactive-color="#eee"></u-switch>
|
inactive-color="#eee"></u-switch>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -102,7 +106,7 @@
|
||||||
list: [{
|
list: [{
|
||||||
name: '查看运营区',
|
name: '查看运营区',
|
||||||
tit: '是否允许',
|
tit: '是否允许',
|
||||||
checked: false,
|
checked: true,
|
||||||
txt: 1
|
txt: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,8 @@
|
||||||
<script>
|
<script>
|
||||||
import TabBar from '@/page_shanghu/components/tab-bar/tab-bar.vue';
|
import TabBar from '@/page_shanghu/components/tab-bar/tab-bar.vue';
|
||||||
import SliderRange from '@/page_shanghu/components/primewind-sliderrange/index.vue'
|
import SliderRange from '@/page_shanghu/components/primewind-sliderrange/index.vue'
|
||||||
let timerId;
|
let pollIntervalId = null; // 轮询interval
|
||||||
|
let rangeDebounceId = null; // 滑动筛选debounce
|
||||||
var appMap = null;
|
var appMap = null;
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
|
|
@ -208,21 +209,21 @@
|
||||||
SliderRange,TabBar
|
SliderRange,TabBar
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.polyline = []
|
console.log('admin_index onShow -> start poll')
|
||||||
if (uni.getStorageSync('adminAreaid')) {
|
this.btnshuaixn()
|
||||||
this.areaId = uni.getStorageSync('adminAreaid')
|
if (pollIntervalId) {
|
||||||
this.getArea()
|
clearInterval(pollIntervalId)
|
||||||
console.log(this.areaId)
|
|
||||||
}
|
}
|
||||||
this.getqb()
|
pollIntervalId = setInterval(() => {
|
||||||
this.getmarks()
|
console.log('admin_index poll tick')
|
||||||
|
this.btnshuaixn()
|
||||||
|
}, 10000)
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
let that = this
|
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
type: 'wgs84',
|
type: 'wgs84',
|
||||||
success: function(lb) {
|
success: function(lb) {
|
||||||
console.log(that.areaInfo, 'that.areaInfo')
|
console.log(this.areaInfo, 'that.areaInfo')
|
||||||
},
|
},
|
||||||
fail: function(error) {
|
fail: function(error) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -232,6 +233,26 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.polyline = []
|
||||||
|
if (uni.getStorageSync('adminAreaid')) {
|
||||||
|
this.areaId = uni.getStorageSync('adminAreaid')
|
||||||
|
this.getArea()
|
||||||
|
console.log(this.areaId)
|
||||||
|
}
|
||||||
|
this.getqb()
|
||||||
|
this.getmarks()
|
||||||
|
},
|
||||||
|
onHide() {
|
||||||
|
if (pollIntervalId) {
|
||||||
|
clearInterval(pollIntervalId)
|
||||||
|
pollIntervalId = null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onUnload() {
|
||||||
|
if (pollIntervalId) {
|
||||||
|
clearInterval(pollIntervalId)
|
||||||
|
pollIntervalId = null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
userId() {
|
userId() {
|
||||||
|
|
@ -470,9 +491,11 @@
|
||||||
handleRangeChange(e) {
|
handleRangeChange(e) {
|
||||||
console.log(e,'121212');
|
console.log(e,'121212');
|
||||||
// 每次滑动时清除之前的定时器
|
// 每次滑动时清除之前的定时器
|
||||||
clearTimeout(timerId)
|
if (rangeDebounceId) {
|
||||||
|
clearTimeout(rangeDebounceId)
|
||||||
|
}
|
||||||
// 设置一个新的定时器,在滑动停止后 500ms 执行筛选
|
// 设置一个新的定时器,在滑动停止后 500ms 执行筛选
|
||||||
timerId = setTimeout(() => {
|
rangeDebounceId = setTimeout(() => {
|
||||||
this.rangeValue = e
|
this.rangeValue = e
|
||||||
// 使用本地数据进行筛选
|
// 使用本地数据进行筛选
|
||||||
this.filterDevicesByPowerRange()
|
this.filterDevicesByPowerRange()
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="box_bot">
|
<view class="box_bot">
|
||||||
<view class="bot_left">
|
<view class="bot_left">
|
||||||
提现时间:{{item.createTime}}
|
{{item.createTime}}
|
||||||
</view>
|
</view>
|
||||||
<view class="top_left">
|
<view class="top_left">
|
||||||
提现金额: {{'¥' + item.amount}}
|
提现金额: {{'¥' + item.amount}}
|
||||||
|
|
@ -175,7 +175,6 @@
|
||||||
this.areaId = uni.getStorageSync('adminAreaid')
|
this.areaId = uni.getStorageSync('adminAreaid')
|
||||||
}
|
}
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.getlist()
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if(this.total > this.list.length){
|
if(this.total > this.list.length){
|
||||||
|
|
@ -209,6 +208,7 @@
|
||||||
this.$u.get(`/getInfo`).then((res) => {
|
this.$u.get(`/getInfo`).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.userInfo = res.user
|
this.userInfo = res.user
|
||||||
|
this.getlist()
|
||||||
this.gettxfs()
|
this.gettxfs()
|
||||||
this.successAmount = res.stat.withdraw.successAmount == null ? 0 : res.stat.withdraw.successAmount
|
this.successAmount = res.stat.withdraw.successAmount == null ? 0 : res.stat.withdraw.successAmount
|
||||||
this.waitDivideAmount = res.stat.bonus.waitDivideAmount == null ? 0 : res.stat.bonus.waitDivideAmount
|
this.waitDivideAmount = res.stat.bonus.waitDivideAmount == null ? 0 : res.stat.bonus.waitDivideAmount
|
||||||
|
|
@ -314,7 +314,7 @@
|
||||||
},
|
},
|
||||||
// 请求提现记录
|
// 请求提现记录
|
||||||
getlist() {
|
getlist() {
|
||||||
this.$u.get(`/bst/withdraw/list?pageNum=${this.pageNum}&pageSize=10`).then((res) => {
|
this.$u.get(`/bst/withdraw/list?pageNum=${this.pageNum}&pageSize=10&orderByColumn=createTime&isAsc=desc&userId=${this.userInfo.userId}`).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
if(this.pageNum == 1){
|
if(this.pageNum == 1){
|
||||||
|
|
|
||||||
|
|
@ -53,29 +53,28 @@
|
||||||
<view class="top_info_left">
|
<view class="top_info_left">
|
||||||
订单编号:{{item.no}}
|
订单编号:{{item.no}}
|
||||||
</view>
|
</view>
|
||||||
<view class="top_info_right" v-if="item.status=='PROCESSING'">
|
<view class="top_info_right status-processing" v-if="item.status=='PROCESSING'">
|
||||||
<view class="yuan"></view>
|
<view class="yuan"></view>
|
||||||
进行中
|
进行中
|
||||||
</view>
|
</view>
|
||||||
<view class="top_info_right" v-if="item.status== 'WAIT_PAY'"
|
<view class="top_info_right status-wait-pay" v-if="item.status== 'WAIT_PAY'">
|
||||||
style="color: orangered;">
|
<view class="yuan"></view>
|
||||||
<view class="yuan" style="background: orangered;"></view>
|
|
||||||
押金待支付
|
押金待支付
|
||||||
</view>
|
</view>
|
||||||
<view class="top_info_right" v-if="item.status=='FINISHED'" style="color: green;">
|
<view class="top_info_right status-finished" v-if="item.status=='FINISHED'">
|
||||||
<view class="yuan" style="background: green;"></view>
|
<view class="yuan"></view>
|
||||||
已完成
|
已完成
|
||||||
</view>
|
</view>
|
||||||
<view class="top_info_right" v-if="item.status=='CANCELED'" style="color: #666;">
|
<view class="top_info_right status-canceled" v-if="item.status=='CANCELED'">
|
||||||
<view class="yuan" style="background: #666;"></view>
|
<view class="yuan"></view>
|
||||||
已取消
|
已取消
|
||||||
</view>
|
</view>
|
||||||
<view class="top_info_right" v-if="item.status=='RIDE_WAIT_PAY'" style="color: orange;">
|
<view class="top_info_right status-ride-wait-pay" v-if="item.status=='RIDE_WAIT_PAY'">
|
||||||
<view class="yuan" style="background: orange;"></view>
|
<view class="yuan"></view>
|
||||||
骑行待支付
|
骑行待支付
|
||||||
</view>
|
</view>
|
||||||
<view class="top_info_right" v-if="item.status=='WAIT_VERIFY'" style="color: #666;">
|
<view class="top_info_right status-wait-verify" v-if="item.status=='WAIT_VERIFY'">
|
||||||
<view class="yuan" style="background: #666;"></view>
|
<view class="yuan"></view>
|
||||||
待审核
|
待审核
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -125,7 +124,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" style="width: 100%;text-align: center;color: #ccc;margin-top: 30rpx;">
|
<view class="no-more-orders">
|
||||||
当前没有更多订单啦...
|
当前没有更多订单啦...
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -516,12 +515,24 @@
|
||||||
.warp_box {
|
.warp_box {
|
||||||
height: 61vh;
|
height: 61vh;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
background: #f5f5f5;
|
||||||
|
|
||||||
.swiper-item {
|
.swiper-item {
|
||||||
|
padding: 16rpx;
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
margin: 16rpx auto;
|
margin: 0 auto 16rpx;
|
||||||
width: 750rpx;
|
width: 100%;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
// box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: scale(0.98);
|
||||||
|
}
|
||||||
|
|
||||||
.btn_box {
|
.btn_box {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -534,9 +545,9 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
font-size: 36rpx;
|
font-size: 32rpx;
|
||||||
color: #3D3D3D;
|
color: #333;
|
||||||
width: 49%;
|
width: 49%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -546,46 +557,53 @@
|
||||||
border: 2rpx solid #4C97E7;
|
border: 2rpx solid #4C97E7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.order_info {
|
.order_info {
|
||||||
padding: 0rpx 30rpx;
|
padding: 20rpx 30rpx 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-direction: column;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
|
|
||||||
.info_li {
|
.info_li {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #808080;
|
color: #808080;
|
||||||
|
margin-bottom: 12rpx;
|
||||||
.half_info_li:first-child {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.half_info_li {
|
.half_info_li {
|
||||||
width: 55%;
|
// flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #808080;
|
color: #808080;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
color: #000;
|
color: #000;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-left: 8rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.half_info_li:last-child {
|
||||||
|
text-align: right;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.line {
|
.line {
|
||||||
width: 750rpx;
|
width: 100%;
|
||||||
height: 22rpx;
|
height: 12rpx;
|
||||||
background: #F6F6F6;
|
background: #F6F6F6;
|
||||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.lines {
|
.lines {
|
||||||
width: 750rpx;
|
width: 100%;
|
||||||
height: 2rpx;
|
height: 1rpx;
|
||||||
background: #f7f7f7;
|
background: #f7f7f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -602,11 +620,8 @@
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
/* 禁止换行 */
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
/* 超出部分隐藏 */
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/* 显示省略号 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top_info_right {
|
.top_info_right {
|
||||||
|
|
@ -614,24 +629,68 @@
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
padding: 6rpx 12rpx;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 24rpx;
|
||||||
|
|
||||||
.yuan {
|
.yuan {
|
||||||
margin-right: 12rpx;
|
margin-right: 8rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
width: 14rpx;
|
width: 12rpx;
|
||||||
height: 14rpx;
|
height: 12rpx;
|
||||||
background: #4C97E7;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
font-weight: 400;
|
&.status-processing {
|
||||||
font-size: 28rpx;
|
background: rgba(76, 151, 231, 0.1);
|
||||||
color: #4C97E7;
|
color: #4C97E7;
|
||||||
|
.yuan { background: #4C97E7; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.status-wait-pay {
|
||||||
|
background: rgba(255, 69, 0, 0.1);
|
||||||
|
color: #ff4500;
|
||||||
|
.yuan { background: #ff4500; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.status-finished {
|
||||||
|
background: rgba(34, 139, 34, 0.1);
|
||||||
|
color: #228b22;
|
||||||
|
.yuan { background: #228b22; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.status-canceled {
|
||||||
|
background: rgba(128, 128, 128, 0.1);
|
||||||
|
color: #808080;
|
||||||
|
.yuan { background: #808080; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.status-ride-wait-pay {
|
||||||
|
background: rgba(255, 165, 0, 0.1);
|
||||||
|
color: #ffa500;
|
||||||
|
.yuan { background: #ffa500; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.status-wait-verify {
|
||||||
|
background: rgba(128, 128, 128, 0.1);
|
||||||
|
color: #808080;
|
||||||
|
.yuan { background: #808080; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-more-orders {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
color: #999;
|
||||||
|
margin: 30rpx 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.tap {
|
.tap {
|
||||||
margin-top: 24rpx;
|
margin-top: 24rpx;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
|
|
||||||
|
|
@ -74,13 +74,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cont" @click="btnreturnbike">
|
<view class="cont" @click="btnreturnbike">
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/usv2hT8WU6LTBQXemobM" mode=""></image>
|
<image src="https://api.ccttiot.com/smartmeter/img/static/ui8unTyOFXCkgier5F5P" mode=""></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
还车审核
|
还车审核
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cont" @click="btnhy">
|
<view class="cont" @click="btnhy">
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/uov2297NuScFZayry0iH" mode=""></image>
|
<image src="https://api.ccttiot.com/smartmeter/img/static/usv2hT8WU6LTBQXemobM" mode=""></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
会员中心
|
会员中心
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -137,6 +137,12 @@
|
||||||
视频教程
|
视频教程
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="cont" @click="btnfuwuewm">
|
||||||
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uov2297NuScFZayry0iH" mode=""></image>
|
||||||
|
<view class="text">
|
||||||
|
消息通知
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<!-- <view class="cont" @click="btngggl">
|
<!-- <view class="cont" @click="btngggl">
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/ui8unTyOFXCkgier5F5P" mode=""></image>
|
<image src="https://api.ccttiot.com/smartmeter/img/static/ui8unTyOFXCkgier5F5P" mode=""></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
|
|
@ -178,6 +184,16 @@
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="fuwuewm" v-if="fuwuewm">
|
||||||
|
<image src="https://api.ccttiot.com/qrcode_for_gh_25c71c637dbc_344%20(2)-1753329225290.jpg" show-menu-by-longpress @longpress="handleLongPress" mode=""></image>
|
||||||
|
<text class="" style="width: 100%;text-align: center;margin-top: 20rpx;display: block;color: #fff;">
|
||||||
|
长按关注公众号,租车信息不错过!
|
||||||
|
</text>
|
||||||
|
<view class="" @click="fuwuewm = false">
|
||||||
|
关闭
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="mask" style="background-color: rgba(0, 0, 0, 0.5);" v-if="fuwuewm"></view>
|
||||||
<TabBar :indexs='0' style=""></TabBar>
|
<TabBar :indexs='0' style=""></TabBar>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -207,7 +223,8 @@ export default {
|
||||||
gonggaoflag:false,
|
gonggaoflag:false,
|
||||||
announcements: {},
|
announcements: {},
|
||||||
yyqid:'',
|
yyqid:'',
|
||||||
userId:''
|
userId:'',
|
||||||
|
fuwuewm:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
|
@ -244,6 +261,27 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 点击绑定服务号
|
||||||
|
btnfuwuewm(){
|
||||||
|
let that = this
|
||||||
|
wx.login({
|
||||||
|
success(res) {
|
||||||
|
if (res.code) {
|
||||||
|
that.$u.put(`/app/user/bindUnionId?jsCode=${res.code}`).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
that.fuwuewm = true
|
||||||
|
}else{
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: res.msg,
|
||||||
|
showCancel:false,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
// 点击跳转到会员列表
|
// 点击跳转到会员列表
|
||||||
btnhy(){
|
btnhy(){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
@ -490,6 +528,44 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.fuwuewm{
|
||||||
|
position: fixed;
|
||||||
|
top: 30%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
z-index: 10;
|
||||||
|
image{
|
||||||
|
width: 600rpx;
|
||||||
|
height: 600rpx;
|
||||||
|
}
|
||||||
|
view{
|
||||||
|
width: 200rpx;
|
||||||
|
height: 70rpx;
|
||||||
|
background-color: #4297F3;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 32rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 70rpx;
|
||||||
|
margin: auto;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fuwuhao{
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
text-underline-offset: 4px;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
color: #4297F3;
|
||||||
|
padding-left: 50rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
height: 60rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-color: #4297F3;
|
||||||
|
text-decoration-thickness: 1px;
|
||||||
|
}
|
||||||
.mask{
|
.mask{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,6 @@
|
||||||
<cover-image class="img" src="https://lxnapi.ccttiot.com/bike/img/static/uRiYQZQEb3l2LsltEsyW"
|
<cover-image class="img" src="https://lxnapi.ccttiot.com/bike/img/static/uRiYQZQEb3l2LsltEsyW"
|
||||||
mode=""></cover-image>
|
mode=""></cover-image>
|
||||||
</cover-view>
|
</cover-view>
|
||||||
<!-- <cover-view class="park" style="bottom: 240rpx;width: 70rpx;height: 70rpx;right: 40rpx;" @click="btnsjyc">
|
|
||||||
<cover-image class="img" src="https://api.ccttiot.com/smartmeter/img/static/uBluMsnJyV5Judyx7SYx"
|
|
||||||
mode=""></cover-image>
|
|
||||||
</cover-view> -->
|
|
||||||
<!-- <cover-view class="track" @click="toTrack">
|
|
||||||
<cover-image class="img" src="https://lxnapi.ccttiot.com/bike/img/static/ufaAAtlirJYs1QwJF25P"
|
|
||||||
mode=""></cover-image>
|
|
||||||
</cover-view> -->
|
|
||||||
</map>
|
</map>
|
||||||
|
|
||||||
<view class="new_infocard">
|
<view class="new_infocard">
|
||||||
|
|
@ -580,7 +572,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
});
|
})
|
||||||
this.$forceUpdate(); // 强制更新视图
|
this.$forceUpdate(); // 强制更新视图
|
||||||
},
|
},
|
||||||
// 点击跳转到订单详情
|
// 点击跳转到订单详情
|
||||||
|
|
@ -642,7 +634,7 @@
|
||||||
// 点击拨打最近租车人电话
|
// 点击拨打最近租车人电话
|
||||||
btntel() {
|
btntel() {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: this.deviceInfos.lastUserPhone,
|
phoneNumber: this.deviceInfos.orderUserPhone,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log('拨打电话成功', res)
|
console.log('拨打电话成功', res)
|
||||||
},
|
},
|
||||||
|
|
@ -956,7 +948,6 @@
|
||||||
if (!this.bluetoothData || this.isUploading) return
|
if (!this.bluetoothData || this.isUploading) return
|
||||||
this.isUploading = true
|
this.isUploading = true
|
||||||
this.lastUploadTime = Date.now()
|
this.lastUploadTime = Date.now()
|
||||||
// console.log(this.bluetoothData,'this.bluetoothDatathis.bluetoothData')
|
|
||||||
this.$u.put(`/app/device/iot/bltUpload`, this.bluetoothData).then(res => {
|
this.$u.put(`/app/device/iot/bltUpload`, this.bluetoothData).then(res => {
|
||||||
if(res.code == 200) {
|
if(res.code == 200) {
|
||||||
console.log('上传蓝牙数据成功',this.bluetoothData, new Date().toLocaleTimeString())
|
console.log('上传蓝牙数据成功',this.bluetoothData, new Date().toLocaleTimeString())
|
||||||
|
|
|
||||||
|
|
@ -507,6 +507,9 @@
|
||||||
</view>
|
</view>
|
||||||
<input type="text" style="width:440rpx;" v-model="yuanyin" placeholder="请输入退款原因" />
|
<input type="text" style="width:440rpx;" v-model="yuanyin" placeholder="请输入退款原因" />
|
||||||
</view>
|
</view>
|
||||||
|
<view class="" style="margin-top: 20rpx;">
|
||||||
|
当前操作总退款为<text style="color: #FF4444;font-size: 600;">¥{{ totalRefund }}</text>
|
||||||
|
</view>
|
||||||
<view class="anniu">
|
<view class="anniu">
|
||||||
<view class="qx" @click="qxqx">
|
<view class="qx" @click="qxqx">
|
||||||
取消
|
取消
|
||||||
|
|
@ -624,10 +627,10 @@
|
||||||
yajinyajin:false,
|
yajinyajin:false,
|
||||||
huancheflag:false,
|
huancheflag:false,
|
||||||
beizhu:'',
|
beizhu:'',
|
||||||
qxfei: '',
|
qxfei: 0,
|
||||||
ddfei: '',
|
ddfei: 0,
|
||||||
glfei: '',
|
glfei: 0,
|
||||||
csfei:'',
|
csfei:0,
|
||||||
yuanyin: '',
|
yuanyin: '',
|
||||||
zengsongflag: false,
|
zengsongflag: false,
|
||||||
devicesList: [],
|
devicesList: [],
|
||||||
|
|
@ -740,6 +743,14 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
totalRefund() {
|
||||||
|
return (
|
||||||
|
Number(this.qxfei) +
|
||||||
|
Number(this.ddfei) +
|
||||||
|
Number(this.glfei) +
|
||||||
|
Number(this.csfei)
|
||||||
|
).toFixed(2); // 保留两位小数
|
||||||
|
},
|
||||||
formattedDuration() {
|
formattedDuration() {
|
||||||
// 获取开始时间(必须存在)
|
// 获取开始时间(必须存在)
|
||||||
const startTime = this.orderxqobj?.startTime ? new Date(this.orderxqobj.startTime) : null;
|
const startTime = this.orderxqobj?.startTime ? new Date(this.orderxqobj.startTime) : null;
|
||||||
|
|
@ -2484,7 +2495,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 50rpx;
|
margin-top: 20rpx;
|
||||||
border-top: 1px solid #ccc;
|
border-top: 1px solid #ccc;
|
||||||
.qd{
|
.qd{
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
|
|
|
||||||
|
|
@ -51,11 +51,13 @@
|
||||||
noMoreData: false,
|
noMoreData: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
showflag: false,
|
showflag: false,
|
||||||
jlflag: false
|
jlflag: false,
|
||||||
|
userId:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.getList(option.userId)
|
this.userId = option.userId
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
onShareAppMessage: function() {
|
onShareAppMessage: function() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -71,8 +73,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList(userId) {
|
getList() {
|
||||||
this.$u.get(`/bst/balanceLog/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}&orderByColumn=createTime&isAsc=desc&userId=${userId}`).then((res) => {
|
this.$u.get(`/bst/balanceLog/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}&orderByColumn=createTime&isAsc=desc&userId=${this.userId}`).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
if (this.total > 0) {
|
if (this.total > 0) {
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,16 @@
|
||||||
</view>
|
</view>
|
||||||
<input type="text" class="ips" v-model="sn" placeholder="请扫描设备上的二维码" style="margin-left: 32rpx;"
|
<input type="text" class="ips" v-model="sn" placeholder="请扫描设备上的二维码" style="margin-left: 32rpx;"
|
||||||
placeholder-class="my-placeholder" />
|
placeholder-class="my-placeholder" />
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
<view class="iptbox" @click="kashow=true">
|
||||||
|
<view class="" v-if="kaname">
|
||||||
|
卡商:{{kaname}}
|
||||||
|
</view>
|
||||||
|
<view class="" v-else>
|
||||||
|
请点击选择卡商
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<u-select v-model="kashow" :list="kalist" title='选择卡商' @confirm="confirmka"></u-select>
|
||||||
<view class="iptbox" @click="show=true">
|
<view class="iptbox" @click="show=true">
|
||||||
<view class="" v-if="hardwareInfo.version">
|
<view class="" v-if="hardwareInfo.version">
|
||||||
版本:{{hardwareInfo.version}}
|
版本:{{hardwareInfo.version}}
|
||||||
|
|
@ -32,7 +40,7 @@
|
||||||
</view>
|
</view>
|
||||||
<u-select v-model="show" :list="list" title='选择版本' @confirm="confirm"></u-select>
|
<u-select v-model="show" :list="list" title='选择版本' @confirm="confirm"></u-select>
|
||||||
|
|
||||||
<view class="imgs" style="margin-top: 330rpx;">
|
<view class="imgs" style="margin-top: 30rpx;">
|
||||||
<image src="https://lxnapi.ccttiot.com/bike/img/static/u9wFJhLZGm7rboSDySV4" mode="" @click="qrcode()"></image>
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/u9wFJhLZGm7rboSDySV4" mode="" @click="qrcode()"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" @click="bind()">
|
<view class="btn" @click="bind()">
|
||||||
|
|
@ -141,8 +149,11 @@
|
||||||
list: [],
|
list: [],
|
||||||
hardwareInfo: {},
|
hardwareInfo: {},
|
||||||
showbind:false,
|
showbind:false,
|
||||||
deviceid:''
|
deviceid:'',
|
||||||
|
kalist:[],
|
||||||
|
kashow:false,
|
||||||
|
kaname:'',
|
||||||
|
kaid:''
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -158,29 +169,29 @@
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getlist()
|
this.getlist()
|
||||||
|
this.getka()
|
||||||
},
|
},
|
||||||
// onUnload: function() {
|
|
||||||
// xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
|
|
||||||
// xBlufi.notifyStartDiscoverBle({
|
|
||||||
// 'isStart': false
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
// onHide() {
|
|
||||||
// xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
|
|
||||||
// xBlufi.notifyStartDiscoverBle({
|
|
||||||
// 'isStart': false
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
// onBeforeUnmount() {
|
|
||||||
// xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
|
|
||||||
// xBlufi.notifyStartDiscoverBle({
|
|
||||||
// 'isStart': false
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
watch: {
|
watch: {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 点击确认卡商
|
||||||
|
confirmka(e){
|
||||||
|
this.kaname = e[0].label
|
||||||
|
this.kaid = e[0].value
|
||||||
|
},
|
||||||
|
// 请求所有卡商
|
||||||
|
getka(){
|
||||||
|
this.$u.get(`/system/dict/data/type/device_sim_producer`).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
this.kalist = res.data.map(item => ({
|
||||||
|
value: item.dictValue,
|
||||||
|
label: item.dictLabel
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
btnfh(){
|
btnfh(){
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/page_user/luru/index'
|
url:'/page_user/luru/index'
|
||||||
|
|
@ -220,9 +231,7 @@
|
||||||
this.$u.get('/bst/hardwareVersion/all').then((res) => {
|
this.$u.get('/bst/hardwareVersion/all').then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.Versionlist = res.data.filter(item => item.parentId !== 0);
|
this.Versionlist = res.data.filter(item => item.parentId !== 0);
|
||||||
|
|
||||||
const hardwareVersionId = uni.getStorageSync('hardwareVersionId');
|
const hardwareVersionId = uni.getStorageSync('hardwareVersionId');
|
||||||
|
|
||||||
if (hardwareVersionId) {
|
if (hardwareVersionId) {
|
||||||
this.hardwareVersionId=hardwareVersionId
|
this.hardwareVersionId=hardwareVersionId
|
||||||
const matchedVersion = this.Versionlist.find(version => version.id ===
|
const matchedVersion = this.Versionlist.find(version => version.id ===
|
||||||
|
|
@ -291,17 +300,15 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
bind() {
|
bind() {
|
||||||
// if(this.sn!='' && this.sn.length === 7 && /^\d+$/.test(this.sn)){
|
|
||||||
let data = {
|
let data = {
|
||||||
sn:this.sn,
|
sn:this.sn,
|
||||||
mac:this.mac,
|
mac:this.mac,
|
||||||
hardwareVersionId:this.hardwareVersionId
|
hardwareVersionId:this.hardwareVersionId,
|
||||||
|
simProducer:this.kaid
|
||||||
}
|
}
|
||||||
console.log(data,'111');
|
console.log(data,'111');
|
||||||
this.$u.post(`/bst/device`,data).then((res) => {
|
this.$u.post(`/bst/device`,data).then((res) => {
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '操作成功',
|
title: '操作成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
|
|
@ -311,26 +318,15 @@
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/page_user/luru/controlDevice?sn='+this.sn
|
url:'/page_user/luru/controlDevice?sn='+this.sn
|
||||||
})
|
})
|
||||||
// uni.navigateBack({
|
|
||||||
// delta: 1 // delta值为1时表示返回的页面层数
|
|
||||||
// });
|
|
||||||
}, 2000)
|
}, 2000)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// if(res.msg=='该MAC号已经存在'){
|
|
||||||
// this.showbind=true
|
|
||||||
// }else{
|
|
||||||
|
|
||||||
// }
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
qrcode() {
|
qrcode() {
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 驾驶证认证 -->
|
<!-- 驾驶证认证 -->
|
||||||
<view class="certification-item" @click="navigateTo('driver')">
|
<!-- <view class="certification-item" @click="navigateTo('driver')">
|
||||||
<view class="item-left">
|
<view class="item-left">
|
||||||
<view class="item-info">
|
<view class="item-info">
|
||||||
<text class="item-title">驾驶证认证</text>
|
<text class="item-title">驾驶证认证</text>
|
||||||
|
|
@ -30,10 +30,9 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-right" :class="{'verified': driverStatus === 'uploaded'}">
|
<view class="item-right" :class="{'verified': driverStatus === 'uploaded'}">
|
||||||
<!-- <text>{{ driverStatus === 'uploaded' ? '已上传' : '未上传' }}</text> -->
|
|
||||||
<uni-icons type="forward" size="16" color="#999"></uni-icons>
|
<uni-icons type="forward" size="16" color="#999"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -339,6 +339,7 @@
|
||||||
wenbentxtflag:false,
|
wenbentxtflag:false,
|
||||||
ljsbflag:false,
|
ljsbflag:false,
|
||||||
chongshinum:'',
|
chongshinum:'',
|
||||||
|
jieshuflag:true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
@ -367,7 +368,6 @@
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.setMapScale()
|
this.setMapScale()
|
||||||
},500)
|
},500)
|
||||||
this.getkefu()
|
|
||||||
this.polyline = []
|
this.polyline = []
|
||||||
this.isFirstLoad = true // 重置首次加载标志
|
this.isFirstLoad = true // 重置首次加载标志
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
|
@ -454,7 +454,18 @@
|
||||||
}
|
}
|
||||||
this.wenbentxt = '车辆响铃中...'
|
this.wenbentxt = '车辆响铃中...'
|
||||||
this.wenbentxtflag = true
|
this.wenbentxtflag = true
|
||||||
this.$u.put(`/app/device/iot/ring?id=${this.orderobj.deviceId}`).then((res) => {
|
uni.getLocation({
|
||||||
|
type: 'wgs84',
|
||||||
|
success: (res) => {
|
||||||
|
console.log(res);
|
||||||
|
this.xllat = res.latitude
|
||||||
|
this.xllng = res.longitude
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
console.error('获取位置失败:', err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.$u.put(`/app/device/iot/ring?id=${this.orderobj.deviceId}&lat=${this.xllat}&lon=${this.xllng}`).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.wenbentxt = ''
|
this.wenbentxt = ''
|
||||||
this.wenbentxtflag = false
|
this.wenbentxtflag = false
|
||||||
|
|
@ -535,7 +546,7 @@
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 3000
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -1043,11 +1054,14 @@
|
||||||
},
|
},
|
||||||
// 点击结束订单
|
// 点击结束订单
|
||||||
btnjsdd() {
|
btnjsdd() {
|
||||||
|
if(this.jieshuflag == true){
|
||||||
|
this.jieshuflag = false
|
||||||
this.$u.get("/app/order/mineProcessing").then((res) => {
|
this.$u.get("/app/order/mineProcessing").then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if(res.data){
|
if(res.data){
|
||||||
if (this.orderAreaReturnVerify == true) {
|
if (this.orderAreaReturnVerify == true) {
|
||||||
if(this.orderobj.deviceOnlineStatus == 0){
|
if(this.orderobj.deviceOnlineStatus == 0){
|
||||||
|
this.jieshuflag = true
|
||||||
this.wenbentxtflag = true
|
this.wenbentxtflag = true
|
||||||
this.wenbentxt = '蓝牙连接中...'
|
this.wenbentxt = '蓝牙连接中...'
|
||||||
let that = this
|
let that = this
|
||||||
|
|
@ -1100,6 +1114,7 @@
|
||||||
}
|
}
|
||||||
findDevice()
|
findDevice()
|
||||||
}else{
|
}else{
|
||||||
|
this.jieshuflag = true
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_user/hcshenhe?sn=' + this.orderobj.deviceSn + '&orderid=' + this.orderobj.orderId + '&orderAreaId=' + this.orderobj.orderAreaId + '&flag=' + false
|
url: '/page_user/hcshenhe?sn=' + this.orderobj.deviceSn + '&orderid=' + this.orderobj.orderId + '&orderAreaId=' + this.orderobj.orderAreaId + '&flag=' + false
|
||||||
})
|
})
|
||||||
|
|
@ -1113,34 +1128,48 @@
|
||||||
console.log('精确坐标:', res)
|
console.log('精确坐标:', res)
|
||||||
this.lat = res.latitude
|
this.lat = res.latitude
|
||||||
this.lon = res.longitude
|
this.lon = res.longitude
|
||||||
|
this.lngsc = res.longitude
|
||||||
|
this.latsc = res.latitude
|
||||||
this.getfeiyong()
|
this.getfeiyong()
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
console.error('获取位置失败:', err)
|
console.error('获取位置失败:', err)
|
||||||
this.lat = null
|
this.lat = null
|
||||||
this.lon = null
|
this.lon = null
|
||||||
|
this.lngsc = null
|
||||||
|
this.latsc = null
|
||||||
this.getfeiyong() // 降级处理
|
this.getfeiyong() // 降级处理
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
this.jieshuflag = true
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/page_user/yongche/orderxq?id=' + this.orderobj.orderId
|
url:'/page_user/yongche/orderxq?id=' + this.orderobj.orderId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
this.jieshuflag = true
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 5000
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 点击还车判断是否需要另外缴费
|
// 点击还车判断是否需要另外缴费
|
||||||
getfeiyong() {
|
getfeiyong() {
|
||||||
let data = {
|
let data = {
|
||||||
orderId: this.orderobj.orderId,
|
orderId: this.orderobj.orderId,
|
||||||
lon: this.lonsc,
|
lon: this.lngsc,
|
||||||
lat: this.latsc,
|
lat: this.latsc,
|
||||||
checkLocation:true
|
checkLocation:true
|
||||||
}
|
}
|
||||||
this.$u.post(`/app/order/calcFee`, data).then(res => {
|
this.$u.post(`/app/order/calcFee`, data).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
this.jieshuflag = true
|
||||||
this.fajinobj = res.data
|
this.fajinobj = res.data
|
||||||
if (res.data.manageFee > 0 || res.data.dispatchFee > 0) {
|
if (res.data.manageFee > 0 || res.data.dispatchFee > 0) {
|
||||||
this.wenbentxt = ''
|
this.wenbentxt = ''
|
||||||
|
|
@ -1156,19 +1185,31 @@
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 5000
|
duration: 5000
|
||||||
})
|
})
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.jieshuflag = true
|
||||||
|
},3000)
|
||||||
}else if(res.code == 30002){
|
}else if(res.code == 30002){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '不允许在禁停区内还车',
|
title: '不允许在禁停区内还车',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 5000
|
duration: 5000
|
||||||
})
|
})
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.jieshuflag = true
|
||||||
|
},3000)
|
||||||
}else if(res.code == 30003){
|
}else if(res.code == 30003){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '必须在运营区内还车',
|
title: '必须在运营区内还车',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 5000
|
duration: 5000
|
||||||
})
|
})
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.jieshuflag = true
|
||||||
|
},3000)
|
||||||
}else{
|
}else{
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.jieshuflag = true
|
||||||
|
},3000)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
@ -1196,7 +1237,7 @@
|
||||||
let data = {
|
let data = {
|
||||||
orderId: that.orderobj.orderId,
|
orderId: that.orderobj.orderId,
|
||||||
picture: that.imgs,
|
picture: that.imgs,
|
||||||
lon: that.lonsc,
|
lon: that.lngsc,
|
||||||
lat: that.latsc,
|
lat: that.latsc,
|
||||||
requiredIot: true
|
requiredIot: true
|
||||||
}
|
}
|
||||||
|
|
@ -2072,14 +2113,14 @@
|
||||||
console.log('订单设备定时器已停止')
|
console.log('订单设备定时器已停止')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 请求客服
|
// // 请求客服
|
||||||
getkefu() {
|
// getkefu() {
|
||||||
this.$u.get(`/app/customerService/list?pageNum=1&pageSize=999`).then(res => {
|
// this.$u.get(`/app/customerService/list?pageNum=1&pageSize=999`).then(res => {
|
||||||
if (res.code == 200) {
|
// if (res.code == 200) {
|
||||||
this.kefulist = res.rows
|
// this.kefulist = res.rows
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
// 点击去下单
|
// 点击去下单
|
||||||
btndetaxq() {
|
btndetaxq() {
|
||||||
this.$u.get(`/getInfo`).then(res => {
|
this.$u.get(`/getInfo`).then(res => {
|
||||||
|
|
|
||||||
11
pages/my.vue
11
pages/my.vue
|
|
@ -153,7 +153,7 @@
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getareaList()
|
this.getareaList()
|
||||||
this.getkefu()
|
// this.getkefu()
|
||||||
// this.getlunbo()
|
// this.getlunbo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -204,14 +204,7 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求客服
|
|
||||||
getkefu(){
|
|
||||||
this.$u.get(`/app/customerService/list?pageNum=1&pageSize=999`).then(res =>{
|
|
||||||
if(res.code == 200){
|
|
||||||
this.kefulist = res.rows
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
handleSearch(e) {
|
handleSearch(e) {
|
||||||
const value = e.detail.value;
|
const value = e.detail.value;
|
||||||
|
|
|
||||||
|
|
@ -14,21 +14,6 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 右侧图标 -->
|
<!-- 右侧图标 -->
|
||||||
<view class="rticon">
|
<view class="rticon">
|
||||||
<!-- <image v-if="rtindex != 1" src="https://api.ccttiot.com/smartmeter/img/static/uyNPBYUMjYxybfRLHyu9"
|
|
||||||
@click="btntap(1)" mode=""></image>
|
|
||||||
<image v-if="rtindex == 1" src="https://api.ccttiot.com/smartmeter/img/static/u8zXd0xYhLKD0BvgZDVv"
|
|
||||||
@click="btntap(1)" mode=""></image>
|
|
||||||
<image v-if="rtindex != 2" :src="iconobj.bikertpic"
|
|
||||||
@click="btntap(2)" mode=""></image>
|
|
||||||
<image v-if="rtindex == 2" :src="iconobj.bikertpicgl"
|
|
||||||
@click="btntap(2)" mode=""></image>
|
|
||||||
<image v-if="rtindex != 3" src="https://api.ccttiot.com/smartmeter/img/static/uwIWeuTVbjFLNmLTGPOh"
|
|
||||||
@click="btntap(3)" mode=""></image>
|
|
||||||
<image v-if="rtindex == 3" src="https://api.ccttiot.com/smartmeter/img/static/uEWVQFGBf10XJn8aTlaZ"
|
|
||||||
@click="btntap(3)" mode=""></image>
|
|
||||||
<image style="width: 80rpx;height: 80rpx;" @click="toggleIconAndCallout"
|
|
||||||
src="https://api.ccttiot.com/smartmeter/img/static/uZT6o9OqOdZeXHLYszIg" mode=""></image>
|
|
||||||
<image style="width: 80rpx;height: 80rpx;" src="https://api.ccttiot.com/smartmeter/img/static/uDnm3dpbwMh9jLBRMeZw" @click="btnhuiz" mode=""></image> -->
|
|
||||||
<image v-if="rtindex != 1" src="https://api.ccttiot.com/smartmeter/img/static/uRtmbcCSrLLZ7hkGFeg2"
|
<image v-if="rtindex != 1" src="https://api.ccttiot.com/smartmeter/img/static/uRtmbcCSrLLZ7hkGFeg2"
|
||||||
@click="btntap(1)" mode=""></image>
|
@click="btntap(1)" mode=""></image>
|
||||||
<image v-if="rtindex == 1" src="https://api.ccttiot.com/smartmeter/img/static/u8zXd0xYhLKD0BvgZDVv"
|
<image v-if="rtindex == 1" src="https://api.ccttiot.com/smartmeter/img/static/u8zXd0xYhLKD0BvgZDVv"
|
||||||
|
|
@ -127,37 +112,6 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="clmask" v-if="taocanflag"></view>
|
<view class="clmask" v-if="taocanflag"></view>
|
||||||
|
|
||||||
<!-- 平台客服弹窗 -->
|
|
||||||
<view class="kefutc" v-if="kefuflag">
|
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/umtjJg2CJLiOS6hfAEzo" mode=""
|
|
||||||
@click="kefuflag = false"></image>
|
|
||||||
<view class="box">
|
|
||||||
<view class="" style="max-height: 170rpx;overflow: scroll;">
|
|
||||||
<view class="top" v-for="(item,index) in kefulist" :key="index">
|
|
||||||
<view class="dianhua">
|
|
||||||
{{item.name == null ? '--' : item.name}}:{{item.contact == null ? '--' : item.contact}}
|
|
||||||
</view>
|
|
||||||
<view class="boda" @click.stop="btnptkf(item.contact)">
|
|
||||||
<u-icon name="phone-fill" color="#4297F3" size="28"></u-icon>
|
|
||||||
<text>拨打</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="bot">
|
|
||||||
<view class="wz">
|
|
||||||
平台客服工作时间
|
|
||||||
</view>
|
|
||||||
<view class="wz">
|
|
||||||
08:00~20:00
|
|
||||||
</view>
|
|
||||||
<view class="wzs">
|
|
||||||
客服电话高峰期可能遇忙,请耐心等待
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="mask" v-if="kefuflag"></view>
|
|
||||||
<view class="mask" v-if="fjflag"></view>
|
<view class="mask" v-if="fjflag"></view>
|
||||||
<!-- 公告 -->
|
<!-- 公告 -->
|
||||||
<view class="gonggao" @click="btntopgg">
|
<view class="gonggao" @click="btntopgg">
|
||||||
|
|
@ -236,7 +190,7 @@
|
||||||
<view class="" style="margin-top: 20rpx;font-weight: 600;color: #3D3D3D;" v-if="kefuarr.length > 0">
|
<view class="" style="margin-top: 20rpx;font-weight: 600;color: #3D3D3D;" v-if="kefuarr.length > 0">
|
||||||
骑行前咨询:
|
骑行前咨询:
|
||||||
</view>
|
</view>
|
||||||
<view class="top" v-for="(item,index) in kefuarr" :key="index">
|
<view class="top" v-for="(item,index) in kefuarr" :key="index" v-if="orderflag == false">
|
||||||
<view class="dianhua">
|
<view class="dianhua">
|
||||||
{{item.name == null ? '--' : item.name}}:{{item.contact == null ? '--' : item.contact}}
|
{{item.name == null ? '--' : item.name}}:{{item.contact == null ? '--' : item.contact}}
|
||||||
<view class="wz">
|
<view class="wz">
|
||||||
|
|
@ -374,8 +328,6 @@
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getinfo()
|
this.getinfo()
|
||||||
|
|
||||||
|
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
type: 'wgs84',
|
type: 'wgs84',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
|
@ -395,7 +347,6 @@
|
||||||
this.setMapScale()
|
this.setMapScale()
|
||||||
this.getgonggao()
|
this.getgonggao()
|
||||||
this.getlunbo()
|
this.getlunbo()
|
||||||
this.getkefu()
|
|
||||||
},1000)
|
},1000)
|
||||||
this.polyline = []
|
this.polyline = []
|
||||||
this.isFirstLoad = true // 重置首次加载标志
|
this.isFirstLoad = true // 重置首次加载标志
|
||||||
|
|
@ -555,7 +506,6 @@
|
||||||
url:'/page_fenbao/storedlist/trueorder?modelId=' + this.modelId + '&sn=' + this.sn
|
url:'/page_fenbao/storedlist/trueorder?modelId=' + this.modelId + '&sn=' + this.sn
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
console.log('前台');
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '当前车辆不可用',
|
content: '当前车辆不可用',
|
||||||
|
|
@ -589,7 +539,11 @@
|
||||||
|
|
||||||
// 点击显示客服
|
// 点击显示客服
|
||||||
btnkf(){
|
btnkf(){
|
||||||
if(this.kefulist.length > 0){
|
this.$u.get(`/app/customerService/indexList?radius=1000¢er=${this.jinweidu}&areaId=${this.user.areaId}`).then(res => {
|
||||||
|
if(res.code == 200){
|
||||||
|
this.kefulist = res.after
|
||||||
|
this.kefuarr = res.before
|
||||||
|
if(this.kefulist.length > 0 || this.kefuarr.length > 0){
|
||||||
this.kefuflag = true
|
this.kefuflag = true
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -598,13 +552,6 @@
|
||||||
duration: 2000
|
duration: 2000
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
|
||||||
// 获取客服
|
|
||||||
getkefu(){
|
|
||||||
this.$u.get(`/app/customerService/indexList?radius=1000¢er=${this.jinweidu}&areaId=${this.user.areaId}`).then(res => {
|
|
||||||
if(res.code == 200){
|
|
||||||
this.kefulist = res.after
|
|
||||||
this.kefuarr = res.before
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -958,9 +905,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
// 点击拨打平台客服电话
|
// 点击拨打平台客服电话
|
||||||
btnptkf() {
|
btnptkf(contact) {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: '18888888888',
|
phoneNumber: contact,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log('拨打电话成功', res)
|
console.log('拨打电话成功', res)
|
||||||
},
|
},
|
||||||
|
|
@ -1504,7 +1451,6 @@
|
||||||
|
|
||||||
.select-item {
|
.select-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
// flex-direction: column;
|
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 20rpx 30rpx;
|
padding: 20rpx 30rpx;
|
||||||
|
|
@ -1545,7 +1491,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.top{
|
.top{
|
||||||
width: 538rpx;
|
width: 570rpx;
|
||||||
height: 122rpx;
|
height: 122rpx;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0,0,0,0.1);
|
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0,0,0,0.1);
|
||||||
|
|
@ -2111,16 +2057,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
image {
|
|
||||||
position: absolute;
|
|
||||||
top: -280rpx;
|
|
||||||
z-index: -1;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
width: 614rpx;
|
|
||||||
height: 748rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mask {
|
.mask {
|
||||||
|
|
@ -2326,11 +2262,7 @@
|
||||||
|
|
||||||
.anniuks {
|
.anniuks {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// height: 184rpx;
|
|
||||||
// background: #FFFFFF;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
// line-height: 184rpx;
|
|
||||||
|
|
||||||
text {
|
text {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 680rpx;
|
width: 680rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user