選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

98 行
1.7 KiB

  1. exports.id = 9965;
  2. exports.ids = [9965];
  3. exports.modules = {
  4. /***/ 9965:
  5. /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
  6. "use strict";
  7. var _apollo = _interopRequireDefault(__webpack_require__(6371));
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. async function GetDetailProduct(id, token = "") {
  10. var res = await _apollo.default.query(`
  11. query($input: ID!){
  12. products(where:{id:$input})
  13. {
  14. id
  15. name
  16. price
  17. price1
  18. price2
  19. img{
  20. url
  21. }
  22. product_otrs {
  23. id
  24. name
  25. price
  26. }
  27. product_image_colors{
  28. id
  29. name
  30. img{
  31. url
  32. }
  33. }
  34. description
  35. spesifikasi_mesin
  36. spesifikasi_dimensi
  37. spesifikasi_rangka
  38. spesifikasi_kelistrikan
  39. film
  40. stock
  41. }
  42. } `, token, {
  43. "input": id
  44. });
  45. return res;
  46. }
  47. async function GetProductImgColor(id, token = "") {
  48. var res = await _apollo.default.query(`
  49. query($input: ID!) {
  50. productImageColors(where:{id:$input}) {
  51. id
  52. name
  53. img{
  54. url
  55. }
  56. }
  57. }
  58. `, token, {
  59. "input": id
  60. });
  61. return res;
  62. }
  63. async function GetProduct(token = "") {
  64. var res = await _apollo.default.query(`
  65. query {
  66. products{
  67. id
  68. name
  69. price
  70. price1
  71. price2
  72. img {
  73. url
  74. }
  75. }
  76. }`, token);
  77. return res;
  78. }
  79. module.exports = {
  80. GetProductImgColor: GetProductImgColor,
  81. GetProduct: GetProduct,
  82. //detail
  83. GetDetailProduct: GetDetailProduct
  84. };
  85. /***/ })
  86. };
  87. ;