Chatindex.vue 22 KB

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