addressBook.vue 19 KB

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