adDetail-CbL4xuDD.mjs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. import { u as useStatusStore, _ as __nuxt_component_0, a as __nuxt_component_3$1 } from './status-B7jmHhdv.mjs';
  2. import { _ as __nuxt_component_3 } from './Pagination-BIcfmSVd.mjs';
  3. import { unref, withCtx, createVNode, toDisplayString, useSSRContext } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
  4. import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
  5. import { ElTable, ElTableColumn } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
  6. import { _ as _export_sfc, b as useNuxtApp, e as useRoute } from './server.mjs';
  7. import { u as useState } from './state-_I5XcLqc.mjs';
  8. import '../_/renderer.mjs';
  9. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
  10. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
  11. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/devalue/index.js';
  12. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
  13. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
  14. import '../routes/index.mjs';
  15. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
  16. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
  17. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
  18. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
  19. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
  20. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
  21. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
  22. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
  23. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
  24. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
  25. import 'file:///D:/zwj/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
  26. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
  27. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
  28. import 'node:fs';
  29. import 'node:url';
  30. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
  31. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
  32. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
  33. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
  34. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
  35. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
  36. const _sfc_main = {
  37. __name: "adDetail",
  38. __ssrInlineRender: true,
  39. setup(__props) {
  40. const statusStore = useStatusStore();
  41. const nuxtApp = useNuxtApp();
  42. nuxtApp.$axios;
  43. let route = useRoute();
  44. let order_id = route.query.id;
  45. route.query.days;
  46. route.query.status;
  47. route.query.status;
  48. console.log(order_id);
  49. let order = useState("order", () => "");
  50. let orderDetail = useState("orderDetail", () => "");
  51. useState("newArr", () => "");
  52. return (_ctx, _push, _parent, _attrs) => {
  53. const _component_AdvertisingHead = __nuxt_component_0;
  54. const _component_HomePagination = __nuxt_component_3;
  55. const _component_AdvertisingFoot = __nuxt_component_3$1;
  56. _push(`<div${ssrRenderAttrs(_attrs)} data-v-bf989b0c>`);
  57. _push(ssrRenderComponent(_component_AdvertisingHead, null, null, _parent));
  58. _push(`<div class="adDetail" data-v-bf989b0c><div class="inner" data-v-bf989b0c><h3 data-v-bf989b0c>\u5E7F\u544A\u57FA\u672C\u4FE1\u606F</h3><div class="order" data-v-bf989b0c><div class="title" data-v-bf989b0c><span class="status left" data-v-bf989b0c>${ssrInterpolate(unref(statusStore).orderStatus[unref(order).status])}</span><span class="code left" data-v-bf989b0c> \u5DE5\u5355\u7F16\u53F7: <span data-v-bf989b0c>${ssrInterpolate(unref(order).order_num)}</span></span><span class="createTime right" data-v-bf989b0c>${ssrInterpolate(unref(order).created_at)}</span></div><div class="text" data-v-bf989b0c><span data-v-bf989b0c>\u5F00\u59CB\u65F6\u95F4:${ssrInterpolate(unref(order).sttime)}</span><span data-v-bf989b0c>\u7ED3\u675F\u65F6\u95F4:${ssrInterpolate(unref(order).edtime)}</span><span data-v-bf989b0c><span class="money" data-v-bf989b0c>${ssrInterpolate(unref(order).price ? unref(order).price : 260)}</span> \u5143 </span><button data-v-bf989b0c>\u518D\u6B21\u7533\u8BF7</button></div></div><div class="detail" data-v-bf989b0c>`);
  59. _push(ssrRenderComponent(unref(ElTable), {
  60. data: unref(orderDetail),
  61. style: { "width": "100%" }
  62. }, {
  63. default: withCtx((_, _push2, _parent2, _scopeId) => {
  64. if (_push2) {
  65. _push2(ssrRenderComponent(unref(ElTableColumn), {
  66. prop: "",
  67. label: "\u56FE\u7247\u4FE1\u606F",
  68. align: "center"
  69. }, {
  70. default: withCtx((scope, _push3, _parent3, _scopeId2) => {
  71. if (_push3) {
  72. _push3(`<div class="content" data-v-bf989b0c${_scopeId2}><img${ssrRenderAttr("src", scope.row.image_src)} alt="" class="left" data-v-bf989b0c${_scopeId2}></div>`);
  73. } else {
  74. return [
  75. createVNode("div", { class: "content" }, [
  76. createVNode("img", {
  77. src: scope.row.image_src,
  78. alt: "",
  79. class: "left"
  80. }, null, 8, ["src"])
  81. ])
  82. ];
  83. }
  84. }),
  85. _: 1
  86. }, _parent2, _scopeId));
  87. _push2(ssrRenderComponent(unref(ElTableColumn), {
  88. prop: "",
  89. label: ""
  90. }, {
  91. default: withCtx((scope, _push3, _parent3, _scopeId2) => {
  92. if (_push3) {
  93. _push3(`<div class="content" data-v-bf989b0c${_scopeId2}><h5 data-v-bf989b0c${_scopeId2}>${ssrInterpolate(scope.row.apname)}</h5><p data-v-bf989b0c${_scopeId2}>${ssrInterpolate(scope.row.adname)}</p></div>`);
  94. } else {
  95. return [
  96. createVNode("div", { class: "content" }, [
  97. createVNode("h5", null, toDisplayString(scope.row.apname), 1),
  98. createVNode("p", null, toDisplayString(scope.row.adname), 1)
  99. ])
  100. ];
  101. }
  102. }),
  103. _: 1
  104. }, _parent2, _scopeId));
  105. _push2(ssrRenderComponent(unref(ElTableColumn), {
  106. prop: "website_name",
  107. label: "\u7F51\u5740",
  108. width: "200px",
  109. align: "center"
  110. }, null, _parent2, _scopeId));
  111. _push2(ssrRenderComponent(unref(ElTableColumn), {
  112. prop: "days",
  113. label: "\u5929\u6570",
  114. width: "200px",
  115. align: "center"
  116. }, null, _parent2, _scopeId));
  117. _push2(ssrRenderComponent(unref(ElTableColumn), {
  118. prop: "state",
  119. label: "\u5BA1\u6838\u72B6\u6001",
  120. width: "200px",
  121. align: "center"
  122. }, null, _parent2, _scopeId));
  123. _push2(ssrRenderComponent(unref(ElTableColumn), {
  124. prop: "ad_status",
  125. label: "\u5E7F\u544A\u72B6\u6001",
  126. width: "200px",
  127. align: "center"
  128. }, null, _parent2, _scopeId));
  129. } else {
  130. return [
  131. createVNode(unref(ElTableColumn), {
  132. prop: "",
  133. label: "\u56FE\u7247\u4FE1\u606F",
  134. align: "center"
  135. }, {
  136. default: withCtx((scope) => [
  137. createVNode("div", { class: "content" }, [
  138. createVNode("img", {
  139. src: scope.row.image_src,
  140. alt: "",
  141. class: "left"
  142. }, null, 8, ["src"])
  143. ])
  144. ]),
  145. _: 1
  146. }),
  147. createVNode(unref(ElTableColumn), {
  148. prop: "",
  149. label: ""
  150. }, {
  151. default: withCtx((scope) => [
  152. createVNode("div", { class: "content" }, [
  153. createVNode("h5", null, toDisplayString(scope.row.apname), 1),
  154. createVNode("p", null, toDisplayString(scope.row.adname), 1)
  155. ])
  156. ]),
  157. _: 1
  158. }),
  159. createVNode(unref(ElTableColumn), {
  160. prop: "website_name",
  161. label: "\u7F51\u5740",
  162. width: "200px",
  163. align: "center"
  164. }),
  165. createVNode(unref(ElTableColumn), {
  166. prop: "days",
  167. label: "\u5929\u6570",
  168. width: "200px",
  169. align: "center"
  170. }),
  171. createVNode(unref(ElTableColumn), {
  172. prop: "state",
  173. label: "\u5BA1\u6838\u72B6\u6001",
  174. width: "200px",
  175. align: "center"
  176. }),
  177. createVNode(unref(ElTableColumn), {
  178. prop: "ad_status",
  179. label: "\u5E7F\u544A\u72B6\u6001",
  180. width: "200px",
  181. align: "center"
  182. })
  183. ];
  184. }
  185. }),
  186. _: 1
  187. }, _parent));
  188. _push(`</div><div class="pagination" data-v-bf989b0c>`);
  189. _push(ssrRenderComponent(_component_HomePagination, null, null, _parent));
  190. _push(`</div></div></div>`);
  191. _push(ssrRenderComponent(_component_AdvertisingFoot, null, null, _parent));
  192. _push(`</div>`);
  193. };
  194. }
  195. };
  196. const _sfc_setup = _sfc_main.setup;
  197. _sfc_main.setup = (props, ctx) => {
  198. const ssrContext = useSSRContext();
  199. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/advertising/adDetail.vue");
  200. return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
  201. };
  202. const adDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bf989b0c"]]);
  203. export { adDetail as default };
  204. //# sourceMappingURL=adDetail-CbL4xuDD.mjs.map