index-D4_Ucwxo.mjs 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152
  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 { useSSRContext, ref, unref, withCtx, createVNode, isRef, createTextVNode, openBlock, createBlock, Fragment, renderList, mergeProps, withDirectives, toDisplayString, vShow } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
  4. import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrInterpolate, ssrRenderClass } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
  5. import { ElIcon, ElInput, ElDatePicker, ElRadioGroup, ElRadio, ElUpload, ElSelect, ElOption, ElTable, ElTableColumn, ElTabs, ElTabPane } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
  6. import { _ as _export_sfc, b as useNuxtApp, a as navigateTo } from './server.mjs';
  7. import { u as useState } from './state-_I5XcLqc.mjs';
  8. import { DArrowRight, Plus } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@element-plus/icons-vue/dist/index.js';
  9. import '../_/renderer.mjs';
  10. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
  11. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
  12. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/devalue/index.js';
  13. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
  14. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
  15. import '../routes/index.mjs';
  16. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
  17. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
  18. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
  19. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
  20. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
  21. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
  22. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
  23. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
  24. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
  25. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
  26. import 'file:///D:/zwj/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
  27. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
  28. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
  29. import 'node:fs';
  30. import 'node:url';
  31. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
  32. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
  33. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
  34. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
  35. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
  36. import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
  37. const _sfc_main$1 = {
  38. __name: "OrderList",
  39. __ssrInlineRender: true,
  40. setup(__props) {
  41. useStatusStore();
  42. const nuxtApp = useNuxtApp();
  43. const axios = nuxtApp.$axios;
  44. const activeName = ref("first");
  45. let orderList = useState("orderList", () => "");
  46. let order = useState("order", () => "");
  47. useState("orders", () => "");
  48. let order_ad = useState("order_ad", () => []);
  49. let allOrder = useState("allOrder", () => "");
  50. let allOrderTotal = useState("allOrderTotal", () => "");
  51. let total1 = useState("total1", () => "");
  52. let total2 = useState("total2", () => "");
  53. let total6 = useState("total6", () => "");
  54. let page = useState("page", () => "1");
  55. let pageSize = useState("pageSize", () => "10");
  56. let page1 = useState("page1", () => "1");
  57. const handleData = (data) => {
  58. console.log(data.value);
  59. page.value = data.value;
  60. console.log(page);
  61. axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page.value}`).then((response) => {
  62. console.log(response.data.rows);
  63. allOrder.value = response.data.rows;
  64. console.log(orderList.value);
  65. }).catch((error) => {
  66. console.log(error);
  67. });
  68. };
  69. const handleData1 = (data) => {
  70. console.log(data.value);
  71. page1.value = data.value;
  72. console.log(page1);
  73. axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page1.value}&status=${1}`).then((response) => {
  74. console.log(response.data.rows);
  75. orderList.value = response.data.rows;
  76. console.log(orderList.value);
  77. }).catch((error) => {
  78. console.log(error);
  79. });
  80. };
  81. const handleData2 = (data) => {
  82. console.log(data.value);
  83. page1.value = data.value;
  84. console.log(page1);
  85. axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page1.value}&status=${2}`).then((response) => {
  86. console.log(response.data.rows);
  87. orderList.value = response.data.rows;
  88. console.log(orderList.value);
  89. }).catch((error) => {
  90. console.log(error);
  91. });
  92. };
  93. const handleData3 = (data) => {
  94. console.log(data.value);
  95. page1.value = data.value;
  96. console.log(page1);
  97. axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page1.value}&status=${6}`).then((response) => {
  98. console.log(response.data.rows);
  99. orderList.value = response.data.rows;
  100. console.log(orderList.value);
  101. }).catch((error) => {
  102. console.log(error);
  103. });
  104. };
  105. const handleClick = (tab, event) => {
  106. console.log(tab.props.name, event);
  107. if (tab.props.name = all) {
  108. axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page.value}`).then((response) => {
  109. console.log(response.data.rows);
  110. allOrder.value = response.data.rows;
  111. console.log(orderList.value);
  112. }).catch((error) => {
  113. console.log(error);
  114. });
  115. } else {
  116. axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page.value}&status=${tab.props.name}`).then((response) => {
  117. console.log(response.data.rows);
  118. orderList.value = response.data.rows;
  119. console.log(orderList.value);
  120. }).catch((error) => {
  121. console.log(error);
  122. });
  123. }
  124. };
  125. let goCancel = (item) => {
  126. if (item.status == 1)
  127. ;
  128. };
  129. let goDetail = (item) => {
  130. console.log(item);
  131. const params = {
  132. id: item.id,
  133. days: item.days,
  134. status: item.status,
  135. ad_status: item.ad_status
  136. };
  137. navigateTo({
  138. path: "/advertising/adDetail",
  139. query: params
  140. });
  141. };
  142. return (_ctx, _push, _parent, _attrs) => {
  143. const _component_HomePagination = __nuxt_component_3;
  144. _push(`<div${ssrRenderAttrs(mergeProps({ class: "orderList" }, _attrs))} data-v-cfc8f80b><div class="inner" data-v-cfc8f80b>`);
  145. _push(ssrRenderComponent(unref(ElTabs), {
  146. modelValue: activeName.value,
  147. "onUpdate:modelValue": ($event) => activeName.value = $event,
  148. class: "demo-tabs",
  149. onTabClick: handleClick
  150. }, {
  151. default: withCtx((_, _push2, _parent2, _scopeId) => {
  152. if (_push2) {
  153. _push2(ssrRenderComponent(unref(ElTabPane), {
  154. label: "\u5168\u90E8 (" + unref(allOrderTotal) + ")",
  155. name: "all"
  156. }, {
  157. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  158. if (_push3) {
  159. _push3(`<!--[-->`);
  160. ssrRenderList(unref(allOrder), (item) => {
  161. _push3(`<div class="order" data-v-cfc8f80b${_scopeId2}><div class="title" data-v-cfc8f80b${_scopeId2}><span style="${ssrRenderStyle(item.status == 6 ? null : { display: "none" })}" class="${ssrRenderClass(item.status == 6 ? "orangeStatus" : "grayStatus")}" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(unref(order)[item.status])}</span><span style="${ssrRenderStyle(item.status == 1 ? null : { display: "none" })}" class="${ssrRenderClass(item.status == 1 ? "greenStatus" : "grayStatus")}" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(unref(order)[item.status])}</span><span style="${ssrRenderStyle(item.status != 6 && item.status != 1 ? null : { display: "none" })}" class="${ssrRenderClass(item.status != 6 && item.status != 1 ? "grayStatus" : "")}" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(unref(order)[item.status])}</span><span class="code" data-v-cfc8f80b${_scopeId2}> \u5DE5\u5355\u7F16\u53F7: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.order_num)}</span></span><span class="createTime right" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.created_at)}</span></div><div class="text" data-v-cfc8f80b${_scopeId2}><div class="time" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5F00\u59CB\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.sttime)}</span></p><p data-v-cfc8f80b${_scopeId2}> \u7ED3\u675F\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.edtime)}</span></p></div><div class="num" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5929\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.days)}\u5929</span></p><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u4E2A\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.num)}\u4E2A</span></p></div><div class="state" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u72B6\u6001: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(unref(order_ad)[item.ad_status])}</span></p><p data-v-cfc8f80b${_scopeId2}><span class="price" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.price)}</span> \u5143 </p></div><div class="btn" data-v-cfc8f80b${_scopeId2}><button data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.status == 1 ? "\u518D\u6B21\u7533\u8BF7" : "\u53D6\u6D88\u5DE5\u5355")}</button><button data-v-cfc8f80b${_scopeId2}>\u67E5\u770B\u8BE6\u60C5</button></div></div></div>`);
  162. });
  163. _push3(`<!--]--><div class="pagination" data-v-cfc8f80b${_scopeId2}>`);
  164. _push3(ssrRenderComponent(_component_HomePagination, {
  165. onSendData: handleData,
  166. total: unref(allOrderTotal)
  167. }, null, _parent3, _scopeId2));
  168. _push3(`</div>`);
  169. } else {
  170. return [
  171. (openBlock(true), createBlock(Fragment, null, renderList(unref(allOrder), (item) => {
  172. return openBlock(), createBlock("div", {
  173. class: "order",
  174. key: item.id
  175. }, [
  176. createVNode("div", { class: "title" }, [
  177. withDirectives(createVNode("span", {
  178. class: item.status == 6 ? "orangeStatus" : "grayStatus"
  179. }, toDisplayString(unref(order)[item.status]), 3), [
  180. [vShow, item.status == 6]
  181. ]),
  182. withDirectives(createVNode("span", {
  183. class: item.status == 1 ? "greenStatus" : "grayStatus"
  184. }, toDisplayString(unref(order)[item.status]), 3), [
  185. [vShow, item.status == 1]
  186. ]),
  187. withDirectives(createVNode("span", {
  188. class: item.status != 6 && item.status != 1 ? "grayStatus" : ""
  189. }, toDisplayString(unref(order)[item.status]), 3), [
  190. [vShow, item.status != 6 && item.status != 1]
  191. ]),
  192. createVNode("span", { class: "code" }, [
  193. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  194. createVNode("span", null, toDisplayString(item.order_num), 1)
  195. ]),
  196. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  197. ]),
  198. createVNode("div", { class: "text" }, [
  199. createVNode("div", { class: "time" }, [
  200. createVNode("p", null, [
  201. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  202. createVNode("span", null, toDisplayString(item.sttime), 1)
  203. ]),
  204. createVNode("p", null, [
  205. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  206. createVNode("span", null, toDisplayString(item.edtime), 1)
  207. ])
  208. ]),
  209. createVNode("div", { class: "num" }, [
  210. createVNode("p", null, [
  211. createTextVNode(" \u5929\u6570: "),
  212. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  213. ]),
  214. createVNode("p", null, [
  215. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  216. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  217. ])
  218. ]),
  219. createVNode("div", { class: "state" }, [
  220. createVNode("p", null, [
  221. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  222. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  223. ]),
  224. createVNode("p", null, [
  225. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  226. createTextVNode(" \u5143 ")
  227. ])
  228. ]),
  229. createVNode("div", { class: "btn" }, [
  230. createVNode("button", {
  231. onClick: ($event) => unref(goCancel)(item)
  232. }, toDisplayString(item.status == 1 ? "\u518D\u6B21\u7533\u8BF7" : "\u53D6\u6D88\u5DE5\u5355"), 9, ["onClick"]),
  233. createVNode("button", {
  234. onClick: ($event) => unref(goDetail)(item)
  235. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  236. ])
  237. ])
  238. ]);
  239. }), 128)),
  240. createVNode("div", { class: "pagination" }, [
  241. createVNode(_component_HomePagination, {
  242. onSendData: handleData,
  243. total: unref(allOrderTotal)
  244. }, null, 8, ["total"])
  245. ])
  246. ];
  247. }
  248. }),
  249. _: 1
  250. }, _parent2, _scopeId));
  251. _push2(ssrRenderComponent(unref(ElTabPane), {
  252. label: "\u5DF2\u901A\u8FC7 (" + unref(total1) + ")",
  253. name: "1"
  254. }, {
  255. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  256. if (_push3) {
  257. _push3(`<!--[-->`);
  258. ssrRenderList(unref(orderList), (item) => {
  259. _push3(`<div class="order1" data-v-cfc8f80b${_scopeId2}><div class="title" data-v-cfc8f80b${_scopeId2}><span class="statusClass" data-v-cfc8f80b${_scopeId2}>\u5DF2\u901A\u8FC7</span><span class="code" data-v-cfc8f80b${_scopeId2}> \u5DE5\u5355\u7F16\u53F7: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.order_num)}</span></span><span class="createTime right" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.created_at)}</span></div><div class="text" data-v-cfc8f80b${_scopeId2}><div class="time" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5F00\u59CB\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.sttime)}</span></p><p data-v-cfc8f80b${_scopeId2}> \u7ED3\u675F\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.edtime)}</span></p></div><div class="num" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5929\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.days)}\u5929</span></p><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u4E2A\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.num)}\u4E2A</span></p></div><div class="state" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u72B6\u6001: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(unref(order_ad)[item.ad_status])}</span></p><p data-v-cfc8f80b${_scopeId2}><span class="price" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.price)}</span> \u5143 </p></div><div class="btn" data-v-cfc8f80b${_scopeId2}><button data-v-cfc8f80b${_scopeId2}>\u53D6\u6D88\u5DE5\u5355</button><button data-v-cfc8f80b${_scopeId2}>\u67E5\u770B\u8BE6\u60C5</button></div></div></div>`);
  260. });
  261. _push3(`<!--]--><div class="pagination" data-v-cfc8f80b${_scopeId2}>`);
  262. _push3(ssrRenderComponent(_component_HomePagination, {
  263. onSendData: handleData1,
  264. total: unref(total1)
  265. }, null, _parent3, _scopeId2));
  266. _push3(`</div>`);
  267. } else {
  268. return [
  269. (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => {
  270. return openBlock(), createBlock("div", {
  271. class: "order1",
  272. key: item.id
  273. }, [
  274. createVNode("div", { class: "title" }, [
  275. createVNode("span", { class: "statusClass" }, "\u5DF2\u901A\u8FC7"),
  276. createVNode("span", { class: "code" }, [
  277. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  278. createVNode("span", null, toDisplayString(item.order_num), 1)
  279. ]),
  280. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  281. ]),
  282. createVNode("div", { class: "text" }, [
  283. createVNode("div", { class: "time" }, [
  284. createVNode("p", null, [
  285. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  286. createVNode("span", null, toDisplayString(item.sttime), 1)
  287. ]),
  288. createVNode("p", null, [
  289. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  290. createVNode("span", null, toDisplayString(item.edtime), 1)
  291. ])
  292. ]),
  293. createVNode("div", { class: "num" }, [
  294. createVNode("p", null, [
  295. createTextVNode(" \u5929\u6570: "),
  296. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  297. ]),
  298. createVNode("p", null, [
  299. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  300. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  301. ])
  302. ]),
  303. createVNode("div", { class: "state" }, [
  304. createVNode("p", null, [
  305. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  306. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  307. ]),
  308. createVNode("p", null, [
  309. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  310. createTextVNode(" \u5143 ")
  311. ])
  312. ]),
  313. createVNode("div", { class: "btn" }, [
  314. createVNode("button", {
  315. onClick: ($event) => unref(goCancel)(item)
  316. }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]),
  317. createVNode("button", {
  318. onClick: ($event) => unref(goDetail)(item)
  319. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  320. ])
  321. ])
  322. ]);
  323. }), 128)),
  324. createVNode("div", { class: "pagination" }, [
  325. createVNode(_component_HomePagination, {
  326. onSendData: handleData1,
  327. total: unref(total1)
  328. }, null, 8, ["total"])
  329. ])
  330. ];
  331. }
  332. }),
  333. _: 1
  334. }, _parent2, _scopeId));
  335. _push2(ssrRenderComponent(unref(ElTabPane), {
  336. label: "\u5DF2\u9A73\u56DE (" + unref(total2) + ")",
  337. name: "2"
  338. }, {
  339. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  340. if (_push3) {
  341. _push3(`<!--[-->`);
  342. ssrRenderList(unref(orderList), (item) => {
  343. _push3(`<div class="order2" data-v-cfc8f80b${_scopeId2}><div class="title" data-v-cfc8f80b${_scopeId2}><span class="statusClass" data-v-cfc8f80b${_scopeId2}>\u5DF2\u9A73\u56DE</span><span class="code" data-v-cfc8f80b${_scopeId2}> \u5DE5\u5355\u7F16\u53F7: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.order_num)}</span></span><span class="createTime right" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.created_at)}</span></div><div class="text" data-v-cfc8f80b${_scopeId2}><div class="time" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5F00\u59CB\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.sttime)}</span></p><p data-v-cfc8f80b${_scopeId2}> \u7ED3\u675F\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.edtime)}</span></p></div><div class="num" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5929\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.days)}\u5929</span></p><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u4E2A\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.num)}\u4E2A</span></p></div><div class="state" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u72B6\u6001: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(unref(order_ad)[item.ad_status])}</span></p><p data-v-cfc8f80b${_scopeId2}><span class="price" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.price)}</span> \u5143 </p></div><div class="btn" data-v-cfc8f80b${_scopeId2}><button data-v-cfc8f80b${_scopeId2}>\u53D6\u6D88\u5DE5\u5355</button><button data-v-cfc8f80b${_scopeId2}>\u67E5\u770B\u8BE6\u60C5</button></div></div></div>`);
  344. });
  345. _push3(`<!--]--><div class="pagination" data-v-cfc8f80b${_scopeId2}>`);
  346. _push3(ssrRenderComponent(_component_HomePagination, {
  347. onSendData: handleData2,
  348. total: unref(total2)
  349. }, null, _parent3, _scopeId2));
  350. _push3(`</div>`);
  351. } else {
  352. return [
  353. (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => {
  354. return openBlock(), createBlock("div", {
  355. class: "order2",
  356. key: item.id
  357. }, [
  358. createVNode("div", { class: "title" }, [
  359. createVNode("span", { class: "statusClass" }, "\u5DF2\u9A73\u56DE"),
  360. createVNode("span", { class: "code" }, [
  361. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  362. createVNode("span", null, toDisplayString(item.order_num), 1)
  363. ]),
  364. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  365. ]),
  366. createVNode("div", { class: "text" }, [
  367. createVNode("div", { class: "time" }, [
  368. createVNode("p", null, [
  369. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  370. createVNode("span", null, toDisplayString(item.sttime), 1)
  371. ]),
  372. createVNode("p", null, [
  373. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  374. createVNode("span", null, toDisplayString(item.edtime), 1)
  375. ])
  376. ]),
  377. createVNode("div", { class: "num" }, [
  378. createVNode("p", null, [
  379. createTextVNode(" \u5929\u6570: "),
  380. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  381. ]),
  382. createVNode("p", null, [
  383. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  384. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  385. ])
  386. ]),
  387. createVNode("div", { class: "state" }, [
  388. createVNode("p", null, [
  389. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  390. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  391. ]),
  392. createVNode("p", null, [
  393. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  394. createTextVNode(" \u5143 ")
  395. ])
  396. ]),
  397. createVNode("div", { class: "btn" }, [
  398. createVNode("button", {
  399. onClick: ($event) => unref(goCancel)(item)
  400. }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]),
  401. createVNode("button", {
  402. onClick: ($event) => unref(goDetail)(item)
  403. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  404. ])
  405. ])
  406. ]);
  407. }), 128)),
  408. createVNode("div", { class: "pagination" }, [
  409. createVNode(_component_HomePagination, {
  410. onSendData: handleData2,
  411. total: unref(total2)
  412. }, null, 8, ["total"])
  413. ])
  414. ];
  415. }
  416. }),
  417. _: 1
  418. }, _parent2, _scopeId));
  419. _push2(ssrRenderComponent(unref(ElTabPane), {
  420. label: "\u5F85\u5BA1\u6838 (" + unref(total6) + ")",
  421. name: "6"
  422. }, {
  423. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  424. if (_push3) {
  425. _push3(`<!--[-->`);
  426. ssrRenderList(unref(orderList), (item) => {
  427. _push3(`<div class="order6" data-v-cfc8f80b${_scopeId2}><div class="title" data-v-cfc8f80b${_scopeId2}><span class="statusClass" data-v-cfc8f80b${_scopeId2}>\u5F85\u5BA1\u6838</span><span class="code" data-v-cfc8f80b${_scopeId2}> \u5DE5\u5355\u7F16\u53F7: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.order_num)}</span></span><span class="createTime right" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.created_at)}</span></div><div class="text" data-v-cfc8f80b${_scopeId2}><div class="time" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5F00\u59CB\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.sttime)}</span></p><p data-v-cfc8f80b${_scopeId2}> \u7ED3\u675F\u65F6\u95F4: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.edtime)}</span></p></div><div class="num" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5929\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.days)}\u5929</span></p><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u4E2A\u6570: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.num)}\u4E2A</span></p></div><div class="state" data-v-cfc8f80b${_scopeId2}><p data-v-cfc8f80b${_scopeId2}> \u5E7F\u544A\u72B6\u6001: <span data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(unref(order_ad)[item.ad_status])}</span></p><p data-v-cfc8f80b${_scopeId2}><span class="price" data-v-cfc8f80b${_scopeId2}>${ssrInterpolate(item.price)}</span> \u5143 </p></div><div class="btn" data-v-cfc8f80b${_scopeId2}><button data-v-cfc8f80b${_scopeId2}>\u53D6\u6D88\u5DE5\u5355</button><button data-v-cfc8f80b${_scopeId2}>\u67E5\u770B\u8BE6\u60C5</button></div></div></div>`);
  428. });
  429. _push3(`<!--]--><div class="pagination" data-v-cfc8f80b${_scopeId2}>`);
  430. _push3(ssrRenderComponent(_component_HomePagination, {
  431. onSendData: handleData3,
  432. total: unref(total6)
  433. }, null, _parent3, _scopeId2));
  434. _push3(`</div>`);
  435. } else {
  436. return [
  437. (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => {
  438. return openBlock(), createBlock("div", {
  439. class: "order6",
  440. key: item.id
  441. }, [
  442. createVNode("div", { class: "title" }, [
  443. createVNode("span", { class: "statusClass" }, "\u5F85\u5BA1\u6838"),
  444. createVNode("span", { class: "code" }, [
  445. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  446. createVNode("span", null, toDisplayString(item.order_num), 1)
  447. ]),
  448. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  449. ]),
  450. createVNode("div", { class: "text" }, [
  451. createVNode("div", { class: "time" }, [
  452. createVNode("p", null, [
  453. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  454. createVNode("span", null, toDisplayString(item.sttime), 1)
  455. ]),
  456. createVNode("p", null, [
  457. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  458. createVNode("span", null, toDisplayString(item.edtime), 1)
  459. ])
  460. ]),
  461. createVNode("div", { class: "num" }, [
  462. createVNode("p", null, [
  463. createTextVNode(" \u5929\u6570: "),
  464. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  465. ]),
  466. createVNode("p", null, [
  467. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  468. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  469. ])
  470. ]),
  471. createVNode("div", { class: "state" }, [
  472. createVNode("p", null, [
  473. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  474. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  475. ]),
  476. createVNode("p", null, [
  477. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  478. createTextVNode(" \u5143 ")
  479. ])
  480. ]),
  481. createVNode("div", { class: "btn" }, [
  482. createVNode("button", {
  483. onClick: ($event) => unref(goCancel)(item)
  484. }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]),
  485. createVNode("button", {
  486. onClick: ($event) => unref(goDetail)(item)
  487. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  488. ])
  489. ])
  490. ]);
  491. }), 128)),
  492. createVNode("div", { class: "pagination" }, [
  493. createVNode(_component_HomePagination, {
  494. onSendData: handleData3,
  495. total: unref(total6)
  496. }, null, 8, ["total"])
  497. ])
  498. ];
  499. }
  500. }),
  501. _: 1
  502. }, _parent2, _scopeId));
  503. } else {
  504. return [
  505. createVNode(unref(ElTabPane), {
  506. label: "\u5168\u90E8 (" + unref(allOrderTotal) + ")",
  507. name: "all"
  508. }, {
  509. default: withCtx(() => [
  510. (openBlock(true), createBlock(Fragment, null, renderList(unref(allOrder), (item) => {
  511. return openBlock(), createBlock("div", {
  512. class: "order",
  513. key: item.id
  514. }, [
  515. createVNode("div", { class: "title" }, [
  516. withDirectives(createVNode("span", {
  517. class: item.status == 6 ? "orangeStatus" : "grayStatus"
  518. }, toDisplayString(unref(order)[item.status]), 3), [
  519. [vShow, item.status == 6]
  520. ]),
  521. withDirectives(createVNode("span", {
  522. class: item.status == 1 ? "greenStatus" : "grayStatus"
  523. }, toDisplayString(unref(order)[item.status]), 3), [
  524. [vShow, item.status == 1]
  525. ]),
  526. withDirectives(createVNode("span", {
  527. class: item.status != 6 && item.status != 1 ? "grayStatus" : ""
  528. }, toDisplayString(unref(order)[item.status]), 3), [
  529. [vShow, item.status != 6 && item.status != 1]
  530. ]),
  531. createVNode("span", { class: "code" }, [
  532. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  533. createVNode("span", null, toDisplayString(item.order_num), 1)
  534. ]),
  535. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  536. ]),
  537. createVNode("div", { class: "text" }, [
  538. createVNode("div", { class: "time" }, [
  539. createVNode("p", null, [
  540. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  541. createVNode("span", null, toDisplayString(item.sttime), 1)
  542. ]),
  543. createVNode("p", null, [
  544. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  545. createVNode("span", null, toDisplayString(item.edtime), 1)
  546. ])
  547. ]),
  548. createVNode("div", { class: "num" }, [
  549. createVNode("p", null, [
  550. createTextVNode(" \u5929\u6570: "),
  551. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  552. ]),
  553. createVNode("p", null, [
  554. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  555. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  556. ])
  557. ]),
  558. createVNode("div", { class: "state" }, [
  559. createVNode("p", null, [
  560. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  561. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  562. ]),
  563. createVNode("p", null, [
  564. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  565. createTextVNode(" \u5143 ")
  566. ])
  567. ]),
  568. createVNode("div", { class: "btn" }, [
  569. createVNode("button", {
  570. onClick: ($event) => unref(goCancel)(item)
  571. }, toDisplayString(item.status == 1 ? "\u518D\u6B21\u7533\u8BF7" : "\u53D6\u6D88\u5DE5\u5355"), 9, ["onClick"]),
  572. createVNode("button", {
  573. onClick: ($event) => unref(goDetail)(item)
  574. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  575. ])
  576. ])
  577. ]);
  578. }), 128)),
  579. createVNode("div", { class: "pagination" }, [
  580. createVNode(_component_HomePagination, {
  581. onSendData: handleData,
  582. total: unref(allOrderTotal)
  583. }, null, 8, ["total"])
  584. ])
  585. ]),
  586. _: 1
  587. }, 8, ["label"]),
  588. createVNode(unref(ElTabPane), {
  589. label: "\u5DF2\u901A\u8FC7 (" + unref(total1) + ")",
  590. name: "1"
  591. }, {
  592. default: withCtx(() => [
  593. (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => {
  594. return openBlock(), createBlock("div", {
  595. class: "order1",
  596. key: item.id
  597. }, [
  598. createVNode("div", { class: "title" }, [
  599. createVNode("span", { class: "statusClass" }, "\u5DF2\u901A\u8FC7"),
  600. createVNode("span", { class: "code" }, [
  601. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  602. createVNode("span", null, toDisplayString(item.order_num), 1)
  603. ]),
  604. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  605. ]),
  606. createVNode("div", { class: "text" }, [
  607. createVNode("div", { class: "time" }, [
  608. createVNode("p", null, [
  609. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  610. createVNode("span", null, toDisplayString(item.sttime), 1)
  611. ]),
  612. createVNode("p", null, [
  613. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  614. createVNode("span", null, toDisplayString(item.edtime), 1)
  615. ])
  616. ]),
  617. createVNode("div", { class: "num" }, [
  618. createVNode("p", null, [
  619. createTextVNode(" \u5929\u6570: "),
  620. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  621. ]),
  622. createVNode("p", null, [
  623. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  624. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  625. ])
  626. ]),
  627. createVNode("div", { class: "state" }, [
  628. createVNode("p", null, [
  629. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  630. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  631. ]),
  632. createVNode("p", null, [
  633. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  634. createTextVNode(" \u5143 ")
  635. ])
  636. ]),
  637. createVNode("div", { class: "btn" }, [
  638. createVNode("button", {
  639. onClick: ($event) => unref(goCancel)(item)
  640. }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]),
  641. createVNode("button", {
  642. onClick: ($event) => unref(goDetail)(item)
  643. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  644. ])
  645. ])
  646. ]);
  647. }), 128)),
  648. createVNode("div", { class: "pagination" }, [
  649. createVNode(_component_HomePagination, {
  650. onSendData: handleData1,
  651. total: unref(total1)
  652. }, null, 8, ["total"])
  653. ])
  654. ]),
  655. _: 1
  656. }, 8, ["label"]),
  657. createVNode(unref(ElTabPane), {
  658. label: "\u5DF2\u9A73\u56DE (" + unref(total2) + ")",
  659. name: "2"
  660. }, {
  661. default: withCtx(() => [
  662. (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => {
  663. return openBlock(), createBlock("div", {
  664. class: "order2",
  665. key: item.id
  666. }, [
  667. createVNode("div", { class: "title" }, [
  668. createVNode("span", { class: "statusClass" }, "\u5DF2\u9A73\u56DE"),
  669. createVNode("span", { class: "code" }, [
  670. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  671. createVNode("span", null, toDisplayString(item.order_num), 1)
  672. ]),
  673. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  674. ]),
  675. createVNode("div", { class: "text" }, [
  676. createVNode("div", { class: "time" }, [
  677. createVNode("p", null, [
  678. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  679. createVNode("span", null, toDisplayString(item.sttime), 1)
  680. ]),
  681. createVNode("p", null, [
  682. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  683. createVNode("span", null, toDisplayString(item.edtime), 1)
  684. ])
  685. ]),
  686. createVNode("div", { class: "num" }, [
  687. createVNode("p", null, [
  688. createTextVNode(" \u5929\u6570: "),
  689. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  690. ]),
  691. createVNode("p", null, [
  692. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  693. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  694. ])
  695. ]),
  696. createVNode("div", { class: "state" }, [
  697. createVNode("p", null, [
  698. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  699. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  700. ]),
  701. createVNode("p", null, [
  702. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  703. createTextVNode(" \u5143 ")
  704. ])
  705. ]),
  706. createVNode("div", { class: "btn" }, [
  707. createVNode("button", {
  708. onClick: ($event) => unref(goCancel)(item)
  709. }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]),
  710. createVNode("button", {
  711. onClick: ($event) => unref(goDetail)(item)
  712. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  713. ])
  714. ])
  715. ]);
  716. }), 128)),
  717. createVNode("div", { class: "pagination" }, [
  718. createVNode(_component_HomePagination, {
  719. onSendData: handleData2,
  720. total: unref(total2)
  721. }, null, 8, ["total"])
  722. ])
  723. ]),
  724. _: 1
  725. }, 8, ["label"]),
  726. createVNode(unref(ElTabPane), {
  727. label: "\u5F85\u5BA1\u6838 (" + unref(total6) + ")",
  728. name: "6"
  729. }, {
  730. default: withCtx(() => [
  731. (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => {
  732. return openBlock(), createBlock("div", {
  733. class: "order6",
  734. key: item.id
  735. }, [
  736. createVNode("div", { class: "title" }, [
  737. createVNode("span", { class: "statusClass" }, "\u5F85\u5BA1\u6838"),
  738. createVNode("span", { class: "code" }, [
  739. createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "),
  740. createVNode("span", null, toDisplayString(item.order_num), 1)
  741. ]),
  742. createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1)
  743. ]),
  744. createVNode("div", { class: "text" }, [
  745. createVNode("div", { class: "time" }, [
  746. createVNode("p", null, [
  747. createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "),
  748. createVNode("span", null, toDisplayString(item.sttime), 1)
  749. ]),
  750. createVNode("p", null, [
  751. createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "),
  752. createVNode("span", null, toDisplayString(item.edtime), 1)
  753. ])
  754. ]),
  755. createVNode("div", { class: "num" }, [
  756. createVNode("p", null, [
  757. createTextVNode(" \u5929\u6570: "),
  758. createVNode("span", null, toDisplayString(item.days) + "\u5929", 1)
  759. ]),
  760. createVNode("p", null, [
  761. createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "),
  762. createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1)
  763. ])
  764. ]),
  765. createVNode("div", { class: "state" }, [
  766. createVNode("p", null, [
  767. createTextVNode(" \u5E7F\u544A\u72B6\u6001: "),
  768. createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1)
  769. ]),
  770. createVNode("p", null, [
  771. createVNode("span", { class: "price" }, toDisplayString(item.price), 1),
  772. createTextVNode(" \u5143 ")
  773. ])
  774. ]),
  775. createVNode("div", { class: "btn" }, [
  776. createVNode("button", {
  777. onClick: ($event) => unref(goCancel)(item)
  778. }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]),
  779. createVNode("button", {
  780. onClick: ($event) => unref(goDetail)(item)
  781. }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"])
  782. ])
  783. ])
  784. ]);
  785. }), 128)),
  786. createVNode("div", { class: "pagination" }, [
  787. createVNode(_component_HomePagination, {
  788. onSendData: handleData3,
  789. total: unref(total6)
  790. }, null, 8, ["total"])
  791. ])
  792. ]),
  793. _: 1
  794. }, 8, ["label"])
  795. ];
  796. }
  797. }),
  798. _: 1
  799. }, _parent));
  800. _push(`</div></div>`);
  801. };
  802. }
  803. };
  804. const _sfc_setup$1 = _sfc_main$1.setup;
  805. _sfc_main$1.setup = (props, ctx) => {
  806. const ssrContext = useSSRContext();
  807. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/advertising/OrderList.vue");
  808. return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
  809. };
  810. const __nuxt_component_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cfc8f80b"]]);
  811. const _sfc_main = {
  812. __name: "index",
  813. __ssrInlineRender: true,
  814. setup(__props) {
  815. const nuxtApp = useNuxtApp();
  816. nuxtApp.$axios;
  817. let ad = useState("ad", () => 1);
  818. let adCurrent = useState("adCurrent", () => true);
  819. const size = ref < "default" | "large" | "small" > "default";
  820. let adName = useState("adName", () => "");
  821. let adLink = useState("adLink", () => "");
  822. let startTime = useState("startTime", () => "");
  823. let endTime = useState("endTime", () => "");
  824. let adSize = useState("adSize", () => 1);
  825. useState("adWidth", () => 1200);
  826. useState("adHeight", () => 90);
  827. useState("pageSize", () => 10);
  828. useState("page", () => 1);
  829. useState("tableData", () => []);
  830. let processedData = useState("processedData", () => []);
  831. let pids = useState("pids", () => "");
  832. let orderInformation = useState("orderInformation", () => "");
  833. let changeStartTime = (val) => {
  834. startTime.value = `${val.getFullYear()}-${val.getMonth() + 1}-${val.getDate()}`;
  835. console.log(startTime.value);
  836. };
  837. let changeEndTime = (val) => {
  838. endTime.value = `${val.getFullYear()}-${val.getMonth() + 1}-${val.getDate()}`;
  839. console.log(endTime.value);
  840. };
  841. let handleUploadSuccess = (response, file, fileList) => {
  842. console.log(file.name);
  843. response.fileUrl;
  844. };
  845. let handleSelectionChange = (selectedRows) => {
  846. let selectedpids = [];
  847. selectedRows.forEach((row) => {
  848. selectedpids.push(row.pid);
  849. });
  850. pids.value = selectedpids.join(",");
  851. };
  852. const value = ref("");
  853. const options = [
  854. {
  855. value: "Option1",
  856. label: "Option1"
  857. },
  858. {
  859. value: "Option2",
  860. label: "Option2"
  861. },
  862. {
  863. value: "Option3",
  864. label: "Option3"
  865. },
  866. {
  867. value: "Option4",
  868. label: "Option4"
  869. },
  870. {
  871. value: "Option5",
  872. label: "Option5"
  873. }
  874. ];
  875. return (_ctx, _push, _parent, _attrs) => {
  876. const _component_AdvertisingHead = __nuxt_component_0;
  877. const _component_HomePagination = __nuxt_component_3;
  878. const _component_AdvertisingOrderList = __nuxt_component_2;
  879. const _component_AdvertisingFoot = __nuxt_component_3$1;
  880. _push(`<div${ssrRenderAttrs(_attrs)} data-v-2a66bd53>`);
  881. _push(ssrRenderComponent(_component_AdvertisingHead, null, null, _parent));
  882. _push(`<div class="advertising" data-v-2a66bd53><div class="inner" data-v-2a66bd53><ul class="nav" data-v-2a66bd53><li class="current" data-v-2a66bd53>\u5E7F\u544A\u8D2D\u4E70</li><li data-v-2a66bd53>\u5DE5\u5355\u5217\u8868</li></ul><div id="buyAd" style="${ssrRenderStyle(unref(adCurrent) ? null : { display: "none" })}" data-v-2a66bd53><div class="buyAD" data-v-2a66bd53><div class="inner" data-v-2a66bd53><div class="tabTitle" data-v-2a66bd53><span class="title" data-v-2a66bd53><span class="number" data-v-2a66bd53>1</span> \u586B\u5199\u5E7F\u544A\u4FE1\u606F </span><span class="title" data-v-2a66bd53><span class="icon" data-v-2a66bd53>`);
  883. _push(ssrRenderComponent(unref(ElIcon), null, {
  884. default: withCtx((_, _push2, _parent2, _scopeId) => {
  885. if (_push2) {
  886. _push2(ssrRenderComponent(unref(DArrowRight), null, null, _parent2, _scopeId));
  887. } else {
  888. return [
  889. createVNode(unref(DArrowRight))
  890. ];
  891. }
  892. }),
  893. _: 1
  894. }, _parent));
  895. _push(`</span><span class="number" data-v-2a66bd53>2</span> \u9009\u62E9\u76F8\u5E94\u7F51\u7AD9 </span><span class="title" data-v-2a66bd53><span class="icon" data-v-2a66bd53>`);
  896. _push(ssrRenderComponent(unref(ElIcon), null, {
  897. default: withCtx((_, _push2, _parent2, _scopeId) => {
  898. if (_push2) {
  899. _push2(ssrRenderComponent(unref(DArrowRight), null, null, _parent2, _scopeId));
  900. } else {
  901. return [
  902. createVNode(unref(DArrowRight))
  903. ];
  904. }
  905. }),
  906. _: 1
  907. }, _parent));
  908. _push(`</span><span class="number" data-v-2a66bd53>3</span> \u63D0\u4EA4\u5DE5\u5355\u4FE1\u606F </span></div><div class="textOne" style="${ssrRenderStyle(unref(ad) == 1 ? null : { display: "none" })}" data-v-2a66bd53><p data-v-2a66bd53><label for="adName" data-v-2a66bd53>\u5E7F\u544A\u540D\u79F0:</label>`);
  909. _push(ssrRenderComponent(unref(ElInput), {
  910. id: "adName",
  911. modelValue: unref(adName),
  912. "onUpdate:modelValue": ($event) => isRef(adName) ? adName.value = $event : adName = $event,
  913. style: { "width": "980px", "height": "44px" },
  914. placeholder: "\u8BF7\u8F93\u5165\u5E7F\u544A\u540D\u79F0"
  915. }, null, _parent));
  916. _push(`<span style="${ssrRenderStyle(!unref(adName) ? null : { display: "none" })}" data-v-2a66bd53>\u8BF7\u8F93\u5165\u5E7F\u544A\u540D\u79F0\u3002</span></p><p data-v-2a66bd53><label for="adLink" data-v-2a66bd53>\u5E7F\u544A\u94FE\u63A5:</label>`);
  917. _push(ssrRenderComponent(unref(ElInput), {
  918. class: "adLink",
  919. modelValue: unref(adLink),
  920. "onUpdate:modelValue": ($event) => isRef(adLink) ? adLink.value = $event : adLink = $event,
  921. style: { "width": "980px", "height": "44px" },
  922. placeholder: "\u8BF7\u8F93\u5165\u5E7F\u544A\u94FE\u63A5"
  923. }, null, _parent));
  924. _push(`<span style="${ssrRenderStyle(!unref(adLink) ? null : { display: "none" })}" data-v-2a66bd53>\u8BF7\u8F93\u5165\u5E7F\u544A\u94FE\u63A5\u3002</span></p><p data-v-2a66bd53><label data-v-2a66bd53>\u5E7F\u544A\u6301\u7EED\u65F6\u95F4:</label>`);
  925. _push(ssrRenderComponent(unref(ElDatePicker), {
  926. modelValue: unref(startTime),
  927. "onUpdate:modelValue": ($event) => isRef(startTime) ? startTime.value = $event : startTime = $event,
  928. type: "date",
  929. placeholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",
  930. onChange: unref(changeStartTime),
  931. size
  932. }, null, _parent));
  933. _push(`<strong data-v-2a66bd53>\u81F3</strong>`);
  934. _push(ssrRenderComponent(unref(ElDatePicker), {
  935. modelValue: unref(endTime),
  936. "onUpdate:modelValue": ($event) => isRef(endTime) ? endTime.value = $event : endTime = $event,
  937. type: "date",
  938. placeholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",
  939. onChange: unref(changeEndTime),
  940. size
  941. }, null, _parent));
  942. _push(`<span style="${ssrRenderStyle(!unref(endTime) ? null : { display: "none" })}" data-v-2a66bd53>\u8BF7\u9009\u62E9\u5E7F\u544A\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4</span></p><p class="AdSize" data-v-2a66bd53><label data-v-2a66bd53>\u5E7F\u544A\u5C3A\u5BF8:</label>`);
  943. _push(ssrRenderComponent(unref(ElRadioGroup), {
  944. modelValue: unref(adSize),
  945. "onUpdate:modelValue": ($event) => isRef(adSize) ? adSize.value = $event : adSize = $event,
  946. size
  947. }, {
  948. default: withCtx((_, _push2, _parent2, _scopeId) => {
  949. if (_push2) {
  950. _push2(ssrRenderComponent(unref(ElRadio), { value: 1 }, {
  951. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  952. if (_push3) {
  953. _push3(` 1200 x 90px `);
  954. } else {
  955. return [
  956. createTextVNode(" 1200 x 90px ")
  957. ];
  958. }
  959. }),
  960. _: 1
  961. }, _parent2, _scopeId));
  962. _push2(ssrRenderComponent(unref(ElRadio), { value: 2 }, {
  963. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  964. if (_push3) {
  965. _push3(` 420 x 560px `);
  966. } else {
  967. return [
  968. createTextVNode(" 420 x 560px ")
  969. ];
  970. }
  971. }),
  972. _: 1
  973. }, _parent2, _scopeId));
  974. } else {
  975. return [
  976. createVNode(unref(ElRadio), { value: 1 }, {
  977. default: withCtx(() => [
  978. createTextVNode(" 1200 x 90px ")
  979. ]),
  980. _: 1
  981. }),
  982. createVNode(unref(ElRadio), { value: 2 }, {
  983. default: withCtx(() => [
  984. createTextVNode(" 420 x 560px ")
  985. ]),
  986. _: 1
  987. })
  988. ];
  989. }
  990. }),
  991. _: 1
  992. }, _parent));
  993. _push(`<span style="${ssrRenderStyle(!unref(adSize) ? null : { display: "none" })}" data-v-2a66bd53>\u8BF7\u9009\u62E9\u5E7F\u544A\u5C3A\u5BF8\u3002</span></p><p data-v-2a66bd53><label data-v-2a66bd53>\u5E7F\u544A\u56FE:</label>`);
  994. _push(ssrRenderComponent(unref(ElUpload), {
  995. class: "upload-demo",
  996. action: "http://192.168.1.118:9501",
  997. "on-success": unref(handleUploadSuccess),
  998. "on-error": _ctx.handleUploadError,
  999. drag: "",
  1000. multiple: ""
  1001. }, {
  1002. default: withCtx((_, _push2, _parent2, _scopeId) => {
  1003. if (_push2) {
  1004. _push2(ssrRenderComponent(unref(ElIcon), { class: "el-icon--upload" }, {
  1005. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1006. if (_push3) {
  1007. _push3(ssrRenderComponent(unref(Plus), null, null, _parent3, _scopeId2));
  1008. } else {
  1009. return [
  1010. createVNode(unref(Plus))
  1011. ];
  1012. }
  1013. }),
  1014. _: 1
  1015. }, _parent2, _scopeId));
  1016. _push2(`<div class="el-upload__text" data-v-2a66bd53${_scopeId}> \u9009\u62E9\u56FE\u7247 </div>`);
  1017. } else {
  1018. return [
  1019. createVNode(unref(ElIcon), { class: "el-icon--upload" }, {
  1020. default: withCtx(() => [
  1021. createVNode(unref(Plus))
  1022. ]),
  1023. _: 1
  1024. }),
  1025. createVNode("div", { class: "el-upload__text" }, " \u9009\u62E9\u56FE\u7247 ")
  1026. ];
  1027. }
  1028. }),
  1029. _: 1
  1030. }, _parent));
  1031. _push(`<span data-v-2a66bd53>\u8BF7\u6DFB\u52A0\u5E7F\u544A\u56FE\uFF0C\u4E0D\u5927\u4E8E500k\u3002</span></p></div><div class="textTwo" style="${ssrRenderStyle(unref(ad) == 2 ? null : { display: "none" })}" data-v-2a66bd53><div class="inner" data-v-2a66bd53><div class="pageTop" data-v-2a66bd53><div class="left" data-v-2a66bd53> \u7F51\u7AD9\uFF1A `);
  1032. _push(ssrRenderComponent(unref(ElSelect), {
  1033. modelValue: value.value,
  1034. "onUpdate:modelValue": ($event) => value.value = $event,
  1035. placeholder: "\u8BF7\u9009\u62E9\u7F51\u7AD9\u540D\u79F0",
  1036. size: "large",
  1037. style: { "width": "244px", "height": "44px" }
  1038. }, {
  1039. default: withCtx((_, _push2, _parent2, _scopeId) => {
  1040. if (_push2) {
  1041. _push2(`<!--[-->`);
  1042. ssrRenderList(options, (item) => {
  1043. _push2(ssrRenderComponent(unref(ElOption), {
  1044. key: item.value,
  1045. label: item.label,
  1046. value: item.value
  1047. }, null, _parent2, _scopeId));
  1048. });
  1049. _push2(`<!--]-->`);
  1050. } else {
  1051. return [
  1052. (openBlock(), createBlock(Fragment, null, renderList(options, (item) => {
  1053. return createVNode(unref(ElOption), {
  1054. key: item.value,
  1055. label: item.label,
  1056. value: item.value
  1057. }, null, 8, ["label", "value"]);
  1058. }), 64))
  1059. ];
  1060. }
  1061. }),
  1062. _: 1
  1063. }, _parent));
  1064. _push(`<a href="#" data-v-2a66bd53>\u67E5\u770B\u793A\u610F\u56FE</a></div><div class="right" data-v-2a66bd53><button class="reset" data-v-2a66bd53>\u91CD\u7F6E</button><button class="search" data-v-2a66bd53>\u641C\u7D22</button></div></div><div class="pageTable" data-v-2a66bd53>`);
  1065. _push(ssrRenderComponent(unref(ElTable), {
  1066. data: unref(processedData),
  1067. border: "",
  1068. onSelectionChange: unref(handleSelectionChange),
  1069. "select-on-indeterminate": "",
  1070. style: { "width": "100%" },
  1071. "header-row-style": { height: "60px" },
  1072. "row-style": { height: "74px" },
  1073. "header-cell-style": { backgroundColor: "#fafafa", color: "#666" }
  1074. }, {
  1075. default: withCtx((_, _push2, _parent2, _scopeId) => {
  1076. if (_push2) {
  1077. _push2(ssrRenderComponent(unref(ElTableColumn), {
  1078. type: "selection",
  1079. width: "152",
  1080. align: "center"
  1081. }, null, _parent2, _scopeId));
  1082. _push2(ssrRenderComponent(unref(ElTableColumn), {
  1083. prop: "website_name",
  1084. label: "\u7F51\u7AD9",
  1085. width: "240"
  1086. }, null, _parent2, _scopeId));
  1087. _push2(ssrRenderComponent(unref(ElTableColumn), {
  1088. prop: "name",
  1089. label: "\u5E7F\u544A\u4F4D\u540D\u79F0",
  1090. width: "240"
  1091. }, null, _parent2, _scopeId));
  1092. _push2(ssrRenderComponent(unref(ElTableColumn), {
  1093. prop: "combinedField",
  1094. label: "\u5E7F\u544A\u5C3A\u5BF8",
  1095. width: "268"
  1096. }, null, _parent2, _scopeId));
  1097. _push2(ssrRenderComponent(unref(ElTableColumn), {
  1098. prop: "price",
  1099. label: "\u91D1\u989D (\u5143) / \u5929"
  1100. }, null, _parent2, _scopeId));
  1101. } else {
  1102. return [
  1103. createVNode(unref(ElTableColumn), {
  1104. type: "selection",
  1105. width: "152",
  1106. align: "center"
  1107. }),
  1108. createVNode(unref(ElTableColumn), {
  1109. prop: "website_name",
  1110. label: "\u7F51\u7AD9",
  1111. width: "240"
  1112. }),
  1113. createVNode(unref(ElTableColumn), {
  1114. prop: "name",
  1115. label: "\u5E7F\u544A\u4F4D\u540D\u79F0",
  1116. width: "240"
  1117. }),
  1118. createVNode(unref(ElTableColumn), {
  1119. prop: "combinedField",
  1120. label: "\u5E7F\u544A\u5C3A\u5BF8",
  1121. width: "268"
  1122. }),
  1123. createVNode(unref(ElTableColumn), {
  1124. prop: "price",
  1125. label: "\u91D1\u989D (\u5143) / \u5929"
  1126. })
  1127. ];
  1128. }
  1129. }),
  1130. _: 1
  1131. }, _parent));
  1132. _push(`</div><div class="pagination" data-v-2a66bd53>`);
  1133. _push(ssrRenderComponent(_component_HomePagination, null, null, _parent));
  1134. _push(`</div></div></div><div class="submit" style="${ssrRenderStyle(unref(ad) == 3 ? null : { display: "none" })}" data-v-2a66bd53><div class="inner" data-v-2a66bd53><h1 data-v-2a66bd53>\u5E7F\u544A\u4FE1\u606F\u5DF2\u63D0\u4EA4\u6210\u529F\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838......</h1><p data-v-2a66bd53> \u5DE5\u5355\u7F16\u53F7: <span data-v-2a66bd53>${ssrInterpolate(unref(orderInformation).$ordernum)}</span></p><div class="btn" data-v-2a66bd53><button class="check" data-v-2a66bd53>\u67E5\u770B\u5DE5\u5355</button><button class="apply" data-v-2a66bd53>\u518D\u6B21\u7533\u8BF7</button></div><span data-v-2a66bd53>\u5982\u6709\u7591\u95EE\uFF0C\u53EF\u8054\u7CFB\u5BA2\u670D\u4EBA\u5458\u3002</span></div></div></div></div></div><div id="orderList" style="${ssrRenderStyle(!unref(adCurrent) ? null : { display: "none" })}" data-v-2a66bd53>`);
  1135. _push(ssrRenderComponent(_component_AdvertisingOrderList, null, null, _parent));
  1136. _push(`</div></div><div class="bottom" style="${ssrRenderStyle(unref(ad) != 3 && unref(adCurrent) ? null : { display: "none" })}" data-v-2a66bd53><div class="inner" data-v-2a66bd53><div class="amount" style="${ssrRenderStyle(unref(ad) == 2 ? null : { display: "none" })}" data-v-2a66bd53> \u603B\u91D1\u989D: <span data-v-2a66bd53>243,210,910</span> \u5143 </div><button class="btn" data-v-2a66bd53>${ssrInterpolate(unref(ad) == 1 ? "\u4E0B\u4E00\u6B65" : "\u63D0\u4EA4\u5DE5\u5355")}</button></div></div></div>`);
  1137. _push(ssrRenderComponent(_component_AdvertisingFoot, null, null, _parent));
  1138. _push(`</div>`);
  1139. };
  1140. }
  1141. };
  1142. const _sfc_setup = _sfc_main.setup;
  1143. _sfc_main.setup = (props, ctx) => {
  1144. const ssrContext = useSSRContext();
  1145. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/advertising/index.vue");
  1146. return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
  1147. };
  1148. const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a66bd53"]]);
  1149. export { index as default };
  1150. //# sourceMappingURL=index-D4_Ucwxo.mjs.map