Chatindex.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. <template>
  2. <!-- 抽屉组件 -->
  3. <!-- 地图组件 -->
  4. <view>
  5. <web-view :webview-styles="webviewStyles" :src=socketurl></web-view>
  6. </view>
  7. <!-- <view class="DrawerClose" :class="modalName == 'viewModal' ? 'show' : ''" @tap="hideModal"><text class="cuIcon-pullright"></text></view> -->
  8. </view>
  9. </template>
  10. <script>
  11. import res from '../../../common/data.json';
  12. var _self;
  13. export default {
  14. components: {
  15. },
  16. data: function() {
  17. return {
  18. conflict:false,
  19. kg:true,
  20. leftNavigationtitle:'预测功能分组',
  21. leftbarkg:false,
  22. bs_computed:'',
  23. xtpl_computed:'',
  24. ssxy_computed:'',
  25. szxy_computed:'',
  26. pld_computed:'',
  27. xynd_computed:'',
  28. WeatherProphethomepagebool:true,
  29. toggleSwitch:false,
  30. socketurl:'',
  31. inconList: ['form', 'favor', 'question', 'edit'],
  32. modalName: null,
  33. address: '',
  34. drawerList: [],
  35. plusDrawerList: [],
  36. permissionsInformation:[]
  37. };
  38. },
  39. mounted() {
  40. //document.querySelector('body').setAttribute('style', 'background-color:#000000');
  41. },created: function() {
  42. // this.pushWindPowerStationNameToSessionStorage("麻黄山");
  43. this.viewUserid();
  44. this.monitoringAuthority();
  45. this.address = this.dataprocessing.getWindPowerStationName();
  46. this.FDC=this.dataprocessing.getWindPowerStationId();
  47. this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
  48. let userid=uni.getStorageSync("userid")
  49. this.socketurl="https://192.168.3.24:4397/websocket/usercontroller/view?userid="+userid;
  50. this.$nextTick(function() {
  51. //this.getWeatherDataToday();
  52. //this.getWeatherData7();
  53. });
  54. this.cWidth = uni.upx2px(2000);
  55. this.cHeight = uni.upx2px(350);
  56. this.cWidth40 = uni.upx2px(5000);
  57. this.cHeight40 = uni.upx2px(350);
  58. this.windStation =this.dataprocessing.getWindPowerStationNameByNames(this.address);
  59. this.windStationName = this.windStation[0].replace('风电场', '');
  60. },
  61. onLoad(pointKey) {
  62. let _this = this;
  63. this.pointKey = pointKey.pointKey;
  64. this.targetName = pointKey.callTargetName;
  65. this.targetUnit = pointKey.callTargetUnit;
  66. this.braceletData();
  67. /* console.log(_this.bracelet[_this.deviceName]);
  68. console.log(_this.bracelet[_this.deviceName][_this.targetName_pld][0]); */
  69. /* uni.getLocation({//获取当前的位置坐标
  70. type: 'wgs84',
  71. success: function (res) {
  72. console.log('当前位置的经度:' + res.longitude);
  73. console.log('当前位置的纬度:' + res.latitude);
  74. }
  75. }); */
  76. },
  77. onReady() {},
  78. computed: {
  79. targetName_xtpl: function() {
  80. return this.deviceName + '_XTPL';
  81. },
  82. targetName_xtpl_size: function() {
  83. return this.bracelet[this.deviceName][this.targetName_xtpl].length - 1;
  84. },
  85. targetName_pld: function() {
  86. return this.deviceName + '_PLD';
  87. },
  88. targetName_pld_size: function() {
  89. return this.bracelet[this.deviceName][this.targetName_pld].length - 1;
  90. },
  91. targetName_bs: function() {
  92. return this.deviceName + '_BS';
  93. },
  94. targetName_bs_size: function() {
  95. return this.bracelet[this.deviceName][this.targetName_bs].length - 1;
  96. },
  97. targetName_ssxy: function() {
  98. return this.deviceName + '_SSXY';
  99. },
  100. targetName_ssxy_size: function() {
  101. return this.bracelet[this.deviceName][this.targetName_ssxy].length - 1;
  102. },
  103. targetName_szxy: function() {
  104. return this.deviceName + '_SZXY';
  105. },
  106. targetName_szxy_size: function() {
  107. return this.bracelet[this.deviceName][this.targetName_szxy].length - 1;
  108. },
  109. targetName_xynd: function() {
  110. return this.deviceName + '_XYND';
  111. },
  112. targetName_xynd_size: function() {
  113. return this.bracelet[this.deviceName][this.targetName_xynd].length - 1;
  114. },
  115. backStageIp: function() {
  116. return this.$store.state.wholeSituationBackStageIp;
  117. },
  118. backStagePort: function() {
  119. return this.$store.state.wholeSituationBackStagePort;
  120. },
  121. windpowerstationNameToId: function() {
  122. return this.$store.state.windpowerstationNameToId;
  123. }
  124. },
  125. methods: {
  126. viewUserid: function() {
  127. this.plusDrawerList=uni.getStorageSync('plusList');
  128. },
  129. monitoringAuthority: function() {
  130. this.drawerList=uni.getStorageSync('leftlist3');
  131. },
  132. mapdelete(){
  133. //#ifdef H5
  134. if(this.bool){
  135. this.$delete(this.polyline[0],'points');
  136. this.braceletCurve_LNG = this.bracelet[this.deviceName][this.deviceNameLng];
  137. this.braceletCurve_LAT = this.bracelet[this.deviceName][this.deviceNameLat];
  138. this.points[0].longitude=this.bracelet[this.deviceName][this.deviceNameLng][0].value;
  139. this.points[0].latitude=this.bracelet[this.deviceName][this.deviceNameLat][0].value;
  140. this.points[1].longitude=this.bracelet[this.deviceName][this.deviceNameLng][this.braceletCurve_LNG.length-1].value;
  141. this.points[1].latitude=this.bracelet[this.deviceName][this.deviceNameLat][this.braceletCurve_LAT.length-1].value;
  142. for(let val of this.polyline){
  143. this.$set(val,'points',this.points);
  144. this.bool = false;
  145. console.log("true");
  146. }
  147. /* 定义地图经纬度中心 */
  148. var lat= parseFloat(this.mapBegin_2)+parseFloat(this.mapEnd_2);
  149. var lng= parseFloat(this.mapBegin_1)+parseFloat(this.mapEnd_1);
  150. this.latitude = lat/2;
  151. this.longitude = lng/2;
  152. }else{
  153. /* this.braceletCurve_LNG = this.bracelet[this.deviceName][this.deviceNameLng];
  154. this.braceletCurve_LAT = this.bracelet[this.deviceName][this.deviceNameLat];
  155. this.points[0].longitude=this.bracelet[this.deviceName][this.deviceNameLng][0].value;
  156. this.points[0].latitude=this.bracelet[this.deviceName][this.deviceNameLat][0].value;
  157. this.points[1].longitude=this.bracelet[this.deviceName][this.deviceNameLng][this.braceletCurve_LNG.length-1].value;
  158. this.points[1].latitude=this.bracelet[this.deviceName][this.deviceNameLat][this.braceletCurve_LAT.length-1].value;
  159. */
  160. /* this.$replace(this.polyline[0],'points'); */
  161. /* this.latitude = this.mapBegin_2+this.mapEnd_2/2;
  162. this.longitude = this.mapBegin_1+this.mapEnd_1/2; */
  163. console.log("false");
  164. /* 还原定位中心位置 */
  165. this.latitude = this.mapBegin_2;
  166. this.longitude = this.mapBegin_1;
  167. this.bool = true;
  168. }
  169. this.$forceUpdate();
  170. //#endif
  171. //#ifdef APP-PLUS
  172. if(this.bool){
  173. this.$delete(this.polyline[0],'points');
  174. this.braceletCurve_LNG = this.bracelet[this.deviceName][this.deviceNameLng];
  175. this.braceletCurve_LAT = this.bracelet[this.deviceName][this.deviceNameLat];
  176. this.points[0].longitude=this.bracelet[this.deviceName][this.deviceNameLng][0].value;
  177. this.points[0].latitude=this.bracelet[this.deviceName][this.deviceNameLat][0].value;
  178. this.points[1].longitude=this.bracelet[this.deviceName][this.deviceNameLng][this.braceletCurve_LNG.length-1].value;
  179. this.points[1].latitude=this.bracelet[this.deviceName][this.deviceNameLat][this.braceletCurve_LAT.length-1].value;
  180. for(let val of this.polyline){
  181. this.$set(val,'points',this.points);
  182. this.bool = false;
  183. console.log("true");
  184. }
  185. /* 定义地图经纬度中心 */
  186. var lat= parseFloat(this.mapBegin_2)+parseFloat(this.mapEnd_2);
  187. var lng= parseFloat(this.mapBegin_1)+parseFloat(this.mapEnd_1);
  188. this.latitude = lat/2;
  189. this.longitude = lng/2;
  190. }else{
  191. /* this.braceletCurve_LNG = this.bracelet[this.deviceName][this.deviceNameLng];
  192. this.braceletCurve_LAT = this.bracelet[this.deviceName][this.deviceNameLat];
  193. this.points[0].longitude=this.bracelet[this.deviceName][this.deviceNameLng][0].value;
  194. this.points[0].latitude=this.bracelet[this.deviceName][this.deviceNameLat][0].value;
  195. this.points[1].longitude=this.bracelet[this.deviceName][this.deviceNameLng][this.braceletCurve_LNG.length-1].value;
  196. this.points[1].latitude=this.bracelet[this.deviceName][this.deviceNameLat][this.braceletCurve_LAT.length-1].value;
  197. */
  198. this.$delete(this.polyline[0],'points');
  199. /* this.latitude = this.mapBegin_2+this.mapEnd_2/2;
  200. this.longitude = this.mapBegin_1+this.mapEnd_1/2; */
  201. console.log("false");
  202. /* 还原定位中心位置 */
  203. this.latitude = this.mapBegin_2;
  204. this.longitude = this.mapBegin_1;
  205. this.bool = true;
  206. }
  207. this.$forceUpdate();
  208. //#endif
  209. },
  210. mapDate(){
  211. },
  212. openDrawer: function() {
  213. this.monitoringAuthority();
  214. this.kg=false;
  215. if(this.$refs.drawer != undefined){
  216. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
  217. }else{
  218. console.log('雷霆嘎巴');
  219. }
  220. },
  221. closeDrawer: function() {
  222. this.drawerIsShow = false;
  223. },
  224. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  225. uni.setStorageSync('windpowerstationName', windpowerstationName);
  226. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  227. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  228. //this.common.goback('/pages/index/Index');
  229. },
  230. getWindPowerStationNameToSessionStorage() {
  231. uni.getStorageSync('windpowerstationName');
  232. return uni.getStorageSync('windpowerstationName');
  233. },
  234. leftbar(){
  235. this.kg=true;
  236. },
  237. onHide() {
  238. this.$refs.drawer.closeDrawer();
  239. this.hideModal();
  240. },
  241. onShow: function() {
  242. this.leftbar();
  243. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  244. this.address = this.getWindPowerStationNameToSessionStorage();
  245. this.viewUserid();
  246. this.monitoringAuthority();
  247. },
  248. showModal(e) {
  249. this.conflict = true;
  250. this.viewUserid();
  251. this.kg=false;
  252. this.modalName = e.currentTarget.dataset.target;
  253. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  254. },
  255. hideModal() {
  256. this.conflict = false;
  257. this.leftbar();
  258. this.modalName = null;
  259. //this.$refs.plusDrawer.hideModal(this.modalName);
  260. },
  261. braceletData() {
  262. let _this = this;
  263. let ip;
  264. uni.request({
  265. url: 'http://' + _this.backStageIp + ':' + _this.backStagePort + '/bracelet/bracelet?beginDate=2020-04-20%2009:26:27&&endDate=2020-04-25%2009:26:29',
  266. success: res => {
  267. ip = res.data;
  268. }
  269. });
  270. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  271. this.socketTask_bracelet = uni.connectSocket({
  272. /* 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】 */
  273. url: 'ws://' + _this.backStageIp + ':' + _this.backStagePort + '/websocket/pageNumber_9/functionNumber_1/all',
  274. success(data) {
  275. console.log('websocket连接成功');
  276. }
  277. });
  278. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  279. this.socketTask_bracelet.onOpen(res => {
  280. console.log('WebSocket连接正常打开中...!');
  281. _this.is_open_socket = true;
  282. // 注:只有连接正常打开中 ,才能正常收到消息
  283. _this.socketTask_bracelet.onMessage(res => {
  284. //console.log("收到服务器内容:" + res.data);
  285. _this.bracelet = JSON.parse(res.data)[ip];
  286. _this.braceletCurve = JSON.stringify(_this.bracelet[_this.deviceName]);
  287. /* 获取起始经纬度 */
  288. _this.braceletCurve_LNG = _this.bracelet[_this.deviceName][_this.deviceNameLng];
  289. _this.braceletCurve_LAT = _this.bracelet[_this.deviceName][_this.deviceNameLat];
  290. _this.mapBegin_1 = (_this.bracelet[_this.deviceName][_this.deviceNameLng][0].value);
  291. _this.mapBegin_2 = (_this.bracelet[_this.deviceName][_this.deviceNameLat][0].value);
  292. _this.mapEnd_1 = (_this.bracelet[_this.deviceName][_this.deviceNameLng][_this.braceletCurve_LNG.length-1].value);
  293. _this.mapEnd_2 = (_this.bracelet[_this.deviceName][_this.deviceNameLat][_this.braceletCurve_LAT.length-1].value);
  294. _this.latitude = _this.mapBegin_2;
  295. _this.longitude = _this.mapBegin_1;
  296. _this.covers[0].latitude = _this.mapBegin_2;
  297. _this.covers[0].longitude = _this.mapBegin_1;
  298. _this.covers[1].latitude = _this.mapEnd_2;
  299. _this.covers[1].longitude = _this.mapEnd_1;
  300. _this.bs_computed = _this.bracelet[_this.deviceName][_this.targetName_bs][_this.targetName_bs_size].value;
  301. _this.xtpl_computed = _this.bracelet[_this.deviceName][_this.targetName_xtpl][_this.targetName_xtpl_size].value;
  302. _this.ssxy_computed = _this.bracelet[_this.deviceName][_this.targetName_ssxy][_this.targetName_ssxy_size].value;
  303. _this.szxy_computed = _this.bracelet[_this.deviceName][_this.targetName_szxy][_this.targetName_szxy_size].value;
  304. _this.pld_computed = _this.bracelet[_this.deviceName][_this.targetName_pld][_this.targetName_pld_size].value;
  305. _this.xynd_computed = _this.bracelet[_this.deviceName][_this.targetName_xynd][_this.targetName_xynd_size].value;
  306. /* this.braceletCurve_LNG = this.bracelet[this.deviceName][this.deviceNameLng];
  307. this.braceletCurve_LAT = this.bracelet[this.deviceName][this.deviceNameLat];
  308. this.points[0].longitude=this.bracelet[this.deviceName][this.deviceNameLng][0].value;
  309. this.points[0].latitude=this.bracelet[this.deviceName][this.deviceNameLat][0].value;
  310. this.points[1].longitude=this.bracelet[this.deviceName][this.deviceNameLng][this.braceletCurve_LNG.length-1].value;
  311. this.points[1].latitude=this.bracelet[this.deviceName][this.deviceNameLat][this.braceletCurve_LAT.length-1].value; */
  312. /* _this.mapDate(); */
  313. /* _this.polyline[0].points[0].latitude=_this.mapBegin_2;
  314. _this.polyline[0].points[0].longitude=_this.mapBegin_1;
  315. _this.polyline[0].points[1].latitude=_this.mapEnd_2;
  316. _this.polyline[0].points[1].longitude=_this.mapEnd_1; */
  317. /* _this.braceletCurve_SSXY = _this.bracelet[_this.deviceName][_this.deviceNameSsxy];
  318. _this.braceletCurve_SZXY = _this.bracelet[_this.deviceName][_this.deviceNameSzxy];
  319. _this.braceletCurve_XYND = _this.bracelet[_this.deviceName][_this.deviceNameXynd];
  320. _this.braceletCurve_XTPL = _this.bracelet[_this.deviceName][_this.deviceNameXtpl];
  321. _this.braceletCurve_BS = _this.bracelet[_this.deviceName][_this.deviceNameBs];
  322. console.log(_this.braceletCurve_BS[0].value); */
  323. });
  324. });
  325. // 这里仅是事件监听【如果socket关闭了会执行】
  326. this.socketTask_bracelet.onClose(() => {
  327. uni.request({
  328. url: 'http://' + _this.backStageIp + ':' + _this.backStagePort + '/bracelet/close_bracelet?pointKey=' + _this.pointKey,
  329. success: res => {}
  330. });
  331. });
  332. }
  333. }
  334. };
  335. </script>
  336. <style>
  337. body {
  338. font-family: '方正兰亭细黑_GBK';
  339. font-size: 15px;
  340. color: silver;
  341. background: #000;
  342. }
  343. @font-face {
  344. font-family: '方正兰亭细黑_GBK';
  345. src: url(../../../static/fzltxh.TTF);
  346. }
  347. .content{
  348. //background-color: #000000;
  349. }
  350. page {
  351. background-color: #1f1f1f;
  352. font-family: '方正兰亭细黑_GBK';
  353. overflow-x: hidden;
  354. }
  355. .top {
  356. width: 100%;
  357. height: 130upx;
  358. padding-top: 5upx;
  359. background-color: #1f1f1f;
  360. position: fixed;
  361. top: 0px;
  362. left: 0px;
  363. z-index: 100;
  364. }
  365. .threeLine {
  366. width: 50px;
  367. height: 45px;
  368. float: left;
  369. }
  370. .text {
  371. width: calc(100% - 100px);
  372. height: 45px;
  373. float: left;
  374. user-select: text;
  375. -webkit-user-select: text;
  376. -moz-user-select: text;
  377. -ms-user-select: text;
  378. color: silver;
  379. line-height: 45px;
  380. margin-top: 11px;
  381. font-size: 18px;
  382. }
  383. .notice {
  384. width: 50px;
  385. height: 45px;
  386. float: left;
  387. }
  388. .plus {
  389. width: 30px;
  390. height: 45px;
  391. float: right;
  392. color: white;
  393. font-size: 35px;
  394. line-height: 45px;
  395. text-align: right;
  396. margin-right: 2.5%;
  397. }
  398. .textWindpowerstation {
  399. width: 180px;
  400. height: 45px;
  401. float: left;
  402. text-align: center;
  403. margin-left: 18px;
  404. }
  405. .InformationCard {
  406. position: absolute;
  407. top: 50px;
  408. left: 0px;
  409. margin-top: 0px;
  410. width: 50%;
  411. height: 8%;
  412. background: rgba(0, 0, 0, 0);
  413. float: left;
  414. }
  415. .informationCardAll {
  416. width: 95%;
  417. margin-left: 2.5%;
  418. margin-top: 10px;
  419. height: 60px;
  420. float: left;
  421. }
  422. .informationCardTextOne {
  423. width: 100%;
  424. height: 35px;
  425. float: left;
  426. margin-top: -10px;
  427. }
  428. .informationCardText {
  429. /* margin-left: 2%; */
  430. width: 65px;
  431. height: 35px;
  432. line-height: 35px;
  433. user-select: text;
  434. -webkit-user-select: text;
  435. -moz-user-select: text;
  436. -ms-user-select: text;
  437. color: silver;
  438. font-size: 10px;
  439. transform: scale(0.975);
  440. float: left;
  441. font-weight: 1000;
  442. }
  443. .textSilver {
  444. user-select: text;
  445. -webkit-user-select: text;
  446. -moz-user-select: text;
  447. -ms-user-select: text;
  448. color: black;
  449. float: left;
  450. }
  451. .textWhite {
  452. color: black;
  453. float: right;
  454. width: 24px;
  455. font-size: 10px;
  456. margin-right: 13%;
  457. transform: scale(0.975);
  458. /* text-align: right; */
  459. }
  460. .Personal_information_W {
  461. position: relative;
  462. /* margin-top: 3%; */
  463. width: 90%;
  464. height: 80px;/*
  465. background-color: #242424; */
  466. border-bottom: #BDBDBD solid 0.5px;
  467. transform: translateX(-50%);
  468. left: 50%;
  469. color: #B8B7B7;
  470. }
  471. .name{
  472. position: absolute;
  473. height: 30px;
  474. width: 130px;
  475. left: 3%;
  476. /* background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%); */
  477. text-align: left;
  478. line-height: 30px;
  479. margin-top: 1%;
  480. font-weight: 1000;
  481. }
  482. .history {
  483. position: absolute;
  484. margin-top: 6%;
  485. right: 3%;
  486. height: 30px;
  487. height: 20px;
  488. text-align: center;
  489. line-height: 30px;
  490. }
  491. .skills {
  492. position: absolute;
  493. top: 56%;
  494. left: 3%;
  495. height: 25px;
  496. width: 180px;/*
  497. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%); */
  498. text-align: left;
  499. line-height: 30px;
  500. }
  501. .curve{
  502. position: relative;
  503. width: 90%;
  504. transform: translateX(-50%);
  505. left: 50%;
  506. height: 30px;
  507. margin-top: 3%;
  508. color: #B8B7B7;
  509. font-weight: 1000;
  510. }
  511. .curve_l{
  512. position: absolute;
  513. left: 3%;
  514. }
  515. .curve_r{
  516. position: absolute;
  517. right: 3%;
  518. }
  519. .healthy {
  520. margin-left: 3%;
  521. height: 180px;
  522. width: 95%;
  523. margin-bottom: 100px;
  524. text-align: center;
  525. color: #B8B7B7;
  526. font-size: 12px;
  527. line-height:65px ;
  528. font-weight: 1000;
  529. }
  530. .healthy_H,
  531. .healthy_N,
  532. .healthy_W {
  533. background-color:#242424;
  534. position: relative;
  535. width: 100%;
  536. height: 42%;
  537. text-align: center;
  538. /* padding-bottom: 1%; */
  539. }
  540. .details_z {
  541. position: absolute;
  542. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  543. width: 30%;
  544. left:3%;
  545. height: 60px;
  546. top: 3%;
  547. margin-top: 2%;
  548. }
  549. .details_m {
  550. position: absolute;
  551. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  552. width: 30%;
  553. left: 35.5%;
  554. height: 60px;
  555. top: 3%;
  556. margin-top: 2%;
  557. }
  558. .details_y {
  559. position: absolute;
  560. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  561. width: 30%;
  562. left: 68%;
  563. height: 60px;
  564. top: 3%;
  565. margin-top: 2%;
  566. /* margin-bottom: 0.6%;
  567. margin-top: 0.6%;
  568. float: right;
  569. margin-left: 0.2%;
  570. margin-right: 1.2%;
  571. width: 31%;
  572. height: 100%;
  573. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  574. color: silver;
  575. text-align: center;
  576. padding-top: 10px;
  577. background-color: #ffffff;
  578. font-size: 12px;
  579. padding-bottom: 4px;
  580. line-height: 13px;
  581. border-radius: 5px;
  582. padding-top: 8px; */
  583. }
  584. .navigation::after {
  585. content: url(../../../static/picture/forcast/position.png);
  586. }
  587. /* .greater {
  588. position: relative;
  589. width: 249px;
  590. height: 35px;
  591. border: 1px solid #000;
  592. } */
  593. .greater{
  594. float: right;
  595. content: "";
  596. margin-top: 0.8%;
  597. margin-right: 0.8%;
  598. /* position: absolute; */
  599. /* top: 8px;
  600. right: 15px; */
  601. width: 8px;
  602. height: 8px;
  603. border-right: 2px solid #fff;
  604. border-bottom: 2px solid #fff;
  605. transform: rotate(-45deg);
  606. }
  607. .windStationNameAndChoice {
  608. clear: both;
  609. width: 100%;
  610. height: 30px;
  611. margin-top: 1%;
  612. color: silver;
  613. /* border: 1px solid red; */
  614. }
  615. .windStationName {
  616. width: 50%;
  617. height: 100%;
  618. float: left;
  619. line-height: 30px;
  620. font-size: 14px;
  621. margin-left: 9.5%;
  622. }
  623. .windStationChoice {
  624. width: 20%;
  625. height: 100%;
  626. float: right;
  627. text-align: right;
  628. line-height: 30px;
  629. font-size: 14px;
  630. margin-right: 5%;
  631. }
  632. .s-popup-wrapper {
  633. width: 500rpx;
  634. background-color: #f0f0f0;
  635. }
  636. .s-popup-title {
  637. width: 100%;
  638. height: 50px;
  639. background-color: #211E21;
  640. }
  641. .s-popup-word {
  642. width: calc(100% - 65px);
  643. height: 50px;
  644. font-size: 14px;
  645. color: white;
  646. line-height: 50px;
  647. float: left;
  648. margin-left: 25px;
  649. }
  650. .s-popup-cha {
  651. width: 40px;
  652. height: 50px;
  653. text-align: center;
  654. line-height: 50px;
  655. float: right;
  656. font-size: 24px;
  657. }
  658. .windStationItemContainer {
  659. width: 100%;
  660. }
  661. .windStationItemContainerBlack {
  662. width: 100%;
  663. background-color: grey;
  664. color: white;
  665. }
  666. .windStationItem {
  667. width: 80%;
  668. height: 50px;
  669. border-bottom: 1px solid #c8c8c8;
  670. text-align: left;
  671. line-height: 50px;
  672. margin-left: 10%;
  673. color: #333333;
  674. }
  675. .DrawerPage {
  676. position: fixed;
  677. width: 100vw;
  678. height: 100vh;
  679. left: 0vw;
  680. background-color: #1f1f1f;
  681. transition: all 0.4s;
  682. }
  683. .DrawerPage.show {
  684. transform: scale(0.9, 0.9);
  685. left: 85vw;
  686. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  687. transform-origin: 0;
  688. }
  689. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  690. width: 64upx;
  691. height: 64upx;
  692. line-height: 64upx;
  693. margin: 0;
  694. display: inline-block;
  695. }
  696. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  697. margin: 0;
  698. }
  699. .DrawerPage .nav {
  700. flex: 1;
  701. }
  702. .DrawerPage .nav .cu-item.cur {
  703. border-bottom: 0;
  704. position: relative;
  705. }
  706. .DrawerPage .nav .cu-item.cur::after {
  707. content: '';
  708. width: 10upx;
  709. height: 10upx;
  710. background-color: currentColor;
  711. position: absolute;
  712. bottom: 10upx;
  713. border-radius: 10upx;
  714. left: 0;
  715. right: 0;
  716. margin: auto;
  717. }
  718. .DrawerPage .cu-bar.tabbar .action {
  719. flex: initial;
  720. }
  721. </style>