header.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <header id="globalHead" xmlns:th="http://www.w3.org/1999/xhtml" :class="isFiexd ? 'fiexd': ''">
  2. <!--顶部导航-->
  3. <div class="baseHeadTop">
  4. <div class="wrap clear">
  5. <div class="header_top_left">欢迎来到采美采购服务平台</div>
  6. <div class="header_top_left"></div>
  7. <ul class="header_top_ul">
  8. <li class="headsupplier">
  9. <a class="tab_name">供应商服务</a>
  10. <div class="supplierData">
  11. <div class="supplierLink" v-for="(item, index) in activeLinks" :key="index" @click="goHeaderLink(item.link)">{{item.title}}</div>
  12. </div>
  13. </li>
  14. <li class="headmsg">
  15. <a v-if="userIdentity===3" @click="goMsgLinkFn('/supplier/message/list.html')" href="javascript:void(0)" class="WEB-icon msg-btn">消息<em v-text="'('+noticeNum+')'"></em></a>
  16. <a v-else @click="goMsgLinkFn('/user/message/list.html')" href="javascript:void(0)" class="WEB-icon msg-btn">消息<em v-text="'('+noticeNum+')'"></em></a>
  17. </li>
  18. <li class="headCart">
  19. <a v-if="userIdentity!=3" href="javascript:void(0)" class="addBtn icon" @click="goCartsLinkFn" onclick="_czc.push(['_trackEvent','顶部导航','购物车','点击','','Um_Event_Cart'])">购物车<em v-text="'('+headCart.cartCount+')'"></em></a>
  20. <div class="cartData">
  21. <div v-if="headCart.cartCount>0">
  22. <div class="cartMain">
  23. <div class="cartItem" v-for="cart in headCart.cartList">
  24. <a href="javascript:void(0)" @click="productDetailsFn(cart.productId)">
  25. <img :src="cart.image">
  26. <span class="name" v-text="cart.name"></span>
  27. <span class="unit" v-text="'包装规格:'+cart.unit"></span>
  28. <span class="unit" v-text="'数量:'+cart.number"></span>
  29. <span class="price" v-text="'¥'+parseFloat(cart.price).toFixed(2)"></span>
  30. </a>
  31. <span class="delBtn" @click="DeleteCartProducts(cart.skuId)"></span>
  32. </div>
  33. </div>
  34. <div class="cartBtm">
  35. <span>共计:<span v-text="headCart.productCount"></span> 件</span>
  36. <span>合计:<span v-text="parseFloat(headCart.priceTotal).toFixed(2)"></span> 元</span>
  37. <a class="btn" href="/shopping/cart.html" rel="nofollow">去购物车结算</a>
  38. </div>
  39. </div>
  40. <div v-else class="empty">
  41. <img src="/img/common/empty_cart.png" alt="空购物车">
  42. <p>购物车暂无商品</p>
  43. <p v-if="!loginStatus">请先<a href="/login.html" rel="nofollow">登录</a>添加商品到购物车</p>
  44. </div>
  45. </div>
  46. </li>
  47. <li v-if="GLOBAL_USER_IDENTITY !== 3"><a :href="GLOBAL_USER_ID === 0 ? '/login.html' : '/user/member.html'">超级会员</a></li>
  48. <li v-if="loginStatus" id="mGlobalMenu" @click="hideGlobalMenu()">
  49. <a class="cTab" href="javascript:void(0);" v-if="userIdentity == 3" v-text="userData.name"></a>
  50. <a class="cTab" href="javascript:void(0);" v-else v-text="userData.name"></a>
  51. <div class="cShow" v-if="userIdentity == 4 || userIdentity == 2">
  52. <a href="/user/dashboard.html" rel="nofollow">我的采美</a>
  53. <a href="/user/setting/information.html" rel="nofollow">机构资料</a>
  54. <a v-if="!isPC" @click="goMsgLinkFn('/user/message/list.html')" href="javascript:void(0);">我的消息<span>({{noticeNum}})</span></a>
  55. <a href="javascript:void(0);" @click="userLogOut()">退出登录</a>
  56. </div>
  57. <div class="cShow" v-if="userIdentity == 3">
  58. <a href="/supplier/dashboard.html" rel="nofollow">我的采美</a>
  59. <a href="javascript:void(0);" @click="pageLinkSupplier()">店铺管理</a>
  60. <a v-if="!isPC" @click="goMsgLinkFn('/supplier/message/list.html')" href="javascript:void(0);">我的消息<span>({{noticeNum}})</span></a>
  61. <a href="javascript:void(0);" @click="userLogOut()">退出登录</a>
  62. </div>
  63. </li>
  64. <template v-else>
  65. <li><a href="/club/register.html" rel="nofollow" onclick="_czc.push(['_trackEvent','顶部导航','注册','点击','','Um_Event_Regirster'])">注册</a></li>
  66. <li><a href="/login.html" rel="nofollow">登录</a></li>
  67. </template>
  68. </ul>
  69. </div>
  70. </div>
  71. <!--搜索及购物车-->
  72. <div class="baseHeadCenter">
  73. <div class="wrap clear">
  74. <a href="javascript:void(0);" class="h5Only mClassBtn mIcon" title="分类"></a>
  75. <a href="/" class="logo">
  76. <img class="pcOnly" src="/img/base/logo.png" alt="采美 生美/医美采购服务平台" />
  77. <img class="h5Only" src="/img/base/logo_m.png" alt="采美 生美/医美采购服务平台" />
  78. </a>
  79. <div class="mf h5Only mUserCenter">
  80. <template v-if="loginStatus">
  81. <a class="mUserIcon mIcon superVip" href="/user/member.html" v-if="!isPC && userIdentity != 3" title="超级会员" rel="nofollow"></a>
  82. <a href="/shopping/cart.html" :class="loginStatus?'mAddCart mIcon':'mAddCart mIcon toLogin'" v-if="!isPC && userIdentity != 3" title="购物车" rel="nofollow"></a>
  83. <!-- <a v-if="userIdentity===3" @click="goMsgLinkFn('/supplier/message/list.html')" href="javascript:void(0);" :class="loginStatus?'mNotice H5-icon':'mNotice H5-icon toLogin'" title="消息" rel="nofollow"></a>-->
  84. <!-- <a v-else @click="goMsgLinkFn('/user/message/list.html')" href="javascript:void(0);" :class="loginStatus?'mNotice H5-icon':'mNotice H5-icon toLogin'" title="消息" rel="nofollow"></a>-->
  85. <a @click="showGlobalMenu()" class="mUserIcon mIcon" href="javascript:void(0);" title="个人中心" rel="nofollow"></a>
  86. </template>
  87. <template v-else>
  88. <a class="mUserIcon mIcon superVip" :href="GLOBAL_USER_ID === 0 ? '/login.html' : '/user/member.html'" title="超级会员" rel="nofollow"></a>
  89. <a href="/login.html" :class="loginStatus?'mAddCart mIcon':'mAddCart mIcon toLogin'" title="购物车" rel="nofollow"></a>
  90. <a class="mUserIcon mIcon toLogin" href="javascript:void(0);" title="个人中心" rel="nofollow"></a>
  91. </template>
  92. </div>
  93. <div class="searchBox" id="topSearch">
  94. <div class="search auto-input" id="autoInput">
  95. <div class="jqSelect">
  96. <div class="pc">
  97. <span data-select="0">商品</span>
  98. <ul>
  99. <li data-id="0">商品</li>
  100. </ul>
  101. </div>
  102. <select>
  103. <option value="0">商品</option>
  104. <option value="1">供应商</option>
  105. <!-- <option value="2">项目仪器</option>-->
  106. </select>
  107. </div>
  108. <input class="keyword" type="text" placeholder="请输入搜索关键词" maxlength="30" />
  109. <a class="searchBtn icon mIcon" href="javascript:void(0);" onclick="_czc.push(['_trackEvent','顶部导航','搜索按钮','点击','','Um_Event_SearchButton'])"></a>
  110. </div>
  111. <!-- <div class="supplierH5" v-if="!isPC && (userIdentity !== 4 && userIdentity !== 2)">-->
  112. <!-- <a class="mIcon supplier_H5" href="/supplier-login/index.html" title="供应商服务" rel="nofollow"></a>-->
  113. <!-- </div>-->
  114. <!-- 热门搜索关键词 -->
  115. <div class="hotKey">
  116. <span th:each="word,wordStat: ${searchHotWord}">
  117. <em class="word" th:text="${word}"></em>
  118. </span>
  119. </div>
  120. </div>
  121. <div class="wechat_qrcode">
  122. <div class="q_item">
  123. <div class="q_item_icon"><img src="/img/common/qr_code_caimei.jpg" alt="采美公众号"></div>
  124. <div class="q_item_code"><img src="/img/common/qr_code_caimei.jpg" alt="采美公众号"></div>
  125. <p>采美公众号</p>
  126. </div>
  127. <div class="q_item">
  128. <div class="q_item_icon"><img src="/img/common/qr_code_mini.jpg" alt="采美小程序"></div>
  129. <div class="q_item_code"><img src="/img/common/qr_code_mini.jpg" alt="采美小程序"></div>
  130. <p>采美小程序</p>
  131. </div>
  132. <!-- <div class="q_item newCarLink" v-if="userIdentity!=3" @click="goCartsLinkFn" >-->
  133. <!-- <div class="headCart">-->
  134. <!-- <div class="bg_car"></div>-->
  135. <!-- <a v-if="userIdentity!=3" href="javascript:void(0)" class="addBtn icon" onclick="_czc.push(['_trackEvent','顶部导航','购物车','点击','','Um_Event_Cart'])">购物车<span style="color: #FF5B00;" v-text="'('+headCart.cartCount+')'"></span></a>-->
  136. <!-- <div class="cartData">-->
  137. <!-- <div v-if="headCart.cartCount>0">-->
  138. <!-- <div class="cartMain">-->
  139. <!-- <div class="cartItem" v-for="cart in headCart.cartList">-->
  140. <!-- <a href="javascript:void(0)" @click="productDetailsFn(cart.productId)">-->
  141. <!-- <img :src="cart.image" >-->
  142. <!-- <span class="name" v-text="cart.name"></span>-->
  143. <!-- <span class="unit" v-text="'包装规格:'+cart.unit"></span>-->
  144. <!-- <span class="unit" v-text="'数量:'+cart.number"></span>-->
  145. <!-- <span class="price" v-text="'¥'+parseFloat(cart.price).toFixed(2)"></span>-->
  146. <!-- </a>-->
  147. <!-- <span class="delBtn" @click="DeleteCartProducts(cart.productId)"></span>-->
  148. <!-- </div>-->
  149. <!-- </div>-->
  150. <!-- <div class="cartBtm">-->
  151. <!-- <span>共计:<span v-text="headCart.productCount"></span> 件</span>-->
  152. <!-- <span>合计:<span v-text="parseFloat(headCart.priceTotal).toFixed(2)"></span> 元</span>-->
  153. <!-- <a class="btn" href="/shopping/cart.html" rel="nofollow">去购物车结算</a>-->
  154. <!-- </div>-->
  155. <!-- </div>-->
  156. <!-- <div v-else class="empty">-->
  157. <!-- <img src="/img/common/empty_cart.png" alt="空购物车">-->
  158. <!-- <p>购物车暂无商品</p>-->
  159. <!-- <p v-if="!loginStatus">请先<a href="/login.html" rel="nofollow">登录</a>添加商品到购物车</p>-->
  160. <!-- </div>-->
  161. <!-- </div>-->
  162. <!-- </div>-->
  163. <!-- <div class="q_item_icon"></div>-->
  164. <!-- <p>购物车</p>-->
  165. <!-- </div>-->
  166. <!-- <div class="q_item newMsgLink" @click="goMsgLinkFn('/supplier/message/list.html')">-->
  167. <!-- <div class="bg_msg"></div>-->
  168. <!-- <div class="headmsg">-->
  169. <!-- <a v-if="userIdentity===3" href="javascript:void(0)" class="WEB-icon msg-btn">消息<span style="color: #FF5B00;" v-text="'('+noticeNum+')'"></span></a>-->
  170. <!-- <a v-else @click="goMsgLinkFn('/user/message/list.html')" href="javascript:void(0)" class="WEB-icon msg-btn">消息<span style="color: #FF5B00;" v-text="'('+noticeNum+')'"></span></a>-->
  171. <!-- </div>-->
  172. <!-- </div>-->
  173. <!-- <div class="q_item newSupplierLink" v-if="userIdentity===3 || !loginStatus" @click="goSupplierLink">-->
  174. <!-- <div class="bg_supplier"></div>-->
  175. <!-- <a href="javascript:void(0)" style="white-space: nowrap;">供应商服务</a>-->
  176. <!-- </div>-->
  177. </div>
  178. </div>
  179. </div>
  180. <!--商品分类及主导航菜单-->
  181. <div class="baseTopNav">
  182. <div class="wrap clear">
  183. <div class="baseTopNav_nav">
  184. <a class="classBtn nav on" href="javascript:void(0);">商品分类</a>
  185. <a class="home nav" href="/">首页</a>
  186. <div class="navBox">
  187. <ul class="clear">
  188. <!--导航菜单-->
  189. <li th:each="menu: ${topMenuList}">
  190. <a class="nav" th:href="${menu.link}" th:text="${menu.name}" th:attr="rel=${#strings.contains(menu.link,'caimei365.com')} ? '' : 'nofollow'" target="_blank"></a>
  191. </li>
  192. </ul>
  193. </div>
  194. </div>
  195. <div id="mainClassify" class="classifyBox mFixed">
  196. <div v-if="!isPC" class="clsHead clear">
  197. <a href="javascript:void(0);" class="mClassBtn mIcon" title="分类"></a>
  198. <a href="/" class="logo">
  199. <img src="/img/base/logo_m.png" alt="采美 生美/医美采购服务平台" />
  200. </a>
  201. <a href="javascript:void(0);" class="close" title="关闭"></a>
  202. </div>
  203. <div class="clsTab">
  204. <div class="clsTab-main">
  205. <a href="javascript:void(0);" @click="changeClassify(1)" class="on">产品<p :class="1==classifyIndex?'line':''"></p></a>
  206. <a href="javascript:void(0);" @click="changeClassify(2)">仪器<p :class="2==classifyIndex?'line':''"></p></a>
  207. </div>
  208. </div>
  209. <div class="clsCon">
  210. <th:block th:each="type:${#numbers.sequence(1,2)}">
  211. <div class="tabItem" style="display:none;" th:id="'mainClassify_'+${type}">
  212. <div class="tabItem_lift">
  213. <th:block th:each="big,stat : ${classifyJson}" th:if="${big.get('typeSort')}*1==${type}" th:object="${big}">
  214. <a th:class="${stat.index}==0? 'on':''" href="javascript:void(0);">
  215. <img class="tabItem_lift_icon" v-if="isPC" th:src="*{wwwIcon}" th:alt="*{name}">
  216. <th:block th:text="*{name}"></th:block>
  217. </a>
  218. </th:block>
  219. </div>
  220. <div class="tabItem_right">
  221. <th:block th:each="big,stat : ${classifyJson}" th:if="${big.get('typeSort')}*1==${type}" th:object="${big}">
  222. <div class="tabItem_right_content" th:class="${stat.index}==0? 'on':''">
  223. <th:block th:if="${big.containsKey('smallTypeList')} and ${big.get('smallTypeList')!=null}">
  224. <div class="line" th:each="small : *{smallTypeList}" th:object="${small}">
  225. <div class="lft show">
  226. <a th:href="'/product/classify-'+${big.getString('typeSort')}+'-' + *{bigTypeId} +'-'+*{smallTypeId} + '.html'" target="_blank">
  227. <span v-if="isPC"> > </span>
  228. <p th:text="*{name}"></p>
  229. </a>
  230. </div>
  231. <div class="rgt mfw">
  232. <th:block th:if="${small.containsKey('tinyTypeList')} and ${small.get('smallTypeList')!=null}">
  233. <th:block th:each="tiny : *{tinyTypeList}" th:object="${tiny}">
  234. <a th:href="'/product/classify-'+ ${big.getString('typeSort')} +'-'+ ${big.getString('bigTypeId')} +'-'+ *{smallTypeId} +'-'+ *{tinyTypeId} + '.html'" target="_blank">
  235. <img v-if="!isPC" th:src="*{crmIcon}" alt="*{name}">
  236. <p th:text="*{name}"></p>
  237. </a>
  238. </th:block>
  239. </th:block>
  240. <th:block th:unless="${small.containsKey('tinyTypeList')} and ${small.get('smallTypeList')!=null}">
  241. <a th:href="'/product/classify-'+ ${big.getString('typeSort')} +'-'+ *{bigTypeId} +'-'+ *{smallTypeId} + '.html'" target="_blank">
  242. <img v-if="!isPC" th:src="*{crmIcon}" alt="">
  243. <p>全部</p>
  244. </a>
  245. </th:block>
  246. </div>
  247. </div>
  248. </th:block>
  249. <div class="line" th:unless="${big.containsKey('smallTypeList')} and ${big.get('smallTypeList')!=null}">
  250. <div class="lft none">
  251. <a th:href="'/product/classify-'+ ${big.getString('typeSort')} +'-'+ *{bigTypeId} +'.html'" target="_blank">
  252. <span v-if="isPC"> > </span>
  253. <p th:text="*{name}"></p>
  254. </a>
  255. </div>
  256. <div class="rgt mfw">
  257. <a th:href="'/product/classify-'+ ${big.getString('typeSort')} +'-'+ *{bigTypeId} +'.html'" target="_blank">
  258. <img v-if="!isPC" th:src="*{crmIcon}" alt="">
  259. <p>全部</p>
  260. </a>
  261. </div>
  262. </div>
  263. </div>
  264. </th:block>
  265. </div>
  266. </div>
  267. </th:block>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. <input type="hidden" th:value="${coreServer}" id="coreServer">
  273. <input type="hidden" th:value="${agent}" id="userAgent">
  274. </header>