This commit is contained in:
3321822538@qq.com 2024-12-13 11:14:29 +08:00
parent 7f65dc2afe
commit 5a88ee7ace
5 changed files with 48 additions and 16 deletions

View File

@ -151,7 +151,9 @@
</view> </view>
</view> </view>
<view v-if="swindleflag" class="" style="width: 100%;height: 100vh;position: fixed;top: 0;left: 0;background-color: #000;opacity: .5;z-index: 98;"></view> <view v-if="swindleflag" class="" style="width: 100%;height: 100vh;position: fixed;top: 0;left: 0;background-color: #000;opacity: .5;z-index: 98;"></view>
<view class="mask" v-if="masksss">
</view>
</view> </view>
@ -175,6 +177,7 @@
expireTimeStr: '', expireTimeStr: '',
zfobj: {}, zfobj: {},
orderno: '', orderno: '',
masksss:false,
id: '', id: '',
czflag: false, czflag: false,
sytime: 0, sytime: 0,
@ -561,7 +564,7 @@
this.getPhoneNumber() this.getPhoneNumber()
this.telslag = true this.telslag = true
}else { }else {
// this.zhifuflag = true this.zhifuflag = true
this.getzhifu() this.getzhifu()
} }
}, },

View File

@ -6,12 +6,12 @@
<view class="container" style="margin-top: 50rpx;"> <view class="container" style="margin-top: 50rpx;">
<view class="device"> <view class="device">
<span class="device-list-title">WIFI选择</span> <span class="device-list-title">WIFI选择</span>
<view class=""> <view class="" v-if="objlist.wifi">
当前WIFI配网{{objlist.wifi}} 该设备已成功连接WIFI{{objlist.wifi}}
</view> </view>
</view> </view>
<view class="flex-row items-center flex-1 group" style="display: flex;justify-content: space-between;align-items: center;"> <view class="flex-row items-center flex-1 group" style="display: flex;justify-content: space-between;align-items: center;">
<view class="text_3 ml-3">请选择您需要连接的2.4GwiFi名称</view> <view class="text_3 ml-3" style="width: 350rpx;flex-wrap: wrap;">本设备只支持2.4G-WIFI网络 暂不支持5G-WIFI</view>
<view class="text_3 ml-3" style="color: #8883F0;display: flex;justify-content: space-between;align-items: center;" @click="btnwifi"> <view class="text_3 ml-3" style="color: #8883F0;display: flex;justify-content: space-between;align-items: center;" @click="btnwifi">
<image class="sximg" src="https://api.ccttiot.com/smartmeter/img/static/uhhg02VV44LLPaDJDJO2" mode="aspectFit" :style="{ transform: 'rotate(' + rotateDegree + 'deg)' }" ></image> <image class="sximg" src="https://api.ccttiot.com/smartmeter/img/static/uhhg02VV44LLPaDJDJO2" mode="aspectFit" :style="{ transform: 'rotate(' + rotateDegree + 'deg)' }" ></image>
<text>刷新</text> </view> <text>刷新</text> </view>
@ -19,7 +19,7 @@
<!-- wifi列表 --> <!-- wifi列表 -->
<view class="wifilist"> <view class="wifilist">
<view class="bd" v-for="(item,index) in list" :key="index" @click="btnqhwifi(index,item)" <view class="bd" v-for="(item,index) in 10" :key="index" @click="btnqhwifi(index,item)"
v-if="signalStrengthflag"> v-if="signalStrengthflag">
<view class="bdbox"> <view class="bdbox">
<view class="box"> <view class="box">
@ -1096,7 +1096,7 @@
} }
.wifilist { .wifilist {
margin-top: 80rpx; // margin-top: 80rpx;
.bd { .bd {
display: flex; display: flex;
@ -1110,7 +1110,7 @@
padding-right: 60rpx; padding-right: 60rpx;
box-shadow: 0 0 10px rgba(0, 0, 0, .1); box-shadow: 0 0 10px rgba(0, 0, 0, .1);
border-radius: 10rpx; border-radius: 10rpx;
margin-top: 50rpx; margin-top: 20rpx;
.picone { .picone {
width: 58rpx; width: 58rpx;

View File

@ -63,9 +63,11 @@
<text class="shen">使用度数</text><text class="qian">{{Number(detailobj.suitEndEle).toFixed(2) - Number(detailobj.suitStartEle).toFixed(2)}}</text> <text class="shen">使用度数</text><text class="qian">{{Number(detailobj.suitEndEle).toFixed(2) - Number(detailobj.suitStartEle).toFixed(2)}}</text>
</view> </view>
<view class="nav" v-else> <view class="nav" v-else>
<text class="shen">套餐时长</text><text class="qian">{{detailobj.suitTime == undefined ? '--' : detailobj.suitTime}} <text class="shen">套餐时长</text>
<text v-if="detailobj.suitTimeUnit == 1">天</text> <text v-if="detailobj.suitTimeUnit == 2">时</text> <text v-if="detailobj.suitTimeUnit == 3">分钟</text> <text v-if="detailobj.suitTimeUnit == 4"></text> <text class="qian" v-if="detailobj.suitFeeType == 1 || detailobj.suitFeeType == 2">{{detailobj.suitPrice == undefined ? '' : detailobj.suitPrice + ''}}/{{detailobj.suitTime == undefined ? '--' : detailobj.suitTime}}
<text v-if="detailobj.suitTimeUnit == 1">天</text> <text v-if="detailobj.suitTimeUnit == 2">时</text> <text v-if="detailobj.suitTimeUnit == 3">分钟</text> <text v-if="detailobj.suitTimeUnit == 4"></text>
</text> </text>
<text class="qian" v-else>--</text>
</view> </view>
<view class="nav"> <view class="nav">
<text class="shen">套餐金额</text><text class="qian">{{detailobj.money == undefined ? '--' : detailobj.money}}</text> <text class="shen">套餐金额</text><text class="qian">{{detailobj.money == undefined ? '--' : detailobj.money}}</text>
@ -90,9 +92,9 @@
<text class="shen">共计</text><text class="qian">{{detailobj.money == undefined ? '--' : detailobj.money}}</text> <text class="shen">共计</text><text class="qian">{{detailobj.money == undefined ? '--' : detailobj.money}}</text>
</view> --> </view> -->
</view> </view>
<!-- <view class="pic" @click="btnad"> <view class="pic" @click="btntel">
<image :src="imgad" mode="aspectFit" class="pic"></image> 联系商家客服
</view> --> </view>
</view> </view>
<!-- 退款弹窗 --> <!-- 退款弹窗 -->
<view class="tanc" v-if="maskflag"> <view class="tanc" v-if="maskflag">
@ -171,7 +173,21 @@
} }
}) })
}, },
btntel(){
uni.makePhoneCall({
phoneNumber: this.detailobj.mchMobile,
success: function(res) {
console.log('拨打电话成功', res)
},
fail: function(err) {
console.error('拨打电话失败', err)
uni.showToast({
title: '拨打电话失败',
icon: 'none'
})
}
})
},
btnqd(){ btnqd(){
if(this.inptext > this.detailobj.money){ if(this.inptext > this.detailobj.money){
uni.showToast({ uni.showToast({
@ -376,9 +392,13 @@
box-sizing: border-box; box-sizing: border-box;
.pic{ .pic{
width: 680rpx; width: 680rpx;
text-align: center;
font-size: 36rpx;
font-weight: 600;
color: red;
height: 238rpx; height: 238rpx;
margin: auto; margin: auto;
margin-top: 36rpx; margin-top: 56rpx;
border-radius: 30rpx; border-radius: 30rpx;
} }
.listxq{ .listxq{

View File

@ -187,7 +187,7 @@
<view class="cont" @click="qrFun"> <view class="cont" @click="qrFun">
<view class="top"> <view class="top">
<image style="width: 44rpx;height: 44rpx;" <image style="width: 44rpx;height: 44rpx;"
src="https://api.ccttiot.com/smartmeter/img/static/uMdtTPOmGVJqcYIQvnUj" mode="aspectFit"> src="https://api.ccttiot.com/smartmeter/img/static/uGjm0qpPFeDJZ2hUFexi" mode="aspectFit">
</image> </image>
<view class="bot">设备二维码</view> <view class="bot">设备二维码</view>
</view> </view>

View File

@ -244,6 +244,15 @@
} }
}, },
onShow() { onShow() {
wx.openBluetoothAdapter({
success: function (res) {
console.log('蓝牙适配器初始化成功');
// API
},
fail: function (err) {
console.error('蓝牙适配器初始化失败,可能是因为没有权限', err);
}
})
this.logins() this.logins()
this.getad() this.getad()
this.getzf() this.getzf()