106 lines
3.2 KiB
JavaScript
106 lines
3.2 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
if (!Array) {
|
|
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
|
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
|
(_easycom_up_icon2 + _easycom_up_button2)();
|
|
}
|
|
const _easycom_up_icon = () => "../../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
|
const _easycom_up_button = () => "../../../uni_modules/uview-plus/components/u-button/u-button.js";
|
|
if (!Math) {
|
|
(_easycom_up_icon + _easycom_up_button)();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "good",
|
|
props: {
|
|
type: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
datas: {
|
|
type: Object,
|
|
default: () => {
|
|
}
|
|
}
|
|
},
|
|
setup(__props) {
|
|
const props = __props;
|
|
const navTo = () => {
|
|
common_vendor.index.navigateTo({
|
|
url: `/pagesOrder/detail/detail?type=${props.datas.paid}&id=${props.datas.id}`
|
|
});
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.t(__props.datas.number),
|
|
b: __props.datas.paid == 0
|
|
}, __props.datas.paid == 0 ? {
|
|
c: common_vendor.t(__props.datas.paid)
|
|
} : common_vendor.e({
|
|
d: __props.datas.status == 0
|
|
}, __props.datas.status == 0 ? {} : {}, {
|
|
e: __props.datas.status == 1
|
|
}, __props.datas.status == 1 ? {} : {}, {
|
|
f: __props.datas.status == 2 || __props.datas.status == 3
|
|
}, __props.datas.status == 2 || __props.datas.status == 3 ? {} : {}), {
|
|
g: common_vendor.o(navTo),
|
|
h: common_vendor.f(__props.datas.goods_list, (item, index, i0) => {
|
|
return {
|
|
a: item.imgs,
|
|
b: index
|
|
};
|
|
}),
|
|
i: common_vendor.p({
|
|
name: "arrow-right-double",
|
|
color: "#20B128"
|
|
}),
|
|
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
|
|
}, (__props.datas.paid = 0) ? {
|
|
n: common_vendor.p({
|
|
size: "small",
|
|
plain: true,
|
|
color: "#989898",
|
|
shape: "circle"
|
|
}),
|
|
o: common_vendor.p({
|
|
size: "small",
|
|
plain: true,
|
|
color: "#20B128",
|
|
shape: "circle"
|
|
})
|
|
} : common_vendor.e({
|
|
p: __props.datas.status == 1
|
|
}, __props.datas.status == 1 ? {
|
|
q: common_vendor.p({
|
|
size: "small",
|
|
plain: true,
|
|
color: "#20B128",
|
|
shape: "circle"
|
|
})
|
|
} : {}, {
|
|
r: __props.datas.status == 2 || __props.datas.status == 3
|
|
}, __props.datas.status == 2 || __props.datas.status == 3 ? {
|
|
s: common_vendor.p({
|
|
size: "small",
|
|
plain: true,
|
|
color: "#20B128",
|
|
shape: "circle"
|
|
})
|
|
} : {}, {
|
|
t: common_vendor.p({
|
|
size: "small",
|
|
plain: true,
|
|
color: "#20B128",
|
|
shape: "circle"
|
|
}),
|
|
v: common_vendor.o(navTo)
|
|
}));
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/里海数字乡村/purchase-let/pagesOrder/order/component/good.vue"]]);
|
|
wx.createComponent(Component);
|