addressBook.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. <template>
  2. <view>
  3. <cu-custom bgColor="bg-blacks" :isBack="false" v-show="but1">
  4. <block slot="right">
  5. <image src="../../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
  6. </block>
  7. <block slot="right">
  8. <view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
  9. <view class="cu-tag looknumber" style="margin-top: -2%;">
  10. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  11. </view>
  12. </view>
  13. </block>
  14. <block slot="right">
  15. </block>
  16. <block slot="content">通讯录</block>
  17. <block slot="right">
  18. <view class="plus" @tap="" data-target="viewModal">+</view>
  19. </block>
  20. </cu-custom>
  21. <!-- 抽屉组件 -->
  22. <div>
  23. <drawer ref="drawer"></drawer>
  24. </div>
  25. <div class="plusDrawer" @tap="hideModal">
  26. <plusDrawer ref="plusDrawer"></plusDrawer>
  27. </div>
  28. <!-- 组件左右移动 -->
  29. <!-- 返回组件 -->
  30. <view @click="changeState()">
  31. <cu-custom bgColor="bg-gradual-sisBlack" :isBack="false" v-show="but2" >
  32. <block slot="backText">
  33. <view style="height: 80rpx;line-height: 80rpx;color: silver;">返回</view>
  34. </block>
  35. <block slot="content">
  36. <view style="color: silver;">聊天通讯</view>
  37. </block>
  38. </cu-custom>
  39. </view> -->
  40. <!--<view class="cu-bar bg-white" v-show="but2" style="z-index: 9999;" @tap="common.navTo('/components/mine/addressBook/addressBook')">
  41. <view class="action">
  42. <text class="cuIcon-back text-white" style="font-size: 15px;"></text>
  43. <text style=" color: silver;">返回</text>
  44. </view>
  45. <view class="content text-white">
  46. 通讯录
  47. </view>
  48. </view>-->
  49. <scroll-view @tap="" scroll-y class="DrawerPage" :class="modalName == 'viewModal' ? 'show' : ''">
  50. <view v-if="judge==1">
  51. <!-- 搜索标签 -->
  52. <view class="cu-bar bg-white search" style="z-index: 999999;">
  53. <!-- :style="[{top:CustomBar + 'px'}]" -->
  54. <view class="search-form round" @touchstart="accordingTo">
  55. <text class="cuIcon-search"></text>
  56. <input type="text" placeholder="输入搜索的关键词" confirm-type="search" v-model="search"></input>
  57. </view>
  58. <view class="action" >
  59. <button class="cu-btn bg-gradual-sisBlack shadow-blur round" style="width:200upx;top: 0px; margin-top: 3%;" @click="accordingOut">取消</button>
  60. </view>
  61. </view>
  62. <!-- 搜索列表 -->
  63. <view class="search-content " ref="search">
  64. <block>
  65. <view class="cu-list menu-avatar no-padding">
  66. <!-- <view class="cu-avatar">{{item.name}}</view> 字母开头显示 -->
  67. <!-- 将汉字以当前字母开头的遍历 -->
  68. <view class="cu-item " v-for="item in userListData">
  69. <view v-if="item.remak1==1">
  70. <view class="content" @click="go(userid,lastUserName,items.nickname,items.id,1)">
  71. <view class="text-grey">{{item.username}}({{item.remak2}})
  72. <!-- <text class="text-abc">{{items.name}}</text>君 -->
  73. </view>
  74. <view class="text-gray text-sm" v-text="displayTheData(item.id)">
  75. </view>
  76. </view>
  77. <!-- 在线离线标识 -->
  78. <text class="cuIcon-radioboxfill text-green" style="margin-right: 3px;">在线</text>
  79. </view>
  80. <view v-if="item.remak1==0">
  81. <view class="content" @click="go(userid,lastUserName,item.nickname,item.id,0)">
  82. <view class="text-grey">{{item.username}}({{item.remak2}})
  83. <!-- <text class="text-abc">{{items.name}}</text>君 -->
  84. </view>
  85. <view class="text-gray text-sm" v-text="displayTheData(item.id)">
  86. </view>
  87. </view>
  88. <text class="cuIcon-radioboxfill text-gray" style="margin-right: 3px;">离线</text>
  89. </view>
  90. </view>
  91. </view>
  92. <!-- <view :class="'indexItem-' + item.name" :id="'indexes-' + item.name" :data-index="item.name">
  93. <view class="padding"></view>
  94. <view class="cu-list menu-avatar no-padding" >
  95. <view class="cu-item" @tap="common.navTo('/components/mine/addressBook/chat?name='+item+'&send='+send+'&receive='+receive+'&sendname='+sendname+'&receivename='+receivename)">
  96. <view class="cu-avatar round lg"></view>
  97. <view class="content" >
  98. <view class="text-grey">{{item.name}}</view>
  99. </view>
  100. </view>
  101. </view>
  102. </view> -->
  103. </block>
  104. </view>
  105. <!-- 通讯列表 -->
  106. <scroll-view scroll-y class="indexes" :scroll-into-view="'indexes-'+ listCurID" :style="[{height:'calc(100vh - '+ CustomBar + 'px - 50px)'}]"
  107. :scroll-with-animation="true" :enable-back-to-top="true" v-if="play">
  108. <!-- <block v-for="(item,index) in list" :key="index"> -->
  109. <!-- 控制侧导航栏 -->
  110. <!-- <view :class="'indexItem-' + item.name" :id="'indexes-' + item.name" :data-index="item.name"> -->
  111. <!-- <view class="padding">{{item.name}}</view> -->
  112. <view class="cu-list menu-avatar no-padding">
  113. <!-- <view class="cu-avatar">{{item.name}}</view> 字母开头显示 -->
  114. <!-- 将汉字以当前字母开头的遍历 -->
  115. <view class="cu-item" v-for="(items,sub) in userList" :key="sub">
  116. <view v-if="items.remak1==1">
  117. <view class="content" @click="go(userid,lastUserName,items.nickname,items.id,1)">
  118. <view class="text-grey">{{items.username}}({{items.remak2}})
  119. <!-- <text class="text-abc">{{items.name}}</text>君 -->
  120. </view>
  121. <view class="text-gray text-sm" v-text="displayTheData(items.id)">
  122. </view>
  123. </view>
  124. <!-- 在线标识 -->
  125. <text class="cuIcon-radioboxfill text-green" style="margin-right: 3px;">在线</text>
  126. </view>
  127. <view v-if="items.remak1==0">
  128. <view class="content" @click="go(userid,lastUserName,items.nickname,items.id,0)">
  129. <view class="text-grey">{{items.username}}({{items.remak2}})
  130. <!-- <text class="text-abc">{{items.name}}</text>君 -->
  131. </view>
  132. <view class="text-gray text-sm" v-text="displayTheData(items.id)">
  133. </view>
  134. </view>
  135. <!-- 离线标识 -->
  136. <text class="cuIcon-radioboxfill text-gray" style="margin-right: 3px;">离线</text>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- </view>
  141. </block> -->
  142. </scroll-view>
  143. <!-- 侧导航栏 -->
  144. <!-- <view class="indexBar" :style="[{height:'calc(100vh - ' + CustomBar + 'px - 50px)'}]">
  145. <view class="indexBar-box" @touchstart="tStart" @touchend="tEnd" @touchmove.stop="tMove">
  146. <view class="indexBar-item" v-for="(item,index) in list" :key="index" :id="index" @touchstart="getCur" @touchend="setCur"> {{item.name}}</view>
  147. </view>
  148. </view> -->
  149. <!--选择显示 keyword-->
  150. <view v-show="!hidden" class="indexToast">
  151. <!-- {{listCur}} -->
  152. </view>
  153. </view>
  154. </scroll-view>
  155. <initial ref="mychild"></initial>
  156. </view>
  157. </template>
  158. <script>
  159. import pinyin from './index.js';
  160. import res from '../../../common/data.json';
  161. import drawer from '../../../components/drawer/threeLineDrawer.vue'
  162. import plusDrawer from '../../../components/drawer/plusDrawer.vue';
  163. import mine from '../../../components/mine/Mine.vue';
  164. import chatindex from '../../../components/mine/chat/Chatindex.vue';
  165. var wv;
  166. export default {
  167. components: {
  168. drawer: drawer,
  169. plusDrawer: plusDrawer,
  170. mine: mine,
  171. chatindex: chatindex
  172. },
  173. data() {
  174. return {
  175. content1: '',
  176. but1: true,
  177. but2: false,
  178. userid: '',
  179. lastUserName: '',
  180. StatusBar: this.StatusBar,
  181. CustomBar: this.CustomBar,
  182. listCurID: '',
  183. list: [],
  184. listCur: '',
  185. send: '1',
  186. receive: '2',
  187. hidden: true,
  188. play: true,
  189. sendname: 'ming',
  190. receivename: 'fang',
  191. search: '',
  192. timer: null,
  193. userList: {
  194. id: '',
  195. nickname: '',
  196. password: '',
  197. remak1: '',
  198. username: '',
  199. remak2: '',
  200. },
  201. biaos: 2,
  202. socketTask_getUserList: '',
  203. inconList: ["form", "favor", "question", "edit"],
  204. drawerList: [{
  205. "name": "聊天通讯"
  206. }, ],
  207. leftNavigationtitle: '我的功能分组',
  208. badge: 22,
  209. address: '',
  210. modalName: null,
  211. plusDrawerList: [],
  212. toggleid: 12,
  213. plusDrawerList: [],
  214. judge: 1,
  215. LastStatement: {
  216. content: '',
  217. receive: '',
  218. send: '',
  219. time: '',
  220. type: '',
  221. },
  222. webshowid:0,
  223. };
  224. },
  225. created: function() {
  226. //this.getUserList();
  227. this.drawerList = uni.getStorageSync('leftlist5');
  228. /* this.pinyin(); */
  229. },
  230. mounted() {
  231. this.getUserList();
  232. this.initial();
  233. },
  234. onLoad() {
  235. let list = [{}];
  236. for (let i = 0; i < 26; i++) {
  237. list[i] = {};
  238. list[i].name = String.fromCharCode(65 + i);
  239. }
  240. this.list = list;
  241. this.listCur = list[0];
  242. },
  243. onHide() {
  244. this.$refs.drawer.closeDrawer();
  245. this.hideModal();
  246. },
  247. onReady() {
  248. let that = this;
  249. /* uni.createSelectorQuery().select('.indexBar-box').boundingClientRect(function(res) {
  250. that.boxTop = res.top
  251. }).exec();
  252. uni.createSelectorQuery().select('.indexes').boundingClientRect(function(res) {
  253. that.barTop = res.top
  254. }).exec(); */
  255. /*
  256. this.pinyin(); */
  257. },
  258. computed: {
  259. sisStageIp: function() {
  260. return this.$store.state.wholeSituationBackStageIp;
  261. },
  262. sisStagePort: function() {
  263. return this.$store.state.wholeSituationBackStagePort;
  264. },
  265. backStageIp: function() {
  266. return this.$store.state.GlobalLocalIp;
  267. },
  268. backStagePort: function() {
  269. return this.$store.state.GlobalLocalPort;
  270. },
  271. windpowerstationNameToId: function() {
  272. return this.$store.state.windpowerstationNameToId;
  273. },
  274. userListData: function() {
  275. var search = this.search;
  276. if (!this.search) {
  277. return [];
  278. } else if (search) {
  279. return this.userList.filter(function(userList) {
  280. return Object.keys(userList).some(function(key) {
  281. return String(userList[key]).toLowerCase().indexOf(search) > -1
  282. })
  283. })
  284. }
  285. return this.products;
  286. },
  287. hasNoData() {
  288. return !this.list.length
  289. }
  290. },
  291. methods: {
  292. initial() {
  293. let userid = uni.getStorageSync('userid');
  294. this.theLastStatement(userid);
  295. },
  296. displayTheData(id) {
  297. // this.theLastStatement(id);
  298. // console.log(this.LastStatement);
  299. // if(this.LastStatement[0].type=="pic"){
  300. // return "[图片]";
  301. // }else{
  302. // return this.LastStatement[0].content;
  303. // }
  304. for (var i = 0; i < this.LastStatement.length; i++) {
  305. if (this.LastStatement[i].receive== id) {
  306. if(this.LastStatement[i].type=="pic"){
  307. return "[图片]";
  308. }else{
  309. return this.LastStatement[i].content;
  310. }
  311. }
  312. };
  313. },
  314. changeState() {
  315. console.log("更改状态")
  316. this.child(this.webshowid,null,0);
  317. this.but1 = true;
  318. this.but2 = false;
  319. this.judge = 1;
  320. //wv.hide();
  321. //this.$set(this.judge,judge,1);
  322. },
  323. showModal(e) {
  324. this.modalName = e.currentTarget.dataset.target;
  325. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  326. },
  327. hideModal() {
  328. this.modalName = null;
  329. this.$refs.plusDrawer.hideModal(this.modalName);
  330. },
  331. falseLogin: function() {
  332. this.removeUsernamePassword();
  333. uni.navigateTo({
  334. url: '/components/login/Login'
  335. });
  336. },
  337. openDrawer: function() {
  338. if (this.$refs.drawer != undefined) {
  339. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList, this.leftNavigationtitle);
  340. } else {
  341. }
  342. },
  343. closeDrawer: function() {
  344. this.drawerIsShow = false;
  345. },
  346. viewUserid: function() {
  347. this.plusDrawerList = uni.getStorageSync('plusList');
  348. },
  349. monitoringAuthority: function() {
  350. this.drawerList = uni.getStorageSync('leftlist5');
  351. },
  352. go(userid, lastUserName, nickname, id, bool) {
  353. let _this = this;
  354. /* if(bool==0){
  355. window.location.href="https://192.168.1.102:4397/websocket/usercontroller/viewoffline?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname;
  356. }
  357. if(bool==1){
  358. window.location.href="https://192.168.1.102:4397/websocket/usercontroller/view?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname;
  359. } */
  360. this.but1 = false;
  361. this.but2 = true;
  362. this.child(id, bool,1);
  363. /*
  364. let _this=this;
  365. if(bool==0){
  366. window.location.href="https://192.168.1.102:4397/websocket/usercontroller/viewoffline?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname;
  367. }
  368. if(bool==1){
  369. window.location.href="https://192.168.1.102:4397/websocket/usercontroller/view?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname;
  370. }
  371. */
  372. },
  373. child(id,bool,state) {
  374. this.$refs.mychild.childMethod(id,bool,state);
  375. this.webshowid=id;
  376. this.judge = 0;
  377. },
  378. accordingOut() {
  379. this.play = true;
  380. this.search = '';
  381. },
  382. accordingTo() {
  383. this.play = false;
  384. },
  385. pinyin(str) {
  386. var l = pinyin.getSpell(str).substring(0, 1);
  387. console.log(l);
  388. },
  389. /* handleCityClick (city) {
  390. this.changeCity(city)
  391. this.$router.push('/')
  392. }, */
  393. closeFrame: function() {
  394. this.count = this.count + 1;
  395. if (this.isFrameShow) {
  396. this.isFrameShow = false;
  397. this.sanJiao = 'sanJiaoDown';
  398. }
  399. },
  400. async getUserList() {
  401. let _this = this;
  402. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  403. this.socketTask_getUserList = uni.connectSocket({
  404. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  405. url: 'ws://' + this.sisStageIp + ':' + this.sisStagePort + '/websocket/pageNumber_4/functionNumber_3/all',
  406. success(data) {
  407. console.log(data);
  408. }
  409. });
  410. /* let windpowerstationid = uni.getStorageSync('windpowerstationName'); */
  411. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  412. this.socketTask_getUserList.onOpen(res => {
  413. console.log('WebSocket连接正常打开中...!');
  414. this.is_open_socket = true;
  415. // 注:只有连接正常打开中 ,才能正常收到消息
  416. this.socketTask_getUserList.onMessage(res => {
  417. /* _this.windpowerstationdetail.getUserList = JSON.parse(res.data); */
  418. _this.lastUserName = uni.getStorageSync('gyeeusername');
  419. _this.userid = uni.getStorageSync('userid');
  420. let templist=JSON.parse(res.data);
  421. _this.userList=[];
  422. for (var i = 0; i < templist.length; i++) {
  423. if(templist[i].id!=_this.userid)
  424. {
  425. _this.userList.push(templist[i]);
  426. }
  427. };
  428. //_this.userList = JSON.parse(res.data);
  429. });
  430. });
  431. },
  432. //获取最后一条语句 '/websocket/chatDetailController/selectLastInfoByUserId?userid='+id
  433. async theLastStatement(id) {
  434. let _this = this;
  435. uni.request({
  436. url: 'http://' + this.sisStageIp + ':' + this.sisStagePort +
  437. '/chatDetailController/selectLastInfoByUserId?userid=' + id,
  438. data: {},
  439. method: 'GET',
  440. success: function(res) {
  441. _this.LastStatement = res.data;
  442. },
  443. fail: () => {
  444. _this.tips = '网络错误,小程序端请检查合法域名';
  445. },
  446. });
  447. },
  448. //获取文字信息
  449. getCur(e) {
  450. this.hidden = false;
  451. this.listCur = this.list[e.target.id].name;
  452. },
  453. setCur(e) {
  454. this.hidden = true;
  455. this.listCur = this.listCur
  456. },
  457. //滑动选择Item
  458. tMove(e) {
  459. let y = e.touches[0].clientY,
  460. offsettop = this.boxTop,
  461. that = this;
  462. //判断选择区域,只有在选择区才会生效
  463. if (y > offsettop) {
  464. let num = parseInt((y - offsettop) / 20);
  465. this.listCur = that.list[num].name
  466. };
  467. },
  468. //触发全部开始选择
  469. tStart() {
  470. this.hidden = false
  471. },
  472. //触发结束选择
  473. tEnd() {
  474. this.hidden = true;
  475. this.listCurID = this.listCur
  476. },
  477. indexSelect(e) {
  478. let that = this;
  479. let barHeight = this.barHeight;
  480. let list = this.list;
  481. let scrollY = Math.ceil(list.length * e.detail.y / barHeight);
  482. for (let i = 0; i < list.length; i++) {
  483. if (scrollY < i + 1) {
  484. that.listCur = list[i].name;
  485. that.movableY = i * 20
  486. return false
  487. }
  488. }
  489. }
  490. },
  491. }
  492. </script>
  493. <style>
  494. body {
  495. font-family: '方正兰亭细黑_GBK';
  496. font-size: 20px;
  497. color: silver;
  498. background: #000;
  499. }
  500. @font-face {
  501. font-family: '方正兰亭细黑_GBK';
  502. src: url(../../../static/fzltxh.TTF);
  503. }
  504. page {
  505. background-color: #1f1f1f;
  506. font-family: '方正兰亭细黑_GBK';
  507. overflow-x: hidden;
  508. }
  509. .indexes {
  510. position: relative;
  511. }
  512. .indexBar {
  513. position: fixed;
  514. right: 0px;
  515. bottom: 0px;
  516. padding: 20upx 20upx 20upx 60upx;
  517. display: flex;
  518. align-items: center;
  519. }
  520. .indexBar .indexBar-box {
  521. width: 40upx;
  522. height: auto;
  523. background: #fff;
  524. display: flex;
  525. flex-direction: column;
  526. box-shadow: 0 0 20upx rgba(0, 0, 0, 0.1);
  527. border-radius: 10upx;
  528. }
  529. .indexBar-item {
  530. flex: 1;
  531. width: 40upx;
  532. height: 40upx;
  533. display: flex;
  534. align-items: center;
  535. justify-content: center;
  536. font-size: 24upx;
  537. color: #888;
  538. }
  539. movable-view.indexBar-item {
  540. width: 40upx;
  541. height: 40upx;
  542. z-index: 9;
  543. position: relative;
  544. }
  545. movable-view.indexBar-item::before {
  546. content: "";
  547. display: block;
  548. position: absolute;
  549. left: 0;
  550. top: 10upx;
  551. height: 20upx;
  552. width: 4upx;
  553. background-color: #f37b1d;
  554. }
  555. .indexToast {
  556. position: fixed;
  557. top: 0;
  558. right: 80upx;
  559. bottom: 0;
  560. background: rgba(0, 0, 0, 0.5);
  561. width: 100upx;
  562. height: 100upx;
  563. border-radius: 10upx;
  564. margin: auto;
  565. color: #fff;
  566. line-height: 100upx;
  567. text-align: center;
  568. font-size: 48upx;
  569. }
  570. .bg-white {
  571. background-color: #242424;
  572. }
  573. .cu-list,
  574. .menu-avatar>.cu-item {
  575. background-color: #242424;
  576. }
  577. .cu-avatar {
  578. height: 20px;
  579. width: 20px;
  580. }
  581. .mar_t {
  582. margin-top: 50px;
  583. }
  584. .text-grey {
  585. margin-top: -10px;
  586. }
  587. .plus {
  588. width: 30px;
  589. height: 45px;
  590. float: right;
  591. color: white;
  592. font-size: 35px;
  593. line-height: 45px;
  594. text-align: right;
  595. margin-right: 2.5%;
  596. }
  597. .top {
  598. width: 100%;
  599. height: 130upx;
  600. padding-top: 5upx;
  601. background-color: #1f1f1f;
  602. position: fixed;
  603. top: 0px;
  604. left: 0px;
  605. z-index: 100;
  606. }
  607. .threeLine {
  608. width: 50px;
  609. height: 45px;
  610. float: left;
  611. }
  612. .text {
  613. width: calc(100% - 100px);
  614. height: 45px;
  615. float: left;
  616. user-select: text;
  617. -webkit-user-select: text;
  618. -moz-user-select: text;
  619. -ms-user-select: text;
  620. color: silver;
  621. line-height: 45px;
  622. margin-top: 11px;
  623. font-size: 18px;
  624. }
  625. .DrawerPage {
  626. position: fixed;
  627. width: 100vw;
  628. height: 100vh;
  629. left: 0vw;
  630. background-color: #1f1f1f;
  631. transition: all 0.4s;
  632. }
  633. .DrawerPage.show {
  634. transform: scale(0.9, 0.9);
  635. left: 85vw;
  636. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  637. transform-origin: 0;
  638. }
  639. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  640. width: 64upx;
  641. height: 64upx;
  642. }
  643. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  644. margin: 0;
  645. }
  646. .DrawerPage .nav {
  647. flex: 1;
  648. }
  649. .DrawerPage .nav .cu-item.cur {
  650. border-bottom: 0;
  651. position: relative;
  652. }
  653. .DrawerPage .nav .cu-item.cur::after {
  654. content: '';
  655. width: 10upx;
  656. height: 10upx;
  657. background-color: currentColor;
  658. position: absolute;
  659. bottom: 10upx;
  660. border-radius: 10upx;
  661. left: 0;
  662. right: 0;
  663. margin: auto;
  664. }
  665. .DrawerPage .cu-bar.tabbar .action {
  666. flex: initial;
  667. }
  668. .display-block {
  669. display: block;
  670. z-index: 99999;
  671. }
  672. .display-none {
  673. display: none;
  674. z-index: -1;
  675. }
  676. </style>