RightBar.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. <template>
  2. <div>
  3. <div class="right-bar">
  4. <ul class="right-bar-center">
  5. <li class="right-bar-item" v-show="storeStatus && storeStatus.uuid">
  6. <a @click="goShop" class="title" target="_blank">
  7. <i class="iconfont icon-dianpu icon-xlg"></i><br/>
  8. <span>店铺</span>
  9. </a>
  10. <!--<div class="sidebar-menu"><a @click="goShop" title="我的店铺" target="_blank">我的店铺</a></div>-->
  11. </li>
  12. <li class="right-bar-item" @mouseenter="loadCarCount()" id="shopCar">
  13. <a @click="goCart" class="title" target="_blank">
  14. <i class="iconfont icon-shopping-cart icon-xlg"></i><br/>
  15. <span>购物车</span>
  16. </a>
  17. <!--<div class="sidebar-menu"><a @click="goCart" title="我的购物车" target="_blank">我的购物车<em><span>(<span v-text="cartCount.count || 0"></span>)</span></em></a></div>-->
  18. </li>
  19. <li class="right-bar-item">
  20. <a @click="dialogVisible = true" class="title">
  21. <i class="iconfont icon-liuyan icon-xlg"></i><br/>
  22. <span>留言板</span>
  23. <!--<div class="sidebar-menu"><a title="留言板" target="_blank">留言板</a></div>-->
  24. </a>
  25. </li>
  26. <li class="right-bar-item contact-menu">
  27. <a href="http://wpa.qq.com/msgrd?v=3&uin=3432892085&site=www.ubtoc.com&menu=yes" target="_blank" class="title">
  28. <i class="iconfont icon-kefu icon-xlg"></i><br/>
  29. <span>在线客服</span>
  30. </a>
  31. <div class="contact-us sidebar-menu">
  32. <p>在线客服:<img src="/images/all/songguo.png" /><a href="http://wpa.qq.com/msgrd?v=3&uin=3432892085&site=www.ubtoc.com&menu=yes" class="contact-btn" target="_blank">联系客服</a></p>
  33. <p>服务电话:400-830-1818</p>
  34. <p>服务邮箱:yrsc@usoftchina.com</p>
  35. <p>工作时间:</p>
  36. <p>周一至周五 9:00-18:00</p>
  37. </div>
  38. </li>
  39. <!-- <li class="right-bar-item contact-menu">
  40. <a href="javascript:void(0)" class="title" @click="goWebChat">
  41. <i class="fa fa-comments-o" aria-hidden="true" style="color: #FFFFFF;">
  42. </i>
  43. <i class="remind-point" v-if="user.logged && chatCount>0"></i>
  44. </a>
  45. <div class="sidebar-menu" title="优软互联"><a @click="goWebChat">优软互联<span v-if="user.logged">({{chatCount}})</span></a></div>
  46. </li>-->
  47. </ul>
  48. <ul class="right-bar-bottom">
  49. <li class="right-bar-item" @mouseenter="loadHistorys()">
  50. <a @click="goHistory" class="title" target="_blank">
  51. <i class="iconfont icon-zuji icon-xlg"></i><br/>
  52. <span>浏览历史</span>
  53. </a>
  54. <!--<div class="sidebar-menu" v-if="!user.logged"><a @click="goHistory" title="浏览记录">浏览记录</a></div>-->
  55. <!--<div class="sidebar-menu" v-if="user.logged && listMe(history).length == 0"><a href="/user#/browsingHistory" title="浏览记录">浏览记录</a></div>-->
  56. <!--<div class="foot-record sidebar-menu" v-if="user.logged && listMe(history).length > 0">-->
  57. <!--<h3><a href="/user#/browsingHistory">浏览历史</a></h3>-->
  58. <!--<dl>-->
  59. <!--<dd v-for="item in listMe(history)">-->
  60. <!--<a :href="'/store/productDetail/' + item.batchCode" target="_blank" :title="item.code" v-text="item.code" v-if="item.status== 1"></a>-->
  61. <!--<a :title="item.code" v-text="item.code" v-if="item.status== 0" disabled="disabled"></a>-->
  62. <!--<div class="hover-shows">-->
  63. <!--<em :class="{ 'off' : item.status== 0}"></em>-->
  64. <!--<span :class="{ 'off' : item.status== 0}">失效</span>-->
  65. <!--<a @click="deleteHistory(item,item.id)">&times;</a>-->
  66. <!--</div>-->
  67. <!--</dd>-->
  68. <!--</dl>-->
  69. <!--</div>-->
  70. </li>
  71. <li class="right-bar-item">
  72. <a @click="toTop()" class="title">
  73. <i class="iconfont icon-arrow-up icon-xlg"></i><br/>
  74. <span>返回顶部</span>
  75. </a>
  76. <!--<div class="sidebar-menu"><a @click="toTop()" title="返回顶部" target="_blank">返回顶部</a></div>-->
  77. </li>
  78. </ul>
  79. </div>
  80. <el-dialog class="dialog"
  81. v-if="dialogVisible"
  82. :visible.sync="dialogVisible"
  83. size="tiny">
  84. <message-board @pageEvent="listenPage" @openBoardEvent="listenOpen"/>
  85. </el-dialog>
  86. <div class="ball-container">
  87. <div v-for="(ball, index) in balls">
  88. <transition name="drop" v-on:before-enter="beforeEnter" v-on:enter="enter" v-on:after-enter="afterEnter">
  89. <div class="ball" v-show="ball.show">
  90. <div class="inner inner-hook"></div>
  91. </div>
  92. </transition>
  93. </div>
  94. </div>
  95. </div>
  96. </template>
  97. <script>
  98. function handler() {}
  99. function whichTransitionEvent() {
  100. let t,
  101. el = document.createElement('surface'),
  102. transitions = {
  103. 'transition': 'transitionend',
  104. 'OTransition': 'oTransitionEnd',
  105. 'MozTransition': 'transitionend',
  106. 'WebkitTransition': 'webkitTransitionEnd'
  107. }
  108. for (t in transitions) {
  109. if (el.style[t] !== undefined) {
  110. return transitions[t]
  111. }
  112. }
  113. }
  114. import { scrollTo } from '~utils/scroll'
  115. import MessageBoard from '~components/default/MessageBoard.vue'
  116. export default {
  117. name: 'right-bar',
  118. data () {
  119. return {
  120. historyLength: [],
  121. dialogVisible: false,
  122. page: 1,
  123. count: 3,
  124. currentPage: 1,
  125. chatCount: 0,
  126. showMyshop: false,
  127. balls: [
  128. {
  129. show: false
  130. },
  131. {
  132. show: false
  133. },
  134. {
  135. show: false
  136. },
  137. {
  138. show: false
  139. },
  140. {
  141. show: false
  142. }
  143. ],
  144. dropBalls: []
  145. }
  146. },
  147. components: {
  148. MessageBoard
  149. },
  150. computed: {
  151. user () {
  152. // console.log(this.$store.state.option)
  153. return this.$store.state.option.user
  154. },
  155. cartCount () {
  156. return this.$store.state.user.history.cartCount.data
  157. },
  158. history () {
  159. let arr = this.$store.state.user.history.historyList.data.slice(0, 8)
  160. return arr
  161. },
  162. enterprise () {
  163. let ens = this.user.data.enterprises
  164. if (ens && ens.length) {
  165. return ens.find(item => item.current) || {enName: this.user.data.userName + '(个人账户)'}
  166. } else {
  167. return {enName: this.user.data.userName + '(个人账户)'}
  168. }
  169. },
  170. tab () {
  171. return this.$store.state.chat.tab.tab.data
  172. },
  173. storeStatus () {
  174. return this.$store.state.option.storeStatus.data
  175. }
  176. },
  177. methods: {
  178. drop(el) {
  179. for (let i = 0; i < this.balls.length; i++) {
  180. let ball = this.balls[i]
  181. if (!ball.show) {
  182. ball.show = true
  183. ball.el = el
  184. this.dropBalls.push(ball)
  185. return
  186. }
  187. }
  188. },
  189. beforeEnter(el) {
  190. let count = this.balls.length
  191. while (count--) {
  192. let ball = this.balls[count]
  193. if (ball.show) {
  194. // setTimeout(() => {
  195. let rect = ball.el.getBoundingClientRect()
  196. let x = -(rect.right - rect.left + 56)
  197. // window.innerHeight * 0.6 - rect.top - rect.height
  198. let y = -(window.innerHeight * 0.6 - rect.top)
  199. el.style.display = ''
  200. if (y > 0) {
  201. el.style.transition = 'all 0.4s cubic-bezier(0,.79,.66,1.42)'
  202. } else {
  203. el.style.transition = 'all 0.4s cubic-bezier(0.49,-0.29,0.75, 0.14)'
  204. }
  205. el.style.webkitTransform = `translate3d(0, ${y}px,0)`
  206. el.style.transform = `translate3d(0, ${y}px,0)`
  207. let inner = el.getElementsByClassName('inner-hook')[0]
  208. inner.style.webkitTransform = `translate3d(${x}px, 0, 0)`
  209. inner.style.transform = `translate3d(${x}px,0,0)`
  210. // }, 10)
  211. }
  212. }
  213. },
  214. enter(el, done) {
  215. let rf = el.offsetHeight // 触发浏览器重绘
  216. // 这个地方为什么要写这个句话,才能第一次执行transition的结束动画
  217. this.$nextTick(() => {
  218. el.style.webkitTransform = 'translate3d(0, 0, 0)'
  219. el.style.transform = 'translate3d(0, 0, 0)'
  220. let inner = el.getElementsByClassName('inner-hook')[0]
  221. inner.style.webkitTransform = 'translate3d(0, 0, 0)'
  222. inner.style.transform = 'translate3d(0, 0, 0)'
  223. let transitionEvent = whichTransitionEvent()
  224. transitionEvent && el.addEventListener(transitionEvent, function() {
  225. done()
  226. })
  227. })
  228. },
  229. afterEnter(el) {
  230. // console.log('钩子函数收尾')
  231. let ball = this.dropBalls.shift()
  232. if (ball) {
  233. ball.show = false
  234. el.style.display = 'none'
  235. let $el = document.getElementById('shopCar')
  236. $el.className = $el.className + ' tranScale'
  237. $el.addEventListener('animationend', () => {
  238. let newClass = $el.className.split(' ')
  239. let index = newClass.findIndex(function (value, index, arr) {
  240. return value === 'tranScale'
  241. })
  242. if (index !== -1) {
  243. newClass.splice(index, 1)
  244. $el.className = newClass.join(' ')
  245. }
  246. })
  247. }
  248. },
  249. listenPage: function (p) {
  250. this.page = p
  251. this.$store.dispatch('getMessageBoardInformation', {page: this.page, count: 3})
  252. },
  253. listenOpen: function (flag) {
  254. this.dialogVisible = flag
  255. },
  256. listMe: function (list) {
  257. return list.filter(function (item) {
  258. return item.isDelete === 1
  259. })
  260. },
  261. loadHistorys () {
  262. if (this.user.logged) {
  263. if (!this.history.length) {
  264. this.$store.dispatch('user/loadHistory')
  265. }
  266. }
  267. },
  268. loadCarCount () {
  269. if (this.user.logged) {
  270. if (!this.cartCount.count) {
  271. this.$store.dispatch('user/CarCount')
  272. }
  273. }
  274. },
  275. toTop () {
  276. scrollTo('body', 300)
  277. },
  278. toBottom () {
  279. scrollTo(window.scrollY + window.innerHeight, 300)
  280. },
  281. deleteHistory (item, id) {
  282. this.$store.dispatch('user/deleteHistory', {id: id})
  283. this.$store.dispatch('user/loadHistory')
  284. },
  285. goLogin: function () {
  286. this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
  287. if (response.data) {
  288. window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  289. }
  290. })
  291. },
  292. goHistory: function () {
  293. if (!this.user.logged) {
  294. this.goLogin()
  295. } else {
  296. window.location.href = '/user#/browsingHistory'
  297. }
  298. },
  299. goCart: function () {
  300. if (!this.user.logged) {
  301. this.goLogin()
  302. } else {
  303. window.open('/user#/cart')
  304. }
  305. },
  306. goShop: function () {
  307. window.location.href = `/store/${this.storeStatus.uuid}`
  308. },
  309. goWebChat: function () {
  310. if (!this.user.logged) {
  311. this.goLogin()
  312. } else {
  313. // 获得窗口的垂直位置
  314. let iTop = (window.screen.availHeight - 30 - 780) / 2
  315. // 获得窗口的水平位置
  316. let iLeft = (window.screen.availWidth - 10 - 1030) / 2
  317. if (this.tab.close) {
  318. this.tab.close()
  319. }
  320. let newTab = window.open('', '即时对话框', 'height=750, width=1000, top=' + iTop + ', left=' + iLeft + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
  321. newTab.close()
  322. newTab = window.open('', '即时对话框', 'height=750, width=1000, top=' + iTop + ', left=' + iLeft + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
  323. this.$store.dispatch('chat/setChatTab', {tab: newTab})
  324. this.$http.get('/basic/enterprise/' + this.enterprise.uu + '/info')
  325. .then(response => {
  326. let obj = {}
  327. obj.enUU = response.data.uu
  328. obj.enterprise = {enUU: response.data.uu, name: response.data.enName}
  329. obj.type = 'LIST'
  330. if (!(/^1\d{10}$/).test(this.user.data.userTel)) {
  331. this.$http.get('/basic/enterprise/' + obj.enUU + '/admin').then(response => {
  332. obj.userPhone = response.data.userTel
  333. this.openWebChat(newTab, obj)
  334. }, err => {
  335. console.log(err)
  336. this.$message.error('暂无卖家管理员手机号!')
  337. })
  338. } else {
  339. obj.userPhone = this.user.data.userTel
  340. this.openWebChat(newTab, obj)
  341. }
  342. }, err => {
  343. console.log(err)
  344. let obj = {}
  345. obj.type = 'LIST'
  346. if (!(/^1\d{10}$/).test(this.user.data.userTel)) {
  347. this.$http.get('/basic/enterprise/' + obj.enUU + '/admin').then(response => {
  348. obj.userPhone = response.data.userTel
  349. this.openWebChat(newTab, obj)
  350. }, err => {
  351. console.log(err)
  352. this.$message.error('暂无卖家管理员手机号!')
  353. })
  354. } else {
  355. obj.userPhone = this.user.data.userTel
  356. this.openWebChat(newTab, obj)
  357. }
  358. })
  359. }
  360. },
  361. openWebChat: function (newTab, obj) {
  362. this.$http.post('https://im.ubtob.com/api/chat/infos?condition=chat_info', obj)
  363. .then(response => {
  364. if (response.data.success) {
  365. newTab.location.href = 'https://im.ubtob.com/chat/visit?gid=' + response.data.content
  366. }
  367. })
  368. },
  369. getChatCount: function () {
  370. if (this.user.logged) {
  371. this.$http.get('https://im.ubtob.com/api/chat/message', {params: {enUU: this.enterprise.uu, operate: 'count_unread', phone: this.user.data.userTel}})
  372. .then(response => {
  373. this.chatCount = response.data.count
  374. })
  375. }
  376. }
  377. }
  378. }
  379. </script>
  380. <style lang="scss" scoped>
  381. @keyframes tranScale{
  382. 0% { transform: scale(1)}
  383. 20% { transform: scale(1.4) }
  384. 40% { transform: scale(1.8) }
  385. 60% { transform: scale(1.4) }
  386. 80% { transform: scale(0.9) }
  387. 100% {transform: scale(1)}
  388. }
  389. .tranScale {
  390. animation: tranScale 0.3s 1 forwards;
  391. }
  392. a[disabled] {
  393. cursor: not-allowed;
  394. }
  395. em,
  396. i {
  397. font-style: inherit;
  398. }
  399. .right-bar ul li {
  400. position: relative;
  401. }
  402. .right-bar ul li .sidebar-menu {
  403. position: absolute;
  404. display: block;
  405. right: 0;
  406. top: 0;
  407. width: 100px;
  408. line-height: 38px;
  409. height: 38px;
  410. color: #ffffff;
  411. background: #555;
  412. -webkit-transform: translateX(100%);
  413. -moz-transform: translateX(100%);
  414. -ms-transform: translateX(100%);
  415. -o-transform: translateX(100%);
  416. transform: translateX(100%);
  417. -webkit-transition: transform 0.5s;
  418. -moz-transition: transform 0.5s;
  419. -ms-transition: transform 0.5s;
  420. -o-transition: transform 0.5s;
  421. transition: transform 0.5s;
  422. z-index: 19;
  423. }
  424. .right-bar ul li .sidebar-menu a {
  425. background-color: #555555;
  426. }
  427. .right-bar ul li:hover a {
  428. background-color: #555555;
  429. }
  430. .right-bar ul li:hover .sidebar-menu {
  431. display: block;
  432. -webkit-transform: translateX(-72px);
  433. -moz-transform: translateX(-72px);
  434. -ms-transform: translateX(-72px);
  435. -o-transform: translateX(-72px);
  436. transform: translateX(-72px);
  437. }
  438. /*浏览记录*/
  439. .right-bar ul li .foot-record {
  440. /* display: none; */
  441. width: 210px !important;
  442. max-height: 230px;
  443. line-height: 30px;
  444. /* right: 200px;*/
  445. top: inherit;
  446. bottom: -100%;
  447. height: inherit;
  448. /*padding-bottom: 10px;*/
  449. }
  450. .right-bar ul li .foot-record h3 {
  451. line-height: 39px;
  452. border-bottom: #767575 1px solid;
  453. text-align: left;
  454. padding-left: 10px;
  455. width: 96%;
  456. display: inline-block;
  457. margin: 0 auto;
  458. font-size: 12px;
  459. height: 39px;
  460. }
  461. .right-bar ul li .foot-record h3:hover a {
  462. color: #fbb029;
  463. }
  464. .right-bar ul li .foot-record h3 a {
  465. color: #fff;
  466. background-color: inherit;
  467. line-height: 39px;
  468. text-align: left;
  469. }
  470. .right-bar ul li .foot-record dl {
  471. padding-top: 5px;
  472. display: inline-block;
  473. background: #555;
  474. }
  475. .right-bar ul li .foot-record dl,
  476. .right-bar ul li .foot-record dl dd {
  477. width: 100%;
  478. margin: 0 auto;
  479. background: #555;
  480. }
  481. .right-bar ul li .foot-record dl dd {
  482. line-height: 22px;
  483. width: 100%;
  484. display: inline-block;
  485. float: left;
  486. height: 22px;
  487. position: relative;
  488. }
  489. .right-bar ul li .foot-record dl dd a {
  490. display: inline-block;
  491. height: 22px;
  492. padding: 0 10px;
  493. width: 91%;
  494. font-size: 12px;
  495. color: #fff;
  496. line-height: 22px;
  497. white-space: nowrap;
  498. overflow: hidden;
  499. text-overflow: ellipsis;
  500. background: none;
  501. text-align: left;
  502. padding-right: 44px;
  503. }
  504. .right-bar ul li a i {
  505. font-size: 20px;
  506. }
  507. .right-bar .remind-point {
  508. width: 8px;
  509. height: 8px;
  510. display: block;
  511. border-radius: 100%;
  512. background: red;
  513. position: relative;
  514. top: -31px;
  515. right: -21px;
  516. }
  517. .right-bar ul li li a:hover div.foot-record {
  518. display: inline-block !important;
  519. }
  520. .right-bar ul li .foot-record dl dd:hover {
  521. background: #fff;
  522. }
  523. .right-bar ul li .foot-record dl dd:hover a {
  524. color: #333;
  525. }
  526. .right-bar ul li .foot-record dl dd:hover div.hover-shows {
  527. display: inline-block;
  528. }
  529. .right-bar ul li .foot-record dl dd div.hover-shows {
  530. position: absolute;
  531. top: 0;
  532. right: 2px;
  533. max-width: 55px;
  534. line-height: 20px;
  535. padding-right: 0;
  536. z-index: 100;
  537. display: none;
  538. }
  539. .right-bar ul li .foot-record dl dd div.hover-shows span {
  540. display: inline-block;
  541. width: 30px;
  542. height: 20px;
  543. text-align: center;
  544. line-height: 20px;
  545. background: #e04b38;
  546. color: #fff;
  547. border-radius: 5px;
  548. opacity: 0;
  549. margin-top: 1px;
  550. }
  551. .right-bar ul li .foot-record dl dd:first-child {
  552. /* margin-top: 5px;*/
  553. }
  554. .right-bar ul li .foot-record dl dd:last-child {
  555. /* margin-bottom: 10px;*/
  556. }
  557. .right-bar ul li .foot-record dl dd div.hover-shows a {
  558. font-size: 23px;
  559. float: right;
  560. width: 20px;
  561. padding: 0;
  562. text-align: center;
  563. color: #999;
  564. top: -2px;
  565. }
  566. .right-bar ul li .foot-record dl dd div.hover-shows a:hover {
  567. color: #fbb029;
  568. }
  569. .right-bar ul li .foot-record dl dd div.hover-shows em {
  570. display: inline-block;
  571. position: absolute;
  572. width: 0;
  573. height: 0;
  574. border-top: 8px solid transparent;
  575. border-left: 7px solid #fbb029;
  576. border-bottom: 8px solid transparent;
  577. left: -158px;
  578. top: 4px;
  579. }
  580. .right-bar ul li .foot-record dl dd div.hover-shows em.off {
  581. border-left: 8px solid #b2b0b0;
  582. }
  583. .right-bar ul li .foot-record dl dd div.hover-shows span.off {
  584. opacity: 1;
  585. }
  586. /*浏览记录结束*/
  587. .right-bar ul li .contact-us {
  588. /*right: 200px;*/
  589. height: 180px;
  590. padding-top: 10px;
  591. width: 210px;
  592. top: -76px;
  593. }
  594. .right-bar ul li .contact-us p {
  595. line-height: 33px;
  596. text-align: left;
  597. padding-left: 10px;
  598. margin-bottom: 0;
  599. white-space: nowrap;
  600. font-size: 12px;
  601. }
  602. .right-bar ul li .contact-us .contact-btn {
  603. width: 62px;
  604. height: 18px;
  605. line-height: 18px;
  606. background: #ef7f03;
  607. display: inline-block;
  608. text-align: center;
  609. color: #fff;
  610. font-size: 12px;
  611. border-radius: 5px;
  612. padding: 0;
  613. }
  614. .right-bar-item {
  615. width: 75px;
  616. /* height: 38px;*/
  617. }
  618. .right-bar .right-bar-item a.title {
  619. display: inline-block;
  620. width: 75px;
  621. height: 75px;
  622. line-height: 25px;
  623. padding: 15px 0;
  624. }
  625. .right-bar {
  626. position: fixed;
  627. z-index: 1000;
  628. right: 0;
  629. top: 0;
  630. width: 75px;
  631. height: 100%;
  632. .right-bar-center {
  633. position: absolute;
  634. top: 60%;
  635. transform: translateY(-50%);
  636. list-style: none;
  637. padding: 0;
  638. width: 100%;
  639. }
  640. .right-bar-bottom {
  641. position: absolute;
  642. right: 0;
  643. bottom: 0;
  644. width: 75px;
  645. }
  646. .right-bar-item {
  647. a {
  648. position: relative;
  649. display: block;
  650. width: 100%;
  651. color: #fff;
  652. background-color: #5078cb;
  653. text-align: center;
  654. -webkit-transition: background-color ease 0.5s;
  655. -moz-transition: background-color ease 0.5s;
  656. -ms-transition: background-color ease 0.5s;
  657. -o-transition: background-color ease 0.5s;
  658. transition: background-color ease 0.5s;
  659. z-index: 20;
  660. font-size: 12px;
  661. }
  662. }
  663. }
  664. .ball {
  665. position: fixed;
  666. right: 0;
  667. top: 56%;
  668. z-index: 200;
  669. transition: all 0.4s cubic-bezier(0.49,-0.29,0.75, 0.14)
  670. /*transition: all 0.4s cubic-bezier(0,.79,.66,1.42);*/
  671. }
  672. .ball .inner {
  673. width: 16px;
  674. height: 16px;
  675. border-radius: 50%;
  676. background: rgb(0, 160, 220);
  677. transition: all 0.4s linear
  678. }
  679. </style>