order_detail.tpl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. {include file="public/header-begin" /}
  2. <link rel="stylesheet" href="{$Think.config.base_url}/static/admin/css/style.min.css?v=4.0.0">
  3. <script src="{$Think.config.base_url}/static/common/js/vue.js"></script>
  4. {include file="public/header-end" /}
  5. <div id="vue" class="wrapper wrapper-content animated fadeInRight">
  6. <div class="row">
  7. <div class="col-sm-8">
  8. <div class="ibox">
  9. <div class="ibox-title">
  10. <h5>订单信息</h5>
  11. <div class="ibox-tools">
  12. <a data-toggle="modal" href="#modal-watch" class="btn btn-primary btn-xs">跟踪</a>
  13. </div>
  14. </div>
  15. <div class="ibox-content">
  16. <table class="table table-hover">
  17. <thead>
  18. <tr>
  19. <th>名称</th>
  20. <th>值</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <tr>
  25. <td>产品</td>
  26. <td>[{{item.ptype_text}}] {{item.from_city}}->{{item.to_city}} | {{item.from_name}} -> {{item.to_name}}</td>
  27. <td align="right">[关联]</td>
  28. </tr>
  29. <tr>
  30. <td>ID/订单编号</td>
  31. <td>{{item.orderid}}<span style="padding-left: 5px;padding-right: 5px">-</span>{{item.ordernumber}}</td>
  32. <td></td>
  33. </tr>
  34. <tr>
  35. <td>订单来源</td>
  36. <td>{{item.partner_name}}<span style="padding-left: 5px;padding-right: 5px">-</span>{{item.partner_ordernumber}}</td>
  37. <td></td>
  38. </tr>
  39. <tr>
  40. <td>状态</td>
  41. <td>
  42. <span v-if="item.status == 1" class="label label-info">{{item.status_text}}</span>
  43. <span v-if="item.status == 2" class="label label-danger">{{item.status_text}}</span>
  44. <span v-if="item.status == 3" class="label label-success">{{item.status_text}}</span>
  45. <span v-if="item.status == 4" class="label label-warning">{{item.status_text}}</span>
  46. <span v-if="item.status == 5" class="label label-default">{{item.status_text}}</span>
  47. <span v-if="item.status == 6" class="label label-danger">{{item.status_text}}</span>
  48. </td>
  49. <td align="right">
  50. [修改]
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>下单时间</td>
  55. <td>{{item.addtime_text}}</td>
  56. <td></td>
  57. </tr>
  58. <tr>
  59. <td>更新时间</td>
  60. <td>{{item.edittime_text}}</td>
  61. <td></td>
  62. </tr>
  63. <tr>
  64. <td colspan="3"><b>产品订单</b></td>
  65. </tr>
  66. <tr>
  67. <td>用车信息</td>
  68. <td>用车时间 {{item.usetime}}&nbsp;&nbsp;&nbsp;&nbsp;用车天数 {{item.cardays}} 天</td>
  69. <td></td>
  70. </tr>
  71. <tr>
  72. <td>订购车型</td>
  73. <td>{{item.cartype}}</td>
  74. <td></td>
  75. </tr>
  76. <tr>
  77. <td>出发地 -> 目的地</td>
  78. <td>{{item.from_name}} -> {{item.to_name}}</td>
  79. <td></td>
  80. </tr>
  81. <tr>
  82. <td>出发详细地址</td>
  83. <td>{{item.from_detail}}</td>
  84. <td></td>
  85. </tr>
  86. <tr>
  87. <td>目的详细地址</td>
  88. <td>{{item.to_detail}}</td>
  89. <td></td>
  90. </tr>
  91. <tr>
  92. <td>行程统计</td>
  93. <td>
  94. <span>预计共行驶 {{item.addroute.estimated_distance / 1000}} 公里</span>
  95. <span> - 共需 {{item.addroute.estimated_time}} 分钟</span>
  96. <br>
  97. <span>预计超出套餐 {{item.addroute.over_distance / 1000}} 公里</span>
  98. <span> - 超出套餐 {{item.addroute.over_time}} 分钟</span>
  99. <br>
  100. <span>套餐里程 {{item.addroute.free_distance / 1000}} 公里</span>
  101. <span> - 套餐时间 {{item.addroute.free_time}} 分钟</span>
  102. </td>
  103. <td></td>
  104. </tr>
  105. <tr>
  106. <td>人数</td>
  107. <td>总人数 {{item.person}} 人&nbsp;&nbsp;&nbsp;&nbsp;儿童 {{item.child}} 人</td>
  108. <td></td>
  109. </tr>
  110. <tr>
  111. <td>总价格</td>
  112. <td>¥ {{item.amount}} 元</td>
  113. <td align="right">[明细]</td>
  114. </tr>
  115. <tr>
  116. <td width="15%">备注</td>
  117. <td>{{item.note}}</td>
  118. <td width="10%" align="right">
  119. <a data-toggle="modal" href="#modal-note">[修改]</a>
  120. </td>
  121. </tr>
  122. </tbody>
  123. </table>
  124. </div>
  125. </div>
  126. <div class="ibox" v-if="item.status_pay == 1">
  127. <div class="ibox-title">
  128. <h5>付款信息</h5>
  129. </div>
  130. <div class="ibox-content">
  131. <table class="table table-hover">
  132. <thead>
  133. <tr>
  134. <th>名称</th>
  135. <th>值</th>
  136. </tr>
  137. </thead>
  138. <tbody>
  139. <tr>
  140. <td>付款金额</td>
  141. <td>
  142. ¥ {{item.finance.amount}} 元
  143. </td>
  144. </tr>
  145. <tr>
  146. <td>支付类型</td>
  147. <td>{{item.finance.paytype}}</td>
  148. </tr>
  149. <tr v-if="item.finance.id">
  150. <td>支付编号</td>
  151. <td>{{item.finance.id}}</td>
  152. </tr>
  153. <tr v-if="item.finance.paytime">
  154. <td>交易时间</td>
  155. <td>{{item.finance.paytime}}</td>
  156. </tr>
  157. <tr v-if="item.finance.terminal">
  158. <td>交易终端</td>
  159. <td>{{item.finance.terminal}}</td>
  160. </tr>
  161. </tbody>
  162. </table>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="col-sm-4">
  167. <div class="ibox">
  168. <div class="ibox-title">
  169. <h5>联系人信息</h5>
  170. <div class="ibox-tools">
  171. <a data-toggle="modal" href="#modal-contact" class="btn btn-primary btn-xs">修改</a>
  172. </div>
  173. </div>
  174. <div class="ibox-content">
  175. <table class="table table-hover">
  176. <thead>
  177. <tr>
  178. <th>名称</th>
  179. <th>值</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <tr>
  184. <td>姓名</td>
  185. <td>{{item.userinfo.truename}}</td>
  186. </tr>
  187. <tr>
  188. <td>联系电话</td>
  189. <td>{{item.userinfo.phone}}</td>
  190. </tr>
  191. <tr>
  192. <td>备用电话</td>
  193. <td>{{item.userinfo.phone2}}</td>
  194. </tr>
  195. <tr>
  196. <td>微信</td>
  197. <td>{{item.userinfo.wechat}}</td>
  198. </tr>
  199. </tbody>
  200. </table>
  201. </div>
  202. </div>
  203. <div class="ibox">
  204. <div class="ibox-title">
  205. <h5>关联订单</h5>
  206. <div class="ibox-tools">
  207. <a data-toggle="modal" href="#modal-form" class="btn btn-primary btn-xs">修改</a>
  208. </div>
  209. </div>
  210. <div class="ibox-content">
  211. <p>
  212. 123123123123123
  213. <p>
  214. </div>
  215. </div>
  216. <div class="ibox">
  217. <div class="ibox-title">
  218. <h5>下单人</h5>
  219. </div>
  220. <div class="ibox-content">
  221. <table class="table table-hover">
  222. <thead>
  223. <tr>
  224. <th>名称</th>
  225. <th>值</th>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <tr>
  230. <td>ID</td>
  231. <td>2</td>
  232. </tr>
  233. <tr>
  234. <td>姓名</td>
  235. <td>张奇</td>
  236. </tr>
  237. <tr>
  238. <td>手机号</td>
  239. <td>13136180523</td>
  240. </tr>
  241. </tbody>
  242. </table>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. <div class="modal inmodal" id="modal-status" tabindex="-1" role="dialog" aria-hidden="true">
  249. <div class="modal-dialog">
  250. <div class="modal-content animated bounceInRight">
  251. <div class="modal-header">
  252. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
  253. </button>
  254. <h4 class="modal-title">修改订单状态</h4>
  255. </div>
  256. <form id="formStatus" action="" method="post" class="form-horizontal">
  257. <input name="id" type="hidden" value="">
  258. <div class="modal-body" style="text-align: center;">
  259. <h4 class="modal-title">【服务中】 -> 【待评价】</h4>
  260. </div>
  261. <div class="modal-footer">
  262. <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
  263. <button type="submit" class="btn btn-primary">保存</button>
  264. </div>
  265. </form>
  266. </div>
  267. </div>
  268. </div>
  269. <div class="modal inmodal" id="modal-form" tabindex="-1" role="dialog" aria-hidden="true">
  270. <div class="modal-dialog">
  271. <div class="modal-content animated bounceInRight">
  272. <form id="formService" action="" method="post">
  273. <input name="id" type="hidden" value="">
  274. <div class="modal-header">
  275. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
  276. </button>
  277. <h4 class="modal-title">指派司机</h4>
  278. </div>
  279. <div class="modal-body">
  280. <textarea name="content" id="content" style="width:100%;height:300px;">123123123123123123123</textarea>
  281. </div>
  282. <div class="modal-footer">
  283. <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
  284. <button type="submit" class="btn btn-primary">保存</button>
  285. </div>
  286. </form>
  287. </div>
  288. </div>
  289. </div>
  290. <div class="modal inmodal" id="modal-note" tabindex="-1" role="dialog" aria-hidden="true">
  291. <div class="modal-dialog">
  292. <div class="modal-content animated bounceInRight">
  293. <form id="formNote" action="" method="post">
  294. <input name="id" type="hidden" value="">
  295. <div class="modal-header">
  296. <h4 class="modal-title">修改备注</h4>
  297. </div>
  298. <div class="modal-body">
  299. <textarea name="note" style="width:100%;height:200px;">123123123123</textarea>
  300. </div>
  301. <div class="modal-footer">
  302. <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
  303. <button type="submit" class="btn btn-primary">保存</button>
  304. </div>
  305. </form>
  306. </div>
  307. </div>
  308. </div>
  309. <div class="modal inmodal" id="modal-price" tabindex="-1" role="dialog" aria-hidden="true">
  310. <div class="modal-dialog">
  311. <div class="modal-content animated bounceInRight">
  312. <form id="formPrice" action="" method="post" class="form-horizontal">
  313. <div class="modal-header">
  314. <h4 class="modal-title">修改应付价格</h4>
  315. </div>
  316. <div class="modal-body">
  317. <input name="id" type="hidden" value="">
  318. <div class="form-group">
  319. <label class="col-sm-3 control-label">应付价格:</label>
  320. <div class="col-sm-8">
  321. <input name="price" type="text" placeholder="真实姓名" value="" class="form-control">
  322. </div>
  323. </div>
  324. </div>
  325. <div class="modal-footer">
  326. <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
  327. <button type="submit" class="btn btn-primary">保存</button>
  328. </div>
  329. </form>
  330. </div>
  331. </div>
  332. </div>
  333. <div class="modal inmodal" id="modal-contact" tabindex="-1" role="dialog" aria-hidden="true">
  334. <div class="modal-dialog">
  335. <div class="modal-content animated bounceInRight">
  336. <div class="modal-header">
  337. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
  338. </button>
  339. <h4 class="modal-title">修改联系人信息</h4>
  340. </div>
  341. <form id="formContact" action="" method="post" class="form-horizontal">
  342. <div class="modal-body">
  343. <input name="id" type="hidden" value="">
  344. <div class="form-group">
  345. <label class="col-sm-3 control-label">联系人姓名:</label>
  346. <div class="col-sm-8">
  347. <input type="truename" placeholder="真实姓名" v-model="item.userinfo.truename" class="form-control">
  348. </div>
  349. </div>
  350. <div class="form-group">
  351. <label class="col-sm-3 control-label">联系电话:</label>
  352. <div class="col-sm-8">
  353. <input type="text" placeholder="手机号" v-model="item.userinfo.phone" class="form-control">
  354. </div>
  355. </div>
  356. <div class="form-group">
  357. <label class="col-sm-3 control-label">备用电话:</label>
  358. <div class="col-sm-8">
  359. <input type="text" placeholder="微信号" v-model="item.userinfo.phone2" class="form-control">
  360. </div>
  361. </div>
  362. <div class="form-group">
  363. <label class="col-sm-3 control-label">微信:</label>
  364. <div class="col-sm-8">
  365. <input type="text" placeholder="微信号" v-model="item.userinfo.wechat" class="form-control">
  366. </div>
  367. </div>
  368. </div>
  369. <div class="modal-footer">
  370. <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
  371. <button type="submit" class="btn btn-primary">保存</button>
  372. </div>
  373. </form>
  374. </div>
  375. </div>
  376. </div>
  377. <div class="modal inmodal" id="modal-watch" tabindex="-1" role="dialog" aria-hidden="true">
  378. <div class="modal-dialog">
  379. <div class="modal-content animated bounceInRight">
  380. <div class="modal-header">
  381. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
  382. </button>
  383. <h4 class="modal-title">订单跟踪</h4>
  384. </div>
  385. <div class="modal-body">
  386. <table class="table table-hover">
  387. <thead>
  388. <tr>
  389. <th>操作</th>
  390. <th>操作时间</th>
  391. <th>操作人</th>
  392. </tr>
  393. </thead>
  394. <tbody>
  395. <tr v-for="track of trackList">
  396. <td>{{track.title}}</td>
  397. <td>{{track.addtime}}</td>
  398. <td>{{track.operater}}</td>
  399. </tr>
  400. </tbody>
  401. </table>
  402. </div>
  403. <div class="modal-footer">
  404. <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
  405. </div>
  406. </div>
  407. </div>
  408. </div>
  409. {include file="public/footer-js" /}
  410. <script>
  411. new Vue({
  412. el: '#vue',
  413. data: {
  414. id: {$id},
  415. item:{},
  416. trackList:{}
  417. },
  418. computed : {
  419. },
  420. methods: {
  421. getDetail:function() {
  422. var that = this;
  423. //锁定城市
  424. $.ajax({
  425. url: '{:url('getDetail')}',
  426. data: {
  427. orderid: this.id
  428. },
  429. type: 'post',
  430. dataType: 'json',
  431. success: function (data) {
  432. if (data.code == 1) {
  433. that.item = data.content;
  434. }
  435. else {
  436. swal("订单" + data.msg);
  437. }
  438. }
  439. });
  440. //得到该城市车型列表
  441. $.ajax({
  442. url: '{:url('city/getCartypeListOnEffective')}',
  443. data: {
  444. cityid: $(that.$els.area).attr('data-id'),
  445. ptype: that.item.ptype,
  446. usetime: that.item.usetime
  447. },
  448. type: 'post',
  449. dataType: 'json',
  450. success: function (data) {
  451. if (data.code == 1) {
  452. that.carTypeList = data.content.carTypeList;
  453. that.item.addroute = data.content.addroute;
  454. }
  455. else {
  456. swal("车型" + data.msg);
  457. }
  458. }
  459. });
  460. if(this.item.ptype == 1 || this.item.ptype == 2) {
  461. //得到该城市有效机场名称
  462. $.ajax({
  463. url: '{:url('city/getAirportList')}',
  464. data: {
  465. cityid: $(that.$els.area).attr('data-id')
  466. },
  467. type: 'post',
  468. dataType: 'json',
  469. success: function (data) {
  470. if (data.code == 1) {
  471. that.airportList = data.content;
  472. }
  473. else {
  474. swal("机场" + data.msg);
  475. }
  476. }
  477. });
  478. }
  479. },
  480. changeStep: function(step) {
  481. if(step > 0 && this.step == 4) {
  482. return;
  483. }
  484. if(step < 0 && this.step == 1) {
  485. return;
  486. }
  487. if(step > 0 && this.step == 1) {
  488. this.getDistancematrix();
  489. }
  490. this.step += step;
  491. },
  492. thisStep: function (step) {
  493. this.step = step;
  494. },
  495. getDistancematrix: function() {
  496. console.log(this._carTypeItem);
  497. var that = this;
  498. var param;
  499. //接机
  500. if(this.item.ptype == 1) {
  501. param = {
  502. from_name: this._airportItem.name_cn,//起始地址
  503. from_city: this.city.name_cn,//起始城市名称
  504. to_name: this.item.to_name,//到达地址
  505. to_city: this.city.name_cn,//到达城市名称
  506. to_detail: this.item.to_detail,//到达详细地址
  507. };
  508. }
  509. //送机
  510. else if(this.item.ptype == 2){
  511. param = {
  512. from_name: this.item.to_name,//起始地址
  513. from_city: this._airportItem.name_cn,//起始城市名称
  514. to_name: this.item.to_name,//到达地址
  515. to_city: this.city.name_cn,//到达城市名称
  516. };
  517. }
  518. $.ajax({
  519. url: '{:url('map/getDistancematrix')}',
  520. data: param,
  521. type: 'post',
  522. dataType: 'json',
  523. success: function (data) {
  524. if (data.code == 1) {
  525. that.distancematrix = data.content;
  526. }
  527. else {
  528. swal("机场" + data.msg);
  529. }
  530. }
  531. });
  532. },
  533. getPartnerList:function () {
  534. var that = this;
  535. $.ajax({
  536. url: '{:url('system/getPartnerList')}',
  537. data: [],
  538. type: 'post',
  539. dataType: 'json',
  540. success: function (data) {
  541. if (data.code == 1) {
  542. that.partnerList = data.content;
  543. }
  544. else {
  545. swal(data.msg);
  546. }
  547. }
  548. });
  549. },
  550. amountCopy: function () {
  551. this.item.amount = this._amount;
  552. },
  553. addOrder: function () {
  554. //接机
  555. if(this.item.ptype == 1) {
  556. this.item.from_name = this._airportItem.name_cn;//起始地址
  557. this.item.from_detail = this._airportItem.name_cn;//起始地址
  558. this.item.from_cid = this.city.cityid;//起始城市名称
  559. this.item.from_city = this.city.name_cn;//起始城市名称
  560. this.item.from_x = this._airportItem.x;//经度
  561. this.item.from_y = this._airportItem.y;//维度
  562. this.item.to_name = this.item.to_name;//到达地址
  563. this.item.to_detail = this.item.to_detail;//到达详细地址
  564. this.item.to_cid = this.city.cityid;//到达城市名称
  565. this.item.to_city = this.city.name_cn;//到达城市名称
  566. this.item.to_x = 0;//经度
  567. this.item.to_y = 0;//维度
  568. }
  569. //送机
  570. else if(this.item.ptype == 2) {
  571. }
  572. this.item.cartypeid = this._carTypeItem.id;
  573. this.item.cartype = this._carTypeItem.name;
  574. this.item.carprice = this._carTypeItem.price;
  575. this.item.addroute.over_time_price = this._over_time_price;
  576. this.item.addroute.over_distance_price = this._over_distance_price;
  577. this.item.addroute.estimated_time = this.distancematrix.duration.value;
  578. this.item.addroute.estimated_distance = this.distancematrix.distance.value;
  579. this.item.addroute.over_time = (this.distancematrix.duration.value - this.item.addroute.free_time) * 1 < 0 ? 0 : (this.distancematrix.duration.value - this.item.addroute.free_time) * 1;
  580. this.item.addroute.over_distance = (this.distancematrix.distance.value - this.item.addroute.free_distance ) * 1 < 0 ? 0 : (this.distancematrix.distance.value - this.item.addroute.free_distance) * 1;
  581. var that = this;
  582. console.log(this.item);
  583. $.ajax({
  584. url: '{:url('order/addOrder')}',
  585. data: this.item,
  586. type: 'post',
  587. dataType: 'json',
  588. success: function (data) {
  589. if (data.code == 1) {
  590. swal(data.msg);
  591. }
  592. else {
  593. swal(data.msg);
  594. }
  595. }
  596. });
  597. }
  598. },
  599. ready : function () {
  600. this.getDetail();
  601. },
  602. })
  603. </script>
  604. <script src="{$Think.config.base_url}/static/admin/js/jquery.min.js?v=2.1.4"></script>
  605. <script src="{$Think.config.base_url}/static/admin/js/bootstrap.min.js?v=3.3.5"></script>
  606. <script charset="utf-8" src="{$Think.config.base_url}/static/admin/plugins/kindeditor/kindeditor-all-min.js"></script>
  607. <script charset="utf-8" src="{$Think.config.base_url}/static/admin/plugins/kindeditor/lang/zh-CN.js"></script>
  608. <script>
  609. KindEditor.ready(function (K) {
  610. window.editor = K.create('#content'
  611. , {
  612. items: [
  613. 'source', 'forecolor', 'hilitecolor', 'bold',
  614. 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat'
  615. ]
  616. });
  617. });
  618. </script>
  619. <script src="{$Think.config.base_url}/static/admin/js/plugins/sweetalert/sweetalert.min.js"></script>
  620. <script src="{$Think.config.base_url}/static/common/js/jquery.form.js"></script>
  621. <script type="text/javascript">
  622. $(function() {
  623. var commonOptions = {
  624. beforeSubmit: function(arr, $form, options) {
  625. for (x of arr) {
  626. if(x.name == 'content') {
  627. x.value = editor.html();
  628. }
  629. }
  630. $("button[data-dismiss='modal']").click();
  631. },
  632. success: function (data) {
  633. if(data.code==1) {
  634. swal({
  635. title: data.msg,
  636. type: "success"
  637. },function () {
  638. window.location.href = data.forward;
  639. })
  640. }
  641. else {
  642. swal({
  643. title: data.msg,
  644. type: "warning"
  645. })
  646. }
  647. }
  648. };
  649. $("#formService").ajaxForm(commonOptions);
  650. $("#formContact").ajaxForm(commonOptions);
  651. $("#formPrice").ajaxForm(commonOptions);
  652. $("#formNote").ajaxForm(commonOptions);
  653. $("#formStatus").ajaxForm(commonOptions);
  654. });
  655. </script>
  656. {include file="public/footer" /}