purchase-let/unpackage/dist/dev/mp-weixin/pagesOrder/order/component/good.js

106 lines
3.2 KiB
JavaScript
Raw Normal View History

2024-04-26 18:04:56 +08:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
2024-04-30 18:08:36 +08:00
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_icon2 + _easycom_up_button2)();
2024-04-26 18:04:56 +08:00
}
const _easycom_up_icon = () => "../../../uni_modules/uview-plus/components/u-icon/u-icon.js";
2024-04-30 18:08:36 +08:00
const _easycom_up_button = () => "../../../uni_modules/uview-plus/components/u-button/u-button.js";
2024-04-26 18:04:56 +08:00
if (!Math) {
2024-04-30 18:08:36 +08:00
(_easycom_up_icon + _easycom_up_button)();
2024-04-26 18:04:56 +08:00
}
const _sfc_main = {
__name: "good",
props: {
type: {
type: Number,
default: 0
2024-04-30 16:24:55 +08:00
},
datas: {
type: Object,
default: () => {
}
2024-04-26 18:04:56 +08:00
}
},
setup(__props) {
2024-04-30 16:24:55 +08:00
const props = __props;
2024-04-26 18:04:56 +08:00
const navTo = () => {
common_vendor.index.navigateTo({
2024-04-30 18:08:36 +08:00
url: `/pagesOrder/detail/detail?type=${props.datas.paid}&id=${props.datas.id}`
2024-04-26 18:04:56 +08:00
});
};
return (_ctx, _cache) => {
return common_vendor.e({
2024-04-30 16:24:55 +08:00
a: common_vendor.t(__props.datas.number),
2024-04-30 18:08:36 +08:00
b: __props.datas.paid == 0
2024-05-06 11:51:21 +08:00
}, __props.datas.paid == 0 ? {
c: common_vendor.t(__props.datas.paid)
} : common_vendor.e({
d: __props.datas.status == 0
2024-04-30 18:08:36 +08:00
}, __props.datas.status == 0 ? {} : {}, {
2024-05-06 11:51:21 +08:00
e: __props.datas.status == 1
2024-04-30 18:08:36 +08:00
}, __props.datas.status == 1 ? {} : {}, {
2024-05-06 11:51:21 +08:00
f: __props.datas.status == 2 || __props.datas.status == 3
2024-04-30 18:08:36 +08:00
}, __props.datas.status == 2 || __props.datas.status == 3 ? {} : {}), {
2024-05-06 11:51:21 +08:00
g: common_vendor.o(navTo),
h: common_vendor.f(__props.datas.goods_list, (item, index, i0) => {
2024-04-30 16:24:55 +08:00
return {
a: item.imgs,
b: index
};
}),
2024-05-06 11:51:21 +08:00
i: common_vendor.p({
2024-04-30 18:08:36 +08:00
name: "arrow-right-double",
color: "#20B128"
}),
2024-05-06 11:51:21 +08:00
j: common_vendor.t(__props.datas.goods_count),
k: common_vendor.t(__props.datas.total),
l: common_vendor.o(navTo),
m: __props.datas.paid = 0
2024-04-30 18:08:36 +08:00
}, (__props.datas.paid = 0) ? {
2024-05-06 11:51:21 +08:00
n: common_vendor.p({
2024-04-26 18:04:56 +08:00
size: "small",
plain: true,
color: "#989898",
shape: "circle"
}),
2024-05-06 11:51:21 +08:00
o: common_vendor.p({
2024-04-26 18:04:56 +08:00
size: "small",
plain: true,
color: "#20B128",
shape: "circle"
})
2024-04-30 18:08:36 +08:00
} : common_vendor.e({
2024-05-06 11:51:21 +08:00
p: __props.datas.status == 1
2024-04-30 18:08:36 +08:00
}, __props.datas.status == 1 ? {
2024-05-06 11:51:21 +08:00
q: common_vendor.p({
2024-04-26 18:04:56 +08:00
size: "small",
plain: true,
2024-04-30 18:08:36 +08:00
color: "#20B128",
2024-04-26 18:04:56 +08:00
shape: "circle"
2024-04-30 18:08:36 +08:00
})
} : {}, {
2024-05-06 11:51:21 +08:00
r: __props.datas.status == 2 || __props.datas.status == 3
2024-04-30 18:08:36 +08:00
}, __props.datas.status == 2 || __props.datas.status == 3 ? {
2024-05-06 11:51:21 +08:00
s: common_vendor.p({
2024-04-26 18:04:56 +08:00
size: "small",
plain: true,
color: "#20B128",
shape: "circle"
2024-04-30 18:08:36 +08:00
})
} : {}, {
2024-05-06 11:51:21 +08:00
t: common_vendor.p({
2024-04-26 18:04:56 +08:00
size: "small",
plain: true,
color: "#20B128",
shape: "circle"
2024-04-30 18:08:36 +08:00
}),
2024-05-06 11:51:21 +08:00
v: common_vendor.o(navTo)
2024-04-30 18:08:36 +08:00
}));
2024-04-26 18:04:56 +08:00
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/里海数字乡村/purchase-let/pagesOrder/order/component/good.vue"]]);
wx.createComponent(Component);