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

92 lines
2.5 KiB
JavaScript

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