addressBook.vue 19 KB

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