sidebar.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. <style>
  2. #sidebar {
  3. position: fixed;
  4. z-index: 1000;
  5. right: 0;
  6. top: 0;
  7. width: 36px;
  8. height: 100%;
  9. }
  10. #sidebar .sidebar-content {
  11. position: absolute;
  12. top: 60%;
  13. transform: translateY(-50%);
  14. list-style: none;
  15. padding: 0;
  16. width: 100%;
  17. }
  18. #sidebar .sidebar-content li {
  19. position: relative;
  20. width: 100%;
  21. text-align: center;
  22. }
  23. #sidebar .sidebar-content li a {
  24. position: relative;
  25. display: block;
  26. padding: 5px 0;
  27. line-height: 20px;
  28. width: 100%;
  29. background-color: #5078CB;
  30. text-decoration: none;
  31. -webkit-transition: background-color ease .5s;
  32. -moz-transition: background-color ease 0.5s;
  33. -ms-transition: background-color ease 0.5s;
  34. -o-transition: background-color ease 0.5s;
  35. transition: background-color ease 0.5s;
  36. z-index: 20;
  37. }
  38. #sidebar .sidebar-content li:hover a {
  39. background-color: #555555;
  40. }
  41. #sidebar .sidebar-content li .sidebar-menu {
  42. position: absolute;
  43. display: block;
  44. right: -100%;
  45. top: 0px;
  46. bottom: 0;
  47. width: 200px;
  48. line-height: 40px;
  49. background-color: #555555;
  50. color: #ffffff;
  51. -webkit-transform: translateX(100%);
  52. -moz-transform: translateX(100%);
  53. -ms-transform: translateX(100%);
  54. -o-transform: translateX(100%);
  55. transform: translateX(100%);
  56. -webkit-transition: transform .5s;
  57. -moz-transition: transform .5s;
  58. -ms-transition: transform .5s;
  59. -o-transition: transform .5s;
  60. transition: transform .5s;
  61. z-index: 19;
  62. }
  63. #sidebar .sidebar-content li:hover .sidebar-menu {
  64. display: block;
  65. -webkit-transform: translateX(-72px);
  66. -moz-transform: translateX(-72px);
  67. -ms-transform: translateX(-72px);
  68. -o-transform: translateX(-72px);
  69. transform: translateX(-72px);
  70. }
  71. #sidebar .sidebar-content li .foot-record{
  72. /* display: none; */
  73. width: 210px !important;
  74. max-height: 230px;
  75. line-height: 25px;
  76. /*right: 200px;*/
  77. top: inherit;
  78. bottom: -100%;
  79. /*padding-bottom: 10px;*/
  80. }
  81. /*#sidebar .foot-content li{
  82. overflow: hidden;
  83. }
  84. #sidebar .foot-content li:hover{
  85. overflow: inherit;
  86. }*/
  87. #sidebar .sidebar-content .foot-record h3{
  88. line-height: 39px;
  89. border-bottom: #767575 1px solid;
  90. text-align: left;
  91. padding-left: 10px;
  92. width: 96%;
  93. display: inline-block;
  94. margin: 0 auto;
  95. font-size: 12px;
  96. height: 39px;
  97. }
  98. #sidebar .sidebar-content .foot-record h3:hover a{
  99. color: #fbb029;
  100. }
  101. #sidebar .sidebar-content .foot-record h3 a{
  102. color: #fff;
  103. background-color: inherit;
  104. line-height: 30px;
  105. }
  106. #sidebar .sidebar-content .foot-record dl{
  107. /*padding-top: 5px;*/
  108. }
  109. #sidebar .sidebar-content .foot-record dl,#sidebar .sidebar-content .foot-record dl dd{
  110. width: 100%;
  111. margin: 0 auto;
  112. }
  113. #sidebar .sidebar-content .foot-record dl dd{
  114. line-height: 22px;
  115. width: 100%;
  116. display: inline-block;
  117. float: left;
  118. height: 22px;
  119. position: relative;
  120. }
  121. #sidebar .sidebar-content .foot-record dl dd a{
  122. display: inline-block;
  123. height: 22px;
  124. padding: 0 10px;
  125. width: 100%;
  126. font-size: 12px;
  127. color: #fff;
  128. line-height: 22px;
  129. white-space: nowrap;
  130. overflow: hidden;
  131. text-overflow: ellipsis;
  132. background: none;
  133. text-align: left;
  134. padding-right: 44px;
  135. }
  136. #sidebar .foot-content li a:hover div.foot-record{
  137. display: inline-block !important;
  138. }
  139. #sidebar .sidebar-content .foot-record dl dd:hover{
  140. background: #fff;
  141. }
  142. #sidebar .sidebar-content .foot-record dl dd:hover a{
  143. color: #333;
  144. }
  145. #sidebar .sidebar-content .foot-record dl dd:hover div.hover-shows{
  146. display: inline-block;
  147. }
  148. #sidebar .sidebar-content .foot-record dl dd div.hover-shows{
  149. position: absolute;
  150. top: 0;
  151. right: 2px;
  152. max-width: 55px;
  153. line-height: 20px;
  154. padding-right: 0;
  155. z-index: 100;
  156. display: none;
  157. }
  158. #sidebar .sidebar-content .foot-record dl dd div.hover-shows span{
  159. display: inline-block;
  160. width: 30px;
  161. height: 20px;
  162. text-align: center;
  163. line-height: 20px;
  164. background: #e04b38;
  165. color: #fff;
  166. border-radius: 5px;
  167. opacity: 0;
  168. margin-top: 1px;
  169. }
  170. #sidebar .sidebar-content .foot-record dl dd:first-child{
  171. margin-top: 5px;
  172. }
  173. #sidebar .sidebar-content .foot-record dl dd:last-child{
  174. margin-bottom: 10px;
  175. }
  176. #sidebar .sidebar-content .foot-record dl dd div.hover-shows a{
  177. font-size: 23px;
  178. float: right;
  179. width: 20px;
  180. padding: 0;
  181. text-align: center;
  182. color: #999;
  183. top: -2px;
  184. }
  185. #sidebar .sidebar-content .foot-record dl dd div.hover-shows a:hover{
  186. color: #fbb029;
  187. }
  188. #sidebar .sidebar-content .foot-record dl dd div.hover-shows em{
  189. display: inline-block;
  190. position: absolute;
  191. width: 0;
  192. height: 0;
  193. border-top: 8px solid transparent;
  194. border-left: 7px solid #fbb029;
  195. border-bottom: 8px solid transparent;
  196. left: -158px;
  197. top: 4px;
  198. }
  199. #sidebar .sidebar-content .foot-record dl dd div.hover-shows em.off{
  200. border-left: 8px solid #b2b0b0;
  201. }
  202. #sidebar .sidebar-content .foot-record dl dd div.hover-shows span.off{
  203. opacity: 1;
  204. }
  205. a[disabled] {
  206. cursor: not-allowed;
  207. }
  208. .hover-shows a:hover{
  209. cursor: pointer;
  210. }
  211. #sidebar .sidebar-content li .contact-us{
  212. /*right: 200px;*/
  213. height: 180px;
  214. padding-top: 10px;
  215. width: 210px;
  216. top: -76px;
  217. }
  218. #sidebar .sidebar-content li .contact-us p{
  219. line-height: 33px;
  220. text-align: left;
  221. padding-left: 10px;
  222. margin-bottom: 0;
  223. white-space: nowrap;
  224. }
  225. #sidebar .sidebar-content li .contact-us .contact-btn{
  226. width: 62px;
  227. height: 18px;
  228. line-height: 18px;
  229. background: #ef7f03;
  230. display: inline-block;
  231. text-align: center;
  232. color: #fff;
  233. font-size: 12px;
  234. border-radius: 5px;
  235. padding: 0;
  236. }
  237. #sidebar .sidebar-content li .sidebar-menu a{
  238. padding: 0;
  239. line-height: 40px;
  240. color: #fff;
  241. }
  242. .massage:hover{
  243. cursor: pointer;
  244. }
  245. /*#sidebar .sidebar-content li.contact-list{
  246. overflow: hidden;
  247. }
  248. #sidebar .sidebar-content li.contact-list:hover{
  249. overflow: inherit;
  250. }*/
  251. em{
  252. font-style: inherit;
  253. }
  254. /*查看大图*/
  255. #image-box .x-floating-wrap,.image-box .x-floating-wrap {
  256. position: fixed;
  257. z-index: 99998;
  258. background: #000;
  259. top: 0;
  260. left: 0;
  261. width: 100%;
  262. height: 100%;
  263. opacity: 0.5;
  264. }
  265. #image-box,.image-box{
  266. display:table; overflow:hidden; margin-left:50px; _position:relative; width: 1200px;height: 700px;
  267. position: fixed;
  268. top: 50%;
  269. margin-top: -350px;
  270. left: 50%;
  271. margin-left: -600px;
  272. z-index: 2000;
  273. }
  274. #image-box .x-floating,.image-box .x-floating {
  275. vertical-align:middle !important;
  276. display:table-cell;
  277. text-align:center;
  278. _position:absolute;
  279. _top:50%; _left:50%;
  280. top: inherit !important;
  281. left: inherit !important;
  282. }
  283. #image-box .x-floating img ,.image-box .x-floating img {
  284. margin: auto auto;
  285. max-width: 970px !important;
  286. max-height: 600px !important;
  287. -webkit-user-select: none;
  288. -moz-user-select: none;
  289. -ms-user-select: none;
  290. user-select: none;
  291. }
  292. #image-box .x-floating-wrap,.image-box .x-floating-wrap{
  293. z-index: 1000000 !important;
  294. }
  295. #item-content{
  296. color:#fff; display:inline-block; _position:relative; _top:-50%; _left:-50%;
  297. position: relative;
  298. z-index: 10000000;
  299. }
  300. #item-content div.x-close-wrap{
  301. position: absolute;
  302. right: -15px;
  303. line-height: 30px;
  304. top: -13px;
  305. color: #fff;
  306. width: 35px;
  307. height: 35px;
  308. background: rgba(0, 0, 0, 0.5);
  309. border-radius: 100%;
  310. opacity: 1;
  311. margin: 0;
  312. z-index: 100000;
  313. min-height: initial;
  314. text-align: center;
  315. }
  316. #item-content div.x-close-wrap a{
  317. position: relative;
  318. left: 0;
  319. bottom: 0;
  320. font-size: 34px;
  321. color: #fff;
  322. }
  323. #item-content div.x-close-wrap a:hover{
  324. color: #fff !important;
  325. }
  326. #item-content div.x-close-wrap:hover{
  327. cursor: pointer;
  328. opacity: .9;
  329. }
  330. #item-content div.x-close-wrap img{
  331. width: 30px !important;
  332. height: 30px !important;
  333. }
  334. #item-content .img{
  335. position: relative;
  336. z-index: 10;
  337. }
  338. #sidebar .remind-point {
  339. width: 8px;
  340. height: 8px;
  341. display: block;
  342. border-radius: 100%;
  343. background: red;
  344. position: relative;
  345. top: -31px;
  346. right: -27px;
  347. }
  348. </style>
  349. <div id="sidebar">
  350. <ul class="sidebar-content">
  351. <li>
  352. <a href="user#/cart" target="_blank"><img src="static/img/icon/cart.png"/></a>
  353. <div class="sidebar-menu" style="width: 100px"><a href="user#/cart" title="我的购物车" target="_blank">我的购物车<em><span ng-if="userInfo">(<span ng-bind="countCart || 0 | number"></span>)</span></em></a></div>
  354. </li>
  355. <!--<li>
  356. <a href="javascript:void(0)"><img src="static/img/icon/phone.png"/></a>
  357. <div class="sidebar-menu">服务电话:400-830-1818</div>
  358. </li>
  359. <li>
  360. <a href="javascript:void(0)"><img src="static/img/icon/mail.png"/></a>
  361. <div class="sidebar-menu">服务邮箱:yrsc@usoftchina.com</div>
  362. </li>-->
  363. <li ng-controller="MessageBarCtrl">
  364. <a href="javascript:void(0)" ng-click="openMessagePanel()"><img src="static/img/icon/talk.png"/></a>
  365. <div class="massage sidebar-menu" style="width: 100px" ng-click="openMessagePanel()" title="留言板">留言板</div>
  366. </li>
  367. <li class="contact-list">
  368. <a href="http://wpa.qq.com/msgrd?v=3&uin=3432892085&site=www.ubtoc.com&menu=yes" target="_blank"><img src="static/img/icon/contact.png"/></a>
  369. <div class="contact-us sidebar-menu">
  370. <p>在线客服:<img src="static/img/common/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>
  371. <p>服务电话:400-830-1818</p>
  372. <p>服务邮箱:yrsc@usoftchina.com</p>
  373. <p>工作时间:</p>
  374. <p>周一至周五 9:00-18:00</p>
  375. </div>
  376. </li>
  377. <!-- TODO huxz IM暂时不放出 -->
  378. <li ng-controller="WebChatCtrl">
  379. <a href="javascript:void(0)" ng-click="goWebChat()" style="width: 36px; height: 38px; line-height: 30px;"><i class="fa fa-comments-o" aria-hidden="true" style="font-size: 18px;color: #FFFFFF;"></i><!--ng-class="{ 'fa-comments': countData > 0, 'fa-comments-o': countData <= 0 }"-->
  380. <i class="remind-point" ng-if="countData > 0"></i><!--<img src="static/img/icon/talk.png"/>-->
  381. </a>
  382. <div class="massage sidebar-menu" style="width: 100px;" title="优软客服">优软互联<em><span ng-if="userInfo">(<span ng-bind="countData || 0 | number"></span>)</span></em></div>
  383. </li>
  384. <!--<li ng-controller="ScrollToTopCtrl">-->
  385. <!--<a href="javascript:void(0)" ng-click="scrollToTop()"><img src="static/img/icon/top.png"/></a>-->
  386. <!--<div class="sidebar-menu" style="width: 100px">返回顶部</div>-->
  387. <!--</li>-->
  388. </ul>
  389. </div>
  390. <div id="sidebar" style="height: 76px;bottom: 10px;top: inherit;">
  391. <ul class="foot-content sidebar-content" ng-controller="ScrollToTopCtrl">
  392. <li>
  393. <a href="user#/browsingHistory"><img src="static/img/icon/foot.png"/></a>
  394. <div class="foot-record sidebar-menu" ng-show="history.length ==0" style="bottom: -1px;width: 100px !important;">
  395. <h3><a href="user#/browsingHistory">&nbsp;&nbsp;&nbsp;浏览历史</a></h3>
  396. </div>
  397. <div class="foot-record sidebar-menu" ng-show="!userInfo" style="bottom: -1px;width: 100px !important;">
  398. <h3><a href="user#/browsingHistory">&nbsp;&nbsp;&nbsp;浏览历史</a></h3>
  399. </div>
  400. <div class="foot-record sidebar-menu" ng-show="history.length != 0 && userInfo">
  401. <h3><a href="user#/browsingHistory">浏览历史</a></h3>
  402. <dl>
  403. <!--<dd>
  404. <a href="" title="DS5VCOEST15jDS5VCOEST15j">DS5VCOEST15jDS5VCOEST15j</a>
  405. <div class="hover-shows">
  406. <em class="off"></em>
  407. <span class="off">失效</span>
  408. <a href="#">&times;</a>
  409. </div>
  410. </dd>-->
  411. <dd ng-repeat="item in history | limitTo : 8">
  412. <a ng-show="item.status== 1" href="{{'store/productDetail/' + item.batchCode}}" target="_blank"><span title="{{item.code}}" ng-bind="item.code"></span></a>
  413. <a ng-show="item.status== 0" disabled="disabled"><span sytle="color:#999;" title="{{item.code}}" ng-bind="item.code"></span></a>
  414. <div class="hover-shows">
  415. <em ng-class="{ 'off' : item.status== 0}"></em>
  416. <span ng-class="{ 'off' : item.status == 0}">失效</span>
  417. <a ng-click="deleteHistory(item.id)">&times;</a>
  418. </div>
  419. </dd>
  420. </dl>
  421. </div>
  422. </li>
  423. <li>
  424. <a href="javascript:void(0)" ng-click="scrollToTop()"><img src="static/img/icon/top.png"/></a>
  425. <div class="massage sidebar-menu" style="width: 100px" title="返回顶部" ng-click="scrollToTop()">返回顶部</div>
  426. </li>
  427. </ul>
  428. </div>
  429. <div id="image-box" style="display: none">
  430. <div class="x-floating-wrap"></div>
  431. <div class="x-floating">
  432. <div id="item-content">
  433. <div class="x-close-wrap"><a href="javascript:void(0);">&times;</a></div>
  434. <div class="img"><img/></div>
  435. </div>
  436. </div>
  437. </div>