orderShop.js
1.5 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
"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\uFF1A" : [2, 3, 4, 21].includes(orderStatus) ? "\u5B9E\u4ED8\u6B3E\uFF1A" : "";
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.describe),
d: common_vendor.t(it.total_num),
e: it.goodstatus != 3
}, it.goodstatus != 3 ? {
f: common_vendor.t(it.total_price),
g: common_vendor.t(textHandler(__props.shop.order_status)),
h: common_vendor.t(it.total_price)
} : {
i: common_vendor.t(textHandler(__props.shop.order_status)),
j: common_vendor.t(it.coscore),
k: common_vendor.t(it.diff_price)
}, {
l: it.id
});
})
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/orderShop.vue"]]);
wx.createComponent(Component);