orderShop.js
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
shop: {
type: Array,
default: []
}
},
setup(__props) {
const props = __props;
const textHandler = (orderStatus) => [1, 11].includes(orderStatus) ? "\u9700\u4ED8\u6B3E:" : [2, 3, 4, 21].includes(orderStatus) ? "\u5B9E\u4ED8\u6B3E:" : "";
common_vendor.onMounted(() => {
common_vendor.nextTick(() => {
console.log(props.shop, "\u8BA2\u5355\u6570\u636E\u662F\u4EC0\u4E48");
});
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(__props.shop.goods_detail, (it, idx, i0) => {
return common_vendor.e({
a: it.image,
b: common_vendor.t(it.goods_name),
c: common_vendor.t(it.goods_attr ? it.goods_attr : "")
}, ![2].includes(__props.shop.order_status) ? {
d: common_vendor.t(it.total_num)
} : {}, {
e: it.goodstatus != 3
}, it.goodstatus != 3 ? common_vendor.e({
f: common_vendor.t(it.goods_price),
g: __props.shop.goodstatus_text === 2
}, __props.shop.goodstatus_text === 2 ? {
h: common_vendor.t(it.line_price)
} : {}, {
i: common_vendor.t(textHandler(__props.shop.order_status)),
j: common_vendor.t(it.total_price)
}) : common_vendor.e({
k: [2].includes(__props.shop.order_status)
}, [2].includes(__props.shop.order_status) ? {
l: common_vendor.t(__props.shop.score),
m: common_vendor.t(it.total_num)
} : {
n: common_vendor.t(textHandler(__props.shop.order_status)),
o: common_vendor.t(it.coscore),
p: common_vendor.t(it.diff_price)
}), {
q: it.id
});
}),
b: ![2].includes(__props.shop.order_status)
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/orderShop.vue"]]);
wx.createComponent(Component);