feat: 订单卡片组件封装
This commit is contained in:
39
unpackage/dist/dev/mp-weixin/components/OrderCardItem/index.js
vendored
Normal file
39
unpackage/dist/dev/mp-weixin/components/OrderCardItem/index.js
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const orderId = common_vendor.ref("7378400483776544");
|
||||
const touristCount = common_vendor.ref(7);
|
||||
const orderStatus = common_vendor.ref("pending");
|
||||
const orderStatusText = common_vendor.computed(() => {
|
||||
switch (orderStatus.value) {
|
||||
case "canceled":
|
||||
return "已取消";
|
||||
case "pending":
|
||||
return "待确认";
|
||||
case "refundProcessing":
|
||||
return "退款中";
|
||||
case "refunded":
|
||||
return "已退款";
|
||||
case "completed":
|
||||
return "已完成";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$6,
|
||||
b: common_vendor.t(orderStatusText.value),
|
||||
c: common_vendor.n(`status-${orderStatus.value}`),
|
||||
d: common_vendor.t(orderId.value),
|
||||
e: common_vendor.t(touristCount.value)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-fff203c8"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/OrderCardItem/index.js.map
|
||||
Reference in New Issue
Block a user