"use strict"; var common_vendor = require("../common/vendor.js"); var api_order = require("../api/order.js"); require("../common/request.js"); const _sfc_main = { data() { return { orderList: [], tabList: [{ name: "\u5168\u90E8" }, { name: "\u5F85\u4ED8\u6B3E" }, { name: "\u5DF2\u4ED8\u6B3E" }] }; }, mounted() { this.getliveOrderList(); }, methods: { tabsClick(item) { console.log("item", item); }, getliveOrderList() { let data = { pageSize: 10, page: 1 }; api_order.liveOrderList(data).then((res) => { if (res.code == 200) { console.log("\u8BA2\u5355\u5217\u8868\u6570\u636E>>>>", res); this.orderList = res.rows; } else { common_vendor.index.showToast({ title: res.msg, icon: "none" }); } }, (rej) => { console.log("rej:" + JSON.stringify(rej)); }); } } }; if (!Array) { const _easycom_u_tabs2 = common_vendor.resolveComponent("u-tabs"); _easycom_u_tabs2(); } const _easycom_u_tabs = () => "../uni_modules/uview-plus/components/u-tabs/u-tabs.js"; if (!Math) { _easycom_u_tabs(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.o($options.tabsClick), b: common_vendor.p({ itemStyle: "width:33%;height:100rpx;", list: $data.tabList, lineColor: "#FF5C03" }), c: common_vendor.f($data.orderList, (item, index, i0) => { return common_vendor.e({ a: common_vendor.t(item.orderCode), b: item.status == -1 }, item.status == -1 ? {} : item.status == -2 ? {} : item.status == 1 ? {} : item.status == 2 ? {} : item.status == 3 ? {} : item.status == 4 ? {} : item.status == 5 ? {} : {}, { c: item.status == -2, d: item.status == 1, e: item.status == 2, f: item.status == 3, g: item.status == 4, h: item.status == 5, i: common_vendor.t(item.orderName), j: common_vendor.t(item.totalNum), k: common_vendor.t(item.totalPrice), l: index }); }) }; } var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-07fa39de"], ["__file", "C:/Users/Administrator/Desktop/\u9879\u76EE/\u76F4\u64AD/liveH5-v3/pages_shop/order.vue"]]); wx.createPage(MiniProgramPage);