您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

66 行
2.8 KiB

  1. import React from 'react';
  2. import TeamStyleTwo from '@/components/Sales/Sales_Detail';
  3. import Link from 'next/link';
  4. import * as Icon from 'react-feather';
  5. import GetSales from "api/sales/sales-mercy.js";
  6. const Sales = function ({ backend, sales, ...props }) {
  7. const currentYear = new Date().getFullYear();
  8. return (
  9. <>
  10. <TeamStyleTwo sales={sales} backend={backend} />
  11. <footer className="bg-fff" style={{marginTop:"-39px"}}>
  12. <div className="container">
  13. <div className="row">
  14. <div className="copyright-area">
  15. <div className="single-footer-widget">
  16. <ul className="social-links" align="center">
  17. <li>
  18. <Link href="https://www.facebook.com/thamrin.mercedesbenz/" >
  19. <a className="facebook" target="_blank"><Icon.Facebook /></a>
  20. </Link>
  21. </li>
  22. <li>
  23. <Link href="https://twitter.com/ThamrinMB" >
  24. <a className="twitter" target="_blank"><Icon.Twitter /></a>
  25. </Link>
  26. </li>
  27. <li>
  28. <Link href="https://www.instagram.com/thamrin.mercedesbenz/">
  29. <a className="instagram" target="_blank"><Icon.Instagram /></a>
  30. </Link>
  31. </li>
  32. <li>
  33. <Link href="https://www.youtube.com/channel/UCkU7UUVwFHaWAzRX9HXL6xQ">
  34. <a className="linkedin" target="_blank"><Icon.Youtube /></a>
  35. </Link>
  36. </li>
  37. </ul>
  38. </div>
  39. <p>Copyright &copy; {currentYear} All Right Reserved by <a href="https://thamrin.xyz/" target="_blank">@Thamrin Group </a></p>
  40. </div>
  41. </div>
  42. </div>
  43. </footer>
  44. </>
  45. )
  46. }
  47. export default Sales;
  48. export async function getServerSideProps(context) {
  49. var { query } = context;
  50. var sales = [];
  51. const backend = process.env.BACKEND_SERVER_URI;
  52. var res = await GetSales.GetDetailSalesMerci(query.s || 0);
  53. if (res["STATUS"] === 1) {
  54. sales = res["DATA"]["salesMercies"];
  55. }
  56. return {
  57. props: { sales, backend }, // will be passed to the page component as props
  58. };
  59. }