shopInfo.js 1.2 KB
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
  props: {
    isPoints: {
      type: Boolean,
      default: false
    },
    info: {
      type: Object,
      default: {}
    }
  },
  setup(__props) {
    common_vendor.onMounted(() => {
    });
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: common_vendor.t(__props.info.name),
        b: __props.info.goodstatus == 3
      }, __props.info.goodstatus == 3 ? {
        c: common_vendor.t(__props.info.spec[0].coscore)
      } : common_vendor.e({
        d: common_vendor.t(__props.info.spec[0].goods_price),
        e: __props.info.goodstatus == 2
      }, __props.info.goodstatus == 2 ? {
        f: common_vendor.t(__props.info.spec[0].line_price)
      } : {}), {
        g: common_vendor.t(__props.info.goodstatus == 1 ? "\u5DF2\u552E\uFF1A" : __props.info.goodstatus == 2 ? "\u5E93\u5B58\uFF1A" : "\u5DF2\u5151\uFF1A"),
        h: common_vendor.t(__props.info.goodstatus != 2 ? __props.info.sales_actual : __props.info.spec[0].stock_num)
      });
    };
  }
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/shopInfo.vue"]]);
wx.createComponent(Component);