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
|
|
|
|
}, __props.datas.paid == 0 ? {} : common_vendor.e({
|
|
|
|
c: __props.datas.status == 0
|
|
|
|
}, __props.datas.status == 0 ? {} : {}, {
|
|
|
|
d: __props.datas.status == 1
|
|
|
|
}, __props.datas.status == 1 ? {} : {}, {
|
|
|
|
e: __props.datas.status == 2 || __props.datas.status == 3
|
|
|
|
}, __props.datas.status == 2 || __props.datas.status == 3 ? {} : {}), {
|
|
|
|
f: common_vendor.o(navTo),
|
|
|
|
g: 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-04-30 18:08:36 +08:00
|
|
|
h: common_vendor.p({
|
|
|
|
name: "arrow-right-double",
|
|
|
|
color: "#20B128"
|
|
|
|
}),
|
|
|
|
i: common_vendor.t(__props.datas.goods_count),
|
|
|
|
j: common_vendor.t(__props.datas.total),
|
|
|
|
k: common_vendor.o(navTo),
|
|
|
|
l: __props.datas.paid = 0
|
|
|
|
}, (__props.datas.paid = 0) ? {
|
|
|
|
m: common_vendor.p({
|
2024-04-26 18:04:56 +08:00
|
|
|
size: "small",
|
|
|
|
plain: true,
|
|
|
|
color: "#989898",
|
|
|
|
shape: "circle"
|
|
|
|
}),
|
2024-04-30 18:08:36 +08:00
|
|
|
n: 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({
|
|
|
|
o: __props.datas.status == 1
|
|
|
|
}, __props.datas.status == 1 ? {
|
|
|
|
p: 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
|
|
|
})
|
|
|
|
} : {}, {
|
|
|
|
q: __props.datas.status == 2 || __props.datas.status == 3
|
|
|
|
}, __props.datas.status == 2 || __props.datas.status == 3 ? {
|
|
|
|
r: 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
|
|
|
})
|
|
|
|
} : {}, {
|
|
|
|
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
|
|
|
}),
|
|
|
|
t: common_vendor.o(navTo)
|
|
|
|
}));
|
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);
|