orderShop.js 2.1 KB
"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);