index.html 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <!-- Google Tag Manager -->
  5. <script>(function (w, d, s, l, i) {
  6. w[l] = w[l] || []; w[l].push({
  7. 'gtm.start':
  8. new Date().getTime(), event: 'gtm.js'
  9. }); var f = d.getElementsByTagName(s)[0],
  10. j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
  11. 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
  12. })(window, document, 'script', 'dataLayer', 'GTM-W3RJHTZ');</script>
  13. <!-- End Google Tag Manager -->
  14. <script async="" src="https://www.googletagmanager.com/gtm.js?id=GTM-W3RJHTZ"></script>
  15. <!-- <script src="https://connect.facebook.net/signals/config/585285442299590?v=2.9.100&amp;r=stable" async=""></script> -->
  16. <meta charset="UTF-8" />
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  18. <meta http-equiv="X-UA-Compatible" content="ie=edge, Chrome=1" />
  19. <meta http-equiv="Cache-Control" content="no-cache" />
  20. <meta name="copyright" content="2021 © 幸福空間 │ All Rights Reserved." />
  21. <meta name="creation-date" content="2021-08-05 12:00:04 GTM+8" />
  22. <meta name="description" content="讓幸福室內設計,走進您的生活,解決您的裝潢問
  23. 題!幸福空間是台灣最大的室內設計、設計師與設計個案影音平台之一,找尋室內設計點子與案例我
  24. 們一定能幫助你!" />
  25. <meta name="distribution" content="Taiwan" />
  26. <meta name="keywords" content="" />
  27. <meta name="revisit-after" content="1 days" />
  28. <meta name="robots" content="all" />
  29. <meta name="format-detection" content="telephone=no" />
  30. <meta property="og:description" content="讓幸福室內設計,走進您的生活,解決您的裝潢問題!
  31. 幸福空間是台灣最大的室內設計、設計師與設計個案影音平台之一,找尋室內設計點子與案例我們一定能幫助
  32. 你!" />
  33. <meta property="og:site_name" content="幸福空間" />
  34. <meta property="og:title" content="幸福空間 - 台灣最大的室內設計、設計師與設計個案影音平台" />
  35. <meta property="og:type" content="website" />
  36. <meta property="og:locale" content="zh_TW" />
  37. <title>幸福空間 - 室內設計、裝潢、居家生活、影音平台</title>
  38. <link rel="icon" href="https://hhh.com.tw/assets/images/favicon.ico" />
  39. <!-- Fontawesome -->
  40. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
  41. integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous" />
  42. <!-- Bootstrap -->
  43. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
  44. integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous" />
  45. <!-- axios -->
  46. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  47. <!-- Google Font -->
  48. <link rel="preconnect" href="https://fonts.googleapis.com" />
  49. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  50. <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600&display=swap" rel="stylesheet" />
  51. <!-- CSS -->
  52. <link rel="stylesheet" href="../../css/reset.css" />
  53. <link rel="stylesheet" href="../../css/lists.css" />
  54. <link rel="stylesheet" href="../../css/all.css" />
  55. <script type="application/ld+json">
  56. {
  57. "@context": "https://schema.org",
  58. "@type": "LocalBusiness",
  59. "@id": "https://hhh.com.tw/",
  60. "image": ["https://hhh.com.tw/_nuxt/img/def1b0a.svg"],
  61. "name": "幸福空間股份有限公司",
  62. "address": "110台北市信義區菸廠路88號五樓之6",
  63. "url": "https://hhh.com.tw/",
  64. "telephone": "+886-2-6617-0123"
  65. }
  66. </script>
  67. <script type="application/ld+json">
  68. {
  69. "@context": "https://schema.org",
  70. "@type": "Organization",
  71. "url": "https://hhh.com.tw/",
  72. "logo": "https://hhh.com.tw/_nuxt/img/def1b0a.svg",
  73. "name": "幸福空間",
  74. "sameAs": [
  75. "https://www.facebook.com/hhhfb/",
  76. "https://page.line.me/ovs4341s",
  77. "https://www.youtube.com/user/gorgeousspace",
  78. "https://www.instagram.com/gorgeous_space/"
  79. ],
  80. "contactPoint": [
  81. {
  82. "@type": "ContactPoint",
  83. "areaServed": "TW",
  84. "telephone": "+886-2-6617-0123",
  85. "contactType": "customer service",
  86. "availableLanguage": "Chinese"
  87. }
  88. ]
  89. }
  90. </script>
  91. <script type="application/ld+json">
  92. {
  93. "@context": "https://schema.org",
  94. "@type": "WebSite",
  95. "name": "幸福空間-室內設計、裝潢、居家生活、影音平台",
  96. "author": "幸福空間",
  97. "url": "https://hhh.com.tw/",
  98. "potentialAction": {
  99. "@type": "SearchAction",
  100. "target": "https://hhh.com.tw/search/lists/case/{search_term_string}-keyword/",
  101. "query-input": "required name=search_term_string"
  102. }
  103. }
  104. </script>
  105. </head>
  106. <body>
  107. <!-- 動態載入 -->
  108. <div id="navbar"></div>
  109. <!-- searchModal -->
  110. <div class="modal fade search-modal" id="searchModal" tabindex="-1" aria-labelledby="searchModalLabel"
  111. aria-hidden="true">
  112. <div class="modal-dialog modal-dialog-centered modal-lg">
  113. <div class="modal-content">
  114. <div class="modal-body">
  115. <div class="input-group">
  116. <input type="text" class="form-control keyword" placeholder="請輸入關鍵字" aria-label="Please enter keywords"
  117. aria-describedby="search-input" />
  118. <span class="input-group-text" id="search-input">全站搜尋</span>
  119. </div>
  120. </div>
  121. <section class="keyword-list">
  122. <span>熱搜關鍵字:</span>
  123. <ul>
  124. <li>客變</li>
  125. <li>小坪數</li>
  126. <li>老屋翻新</li>
  127. <li>收納</li>
  128. <li>軟裝佈置</li>
  129. <li>新手裝修</li>
  130. <li>風水</li>
  131. <li>北歐風</li>
  132. </ul>
  133. </section>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="container d-flex flex-column align-items-center justify-content-center list-content">
  138. <h2 class="list-headline">全國室內設計師推薦</h2>
  139. <!-- 搜尋 -->
  140. <div class="row w-100 justify-content-center mt-5">
  141. <div class="col-md-10">
  142. <div class="card search-card">
  143. <div class="card-body p-4">
  144. <div class="input-group input-group-lg mb-2">
  145. <input type="text" placeholder="請輸入關鍵字" aria-label="請輸入關鍵字" aria-describedby="searchbar"
  146. class="form-control border-primary keywords" autocomplete="off">
  147. <div class="input-group-append">
  148. <button onclick="designerSearch()" type="button" data-ga="View_Search_Results" class="input-group-text">搜尋</button>
  149. </div>
  150. </div>
  151. <div class="search-bar-keyword d-flex mt-3 pl-4">
  152. <p>熱搜關鍵字</p>
  153. <ul class="d-flex flex-wrap ps-3">
  154. <li>
  155. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">客變</a>
  156. </li>
  157. <li>
  158. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">小坪數</a>
  159. </li>
  160. <li>
  161. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">老屋翻新</a>
  162. </li>
  163. <li>
  164. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">收納</a>
  165. </li>
  166. <!-- <li>
  167. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">軟裝佈置</a>
  168. </li>
  169. <li>
  170. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">新手裝修</a>
  171. </li>
  172. <li>
  173. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">風水</a>
  174. </li> -->
  175. <li>
  176. <a href="javascript:void(0)" data-ga="Click_Promo_Keyword">北歐風</a>
  177. </li>
  178. </ul>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <!-- 篩選 -->
  185. <div class="row w-100 mt-5 filter-list">
  186. <div class="col-12">
  187. <p class="mb-3 text-muted">
  188. 總共 <span class="text-primary font-weight-bold fs-4">254</span> 筆全國室內設計師符合條件
  189. </p>
  190. <div class="card text-dark bg-light border-0 mb-3 w-100 shadow-sm">
  191. <div class="card-body d-flex flex-wrap">
  192. <div class="dropdown">
  193. <button class="btn dropdown-toggle fw-bold search-tab" type="button" id="city" data-bs-toggle="dropdown"
  194. aria-expanded="false">
  195. 所在縣市
  196. </button>
  197. <ul class="dropdown-menu" aria-labelledby="city">
  198. <li>
  199. <div class="form-check">
  200. <input class="form-check-input" type="radio" name="city" id="taipei_city">
  201. <label class="form-check-label" for="taipei_city">
  202. 台北市
  203. </label>
  204. </div>
  205. </li>
  206. <li>
  207. <div class="form-check">
  208. <input class="form-check-input" type="radio" name="city" id="new_taipei_city">
  209. <label class="form-check-label" for="new_taipei_city">
  210. 新北市
  211. </label>
  212. </div>
  213. </li>
  214. <li>
  215. <div class="form-check">
  216. <input class="form-check-input" type="radio" name="city" id="keelung_city">
  217. <label class="form-check-label" for="keelung_city">
  218. 基隆市
  219. </label>
  220. </div>
  221. </li>
  222. <li>
  223. <div class="form-check">
  224. <input class="form-check-input" type="radio" name="city" id="taoyuan_city">
  225. <label class="form-check-label" for="taoyuan_city">
  226. 桃園市
  227. </label>
  228. </div>
  229. </li>
  230. <li>
  231. <div class="form-check">
  232. <input class="form-check-input" type="radio" name="city" id="hsinchu_city">
  233. <label class="form-check-label" for="hsinchu_city">
  234. 新竹市
  235. </label>
  236. </div>
  237. </li>
  238. <li>
  239. <div class="form-check">
  240. <input class="form-check-input" type="radio" name="city" id="hsinchu_county">
  241. <label class="form-check-label" for="hsinchu_county">
  242. 新竹縣
  243. </label>
  244. </div>
  245. </li>
  246. <li>
  247. <div class="form-check">
  248. <input class="form-check-input" type="radio" name="city" id="miaoli_county">
  249. <label class="form-check-label" for="miaoli_county">
  250. 苗栗縣
  251. </label>
  252. </div>
  253. </li>
  254. <li>
  255. <div class="form-check">
  256. <input class="form-check-input" type="radio" name="city" id="taichung_city">
  257. <label class="form-check-label" for="taichung_city">
  258. 台中市
  259. </label>
  260. </div>
  261. </li>
  262. <li>
  263. <div class="form-check">
  264. <input class="form-check-input" type="radio" name="city" id="changhua_county">
  265. <label class="form-check-label" for="changhua_county">
  266. 彰化縣
  267. </label>
  268. </div>
  269. </li>
  270. <li>
  271. <div class="form-check">
  272. <input class="form-check-input" type="radio" name="city" id="nantou_county">
  273. <label class="form-check-label" for="nantou_county">
  274. 南投縣
  275. </label>
  276. </div>
  277. </li>
  278. <li>
  279. <div class="form-check">
  280. <input class="form-check-input" type="radio" name="city" id="yunlin_county">
  281. <label class="form-check-label" for="yunlin_county">
  282. 雲林縣
  283. </label>
  284. </div>
  285. </li>
  286. <li>
  287. <div class="form-check">
  288. <input class="form-check-input" type="radio" name="city" id="chiayi_city">
  289. <label class="form-check-label" for="chiayi_city">
  290. 嘉義市
  291. </label>
  292. </div>
  293. </li>
  294. <li>
  295. <div class="form-check">
  296. <input class="form-check-input" type="radio" name="city" id="chiayi_county">
  297. <label class="form-check-label" for="chiayi_county">
  298. 嘉義縣
  299. </label>
  300. </div>
  301. </li>
  302. <li>
  303. <div class="form-check">
  304. <input class="form-check-input" type="radio" name="city" id="tainan_city">
  305. <label class="form-check-label" for="tainan_city">
  306. 台南市
  307. </label>
  308. </div>
  309. </li>
  310. <li>
  311. <div class="form-check">
  312. <input class="form-check-input" type="radio" name="city" id="kaohsiung_city">
  313. <label class="form-check-label" for="kaohsiung_city">
  314. 高雄市
  315. </label>
  316. </div>
  317. </li>
  318. <li>
  319. <div class="form-check">
  320. <input class="form-check-input" type="radio" name="city" id="pingtung_county">
  321. <label class="form-check-label" for="pingtung_county">
  322. 屏東縣
  323. </label>
  324. </div>
  325. </li>
  326. <li>
  327. <div class="form-check">
  328. <input class="form-check-input" type="radio" name="city" id="yilan_county">
  329. <label class="form-check-label" for="yilan_county">
  330. 宜蘭縣
  331. </label>
  332. </div>
  333. </li>
  334. <li>
  335. <div class="form-check">
  336. <input class="form-check-input" type="radio" name="city" id="hualien_county">
  337. <label class="form-check-label" for="hualien_county">
  338. 花蓮縣
  339. </label>
  340. </div>
  341. </li>
  342. <li>
  343. <div class="form-check">
  344. <input class="form-check-input" type="radio" name="city" id="taitung_county">
  345. <label class="form-check-label" for="taitung_county">
  346. 台東縣
  347. </label>
  348. </div>
  349. </li>
  350. <li>
  351. <div class="form-check">
  352. <input class="form-check-input" type="radio" name="city" id="penghu_county">
  353. <label class="form-check-label" for="penghu_county">
  354. 澎湖縣
  355. </label>
  356. </div>
  357. </li>
  358. <li>
  359. <div class="form-check">
  360. <input class="form-check-input" type="radio" name="city" id="kinmen_county">
  361. <label class="form-check-label" for="kinmen_county">
  362. 金門縣
  363. </label>
  364. </div>
  365. </li>
  366. <li>
  367. <div class="form-check">
  368. <input class="form-check-input" type="radio" name="city" id="lienchiang_county">
  369. <label class="form-check-label" for="lienchiang_county">
  370. 連江縣
  371. </label>
  372. </div>
  373. </li>
  374. </ul>
  375. </div>
  376. <div class="dropdown">
  377. <button class="btn dropdown-toggle fw-bold search-tab" type="button" id="region" data-bs-toggle="dropdown"
  378. aria-expanded="false">
  379. 接案地區
  380. </button>
  381. <ul class="dropdown-menu" aria-labelledby="region">
  382. <!-- <li>
  383. <div class="form-check">
  384. <input class="form-check-input" type="radio" name="region" id="all_region">
  385. <label class="form-check-label" for="all_region">
  386. 不拘
  387. </label>
  388. </div>
  389. </li> -->
  390. <li>
  391. <div class="form-check">
  392. <input class="form-check-input" type="radio" name="region" id="north_region">
  393. <label class="form-check-label" for="north_region">
  394. 北區
  395. </label>
  396. </div>
  397. </li>
  398. <li>
  399. <div class="form-check">
  400. <input class="form-check-input" type="radio" name="region" id="central_region">
  401. <label class="form-check-label" for="central_region">
  402. 中區
  403. </label>
  404. </div>
  405. </li>
  406. <li>
  407. <div class="form-check">
  408. <input class="form-check-input" type="radio" name="region" id="south_region">
  409. <label class="form-check-label" for="south_region">
  410. 南區
  411. </label>
  412. </div>
  413. </li>
  414. <li>
  415. <div class="form-check">
  416. <input class="form-check-input" type="radio" name="region" id="east_region">
  417. <label class="form-check-label" for="east_region">
  418. 宜蘭花東
  419. </label>
  420. </div>
  421. </li>
  422. <li>
  423. <div class="form-check">
  424. <input class="form-check-input" type="radio" name="region" id="outlying_region">
  425. <label class="form-check-label" for="outlying_region">
  426. 離島地區
  427. </label>
  428. </div>
  429. </li>
  430. <li>
  431. <div class="form-check">
  432. <input class="form-check-input" type="radio" name="region" id="overseas_region">
  433. <label class="form-check-label" for="overseas_region">
  434. 海外地區
  435. </label>
  436. </div>
  437. </li>
  438. </ul>
  439. </div>
  440. <div class="dropdown">
  441. <button class="btn dropdown-toggle fw-bold search-tab" type="button" id="dtype" data-bs-toggle="dropdown"
  442. aria-expanded="false">
  443. 接案類型
  444. </button>
  445. <ul class="dropdown-menu" aria-labelledby="dtype">
  446. <!-- <li>
  447. <div class="form-check">
  448. <input class="form-check-input" type="radio" name="d_type" id="d_typeall">
  449. <label class="form-check-label" for="d_typeall">
  450. 不拘
  451. </label>
  452. </div>
  453. </li> -->
  454. <li>
  455. <div class="form-check">
  456. <input class="form-check-input" type="radio" name="d_type" id="d_typesmall">
  457. <label class="form-check-label" for="d_typesmall">
  458. 小坪數
  459. </label>
  460. </div>
  461. </li>
  462. <li>
  463. <div class="form-check">
  464. <input class="form-check-input" type="radio" name="d_type" id="d_typestandard">
  465. <label class="form-check-label" for="d_typestandard">
  466. 標準格局
  467. </label>
  468. </div>
  469. </li>
  470. <li>
  471. <div class="form-check">
  472. <input class="form-check-input" type="radio" name="d_type" id="d_typevilla">
  473. <label class="form-check-label" for="d_typevilla">
  474. 別墅
  475. </label>
  476. </div>
  477. </li>
  478. <li>
  479. <div class="form-check">
  480. <input class="form-check-input" type="radio" name="d_type" id="d_typebig">
  481. <label class="form-check-label" for="d_typebig">
  482. 大坪數
  483. </label>
  484. </div>
  485. </li>
  486. <li>
  487. <div class="form-check">
  488. <input class="form-check-input" type="radio" name="d_type" id="d_typemiddle">
  489. <label class="form-check-label" for="d_typemiddle">
  490. 樓中樓
  491. </label>
  492. </div>
  493. </li>
  494. <li>
  495. <div class="form-check">
  496. <input class="form-check-input" type="radio" name="d_type" id="d_typesample">
  497. <label class="form-check-label" for="d_typesample">
  498. 實品/樣品屋
  499. </label>
  500. </div>
  501. </li>
  502. <li>
  503. <div class="form-check">
  504. <input class="form-check-input" type="radio" name="d_type" id="d_typecommercial">
  505. <label class="form-check-label" for="d_typecommercial">
  506. 商業空間
  507. </label>
  508. </div>
  509. </li>
  510. <li>
  511. <div class="form-check">
  512. <input class="form-check-input" type="radio" name="d_type" id="d_typeraisehigh">
  513. <label class="form-check-label" for="d_typeraisehigh">
  514. 挑高樓層
  515. </label>
  516. </div>
  517. </li>
  518. <li>
  519. <div class="form-check">
  520. <input class="form-check-input" type="radio" name="d_type" id="d_typeworkspace">
  521. <label class="form-check-label" for="d_typeworkspace">
  522. 工作空間
  523. </label>
  524. </div>
  525. </li>
  526. <li>
  527. <div class="form-check">
  528. <input class="form-check-input" type="radio" name="d_type" id="d_typedining">
  529. <label class="form-check-label" for="d_typedining">
  530. 餐飲空間
  531. </label>
  532. </div>
  533. </li>
  534. <li>
  535. <div class="form-check">
  536. <input class="form-check-input" type="radio" name="d_type" id="d_typehomestay">
  537. <label class="form-check-label" for="d_typehomestay">
  538. 民宿旅館
  539. </label>
  540. </div>
  541. </li>
  542. <li>
  543. <div class="form-check">
  544. <input class="form-check-input" type="radio" name="d_type" id="d_typepublic">
  545. <label class="form-check-label" for="d_typepublic">
  546. 公共空間
  547. </label>
  548. </div>
  549. </li>
  550. <li>
  551. <div class="form-check">
  552. <input class="form-check-input" type="radio" name="d_type" id="d_typerenovation">
  553. <label class="form-check-label" for="d_typerenovation">
  554. 老屋翻新
  555. </label>
  556. </div>
  557. </li>
  558. </ul>
  559. </div>
  560. <div class="dropdown">
  561. <button class="btn dropdown-toggle fw-bold search-tab" type="button" id="dstyle" data-bs-toggle="dropdown"
  562. aria-expanded="false">
  563. 接案風格
  564. </button>
  565. <ul class="dropdown-menu" aria-labelledby="dstyle">
  566. <!-- <li>
  567. <div class="form-check">
  568. <input class="form-check-input" type="radio" name="d_style" id="d_styleall">
  569. <label class="form-check-label" for="d_styleall">
  570. 不拘
  571. </label>
  572. </div>
  573. </li> -->
  574. <li>
  575. <div class="form-check">
  576. <input class="form-check-input" type="radio" name="d_style" id="d_stylenordic">
  577. <label class="form-check-label" for="d_stylenordic">
  578. 北歐風
  579. </label>
  580. </div>
  581. </li>
  582. <li>
  583. <div class="form-check">
  584. <input class="form-check-input" type="radio" name="d_style" id="d_stylemodern">
  585. <label class="form-check-label" for="d_stylemodern">
  586. 現代風
  587. </label>
  588. </div>
  589. </li>
  590. <li>
  591. <div class="form-check">
  592. <input class="form-check-input" type="radio" name="d_style" id="d_styleindustry">
  593. <label class="form-check-label" for="d_styleindustry">
  594. 工業風
  595. </label>
  596. </div>
  597. </li>
  598. <li>
  599. <div class="form-check">
  600. <input class="form-check-input" type="radio" name="d_style" id="d_styleamerican">
  601. <label class="form-check-label" for="d_styleamerican">
  602. 美式風
  603. </label>
  604. </div>
  605. </li>
  606. <li>
  607. <div class="form-check">
  608. <input class="form-check-input" type="radio" name="d_style" id="d_styleleisure">
  609. <label class="form-check-label" for="d_styleleisure">
  610. 休閒多元
  611. </label>
  612. </div>
  613. </li>
  614. <li>
  615. <div class="form-check">
  616. <input class="form-check-input" type="radio" name="d_style" id="d_stylevanguard">
  617. <label class="form-check-label" for="d_stylevanguard">
  618. 前衛風
  619. </label>
  620. </div>
  621. </li>
  622. <li>
  623. <div class="form-check">
  624. <input class="form-check-input" type="radio" name="d_style" id="d_stylerustuc">
  625. <label class="form-check-label" for="d_stylerustuc">
  626. 鄉村風
  627. </label>
  628. </div>
  629. </li>
  630. <li>
  631. <div class="form-check">
  632. <input class="form-check-input" type="radio" name="d_style" id="d_stylemashup">
  633. <label class="form-check-label" for="d_stylemashup">
  634. 混搭風
  635. </label>
  636. </div>
  637. </li>
  638. <li>
  639. <div class="form-check">
  640. <input class="form-check-input" type="radio" name="d_style" id="d_styleneoclassic">
  641. <label class="form-check-label" for="d_styleneoclassic">
  642. 新古典
  643. </label>
  644. </div>
  645. </li>
  646. <li>
  647. <div class="form-check">
  648. <input class="form-check-input" type="radio" name="d_style" id="d_styleluxurious">
  649. <label class="form-check-label" for="d_styleluxurious">
  650. 奢華風
  651. </label>
  652. </div>
  653. </li>
  654. <li>
  655. <div class="form-check">
  656. <input class="form-check-input" type="radio" name="d_style" id="d_styleclassical">
  657. <label class="form-check-label" for="d_styleclassical">
  658. 古典風
  659. </label>
  660. </div>
  661. </li>
  662. <li>
  663. <div class="form-check">
  664. <input class="form-check-input" type="radio" name="d_style" id="d_styleexotic">
  665. <label class="form-check-label" for="d_styleexotic">
  666. 異國風
  667. </label>
  668. </div>
  669. </li>
  670. <li>
  671. <div class="form-check">
  672. <input class="form-check-input" type="radio" name="d_style" id="d_stylezen">
  673. <label class="form-check-label" for="d_stylezen">
  674. 日式禪風
  675. </label>
  676. </div>
  677. </li>
  678. <li>
  679. <div class="form-check">
  680. <input class="form-check-input" type="radio" name="d_style" id="d_styleoriental">
  681. <label class="form-check-label" for="d_styleoriental">
  682. 東方風
  683. </label>
  684. </div>
  685. </li>
  686. <li>
  687. <div class="form-check">
  688. <input class="form-check-input" type="radio" name="d_style" id="d_stylemuju">
  689. <label class="form-check-label" for="d_stylemuju">
  690. 無印風
  691. </label>
  692. </div>
  693. </li>
  694. <li>
  695. <div class="form-check">
  696. <input class="form-check-input" type="radio" name="d_style" id="d_styleminimalism">
  697. <label class="form-check-label" for="d_styleminimalism">
  698. 簡約風
  699. </label>
  700. </div>
  701. </li>
  702. <li>
  703. <div class="form-check">
  704. <input class="form-check-input" type="radio" name="d_style" id="d_stylejpstyle">
  705. <label class="form-check-label" for="d_stylejpstyle">
  706. 日式風
  707. </label>
  708. </div>
  709. </li>
  710. <li>
  711. <div class="form-check">
  712. <input class="form-check-input" type="radio" name="d_style" id="d_styleentrylux">
  713. <label class="form-check-label" for="d_styleentrylux">
  714. 輕奢風
  715. </label>
  716. </div>
  717. </li>
  718. </ul>
  719. </div>
  720. <div class="dropdown">
  721. <button class="btn dropdown-toggle fw-bold search-tab" type="button" id="budget" data-bs-toggle="dropdown"
  722. aria-expanded="false">
  723. 接案預算
  724. </button>
  725. <ul class="dropdown-menu" aria-labelledby="budget">
  726. <!-- <li>
  727. <div class="form-check">
  728. <input class="form-check-input" type="radio" name="d_budget" id="d_budgetall">
  729. <label class="form-check-label" for="d_budgetall">
  730. 不拘
  731. </label>
  732. </div>
  733. </li> -->
  734. <li>
  735. <div class="form-check">
  736. <input class="form-check-input" type="radio" name="d_budget" id="d_budgetd100">
  737. <label class="form-check-label" for="d_budgetd100">
  738. 100萬以下
  739. </label>
  740. </div>
  741. </li>
  742. <li>
  743. <div class="form-check">
  744. <input class="form-check-input" type="radio" name="d_budget" id="d_budgetd200">
  745. <label class="form-check-label" for="d_budgetd200">
  746. 100~200萬
  747. </label>
  748. </div>
  749. </li>
  750. <li>
  751. <div class="form-check">
  752. <input class="form-check-input" type="radio" name="d_budget" id="d_budgetd300">
  753. <label class="form-check-label" for="d_budgetd300">
  754. 200~300萬
  755. </label>
  756. </div>
  757. </li>
  758. <li>
  759. <div class="form-check">
  760. <input class="form-check-input" type="radio" name="d_budget" id="d_budgetd400">
  761. <label class="form-check-label" for="d_budgetd400">
  762. 300~400萬
  763. </label>
  764. </div>
  765. </li>
  766. <li>
  767. <div class="form-check">
  768. <input class="form-check-input" type="radio" name="d_budget" id="d_budgetd500">
  769. <label class="form-check-label" for="d_budgetd500">
  770. 400~500萬
  771. </label>
  772. </div>
  773. </li>
  774. <li>
  775. <div class="form-check">
  776. <input class="form-check-input" type="radio" name="d_budget" id="d_budgetd501">
  777. <label class="form-check-label" for="d_budgetd501">
  778. 500萬以上
  779. </label>
  780. </div>
  781. </li>
  782. </ul>
  783. </div>
  784. <div class="dropdown">
  785. <button class="btn dropdown-toggle fw-bold search-tab" type="button" id="arch" data-bs-toggle="dropdown"
  786. aria-expanded="false">
  787. 建築師執照
  788. </button>
  789. <ul class="dropdown-menu" aria-labelledby="arch">
  790. <li>
  791. <div class="form-check">
  792. <input class="form-check-input" type="radio" name="darch" id="darchall">
  793. <label class="form-check-label" for="darchall">
  794. 不拘
  795. </label>
  796. </div>
  797. </li>
  798. <li>
  799. <div class="form-check">
  800. <input class="form-check-input" type="radio" name="darch" id="darchY">
  801. <label class="form-check-label" for="darchY">
  802. </label>
  803. </div>
  804. </li>
  805. </ul>
  806. </div>
  807. <div class="dropdown">
  808. <button class="btn dropdown-toggle fw-bold search-tab" type="button" id="award" data-bs-toggle="dropdown"
  809. aria-expanded="false">
  810. 亞洲設計獎得主
  811. </button>
  812. <ul class="dropdown-menu" aria-labelledby="award">
  813. <li>
  814. <div class="form-check">
  815. <input class="form-check-input" type="radio" name="award" id="awardall">
  816. <label class="form-check-label" for="awardall">
  817. 不拘
  818. </label>
  819. </div>
  820. </li>
  821. <li>
  822. <div class="form-check">
  823. <input class="form-check-input" type="radio" name="award" id="awardY">
  824. <label class="form-check-label" for="awardY">
  825. </label>
  826. </div>
  827. </li>
  828. </ul>
  829. </div>
  830. </div>
  831. </div>
  832. <div class="row">
  833. <div class="col-md-9">
  834. <div class="d-flex flex-wrap align-items-center">
  835. <div class="text-primary d-flex flex-wrap align-items-center search-tab-result">
  836. <!-- <span class="me-3">
  837. <span class="budget">
  838. 接案地區:不拘
  839. <img src="https://hhh.com.tw/assets/images/section/icon/close-btn-search.svg" alt="close-btn-search">
  840. </span>
  841. </span> -->
  842. <!-- <button type="button" class="btn btn-light btn-sm text-muted px-3">全部清除</button> -->
  843. </div>
  844. <button type="button" id="removeResultBtn" class="btn btn-light btn-sm text-muted px-3">全部清除</button>
  845. </div>
  846. </div>
  847. <div class="col-md-3">
  848. <div class="d-flex justify-content-end search-btn-filter">
  849. <button id="hot">
  850. 人氣
  851. </button>
  852. <span class="mx-1">|</span>
  853. <button id="new">
  854. 最新
  855. </button>
  856. <span class="mx-1">|</span>
  857. <button id="recommend" class="active">
  858. 推薦
  859. </button>
  860. </div>
  861. </div>
  862. </div>
  863. <!-- 設計師列表 -->
  864. <div class="row mt-5" id="designerList">
  865. <!-- 動態載入 -->
  866. </div>
  867. <!-- 分頁 -->
  868. <div class="d-flex justify-content-center my-5">
  869. <nav aria-label="Page navigation example">
  870. <ul class="pagination border list-pagination">
  871. <li class="page-item">
  872. <a class="page-link" href="#" aria-label="Previous">
  873. <span aria-hidden="true"><</span>
  874. </a>
  875. </li>
  876. <li class="page-item">
  877. <a class="page-link" href="#">1</a>
  878. </li>
  879. <li class="page-item">
  880. <a class="page-link" href="#">2</a>
  881. </li>
  882. <li class="page-item">
  883. <a class="page-link" href="#">3</a>
  884. </li>
  885. <li class="page-item">
  886. <a class="page-link" href="#" aria-label="Next">
  887. <span aria-hidden="true">></span>
  888. </a>
  889. </li>
  890. </ul>
  891. </nav>
  892. </div>
  893. </div>
  894. </div>
  895. </div>
  896. <!-- 動態載入 -->
  897. <div id="btn-box"></div>
  898. <div id="footer" class="d-none d-lg-block"></div>
  899. <!-- jQuery -->
  900. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  901. <!-- Bootstrap -->
  902. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.1/dist/umd/popper.min.js"
  903. integrity="sha384-W8fXfP3gkOKtndU4JGtKDvXbO53Wy8SZCQHczT5FMiiqmQfUpWbYdTil/SxwZgAN"
  904. crossorigin="anonymous"></script>
  905. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js"
  906. integrity="sha384-skAcpIdS7UcVUC05LJ9Dxay8AXcDYfBJqt1CJ85S/CFujBsIzCIv+l9liuYLaMQ/"
  907. crossorigin="anonymous"></script>
  908. <script src="./js/main.js"></script>
  909. <script>
  910. // $('#navbar').load('../../template/navbar.html');
  911. // $('#removeResultBtn').hide(); // 隱藏全部清除按鈕
  912. // // 處理 radio 選取狀態
  913. // $('.filter-list .form-check').click(function (e) {
  914. // e.preventDefault();
  915. // $(this).find('.form-check-input').prop('checked', true);
  916. // // 取得 radio 按鈕的 label
  917. // let radioLabel = $(this).find('.form-check-label').text().trim().replace(/\s+/g, ' '); // 移除換行空白
  918. // console.log('radioLabel', radioLabel);
  919. // // 取上一層 search-tab 按鈕文字
  920. // let buttonValue = $(this).closest('.dropdown').find('.search-tab').text().trim();
  921. // console.log('Selected button text:', buttonValue);
  922. // let buttonId = $(this).closest('.dropdown').find('.search-tab').attr('id');
  923. // console.log('buttonId', buttonId);
  924. // updateSelectedOptions(buttonId, buttonValue, radioLabel);
  925. // });
  926. // let filterList = []; // 篩選條件
  927. // // 更新篩選狀態
  928. // function updateSelectedOptions(id, button, radio) {
  929. // console.log('更新篩選狀態', button, radio);
  930. // if (filterList.length) {
  931. // let exists = false; // 判斷是否已存在
  932. // for (let index = 0; index < filterList.length; index++) {
  933. // const element = filterList[index];
  934. // // 如有重複 button 只改 radio 狀態
  935. // if (element.text === button) {
  936. // element.value = radio;
  937. // exists = true;
  938. // // 更新篩選的值
  939. // $(`.search-tab-result .budget:contains(${button})`).find('p').text(`${button}:${radio}`);
  940. // // $(`#${id} ul`).find('.form-check-input').prop('checked', true);
  941. // }
  942. // }
  943. // // 如果 filterList 中不存在則新增
  944. // if (!exists) {
  945. // const newItem = {
  946. // id: id,
  947. // text: button,
  948. // value: radio
  949. // };
  950. // filterList.push(newItem);
  951. // createFilterHtml(newItem);
  952. // }
  953. // } else {
  954. // // 儲存篩選條件
  955. // filterList.push({
  956. // id: id,
  957. // text: button,
  958. // value: radio
  959. // })
  960. // for (let index = 0; index < filterList.length; index++) {
  961. // const element = filterList[index];
  962. // createFilterHtml(element);
  963. // }
  964. // }
  965. // designerSearch(); // 搜尋
  966. // console.log('filterList', filterList);
  967. // // 切換按鈕選取狀態
  968. // $('.dropdown').each(function () {
  969. // let hasCheckedRadio = $(this).find('input[type="radio"]:checked').length > 0;
  970. // $(this).find('.search-tab').toggleClass('active', hasCheckedRadio);
  971. // });
  972. // }
  973. // // 新增篩選條件 HTML
  974. // function createFilterHtml(item) {
  975. // let dom = `
  976. // <span class="me-3">
  977. // <span class="d-flex budget">
  978. // <p class="me-1">${item.text}:${item.value}</p>
  979. // <img src="https://hhh.com.tw/assets/images/section/icon/close-btn-search.svg" alt="close-btn-search">
  980. // </span>
  981. // </span>`;
  982. // $('.search-tab-result').append(dom);
  983. // $('#removeResultBtn').show();
  984. // }
  985. // let page = 1; // 當前頁數
  986. // let pageSize = 18; // 每頁數量
  987. // // 列表篩選
  988. // async function designerSearch(type = "") {
  989. // // 預設排序為 recommend
  990. // let url = `https://m3.hhh.com.tw:18673/designer_search?page=${page}&page_size=${pageSize}&order_by=recommend`;
  991. // console.log('type', type);
  992. // if (type === "order_by") {
  993. // url += `&${type}=${assignOrder}`
  994. // }
  995. // if (filterList.length) {
  996. // filterList.map(item => {
  997. // if (item.id === 'budget') {
  998. // switch (item.value) {
  999. // case "100萬以下":
  1000. // url += `&${item.id}=1`
  1001. // break;
  1002. // case "100~200萬":
  1003. // url += `&${item.id}=2`
  1004. // break;
  1005. // case "200~300萬":
  1006. // url += `&${item.id}=3`
  1007. // break;
  1008. // case "300~400萬":
  1009. // url += `&${item.id}=4`
  1010. // break;
  1011. // case "400~500萬":
  1012. // url += `&${item.id}=5`
  1013. // break;
  1014. // case "500萬以上":
  1015. // url += `&${item.id}=6`
  1016. // break;
  1017. // default:
  1018. // break;
  1019. // }
  1020. // } else {
  1021. // url += `&${item.id}=${item.value}`
  1022. // }
  1023. // })
  1024. // }
  1025. // console.log('url >>', url);
  1026. // let resultHtml = '';
  1027. // try {
  1028. // const response = await axios.get(url);
  1029. // console.log("response", response);
  1030. // let totalCount = response.data.total_count;
  1031. // let totalPages = Math.ceil(totalCount / pageSize);
  1032. // console.log('totalCount', totalCount);
  1033. // console.log('totalPages', totalPages);
  1034. // setPagination(totalPages); // 分頁處理
  1035. // let resultHtml = '';
  1036. // response.data.designers.forEach((item) => {
  1037. // resultHtml += `
  1038. // <div class="col-md-4 mb-4">
  1039. // <a href="${item.DesignerLink}">
  1040. // <div class="card">
  1041. // <img src="${item.CaseCoverImg}" class="cover-img" alt="${item.DesignerName} ${item.DesignerTitle}">
  1042. // <div class="card-body d-flex align-items-center">
  1043. // <img src="${item.DesignerCoverImg}" alt="" class="me-3 person-img">
  1044. // <section>
  1045. // <h5 class="card-text text-muted">${item.DesignerTitle}</h5>
  1046. // <h6 class="card-title mb-0 text-dark">
  1047. // <span class="font-weight-bold">
  1048. // ${item.DesignerName}
  1049. // </span>
  1050. // 設計師
  1051. // </h6>
  1052. // </section>
  1053. // </div>
  1054. // </div>
  1055. // </a>
  1056. // </div>`;
  1057. // });
  1058. // $('#designerList').html(resultHtml);
  1059. // } catch (error) {
  1060. // console.log("error", error);
  1061. // }
  1062. // }
  1063. // designerSearch();
  1064. // // 分頁
  1065. // function setPagination(pages) {
  1066. // console.log('setPagination pages', pages);
  1067. // // 往前一頁
  1068. // let dom = `
  1069. // <li class="page-item" onclick="handlePagination(this, 'previous')">
  1070. // <a class="page-link" href="#" aria-label="Previous">
  1071. // <span aria-hidden="true"><</span>
  1072. // </a>
  1073. // </li>`;
  1074. // for (let index = 0; index < pages; index++) {
  1075. // dom += `
  1076. // <li class="page-item" onclick="handlePagination(this)">
  1077. // <a class="page-link" href="#">${index + 1}</a>
  1078. // </li>`;
  1079. // }
  1080. // // 往後一頁
  1081. // dom += `
  1082. // <li class="page-item" onclick="handlePagination(this, 'next')">
  1083. // <a class="page-link" href="#" aria-label="Next">
  1084. // <span aria-hidden="true">></span>
  1085. // </a>
  1086. // </li>`;
  1087. // $('.designer-list-content .pagination').html(dom);
  1088. // $('.designer-list-content .page-item').removeClass('active');
  1089. // $('.designer-list-content .page-item').eq(page).addClass('active'); // 當前頁數加上選取狀態
  1090. // }
  1091. // // 頁碼處理
  1092. // function handlePagination(item, type = "") {
  1093. // if (type === "previous") {
  1094. // // 往前一頁
  1095. // console.log('previous');
  1096. // page--;
  1097. // console.log(page);
  1098. // return;
  1099. // } else if (type === "next") {
  1100. // // 往後一頁
  1101. // console.log('next');
  1102. // page++;
  1103. // console.log(page);
  1104. // return;
  1105. // }
  1106. // console.log('item', item);
  1107. // // 切換選取狀態
  1108. // $('.designer-list-content .page-item').removeClass('active');
  1109. // $(item).addClass('active');
  1110. // page = $(item).find('.page-link')[0].innerText; // 修改當前頁數
  1111. // designerSearch();
  1112. // }
  1113. // let assignOrder = ""; // 當前排序
  1114. // // new, hot, recommend 排序 (預設推薦)
  1115. // $(".search-btn-filter button").click(function () {
  1116. // // 切換選取狀態
  1117. // $('.search-btn-filter').find('.active').removeClass('active');
  1118. // $(this).addClass('active');
  1119. // assignOrder = $(this).attr('id');
  1120. // console.log('assignOrder', assignOrder);
  1121. // designerSearch("order_by");
  1122. // });
  1123. </script>
  1124. </body>
  1125. </html>