{"id":1801,"date":"2017-08-18T14:50:06","date_gmt":"2017-08-18T06:50:06","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1801"},"modified":"2019-02-11T10:27:09","modified_gmt":"2019-02-11T02:27:09","slug":"%e4%bd%bf%e7%94%a8jquery-seat-charts%e6%8f%92%e4%bb%b6%e5%ae%9e%e7%8e%b0%e5%9c%a8%e7%ba%bf%e7%94%b5%e5%bd%b1%e7%a5%a8%e9%80%89%e5%ba%a7%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1801","title":{"rendered":"\u4f7f\u7528jQuery-Seat-Charts\u63d2\u4ef6\u5b9e\u73b0\u5728\u7ebf\u7535\u5f71\u7968\u9009\u5ea7\u529f\u80fd"},"content":{"rendered":"<p>\n\t\u6700\u8fd1\u300a<a href=\"https:\/\/baike.baidu.com\/item\/\u6218\u72fc\u2161?fromtitle=\u6218\u72fc2&amp;fromid=17196087\" name=\"\u6218\u72fc2\" target=\"_blank\" title=\"\u6218\u72fc2\">\u6218\u72fc2<\/a>\u300b\u5927\u706b\uff0c\u521b\u9020\u4e8650\u4ebf\u7684\u7968\u623f\uff0c\u6253\u7834\u4e86\u591a\u4e2a\u8bb0\u5f55\u3002\u6211\u76f8\u4fe1\u5927\u90e8\u5206\u7684\u5c0f\u4f19\u4f34\u4eec\u90fd\u5df2\u7ecf\u53bb\u770b\u8fc7\u4e86\uff0c\u800c\u4e14\u6709\u4e00\u90e8\u5206\u5c31\u662f\u5728\u7f51\u4e0a\u8d2d\u4e70\u7684\u7535\u5f71\u7968\uff0c\u4f8b\u5982<a href=\"http:\/\/www.taobao.com\" name=\"\u6dd8\u5b9d\" target=\"_blank\" title=\"\u6dd8\u5b9d\">\u6dd8\u5b9d<\/a>\u7684<a href=\"https:\/\/baike.baidu.com\/item\/\u6dd8\u7968\u7968\" name=\"\u6dd8\u7968\u7968\" target=\"_blank\" title=\"\u6dd8\u7968\u7968\">\u6dd8\u7968\u7968<\/a>\u5728\u7ebf\u9009\u7968\u7684\u529f\u80fd\u3002\u7f51\u4e0a\u8d2d\u7968\u5982\u6b64\u7684\u65b9\u4fbf\uff0c\u90a3\u4e48\u6211\u4eec\u80fd\u7528<a href=\"http:\/\/www.xttblog.com\/?tag=html5\" name=\"html5\" target=\"_blank\" title=\"html5\">HTML5<\/a>+<a href=\"http:\/\/www.xttblog.com\/?tag=javascript\" name=\"javascript\" target=\"_blank\" title=\"javascript\">JavaScript<\/a>\u5b9e\u73b0\u4e00\u6b3e\u5728\u7ebf\u7535\u5f71\u7968\u7684\u9009\u7968\u529f\u80fd\u5417\uff1f<br \/>\n\t\u7b54\u6848\u662f\u80af\u5b9a\u7684\uff0c\u4eca\u5929\u6211\u4eec\u5c31\u6765\u501f\u52a9jQuery\u7684<a href=\"https:\/\/github.com\/mateuszmarkowski\/jQuery-Seat-Charts\" name=\"jQuery Seat Charts\" target=\"_blank\" title=\"jQuery Seat Charts\">jQuery-Seat-Charts<\/a>\u63d2\u4ef6\u6765\u5b9e\u73b0\u5728\u7ebf\u7535\u5f71\u7968\u9009\u5ea7\u529f\u80fd\u3002\u672c\u6848\u4f8b(\u79d1\u6587\u4e2d\u5fc3\u7535\u5f71\u9662)\u652f\u6301\u5728\u7ebf\u9009\u5ea7\uff0c\u7968\u6570\u7edf\u8ba1\uff0c\u7ed3\u7b97\u7b49\u529f\u80fd\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u4eff\u7535\u5f71\u7968\u9009\u5ea7\u6548\u679c\" src=\"https:\/\/img-bbs.csdn.net\/upload\/201708\/18\/1503037599_923901.jpg\" style=\"width: 660px;height: 450px\" \/>\n<\/p>\n<p>\n\t\u6839\u636e\u4e0a\u9762\u7684\u5b9e\u4f8b\uff0c\u6211\u76f8\u4fe1\u4f60\u4eec\u53ef\u4ee5\u5236\u4f5c\u4e00\u6b3e\u9488\u5bf912306\u7684\u5728\u7ebf\u9009\u706b\u8f66\u7968\u7684\u6548\u679c\uff0c\u6c7d\u8f66\u7968\u4e5f\u4e00\u6837\u3002\n<\/p>\n<p>\n\t\u4e0b\u9762\u770b\u770b\u5177\u4f53\u7684\u5b9e\u73b0\u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;div class=&quot;demo&quot;&gt; \r\n       &lt;div id=&quot;seat-map&quot;&gt; \r\n        &lt;div class=&quot;front&quot;&gt;\u5c4f\u5e55&lt;\/div&gt;                     \r\n    &lt;\/div&gt; \r\n    &lt;div class=&quot;booking-details&quot;&gt; \r\n        &lt;p&gt;\u5f71\u7247\uff1a&lt;span&gt;\u661f\u9645\u7a7f\u8d8a3D&lt;\/span&gt;&lt;\/p&gt; \r\n        &lt;p&gt;\u65f6\u95f4\uff1a&lt;span&gt;11\u670814\u65e5 21:00&lt;\/span&gt;&lt;\/p&gt; \r\n        &lt;p&gt;\u5ea7\u4f4d\uff1a&lt;\/p&gt; \r\n        &lt;ul id=&quot;selected-seats&quot;&gt;&lt;\/ul&gt; \r\n        &lt;p&gt;\u7968\u6570\uff1a&lt;span id=&quot;counter&quot;&gt;0&lt;\/span&gt;&lt;\/p&gt; \r\n        &lt;p&gt;\u603b\u8ba1\uff1a&lt;b&gt;\uffe5&lt;span id=&quot;total&quot;&gt;0&lt;\/span&gt;&lt;\/b&gt;&lt;\/p&gt;         \r\n        &lt;button class=&quot;checkout-button&quot;&gt;\u786e\u5b9a\u8d2d\u4e70&lt;\/button&gt;         \r\n        &lt;div id=&quot;legend&quot;&gt;&lt;\/div&gt; \r\n    &lt;\/div&gt; \r\n&lt;\/div&gt; <\/pre>\n<p>\n\t\u5269\u4e0b\u7684\u6700\u4e3b\u8981\u7684\u662f\u4f7f\u7528CSS\u5c06\u9875\u9762\u4e2d\u7684\u5404\u4e2a\u5143\u7d20\u7f8e\u5316\u3002\u5305\u62ec\u7535\u5f71\u9662\u5e03\u5c40\uff0c\u5ea7\u4f4d\u5e03\u5c40\uff0c\u9009\u7968\u529f\u80fd\u5b9e\u73b0\uff0c\u5b9e\u65f6\u7edf\u8ba1\u7968\u6570\u7b49\u529f\u80fd\u3002\n<\/p>\n<pre class=\"brush:css;\">\r\n.front{width: 300px;margin: 5px 32px 45px 32px;background-color: #f0f0f0; color: #666;text-align: center;padding: 3px;border-radius: 5px;} \r\n.booking-details {float: right;position: relative;width:200px;height: 450px; } \r\n.booking-details h3 {margin: 5px 5px 0 0;font-size: 16px;} \r\n.booking-details p{line-height:26px; font-size:16px; color:#999} \r\n.booking-details p span{color:#666} \r\ndiv.seatCharts-cell {color: #182C4E;height: 25px;width: 25px;line-height: 25px;margin: 3px;float: left;text-align: center;outline: none;font-size: 13px;} \r\ndiv.seatCharts-seat {color: #fff;cursor: pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius: 5px;} \r\ndiv.seatCharts-row {height: 35px;} \r\ndiv.seatCharts-seat.available {background-color: #B9DEA0;} \r\ndiv.seatCharts-seat.focused {background-color: #76B474;border: none;} \r\ndiv.seatCharts-seat.selected {background-color: #E6CAC4;} \r\ndiv.seatCharts-seat.unavailable {background-color: #472B34;cursor: not-allowed;} \r\ndiv.seatCharts-container {border-right: 1px dotted #adadad;width: 400px;padding: 20px;float: left;} \r\ndiv.seatCharts-legend {padding-left: 0px;position: absolute;bottom: 16px;} \r\nul.seatCharts-legendList {padding-left: 0px;} \r\n.seatCharts-legendItem{float:left; width:90px;margin-top: 10px;line-height: 2;} \r\nspan.seatCharts-legendDescription {margin-left: 5px;line-height: 30px;} \r\n.checkout-button {display: block;width:80px; height:24px; line-height:20px;margin: 10px auto;border:1px solid #999;font-size: 14px; cursor:pointer} \r\n#selected-seats {max-height: 150px;overflow-y: auto;overflow-x: none;width: 200px;} \r\n#selected-seats li{float:left; width:72px; height:26px; line-height:26px; border:1px solid #d3d3d3; background:#f7f7f7; margin:6px; font-size:14px; font-weight:bold; text-align:center} <\/pre>\n<p>\n\t\u6700\u540e\u5f15\u5165\u6211\u4eec\u7684jQuery\u7684jQuery-Seat-Charts\u63d2\u4ef6\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;jquery.js&quot;&gt;&lt;\/script&gt; \r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;jquery.seat-charts.min.js&quot;&gt;&lt;\/script&gt; <\/pre>\n<p>\n\t\u5728\u8c03\u7528\u8be5\u63d2\u4ef6\u7684seatCharts()\u65b9\u6cd5\u5373\u53ef\u5b9e\u73b0\u7535\u5f71\u7968\u9009\u7968\u529f\u80fd\u7684\u6e32\u67d3\u3002\n<\/p>\n<pre class=\"brush:jscript;\">\r\n$(&#039;#seat-map&#039;).seatCharts()<\/pre>\n<p>\n\t\u4ee5\u4e0a\u5c31\u662f\u5927\u81f4\u7684\u7535\u5f71\u9662\u9009\u7968\u529f\u80fd\u7684\u5b9e\u73b0\u3002\u5b8c\u6574\u7684\u4ee3\u7801\u5df2\u5171\u4eab\u5728github\uff1a<a href=\"https:\/\/github.com\/mateuszmarkowski\/jQuery-Seat-Charts\" name=\"\u7535\u5f71\u9662\u5728\u7ebf\u9009\u7968\u529f\u80fd\u6e90\u7801\" target=\"_blank\" title=\"\u7535\u5f71\u9662\u5728\u7ebf\u9009\u7968\u529f\u80fd\u6e90\u7801\">https:\/\/github.com\/mateuszmarkowski\/jQuery-Seat-Charts<\/a><\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1801\">\u4f7f\u7528jQuery-Seat-Charts\u63d2\u4ef6\u5b9e\u73b0\u5728\u7ebf\u7535\u5f71\u7968\u9009\u5ea7\u529f\u80fd<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u300a\u6218\u72fc2\u300b\u5927\u706b\uff0c\u521b\u9020\u4e8650\u4ebf\u7684\u7968\u623f\uff0c\u6253\u7834\u4e86\u591a\u4e2a\u8bb0\u5f55\u3002\u6211\u76f8\u4fe1\u5927\u90e8\u5206\u7684\u5c0f\u4f19\u4f34\u4eec\u90fd\u5df2\u7ecf\u53bb\u770b\u8fc7\u4e86\uff0c\u800c\u4e14\u6709\u4e00\u90e8\u5206\u5c31\u662f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1106,49,1274],"class_list":["post-1801","post","type-post","status-publish","format-standard","hentry","category-html5","tag-javascript","tag-jquery"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1801"}],"version-history":[{"count":2,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1801\/revisions"}],"predecessor-version":[{"id":3840,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1801\/revisions\/3840"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}