store_header.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. <style>
  2. body{
  3. font-family: "Microsoft Yahei", "微软雅黑";
  4. }
  5. #nav_fragment {
  6. margin-bottom: 20px;
  7. }
  8. #nav_fragment .shop-name {
  9. font-size: 24px;
  10. color: RGB(50,50,50);
  11. }
  12. #nav_fragment div#shop {
  13. width: 440px;
  14. padding: 5px;
  15. }
  16. #nav_fragment .shop-info {
  17. font-size: 12px;
  18. color: rgb(50,50,50);
  19. }
  20. #nav_fragment .shop-data {
  21. font-size: 12px;
  22. line-height: 25px;
  23. font-weight: 600;
  24. color: RGB(255,0,0);
  25. }
  26. #nav_fragment .btn-nav{
  27. width: 40px;
  28. height: 20px;
  29. line-height: 14px;
  30. }
  31. #nav_fragment .btn-nav .watch {
  32. font-size: 12px;
  33. color: white;
  34. }
  35. #nav_fragment .btn-nav .message {
  36. font-size: 12px;
  37. color: rgb(50,50,50);
  38. }
  39. #nav_fragment div.dropdown {
  40. margin-top: -5px;
  41. padding: 5px;
  42. }
  43. #nav_fragment .shop-contact {
  44. font-size: 14px;
  45. color: rgb(120,120,120);
  46. line-height: 25px;
  47. }
  48. #nav_fragment .shop-contact a{
  49. color: rgb(33,71,151);
  50. }
  51. #nav_fragment #search_input {
  52. height: 40px;
  53. font-size: 16px;
  54. font-family: '微软雅黑';
  55. border: 2px solid #5078cb;
  56. border-top-left-radius: 0px;
  57. border-bottom-left-radius: 0px;
  58. line-height: 40px;
  59. }
  60. #nav_fragment #search_input:focus {
  61. border-color: #5078cb;
  62. outline: 0;
  63. -webkit-box-shadow: none;
  64. box-shadow: none;
  65. }
  66. #nav_fragment #search_btn {
  67. background-color: #5078cb;
  68. color: rgb(255, 255, 255);
  69. font-size: 16px;
  70. width: 78px;
  71. height: 40px;
  72. border: 2px solid #5078cb;
  73. border-radius: 0;
  74. }
  75. #nav_fragment #search_btn_this {
  76. height: 36px;
  77. line-height: 36px;
  78. padding-top: 0px;
  79. padding-bottom: 0px;
  80. font-size: 16px;
  81. font-weight: 600;
  82. color: #5078cb;
  83. background: #fff;
  84. border-radius: 0;
  85. border: 1px #5078cb solid;
  86. }
  87. #nav_fragment .my-cart {
  88. margin-top: 20px;
  89. margin-left: 20px;
  90. }
  91. #nav_fragment .my-cart #my-cart{
  92. font-size: 14px;
  93. color: #5078cb;
  94. }
  95. #nav_fragment .my-cart .badge {
  96. background-color: #ff0000;
  97. position: absolute;
  98. top: -10px;
  99. }
  100. #nav_fragment .list-unstyled {
  101. list-style: none;
  102. }
  103. #nav_fragment a:hover,a:focus {
  104. text-decoration: none;
  105. }
  106. #nav_fragment .row>div {
  107. float: left;
  108. }
  109. #nav_fragment #shop {
  110. width: 100%;
  111. position: absolute;
  112. float: left;
  113. }
  114. #nav_fragment #search-group {
  115. padding-top: 20px;
  116. margin-left: 10px;
  117. padding-left: 20px;
  118. top: -12px;
  119. position: relative;
  120. }
  121. #nav_fragment #search-group .input-group {
  122. margin-right: 10px;
  123. float: left;
  124. width: 480px;
  125. }
  126. #nav_fragment .dropdown .dropdown-menu .dropdown-btn {
  127. float: left;
  128. margin-top: 30px;
  129. }
  130. #nav_fragment .dropdown .dropdown-score .description {
  131. padding-top: 10px;
  132. color: #323232;
  133. font-size: 12px;
  134. }
  135. #nav_fragment .dropdown .dropdown-score .score {
  136. display: inline-block;
  137. padding-top: 5px;
  138. color: #FF6868;
  139. font-size: 12px;
  140. }
  141. #nav_fragment .dropdown .dropdown-menu .dropdown-score>div>div {
  142. margin-top: 0px;
  143. width: 25px;
  144. margin-right: 10px;
  145. }
  146. #nav_fragment .shop-score {
  147. margin-top: 20px;
  148. margin-left: 70px;
  149. }
  150. #nav_fragment .shop-score>div>div {
  151. margin-right: 10px;
  152. width: 25px;
  153. }
  154. #nav_fragment .hot-search .active-search-item {
  155. color: #ff0101;
  156. font-size: 13px;
  157. display: inline-block;
  158. margin-right: 1em;
  159. }
  160. #nav_fragment .hot-search .resources {
  161. font-size: 12px;
  162. font-family: "Microsoft Yahei", "微软雅黑";
  163. color: rgb(250,50,50);
  164. }
  165. #nav_fragment .hot-search .hot-word {
  166. font-size: 12px;
  167. color: rgb(50,50,50);
  168. margin-left: 20px;
  169. }
  170. #nav_fragment .drop-down-active {
  171. z-index: 20;
  172. -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(210,209,209,.9);
  173. box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(210,209,209,.9);
  174. border: #f5f5f5 1px solid;
  175. background-color: white;
  176. transition: dispaly .5s ease;
  177. }
  178. .hot-search{
  179. margin-top: 5px;
  180. }
  181. .hot-search .static{
  182. color: #f00;
  183. }
  184. .hot-search a{
  185. color: #838383;
  186. }
  187. .hot-search a:hover{
  188. color: #f00;
  189. }
  190. .my-cart .btn{
  191. top: -8px;
  192. position: relative;
  193. }
  194. #search-group .association {
  195. position: absolute;
  196. left: 0;
  197. top: 100%;
  198. right: 61px;
  199. list-style: none;
  200. -webkit-padding-start: 0;
  201. background: #ffffff;
  202. border: 1px solid #dddddd;
  203. z-index: 21;
  204. }
  205. #search-group .association li {
  206. padding: 0 15px;
  207. line-height: 30px;
  208. text-align: left;
  209. font-family: "Microsoft Yahei";
  210. }
  211. #search-group .association li:hover {
  212. background: #EEEEEE;
  213. cursor: pointer;
  214. }
  215. .text-right{
  216. text-align: right;
  217. }
  218. .text-right a:hover{
  219. color: #d32526 !important;
  220. text-decoration: underline;
  221. }
  222. .icon-style img{
  223. vertical-align: top;
  224. position: relative;
  225. top: -9px;
  226. }
  227. </style>
  228. <div id="nav_fragment">
  229. <div class="container">
  230. <header></header>
  231. <div class="row" style="height: 120px; padding-top: 30px; margin: 0;" ng-controller="StoreHeaderCtrl">
  232. <!--&lt;!&ndash; 商城LOGO &ndash;&gt;
  233. <div style="width: 120px;">
  234. <a href="./" target="_blank">
  235. <img src="static/img/common/uas_mall.png" />
  236. </a>
  237. </div>-->
  238. <!-- 店铺信息以及下拉菜单 -->
  239. <div id = "shop" ng-class="{ 'drop-down-active' : isOpen }" ng-mouseleave="closeDropDown()">
  240. <div class="dropdown">
  241. <div style="width: 440px;">
  242. <!--<div class="dropdown-score" style="width: 90px;margin-right: 0; float: right;">
  243. <div class="row" style="margin: 0;">
  244. <div class="description">质量 <br/><span class="score">4.9</span></div>
  245. <div class="description">服务 <br/><span class="score">4.8</span></div>
  246. <div class="description">物流 <br/><span class="score">4.7</span></div>
  247. </div>
  248. </div>-->
  249. <div class="dropdown-btn" style="margin-top: 0;">
  250. <div style="margin-bottom: 15px;">
  251. <a role="button" class="dropdown-toggle" ng-mouseover="openDropDown()">
  252. <span class="shop-name" >{{storeInfo.storeName}}</span>
  253. <span><i class="fa fa-angle-down fa-fw" style="font-size: 20px;"></i></span>
  254. </a>
  255. </div>
  256. <div class="icon-style">
  257. <button class="btn btn-xs btn-danger btn-nav" ng-hide="isFocus" ng-click="focus(storeInfo.id, storeInfo.storeName)"><span class="watch">关注</span></button>
  258. <button class="btn btn-xs btn-default btn-nav" ng-show="isFocus" style="width:50px"><span>已关注</span></button>
  259. <!--<button class="btn btn-xs btn-default btn-nav"><span class="message">留言</span></button>-->
  260. <!--<button class="btn btn-xs btn-danger btn-nav" ng-if="storeInfo.type == 'ORIGINAL_FACTORY'"><span class="watch">原厂</span></button>
  261. <button class="btn btn-xs btn-primary btn-nav" ng-if="storeInfo.type == 'AGENCY'"><span class="watch">代理</span></button>
  262. <button class="btn btn-xs btn-success btn-nav" ng-if="storeInfo.type == 'DISTRIBUTION'"><span class="watch">经销</span></button>-->
  263. <span ng-if="storeInfo.type == 'ORIGINAL_FACTORY'">&nbsp;<img src="static/img/icon/icon-factory.png"/></span>
  264. <span ng-if="storeInfo.type == 'AGENCY'">&nbsp;<img src="static/img/icon/icon-agent.png"/></span>
  265. <span ng-if="storeInfo.type == 'DISTRIBUTION'">&nbsp;<img src="static/img/icon/icon-distribution.png"/></span>
  266. <span ng-if="storeInfo.type == 'CONSIGNMENT'">&nbsp;<img src="static/img/icon/consignment.png"/></span>
  267. </div>
  268. </div>
  269. <div class="clearfix"></div>
  270. </div>
  271. <div style="background: #FFFFFF;" ng-if="isOpen">
  272. <!-- 星星显示TODO -->
  273. <!--<ul class="list-unstyled" style=" border-bottom: 1px solid #eee;padding: 15px 0;">
  274. <li>
  275. <span class="shop-info">总订单量:</span><span class = "shop-data">暂无数据</span>
  276. &lt;!&ndash;<span class="shop-info">单</span>&ndash;&gt;
  277. </li>
  278. <li>
  279. <span class="shop-info">好评率:</span><span class = "shop-data">暂无数据</span>
  280. </li>
  281. <li>
  282. <span class="shop-info">产品质量:</span><span class = "shop-data">暂无数据</span>
  283. </li>
  284. <li>
  285. <span class="shop-info">服务态度:</span><span class = "shop-data">暂无数据</span>
  286. </li>
  287. <li>
  288. <span class="shop-info">物流速度:</span><span class = "shop-data">暂无数据</span>
  289. </li>
  290. </ul>-->
  291. <ul class = "shop-contact list-unstyled" style="padding: 15px 0; margin-bottom: 0; border-top: #e8e8e8 1px solid; margin-top: 20px;">
  292. <li ng-if="storeInfo.enterprise.enTel.length > 0">
  293. <span>电话:</span><span ng-bind="storeInfo.enterprise.enTel"></span>
  294. </li>
  295. <li ng-if="storeInfo.enterprise.enFax.length > 0">
  296. <span>传真:</span><span ng-bind="storeInfo.enterprise.enFax"></span>
  297. </li>
  298. <li ng-if="storeInfo.enterprise.enAddress.length > 0">
  299. <span>地址:</span><span ng-bind="storeInfo.enterprise.enAddress"></span>
  300. </li>
  301. <!--<li>
  302. <span>传真:</span><span ng-bind="storeInfo.enterprise.enFax || '空'"></span>
  303. </li>
  304. <li>
  305. <span>主代理:</span>
  306. &lt;!&ndash;<span ng-if="storeInfo.qualifications && storeInfo.qualifications.length > 0" ng-repeat="qualification in storeInfo.qualifications">{{qualification}}</span>&ndash;&gt;
  307. <span>空</span>
  308. </li>-->
  309. <li class="text-right">
  310. <a ng-href="{{ 'store/' + storeInfo.uuid + '#/description' }}">了解更多&gt;</a>
  311. </li>
  312. </ul>
  313. </div>
  314. </div>
  315. </div>
  316. <!-- 搜索框 -->
  317. <div id="search-group" style="margin-left: 450px;" ng-controller="SearchCtrl">
  318. <div style="width: 100%;">
  319. <div class="input-group">
  320. <input id="search_input" ng-model="keyword" ng-change="onChange()" type="text" class="form-control" placeholder="型号/类目/品牌" ng-search="search()" ng-focus="onFocus()" ng-blur="onBlur()" ng-keyup="onKeyup()" autocomplete="off"/>
  321. <span class="input-group-btn">
  322. <button type="button" class="btn" id="search_btn" ng-click="search()">&nbsp;搜&nbsp;索&nbsp;</button>
  323. </span>
  324. <ul class="association" ng-show="associate || associateEnter" ng-mouseenter="onAssociateEnter()"
  325. ng-mouseleave="onAssociateLeave()">
  326. <li ng-repeat="as in associates" ng-bind="as" ng-class="{'active': $index==selectIndex}"
  327. ng-click="onAssociateClick(as)"></li>
  328. </ul>
  329. </div>
  330. <div>
  331. <button type="button" class="btn" style="display: none;" id="search_btn_this" ng-click="search(this)">搜本店</button>
  332. </div>
  333. <div class="clearfix"></div>
  334. </div>
  335. <div class="hot-search">
  336. <ul class="list-untyled active-search-body" style="padding: 0;">
  337. <li class="active-search-item">热门搜索</li>
  338. <li class="active-search-item" ng-repeat="hw in hotwords"><a href="{{hw.url}}" ng-bind="hw.name"></a></li>
  339. </ul>
  340. </div>
  341. </div>
  342. <!-- 购物车按钮 -->
  343. <!-- <div class="my-cart">
  344. <a ng-href="{{rootPath + '/user#cart'}}">
  345. <button type="button" class="btn btn-default" id="btn-cart" ng-click="">
  346. <span id="my-cart">
  347. <i class="fa fa-shopping-cart fa-lg"></i>
  348. 我的购物车
  349. </span>
  350. <span ng-bind="countCart || 0" class="badge">0</span>
  351. </button>
  352. </a>
  353. </div> -->
  354. </div>
  355. </div>
  356. </div>