RightBar.vue 20 KB

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