"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
  },
  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}`
      });
    };
    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.shopHeight == 322 ? {
            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 ? {
            j: common_vendor.t(__props.pointShop ? "\u5DF2\u5151\u6362\uFF1A" : "\u5DF2\u552E\uFF1A"),
            k: common_vendor.t(item.sales_actual)
          } : {}, __props.shopHeight == 322 ? {
            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,
        d: __props.shopHeight == 322,
        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);