diff --git a/page_user/khfw/khfw.vue b/page_user/khfw/khfw.vue index 6ca411e..f733201 100644 --- a/page_user/khfw/khfw.vue +++ b/page_user/khfw/khfw.vue @@ -24,10 +24,72 @@ <view class="iconfont icon-xiangyou1"></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> 电话咨询 </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" /> <view class="pops" v-if="isbackcar"> <view class="tits" style="font-weight: 600;text-align: center;display: flex;justify-content: center;"> @@ -68,7 +130,7 @@ 确定 </view> --> </view> - + </view> </view> </template> @@ -84,7 +146,8 @@ tabindex:0, classlist:[], wordlist:[], - isbackcar:false + isbackcar:false, + showkf:false } }, onShow() { @@ -225,6 +288,9 @@ uni.makePhoneCall({ phoneNumber:phone }) + setTimeout(()=>{ + this.showkf=false + },500) } } } @@ -238,7 +304,78 @@ .page { width: 750rpx; 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 { + padding: 46rpx 36rpx; position: fixed; top: 400rpx; diff --git a/page_user/upload.vue b/page_user/upload.vue index adb21b0..48b6e23 100644 --- a/page_user/upload.vue +++ b/page_user/upload.vue @@ -10,7 +10,6 @@ </view> </view> </template> - <script> export default { data() { @@ -109,5 +108,6 @@ } </script> + <style> </style> \ No newline at end of file diff --git a/page_user/xcjs.vue b/page_user/xcjs.vue index 0d597cd..5271a2b 100644 --- a/page_user/xcjs.vue +++ b/page_user/xcjs.vue @@ -1,6 +1,6 @@ <template> <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> <map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude" :show-location='true' :markers="markers" :polygons="polygons" :polyline="polyline"> </map> @@ -73,9 +73,87 @@ <view class="paybtn" v-if="orderInfo.status==3&&orderInfo.paid==0" @click="topay1()"> 去支付 </view> + <view class="kefus"> + <view class="txt1"> + 对订单有疑问? + </view> + <view class="btn1" @click="showkf=true"> + 联系客服 + </view> + </view> </view> <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> </template> @@ -108,7 +186,9 @@ loading: false, showIconAndCallout: false, ispaid: false, - _mapContext: null + _mapContext: null, + showkf: false, + areaInfo: {}, } }, @@ -124,6 +204,16 @@ }, methods: { + callPhone(phone){ + this.isbackcar=false + uni.makePhoneCall({ + phoneNumber:phone + }) + + setTimeout(()=>{ + this.showkf=false + },500) + }, // 骑行结束支付 topay1() { if (this.ispaid == false) { @@ -550,7 +640,7 @@ }, 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) { this.polyline[0].points = JSON.parse(res.data).map(coord => ({ latitude: coord[1], @@ -559,7 +649,7 @@ let abb; try { abb = JSON.parse(res.data); - console.log(abb,'abbbb'); + console.log(abb, 'abbbb'); } catch (error) { console.error("Error parsing tripRouteStr:", error); return; @@ -591,8 +681,8 @@ }).catch(error => { console.error("Error fetching area data:", error); }); - - + + }, translateMarkerFun(path) { let abb = JSON.parse(this.orderInfo.tripRouteStr); @@ -605,7 +695,7 @@ // let totalDistance = this.calculateTotalDistance(path); let baseSpeed = 300; // 设置一个基础速度,单位为距离每秒移动的像素数 // let duration = totalDistance > 0 ? totalDistance * baseSpeed : 60000; // 根据路径长度动态计算持续时间 - let duration = abb.length*300; + let duration = abb.length * 300; // console.log(duration,'durationduration',totalDistance); this._mapContext.includePoints({ points: formattedPath, @@ -636,6 +726,93 @@ .page { 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 { width: 750rpx; height: 100vh; @@ -647,7 +824,7 @@ align-items: center; justify-content: center; right: 30rpx; - bottom: 600rpx; + bottom: 650rpx; // background-color: #fff; border-radius: 50%; width: 82rpx; @@ -672,7 +849,32 @@ // height: 420rpx; background: #F7F7F7; 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 { display: flex; diff --git a/pages.json b/pages.json index dc97f81..4fe8ffd 100644 --- a/pages.json +++ b/pages.json @@ -158,6 +158,15 @@ "navigationStyle": "custom", "enablePullDownRefresh" : false } + }, + { + "path" : "addcode", + "style" : + { + "navigationBarTitleText" : "", + "navigationStyle": "custom", + "enablePullDownRefresh" : false + } } diff --git a/pages/index/index.vue b/pages/index/index.vue index f3236cc..b2a4022 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -412,12 +412,19 @@ </view> <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/uixPe8LlgKO7aUauIPVG" mode="" v-else style="width:59.46rpx;height: 49.87rpx;"></image> <view class="text"> 押金充值 </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 class="cont" @click="topage(2)"> <image src="https://api.ccttiot.com/smartmeter/img/static/uFHC2R6R3pgUOTShLxoQ" mode="" @@ -5315,6 +5322,17 @@ uni.navigateTo({ 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' + }); + } } }, diff --git a/pages_admin/addcode.vue b/pages_admin/addcode.vue new file mode 100644 index 0000000..c5936ed --- /dev/null +++ b/pages_admin/addcode.vue @@ -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> diff --git a/pages_admin/worke/AccountDetails.vue b/pages_admin/worke/AccountDetails.vue index aaa1338..f41c3fe 100644 --- a/pages_admin/worke/AccountDetails.vue +++ b/pages_admin/worke/AccountDetails.vue @@ -115,7 +115,10 @@ border: false, isThrottled: false, moneyInfo:{}, - ownerInfo:{} + ownerInfo:{}, + imglist:[], + token: '', + upurl:'' } }, onLoad(e) { @@ -222,71 +225,88 @@ return `${month}-${day} ${hours}:${minutes}`; }, + + payBtn() { - if (this.realprice != 0) { - // 检查是否已经在等待三秒的时间内 - if (this.isThrottled) { - uni.showToast({ - title: '请勿重复点击', - icon: 'none', - duration: 2000 - }); - return; - } + if(this.info.collectionCode==null){ - // 设置节流标志位 - 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', + title: '请上传收款二维码', 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() {