wifi.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. <template>
  2. <view style="height: 100vh" class="container">
  3. <view v-if="!connected">
  4. <scroll-view class="main-container" scroll-y="true"
  5. :refresher-enabled="false">
  6. <view v-for="(item, index) in deviceListDataShow" :key="item.id" class="list-item" hover-class="list-item-hover"
  7. hover-start-time="0" hover-stay-time="100" @click="listViewTap(item.id)">
  8. <image v-if="item.manufacturer==='eciot'" src="/static/images/new/starts/WiFi.png" class="list-item-img"></image>
  9. <image v-else src="/static/img/ble.png" class="list-item-img"></image>
  10. <text class="list-item-name">{{item.name}}</text>
  11. <image v-if="item.rssi >= -41" src="/static/img/s5.png" mode="aspectFit" class="list-item-rssi-img"></image>
  12. <image v-else-if="item.rssi >= -55" src="/static/img/s4.png" mode="aspectFit" class="list-item-rssi-img"></image>
  13. <image v-else-if="item.rssi >= -65" src="/static/img/s3.png" mode="aspectFit" class="list-item-rssi-img"></image>
  14. <image v-else-if="item.rssi >= -75" src="/static/img/s2.png" mode="aspectFit" class="list-item-rssi-img"></image>
  15. <image v-else="item.rssi < -75" src="/static/img/s1.png" mode="aspectFit" class="list-item-rssi-img"></image>
  16. <text class="list-item-rssi">{{item.rssi}}</text>
  17. <view class="list-item-line"></view>
  18. </view>
  19. <u-popup :show="showSendData" >
  20. <view class="slot-content">
  21. <view>
  22. <u--input
  23. :placeholder="i18('请输入值')"
  24. border="surround"
  25. v-model="sendData"
  26. ></u--input>
  27. </view>
  28. <view style="margin:10px;text-decoration: underline;margin-bottom: 0px" @click="sendLanyaData">
  29. <u-button>发送</u-button>
  30. </view>
  31. </view>
  32. </u-popup>
  33. <view v-if="deviceListDataShow.length==0" class="notice"> - {{ $t('buletooth.nodevice') }} -</view>
  34. <view class="gap"></view>
  35. </scroll-view>
  36. </view>
  37. <view v-if="connected">
  38. <view class="text-area">
  39. <u--form v-if="isCompanyUser()" style="width: 100%;"
  40. labelPosition="left"
  41. ref="uForm"
  42. >
  43. <u-form-item
  44. label="WIFI Name:"
  45. borderBottom
  46. labelWidth="auto"
  47. @click="openChooseWifi"
  48. ref="item1"
  49. >
  50. <u--input
  51. v-model="SSID"
  52. disabled
  53. disabledColor="#dddddd"
  54. placeholder="Choose wifi"
  55. border="none"
  56. labelWidth="auto"
  57. ></u--input>
  58. <uni-icons slot="right" type="right" size="30"></uni-icons>
  59. <!-- <u-icon
  60. slot="right"
  61. name="arrow-right"
  62. ></u-icon> -->
  63. </u-form-item>
  64. <u-form-item
  65. label="Password:"
  66. borderBottom
  67. ref="item1"
  68. labelWidth="auto"
  69. >
  70. <u--input
  71. v-model="password"
  72. border="none"
  73. labelWidth="auto"
  74. ></u--input>
  75. </u-form-item>
  76. </u--form>
  77. <u--form v-else style="width: 100%;"
  78. labelPosition="left"
  79. ref="uForm"
  80. >
  81. <u-form-item
  82. label="WIFI名称:"
  83. borderBottom
  84. labelWidth="auto"
  85. @click="openChooseWifi"
  86. ref="item1"
  87. >
  88. <u--input
  89. v-model="SSID"
  90. disabled
  91. disabledColor="#363636"
  92. placeholder="请选择wifi:"
  93. border="none"
  94. ></u--input>
  95. <u-icon
  96. slot="right"
  97. name="arrow-right-double"
  98. ></u-icon>
  99. </u-form-item>
  100. <u-form-item
  101. label="密码:"
  102. borderBottom
  103. ref="item1"
  104. >
  105. <u--input
  106. v-model="password"
  107. border="none"
  108. ></u--input>
  109. </u-form-item>
  110. <u-form-item
  111. label="二维码ID:"
  112. borderBottom
  113. ref="item1"
  114. labelWidth="auto"
  115. >
  116. <u--input
  117. v-model="qrcodeid"
  118. border="none"
  119. ></u--input>
  120. </u-form-item>
  121. <u-form-item
  122. @click="showProductList = true"
  123. label="产品类型:"
  124. borderBottom
  125. ref="item1"
  126. labelWidth="auto"
  127. >
  128. <u--input disabled
  129. v-model="productName"
  130. border="none"
  131. ></u--input>
  132. </u-form-item>
  133. </u--form>
  134. </view>
  135. <view style="margin:10px">
  136. <u-button text="Confirm" v-if="isCompanyUser()" @click="doConnectUser(1)" size="normal" type="success"></u-button>
  137. <u-button text="开始配网" v-else @click="doConnect(2)" size="small" type="primary"></u-button>
  138. </view>
  139. <u-picker @cancel="showWiftList=false" @confirm="chooseWifi" :show="showWiftList" :columns="wifiList"></u-picker>
  140. <u-picker @cancel="showProductList=false" keyName="text" @confirm="chooseProduct" :show="showProductList" :columns="chooseProductList"></u-picker>
  141. </view>
  142. </view>
  143. </template>
  144. <script>
  145. // #ifdef APP
  146. import ecUI from '@/utils/ecUI.js'
  147. import ecBLE from '@/utils/ecBLE/ecBLE.js'
  148. // #endif
  149. // #ifdef MP
  150. const ecUI = require('@/utils/ecUI.js')
  151. const ecBLE = require('@/utils/ecBLE/ecBLE.js')
  152. // #endif
  153. import i18 from '@/utils/i18.js'
  154. import {getDevcieByQrcodeID} from "@/api/device/device";
  155. import {sendWifi,sendPwd,sendEnd} from "@/utils/weitiandi/device/device.js";
  156. let ctx
  157. let deviceListData = []
  158. export default {
  159. data() {
  160. return {
  161. showProductList:false,
  162. showPwd:false,
  163. rightPwd:"",
  164. pwd:"",
  165. timer:"",
  166. buleid:"",
  167. deviceListDataShow: [],
  168. showTimer:null,
  169. connected:false,
  170. uuid:"",
  171. showDeviceNo:false,
  172. inputDeviceNo:"",
  173. commonCode:"",
  174. showSendData:false,
  175. sendData:"",
  176. qrcodeid:"",
  177. productName:"",
  178. deviceno:"",
  179. SSID:"",
  180. password:"",
  181. showWiftList:false,
  182. productId:56,
  183. chooseProductList:[[ {
  184. id:56,text:"3"
  185. },
  186. {
  187. id:56,text:"4"
  188. },
  189. {
  190. id:57,text:"5"
  191. }
  192. ]],
  193. wifiList: [
  194. []
  195. ],
  196. peiwangTimer:null,
  197. }
  198. },
  199. onLoad() {
  200. uni.setNavigationBarTitle({
  201. title: i18('WIFI配网')
  202. })
  203. this.deviceno = this.generateTimestamp();
  204. ecUI.showLoading("WIFI initing")
  205. ctx = this
  206. clearInterval(this.timer);
  207. this.timer = setInterval(() => {
  208. ctx.deviceListDataShow = JSON.parse(JSON.stringify(deviceListData))
  209. }, 800)
  210. console.log(this.commonCode)
  211. this.productName = this.chooseProductList[0][0].text;
  212. },
  213. onUnload(){
  214. ecBLE.stopBluetoothDevicesDiscovery();
  215. ecBLE.closeBLEConnection()
  216. },
  217. onShow() {
  218. if(this.showTimer!= null){
  219. clearTimeout(this.showTimer);
  220. }
  221. this.showTimer = setTimeout(() => {
  222. ctx.openBluetoothAdapter()
  223. }, 100)
  224. },
  225. methods: {
  226. isCompanyUser(){
  227. return true;
  228. },
  229. chooseProduct(e){
  230. this.productId = e.value[0].id;
  231. this.productName = e.value[0].text;
  232. this.showProductList= false;
  233. },
  234. generateTimestamp() {
  235. const date = new Date();
  236. const year = date.getFullYear().toString().substr(2);
  237. const month = date.getMonth() + 1;
  238. const day = date.getDate();
  239. const hours = date.getHours();
  240. const minutes = date.getMinutes();
  241. // 生成6位随机数字
  242. const randomNum = Math.floor(Math.random() * 900000) + 100000;
  243. // 将数字拼接成字符串
  244. const timestamp = `${year}${month < 10 ? '0' + month : month}${day < 10 ? '0' + day : day}${hours}${minutes < 10 ? '0' + minutes : minutes}${randomNum}`;
  245. return timestamp;
  246. },
  247. getAuth(){
  248. wx.getSetting({
  249. success(res) {
  250. if (!res.authSetting['scope.userLocation']) {
  251. wx.authorize({
  252. scope: 'scope.userLocation',
  253. success () {
  254. // 用户已经同意小程序使用录音功能,后续调用 wx.startRecord 接口不会弹窗询问
  255. }
  256. })
  257. }
  258. }
  259. })
  260. },
  261. chooseWifi(e){
  262. this.SSID = e.value[0];
  263. this.showWiftList= false;
  264. },
  265. openChooseWifi(){
  266. if(this.wifiList[0].length == 0){
  267. this.getWifiList();
  268. }else{
  269. this.showWiftList = true;
  270. }
  271. },
  272. openWifi(){
  273. let self = this;
  274. uni.startWifi({
  275. success(res) {
  276. console.log(res);
  277. // self.getWifiList();
  278. },
  279. fail(res) {
  280. console.log(res)
  281. uni.showToast({
  282. title: i18('请打开WIFI'),
  283. icon: 'none',
  284. duration: 3000
  285. });
  286. }
  287. })
  288. },
  289. getWifi(){
  290. // #ifdef MP-WEIXIN
  291. var that = this
  292. wx.getConnectedWifi({
  293. success(res) {
  294. console.log(res)
  295. that.BSSID = res.wifi.BSSID
  296. that.WIFIName = res.wifi.SSID
  297. },
  298. fail(res) {
  299. console.log(res)
  300. //报错的相关处理
  301. },
  302. })
  303. // #endif
  304. },
  305. getWifiList() {
  306. var that = this
  307. uni.getWifiList({
  308. success: res => {
  309. console.log('res', res);
  310. uni.onGetWifiList((res) => {
  311. that.showWiftList = true;
  312. uni.hideLoading();
  313. console.log("获取wifi列表");
  314. that.wifiList = [[]];
  315. console.log(res.wifiList); //在这里提取列表数据
  316. //通过遍历将WIFI名字存入集合,以便下卡框等组件使用
  317. for (var i = 0; i < res.wifiList.length; i++) {
  318. that.wifiList[0].push(res.wifiList[i].SSID)
  319. }
  320. });
  321. },
  322. fail(res) {
  323. console.log(res)
  324. uni.showToast({
  325. title: i18('获取wifi失败,请检查wifi'),
  326. icon: 'none',
  327. duration: 2000
  328. });
  329. },
  330. });
  331. },
  332. doConnectUser(){
  333. if(this.SSID == ""){
  334. uni.showToast({
  335. title: i18('请选择WIFI'),
  336. icon: 'none',
  337. duration: 3000
  338. });
  339. return;
  340. }
  341. if(this.password == ""){
  342. uni.showToast({
  343. title: i18('请输入wifi密码'),
  344. icon: 'none',
  345. duration: 3000
  346. });
  347. return;
  348. }
  349. /**
  350. * ID:XXX+回车换行(设备编号)
  351. * QR:XXXX+回车换行(二维码ID)
  352. * ssid:WiFi名字+回车换行
  353. * psd:wifi密码+回车换行
  354. * 最后+OK
  355. */
  356. let self = this;
  357. let endStr = "$$";
  358. ecUI.showLoading("正在配置网络信息")
  359. setTimeout(function(){
  360. sendWifi(self.SSID+endStr);
  361. },400);
  362. setTimeout(function(){
  363. sendPwd(self.password+endStr);
  364. },600);
  365. setTimeout(function(){
  366. sendEnd("OK"+endStr);
  367. },800);
  368. this.peiwangTimer = setTimeout(function(){
  369. ecUI.hideLoading();
  370. self.$modal.showToast("配网失败,请检查状态");
  371. },30000);
  372. },
  373. doConnect(){
  374. if(this.SSID == ""){
  375. uni.showToast({
  376. title: '请选择WIFI',
  377. icon: 'none',
  378. duration: 3000
  379. });
  380. return;
  381. }
  382. if(this.password == ""){
  383. uni.showToast({
  384. title: '请输入wifi密码',
  385. icon: 'none',
  386. duration: 3000
  387. });
  388. return;
  389. }
  390. if(this.qrcodeid == ""){
  391. uni.showToast({
  392. title: '请输入二维码ID',
  393. icon: 'none',
  394. duration: 3000
  395. });
  396. return;
  397. }
  398. if(this.deviceno == ""){
  399. uni.showToast({
  400. title: '请输入设备编号',
  401. icon: 'none',
  402. duration: 3000
  403. });
  404. return;
  405. }
  406. /**
  407. * ID:XXX+回车换行(设备编号)
  408. * QR:XXXX+回车换行(二维码ID)
  409. * ssid:WiFi名字+回车换行
  410. * psd:wifi密码+回车换行
  411. * 最后+OK
  412. */
  413. let self = this;
  414. getDevcieByQrcodeID(this.qrcodeid).then(res=>{
  415. if(res.data != null){
  416. self.$modal.showToast("当前二维码已经配置设备");
  417. }else{
  418. let endStr = "$$";
  419. ecUI.showLoading("正在配置网络信息")
  420. setTimeout(function(){
  421. self.sendBlueData("ID:"+self.deviceno+endStr);
  422. },200);
  423. setTimeout(function(){
  424. self.sendBlueData("QR:"+self.qrcodeid+endStr);
  425. },400);
  426. setTimeout(function(){
  427. self.sendBlueData("ssid:"+self.SSID+endStr);
  428. },600);
  429. setTimeout(function(){
  430. self.sendBlueData("psd:"+self.password+endStr);
  431. },800);
  432. setTimeout(function(){
  433. self.sendBlueData("pid:"+self.productId+endStr);
  434. },1000);
  435. setTimeout(function(){
  436. self.sendBlueData("OK");
  437. },1200);
  438. }
  439. })
  440. },
  441. stringToHex(str) {
  442. let hex = '';
  443. for (let i = 0; i < str.length; i++) {
  444. const char = str.charCodeAt(i);
  445. const hexChar = char.toString(16).padStart(2, '0');
  446. hex += hexChar;
  447. }
  448. return hex;
  449. },
  450. doByTime(func,time){
  451. setTimeout(function (){
  452. func();
  453. },time);
  454. },
  455. sendLanyaData(){
  456. this.$modal.showToast("正在发送");
  457. this.sendBlueData(this.sendData);
  458. },
  459. i18(text){
  460. return text;
  461. },
  462. cancel(){
  463. this.showPwd = false;
  464. uni.navigateBack({
  465. });
  466. },
  467. resetPwd(){
  468. let self = this;
  469. if(!this.inputDeviceNo){
  470. self.$modal.showToast("请输入序列号");
  471. return;
  472. }
  473. let uuidRight = false;
  474. if(this.inputDeviceNo == this.commonCode || this.uuid == this.inputDeviceNo){
  475. uuidRight = true;
  476. }
  477. if(!uuidRight){
  478. self.$modal.showToast("序列号有误");
  479. return;
  480. }
  481. if(uuidRight){
  482. this.$modal.confirm("密码将被重置为123456").then(res=>{
  483. setPwd("123456")
  484. self.$modal.showToast("密码修改成功");
  485. this.rightPwd = "123456";
  486. self.loginSuccess();
  487. });
  488. }
  489. },
  490. getBeijingTime() {
  491. const date = new Date();
  492. const utcTime = date.getTime() + (date.getTimezoneOffset() * 60 * 1000);
  493. const beijingTime = new Date(utcTime + (8 * 60 * 60 * 1000));
  494. return beijingTime;
  495. },
  496. generateUniqueNumber(date) {
  497. let dateString = date.toISOString().slice(0, 10).replace(/-/g, '');
  498. console.log(dateString)
  499. let hash = w_md5.hex_md5_32(dateString);
  500. console.log(hash);//32位小写
  501. let str = "";
  502. for (let i = 0; i < 6; i++) {
  503. const c = hash.charCodeAt(i);
  504. str = str+""+c+""
  505. }
  506. return str.substr(0,6);
  507. },
  508. goBack(){
  509. uni.navigateBack({
  510. });
  511. },
  512. $t(title){
  513. return title;
  514. },
  515. inputPwd(){
  516. if(!this.pwd ){
  517. this.$modal.showToast(this.$t('buletooth.errpwd'));
  518. }else{
  519. if(this.rightPwd && this.rightPwd === this.pwd){
  520. this.loginSuccess();
  521. }else{
  522. this.$modal.showToast(this.$t('buletooth.errpwd'));
  523. }
  524. }
  525. },
  526. loginSuccess(){
  527. this.showPwd = false;
  528. this.showDeviceNo = false;
  529. uni.setStorageSync("pwd",this.rightPwd);
  530. uni.setStorageSync('blueid', this.buleid);
  531. this.pwd = "";
  532. ecBLE.stopBluetoothDevicesDiscovery();
  533. uni.navigateTo({
  534. url: '/pages/weitiandi/bluetooth/status'
  535. });
  536. },
  537. getLocalPwd(){
  538. let pwd = uni.getStorageSync("pwd");
  539. return pwd;
  540. },
  541. sendBlueData(tempSendData){
  542. tempSendData = this.stringToHex(tempSendData);
  543. let data = tempSendData
  544. .replace(/\s*/g, '')
  545. .replace(/\n/g, '')
  546. .replace(/\r/g, '')
  547. data = "55a0"+data;
  548. console.log("写入数据:"+data);
  549. ecBLE.writeBLECharacteristicValue(data, true)
  550. },
  551. listViewTap(id){
  552. let self = this;
  553. ecUI.showLoading("WIFI connectting")
  554. ecBLE.onBLEConnectionStateChange(res => {
  555. console.log(res);
  556. if (res.ok) {
  557. self.connected = true;
  558. self.openWifi();
  559. ecUI.hideLoading()
  560. self.showSendData = true;
  561. ecBLE.stopBluetoothDevicesDiscovery();
  562. //
  563. } else {
  564. ecUI.hideLoading()
  565. this.$modal.showToast("蓝牙断开");
  566. self.goBack();
  567. }
  568. });
  569. //receive data
  570. ecBLE.onBLECharacteristicValueChange((str, strHex) => {
  571. let isCheckRevHex = true;
  572. let data =
  573. (isCheckRevHex ? strHex.replace(/[0-9a-fA-F]{2}/g, ' $&') : str)
  574. console.log(data);
  575. data = data.trim();
  576. data = data.split(" ")
  577. if(data[1] == 'A3' && data[3] == '01' ){
  578. self.$modal.closeLoading();
  579. clearTimeout(self.peiwangTimer);
  580. self.peiwangTimer = null;
  581. uni.showModal({
  582. title: i18('提示'),
  583. content: i18('配网成功,请扫码绑定设备'),
  584. showCancel: false,
  585. confirmText: i18('确认'),
  586. success: function(res) {
  587. if (res.confirm) {
  588. self.goBack();
  589. }
  590. }
  591. })
  592. }
  593. })
  594. self.connected = false;
  595. ecBLE.createBLEConnection(id);
  596. setTimeout(function (){
  597. if(!self.connected){
  598. self.$modal.showToast(i18('连接失败'));
  599. self.startBluetoothDevicesDiscovery()
  600. }
  601. },10000);
  602. },
  603. showInputPwd(){
  604. this.showPwd = true;
  605. },
  606. messageCallback(data){
  607. let self = this;
  608. console.log(data);
  609. let type = data.type;
  610. let real_data = data.real_data;
  611. if(type == 253){
  612. self.$modal.closeLoading();
  613. self.uuid = real_data.substr(0,6);
  614. }
  615. self.$forceUpdate();
  616. console.log('收到服务器内容:' + JSON.stringify(data));
  617. },
  618. forgetPwd(){
  619. this.$modal.loading("正在读取设备ID");
  620. getUUID()
  621. this.showDeviceNo = true;
  622. },
  623. openBluetoothAdapter() {
  624. let self = this;
  625. ecBLE.onBluetoothAdapterStateChange(res => {
  626. ecUI.hideLoading()
  627. if (res.ok) {
  628. ctx.startBluetoothDevicesDiscovery()
  629. } else {
  630. ecUI.showModal(
  631. this.$t('buletooth.tip'),
  632. `Bluetooth adapter error | ${res.errCode} | ${res.errMsg}`,
  633. () => {
  634. }
  635. )
  636. }
  637. })
  638. ecBLE.openBluetoothAdapter()
  639. },
  640. startBluetoothDevicesDiscovery() {
  641. ecBLE.stopBluetoothDevicesDiscovery();
  642. console.log('start search')
  643. ecBLE.onBluetoothDeviceFound(res => {
  644. let isRight = true;
  645. if(res.name.startsWith('BT_') || res.name.startsWith('WGD')){
  646. isRight = true;
  647. }
  648. if(!isRight){
  649. return;
  650. }
  651. for (const item of deviceListData) {
  652. if (item.id === res.id) {
  653. item.name = res.name
  654. item.rssi = res.rssi
  655. return
  656. }
  657. }
  658. let manufacturer = ''
  659. if (res.name.length === 11 && res.name.startsWith('@')) {
  660. manufacturer = 'eciot'
  661. }
  662. if (res.name.length === 15 && res.name.startsWith('BT_')) {
  663. manufacturer = 'eciot'
  664. }
  665. manufacturer = 'eciot'
  666. deviceListData.push({
  667. id: res.id,
  668. name: res.name,
  669. rssi: res.rssi,
  670. manufacturer,
  671. })
  672. })
  673. ecBLE.startBluetoothDevicesDiscovery()
  674. },
  675. }
  676. }
  677. </script>
  678. <style>
  679. .container{
  680. background-image: url('../../../static/images/new/starts/bg2.jpg');
  681. background-size: cover;
  682. background-repeat: no-repeat;
  683. height: 100%;
  684. width: 100%;
  685. }
  686. .main-container {
  687. height: 100vh;
  688. }
  689. .list-item {
  690. height: 57px;
  691. position: relative;
  692. }
  693. .list-item-hover {
  694. background-color: #e5e4e9;
  695. }
  696. .list-item-img {
  697. position: absolute;
  698. width: 36px;
  699. height: 36px;
  700. left: 20px;
  701. top: 10px;
  702. }
  703. .list-item-name {
  704. position: absolute;
  705. font-size: 22px;
  706. left: 76px;
  707. top: 0px;
  708. line-height: 56px;
  709. color: aliceblue;
  710. }
  711. .list-item-rssi-img {
  712. position: absolute;
  713. width: 20px;
  714. height: 20px;
  715. right: 20px;
  716. top: 13px;
  717. }
  718. .list-item-rssi {
  719. position: absolute;
  720. width: 40px;
  721. height: 20px;
  722. right: 10px;
  723. top: 33px;
  724. font-size: 12px;
  725. font-weight: bold;
  726. display: flex;
  727. justify-content: center;
  728. color: aliceblue;
  729. }
  730. .list-item-line {
  731. position: absolute;
  732. height: 1px;
  733. width: 100vw;
  734. left: 20px;
  735. top: 56px;
  736. background-color: #c6c6c8;
  737. }
  738. .notice {
  739. display: flex;
  740. justify-content: center;
  741. align-items: center;
  742. margin-top: 10px;
  743. font-size: 13px;
  744. color: #909399;
  745. }
  746. .gap {
  747. height: 57px;
  748. }
  749. .text-area {
  750. display: flex;
  751. justify-content: center;
  752. background: #dddddd;
  753. width: 100%;
  754. height: 100%;
  755. }
  756. </style>