shops.js
2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
shopWidth: {
type: Number,
default: 322
},
shopHeight: {
type: Number,
default: 344
},
pointShop: {
type: Boolean,
default: false
},
list: {
type: Array,
default: []
},
isClass: Boolean,
isTejia: { type: Boolean, default: false }
},
setup(__props) {
const props = __props;
common_vendor.useCssVars((_ctx) => ({
"fd89c8f4-wide": wide.value,
"fd89c8f4-heig": heig.value
}));
const wide = common_vendor.ref(props.shopWidth + "rpx");
const heig = common_vendor.ref(props.shopHeight + "rpx");
common_vendor.onMounted(() => {
});
const toDetaile = (id) => {
common_vendor.index.navigateTo({
url: `/pages/index/shopDetaile?id=${id}`
});
};
console.log(1);
return (_ctx, _cache) => {
return {
a: common_vendor.f(__props.list, (item, k0, i0) => {
return common_vendor.e({
a: item.image,
b: common_vendor.t(item.name),
c: common_vendor.t(item.describe)
}, !__props.pointShop ? common_vendor.e({
d: common_vendor.t(item.goods_price || item.spprice),
e: __props.shopHeight == 322 || __props.isTejia
}, __props.shopHeight == 322 || __props.isTejia ? {
f: common_vendor.t(item.line_price)
} : {}, {
g: __props.isClass
}, __props.isClass ? {
h: common_vendor.t(item.spyprice)
} : {}) : {
i: common_vendor.t(item.coscore)
}, __props.shopWidth == 344 && !__props.isTejia ? {
j: common_vendor.t(__props.pointShop ? "\u5DF2\u5151\u6362\uFF1A" : "\u5DF2\u552E\uFF1A"),
k: common_vendor.t(item.sales_actual)
} : {}, __props.shopHeight == 322 || __props.isTejia ? {
l: common_vendor.t(item.stock_num)
} : {}, {
m: item.id,
n: common_vendor.o(($event) => toDetaile(item.id), item.id)
});
}),
b: !__props.pointShop,
c: __props.shopWidth == 344 && !__props.isTejia,
d: __props.shopHeight == 322 || __props.isTejia,
e: common_vendor.s(_ctx.__cssVars())
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/shops.vue"]]);
wx.createComponent(Component);