var __defProp = Object.defineProperty,
  __defProps = Object.defineProperties,
  __getOwnPropDescs = Object.getOwnPropertyDescriptors,
  __getOwnPropSymbols = Object.getOwnPropertySymbols,
  __hasOwnProp = Object.prototype.hasOwnProperty,
  __propIsEnum = Object.prototype.propertyIsEnumerable,
  __defNormalProp = (e, t, o) =>
    t in e
      ? __defProp(e, t, {
          enumerable: !0,
          configurable: !0,
          writable: !0,
          value: o,
        })
      : (e[t] = o),
  __spreadValues = (e, t) => {
    for (var o in t || (t = {}))
      __hasOwnProp.call(t, o) && __defNormalProp(e, o, t[o]);
    if (__getOwnPropSymbols)
      for (var o of __getOwnPropSymbols(t))
        __propIsEnum.call(t, o) && __defNormalProp(e, o, t[o]);
    return e;
  },
  __spreadProps = (e, t) => __defProps(e, __getOwnPropDescs(t));
import {
  o as openBlock,
  c as createBlock,
  n as normalizeStyle,
  a as normalizeClass,
  i as index$j,
  b as isString,
  g as getSystemInfoSync,
  d as createSelectorQuery,
  e as navigateBack,
  r as resolveDynamicComponent,
  w as withCtx,
  f as createVNode,
  h as withModifiers,
  j as createCommentVNode,
  k as createTextVNode,
  t as toDisplayString,
  l as renderSlot,
  m as createElementBlock,
  F as Fragment,
  p as index$h,
  q as index$r,
  s as renderList,
  S as SwiperItem,
  u as Swiper,
  v as resolveComponent,
  $ as $on,
  x as $off,
  y as getImageInfo,
  z as upx2px,
  A as setNavigationBarTitle,
  B as previewImage,
  C as navigateTo,
  D as pageScrollTo,
  E as createAnimation$1,
  G as createBaseVNode,
  H as ScrollView,
  I as createInnerAudioContext,
  J as showModal,
  K as index$e,
  L as makePhoneCall,
} from "./index.ffeb34f0.js";
var icons = {
    id: "2852637",
    name: "uniui图标库",
    font_family: "uniicons",
    css_prefix_text: "uniui-",
    description: "",
    glyphs: [
      {
        icon_id: "25027049",
        name: "yanse",
        font_class: "color",
        unicode: "e6cf",
        unicode_decimal: 59087,
      },
      {
        icon_id: "25027048",
        name: "wallet",
        font_class: "wallet",
        unicode: "e6b1",
        unicode_decimal: 59057,
      },
      {
        icon_id: "25015720",
        name: "settings-filled",
        font_class: "settings-filled",
        unicode: "e6ce",
        unicode_decimal: 59086,
      },
      {
        icon_id: "25015434",
        name: "shimingrenzheng-filled",
        font_class: "auth-filled",
        unicode: "e6cc",
        unicode_decimal: 59084,
      },
      {
        icon_id: "24934246",
        name: "shop-filled",
        font_class: "shop-filled",
        unicode: "e6cd",
        unicode_decimal: 59085,
      },
      {
        icon_id: "24934159",
        name: "staff-filled-01",
        font_class: "staff-filled",
        unicode: "e6cb",
        unicode_decimal: 59083,
      },
      {
        icon_id: "24932461",
        name: "VIP-filled",
        font_class: "vip-filled",
        unicode: "e6c6",
        unicode_decimal: 59078,
      },
      {
        icon_id: "24932462",
        name: "plus_circle_fill",
        font_class: "plus-filled",
        unicode: "e6c7",
        unicode_decimal: 59079,
      },
      {
        icon_id: "24932463",
        name: "folder_add-filled",
        font_class: "folder-add-filled",
        unicode: "e6c8",
        unicode_decimal: 59080,
      },
      {
        icon_id: "24932464",
        name: "yanse-filled",
        font_class: "color-filled",
        unicode: "e6c9",
        unicode_decimal: 59081,
      },
      {
        icon_id: "24932465",
        name: "tune-filled",
        font_class: "tune-filled",
        unicode: "e6ca",
        unicode_decimal: 59082,
      },
      {
        icon_id: "24932455",
        name: "a-rilidaka-filled",
        font_class: "calendar-filled",
        unicode: "e6c0",
        unicode_decimal: 59072,
      },
      {
        icon_id: "24932456",
        name: "notification-filled",
        font_class: "notification-filled",
        unicode: "e6c1",
        unicode_decimal: 59073,
      },
      {
        icon_id: "24932457",
        name: "wallet-filled",
        font_class: "wallet-filled",
        unicode: "e6c2",
        unicode_decimal: 59074,
      },
      {
        icon_id: "24932458",
        name: "paihangbang-filled",
        font_class: "medal-filled",
        unicode: "e6c3",
        unicode_decimal: 59075,
      },
      {
        icon_id: "24932459",
        name: "gift-filled",
        font_class: "gift-filled",
        unicode: "e6c4",
        unicode_decimal: 59076,
      },
      {
        icon_id: "24932460",
        name: "fire-filled",
        font_class: "fire-filled",
        unicode: "e6c5",
        unicode_decimal: 59077,
      },
      {
        icon_id: "24928001",
        name: "refreshempty",
        font_class: "refreshempty",
        unicode: "e6bf",
        unicode_decimal: 59071,
      },
      {
        icon_id: "24926853",
        name: "location-ellipse",
        font_class: "location-filled",
        unicode: "e6af",
        unicode_decimal: 59055,
      },
      {
        icon_id: "24926735",
        name: "person-filled",
        font_class: "person-filled",
        unicode: "e69d",
        unicode_decimal: 59037,
      },
      {
        icon_id: "24926703",
        name: "personadd-filled",
        font_class: "personadd-filled",
        unicode: "e698",
        unicode_decimal: 59032,
      },
      {
        icon_id: "24923351",
        name: "back",
        font_class: "back",
        unicode: "e6b9",
        unicode_decimal: 59065,
      },
      {
        icon_id: "24923352",
        name: "forward",
        font_class: "forward",
        unicode: "e6ba",
        unicode_decimal: 59066,
      },
      {
        icon_id: "24923353",
        name: "arrowthinright",
        font_class: "arrow-right",
        unicode: "e6bb",
        unicode_decimal: 59067,
      },
      {
        icon_id: "24923353",
        name: "arrowthinright",
        font_class: "arrowthinright",
        unicode: "e6bb",
        unicode_decimal: 59067,
      },
      {
        icon_id: "24923354",
        name: "arrowthinleft",
        font_class: "arrow-left",
        unicode: "e6bc",
        unicode_decimal: 59068,
      },
      {
        icon_id: "24923354",
        name: "arrowthinleft",
        font_class: "arrowthinleft",
        unicode: "e6bc",
        unicode_decimal: 59068,
      },
      {
        icon_id: "24923355",
        name: "arrowthinup",
        font_class: "arrow-up",
        unicode: "e6bd",
        unicode_decimal: 59069,
      },
      {
        icon_id: "24923355",
        name: "arrowthinup",
        font_class: "arrowthinup",
        unicode: "e6bd",
        unicode_decimal: 59069,
      },
      {
        icon_id: "24923356",
        name: "arrowthindown",
        font_class: "arrow-down",
        unicode: "e6be",
        unicode_decimal: 59070,
      },
      {
        icon_id: "24923356",
        name: "arrowthindown",
        font_class: "arrowthindown",
        unicode: "e6be",
        unicode_decimal: 59070,
      },
      {
        icon_id: "24923349",
        name: "arrowdown",
        font_class: "bottom",
        unicode: "e6b8",
        unicode_decimal: 59064,
      },
      {
        icon_id: "24923349",
        name: "arrowdown",
        font_class: "arrowdown",
        unicode: "e6b8",
        unicode_decimal: 59064,
      },
      {
        icon_id: "24923346",
        name: "arrowright",
        font_class: "right",
        unicode: "e6b5",
        unicode_decimal: 59061,
      },
      {
        icon_id: "24923346",
        name: "arrowright",
        font_class: "arrowright",
        unicode: "e6b5",
        unicode_decimal: 59061,
      },
      {
        icon_id: "24923347",
        name: "arrowup",
        font_class: "top",
        unicode: "e6b6",
        unicode_decimal: 59062,
      },
      {
        icon_id: "24923347",
        name: "arrowup",
        font_class: "arrowup",
        unicode: "e6b6",
        unicode_decimal: 59062,
      },
      {
        icon_id: "24923348",
        name: "arrowleft",
        font_class: "left",
        unicode: "e6b7",
        unicode_decimal: 59063,
      },
      {
        icon_id: "24923348",
        name: "arrowleft",
        font_class: "arrowleft",
        unicode: "e6b7",
        unicode_decimal: 59063,
      },
      {
        icon_id: "24923334",
        name: "eye",
        font_class: "eye",
        unicode: "e651",
        unicode_decimal: 58961,
      },
      {
        icon_id: "24923335",
        name: "eye-filled",
        font_class: "eye-filled",
        unicode: "e66a",
        unicode_decimal: 58986,
      },
      {
        icon_id: "24923336",
        name: "eye-slash",
        font_class: "eye-slash",
        unicode: "e6b3",
        unicode_decimal: 59059,
      },
      {
        icon_id: "24923337",
        name: "eye-slash-filled",
        font_class: "eye-slash-filled",
        unicode: "e6b4",
        unicode_decimal: 59060,
      },
      {
        icon_id: "24923305",
        name: "info-filled",
        font_class: "info-filled",
        unicode: "e649",
        unicode_decimal: 58953,
      },
      {
        icon_id: "24923299",
        name: "reload-01",
        font_class: "reload",
        unicode: "e6b2",
        unicode_decimal: 59058,
      },
      {
        icon_id: "24923195",
        name: "mic_slash_fill",
        font_class: "micoff-filled",
        unicode: "e6b0",
        unicode_decimal: 59056,
      },
      {
        icon_id: "24923165",
        name: "map-pin-ellipse",
        font_class: "map-pin-ellipse",
        unicode: "e6ac",
        unicode_decimal: 59052,
      },
      {
        icon_id: "24923166",
        name: "map-pin",
        font_class: "map-pin",
        unicode: "e6ad",
        unicode_decimal: 59053,
      },
      {
        icon_id: "24923167",
        name: "location",
        font_class: "location",
        unicode: "e6ae",
        unicode_decimal: 59054,
      },
      {
        icon_id: "24923064",
        name: "starhalf",
        font_class: "starhalf",
        unicode: "e683",
        unicode_decimal: 59011,
      },
      {
        icon_id: "24923065",
        name: "star",
        font_class: "star",
        unicode: "e688",
        unicode_decimal: 59016,
      },
      {
        icon_id: "24923066",
        name: "star-filled",
        font_class: "star-filled",
        unicode: "e68f",
        unicode_decimal: 59023,
      },
      {
        icon_id: "24899646",
        name: "a-rilidaka",
        font_class: "calendar",
        unicode: "e6a0",
        unicode_decimal: 59040,
      },
      {
        icon_id: "24899647",
        name: "fire",
        font_class: "fire",
        unicode: "e6a1",
        unicode_decimal: 59041,
      },
      {
        icon_id: "24899648",
        name: "paihangbang",
        font_class: "medal",
        unicode: "e6a2",
        unicode_decimal: 59042,
      },
      {
        icon_id: "24899649",
        name: "font",
        font_class: "font",
        unicode: "e6a3",
        unicode_decimal: 59043,
      },
      {
        icon_id: "24899650",
        name: "gift",
        font_class: "gift",
        unicode: "e6a4",
        unicode_decimal: 59044,
      },
      {
        icon_id: "24899651",
        name: "link",
        font_class: "link",
        unicode: "e6a5",
        unicode_decimal: 59045,
      },
      {
        icon_id: "24899652",
        name: "notification",
        font_class: "notification",
        unicode: "e6a6",
        unicode_decimal: 59046,
      },
      {
        icon_id: "24899653",
        name: "staff",
        font_class: "staff",
        unicode: "e6a7",
        unicode_decimal: 59047,
      },
      {
        icon_id: "24899654",
        name: "VIP",
        font_class: "vip",
        unicode: "e6a8",
        unicode_decimal: 59048,
      },
      {
        icon_id: "24899655",
        name: "folder_add",
        font_class: "folder-add",
        unicode: "e6a9",
        unicode_decimal: 59049,
      },
      {
        icon_id: "24899656",
        name: "tune",
        font_class: "tune",
        unicode: "e6aa",
        unicode_decimal: 59050,
      },
      {
        icon_id: "24899657",
        name: "shimingrenzheng",
        font_class: "auth",
        unicode: "e6ab",
        unicode_decimal: 59051,
      },
      {
        icon_id: "24899565",
        name: "person",
        font_class: "person",
        unicode: "e699",
        unicode_decimal: 59033,
      },
      {
        icon_id: "24899566",
        name: "email-filled",
        font_class: "email-filled",
        unicode: "e69a",
        unicode_decimal: 59034,
      },
      {
        icon_id: "24899567",
        name: "phone-filled",
        font_class: "phone-filled",
        unicode: "e69b",
        unicode_decimal: 59035,
      },
      {
        icon_id: "24899568",
        name: "phone",
        font_class: "phone",
        unicode: "e69c",
        unicode_decimal: 59036,
      },
      {
        icon_id: "24899570",
        name: "email",
        font_class: "email",
        unicode: "e69e",
        unicode_decimal: 59038,
      },
      {
        icon_id: "24899571",
        name: "personadd",
        font_class: "personadd",
        unicode: "e69f",
        unicode_decimal: 59039,
      },
      {
        icon_id: "24899558",
        name: "chatboxes-filled",
        font_class: "chatboxes-filled",
        unicode: "e692",
        unicode_decimal: 59026,
      },
      {
        icon_id: "24899559",
        name: "contact",
        font_class: "contact",
        unicode: "e693",
        unicode_decimal: 59027,
      },
      {
        icon_id: "24899560",
        name: "chatbubble-filled",
        font_class: "chatbubble-filled",
        unicode: "e694",
        unicode_decimal: 59028,
      },
      {
        icon_id: "24899561",
        name: "contact-filled",
        font_class: "contact-filled",
        unicode: "e695",
        unicode_decimal: 59029,
      },
      {
        icon_id: "24899562",
        name: "chatboxes",
        font_class: "chatboxes",
        unicode: "e696",
        unicode_decimal: 59030,
      },
      {
        icon_id: "24899563",
        name: "chatbubble",
        font_class: "chatbubble",
        unicode: "e697",
        unicode_decimal: 59031,
      },
      {
        icon_id: "24881290",
        name: "upload-filled",
        font_class: "upload-filled",
        unicode: "e68e",
        unicode_decimal: 59022,
      },
      {
        icon_id: "24881292",
        name: "upload",
        font_class: "upload",
        unicode: "e690",
        unicode_decimal: 59024,
      },
      {
        icon_id: "24881293",
        name: "weixin",
        font_class: "weixin",
        unicode: "e691",
        unicode_decimal: 59025,
      },
      {
        icon_id: "24881274",
        name: "compose",
        font_class: "compose",
        unicode: "e67f",
        unicode_decimal: 59007,
      },
      {
        icon_id: "24881275",
        name: "qq",
        font_class: "qq",
        unicode: "e680",
        unicode_decimal: 59008,
      },
      {
        icon_id: "24881276",
        name: "download-filled",
        font_class: "download-filled",
        unicode: "e681",
        unicode_decimal: 59009,
      },
      {
        icon_id: "24881277",
        name: "pengyouquan",
        font_class: "pyq",
        unicode: "e682",
        unicode_decimal: 59010,
      },
      {
        icon_id: "24881279",
        name: "sound",
        font_class: "sound",
        unicode: "e684",
        unicode_decimal: 59012,
      },
      {
        icon_id: "24881280",
        name: "trash-filled",
        font_class: "trash-filled",
        unicode: "e685",
        unicode_decimal: 59013,
      },
      {
        icon_id: "24881281",
        name: "sound-filled",
        font_class: "sound-filled",
        unicode: "e686",
        unicode_decimal: 59014,
      },
      {
        icon_id: "24881282",
        name: "trash",
        font_class: "trash",
        unicode: "e687",
        unicode_decimal: 59015,
      },
      {
        icon_id: "24881284",
        name: "videocam-filled",
        font_class: "videocam-filled",
        unicode: "e689",
        unicode_decimal: 59017,
      },
      {
        icon_id: "24881285",
        name: "spinner-cycle",
        font_class: "spinner-cycle",
        unicode: "e68a",
        unicode_decimal: 59018,
      },
      {
        icon_id: "24881286",
        name: "weibo",
        font_class: "weibo",
        unicode: "e68b",
        unicode_decimal: 59019,
      },
      {
        icon_id: "24881288",
        name: "videocam",
        font_class: "videocam",
        unicode: "e68c",
        unicode_decimal: 59020,
      },
      {
        icon_id: "24881289",
        name: "download",
        font_class: "download",
        unicode: "e68d",
        unicode_decimal: 59021,
      },
      {
        icon_id: "24879601",
        name: "help",
        font_class: "help",
        unicode: "e679",
        unicode_decimal: 59001,
      },
      {
        icon_id: "24879602",
        name: "navigate-filled",
        font_class: "navigate-filled",
        unicode: "e67a",
        unicode_decimal: 59002,
      },
      {
        icon_id: "24879603",
        name: "plusempty",
        font_class: "plusempty",
        unicode: "e67b",
        unicode_decimal: 59003,
      },
      {
        icon_id: "24879604",
        name: "smallcircle",
        font_class: "smallcircle",
        unicode: "e67c",
        unicode_decimal: 59004,
      },
      {
        icon_id: "24879605",
        name: "minus-filled",
        font_class: "minus-filled",
        unicode: "e67d",
        unicode_decimal: 59005,
      },
      {
        icon_id: "24879606",
        name: "micoff",
        font_class: "micoff",
        unicode: "e67e",
        unicode_decimal: 59006,
      },
      {
        icon_id: "24879588",
        name: "closeempty",
        font_class: "closeempty",
        unicode: "e66c",
        unicode_decimal: 58988,
      },
      {
        icon_id: "24879589",
        name: "clear",
        font_class: "clear",
        unicode: "e66d",
        unicode_decimal: 58989,
      },
      {
        icon_id: "24879590",
        name: "navigate",
        font_class: "navigate",
        unicode: "e66e",
        unicode_decimal: 58990,
      },
      {
        icon_id: "24879591",
        name: "minus",
        font_class: "minus",
        unicode: "e66f",
        unicode_decimal: 58991,
      },
      {
        icon_id: "24879592",
        name: "image",
        font_class: "image",
        unicode: "e670",
        unicode_decimal: 58992,
      },
      {
        icon_id: "24879593",
        name: "mic",
        font_class: "mic",
        unicode: "e671",
        unicode_decimal: 58993,
      },
      {
        icon_id: "24879594",
        name: "paperplane",
        font_class: "paperplane",
        unicode: "e672",
        unicode_decimal: 58994,
      },
      {
        icon_id: "24879595",
        name: "close",
        font_class: "close",
        unicode: "e673",
        unicode_decimal: 58995,
      },
      {
        icon_id: "24879596",
        name: "help-filled",
        font_class: "help-filled",
        unicode: "e674",
        unicode_decimal: 58996,
      },
      {
        icon_id: "24879597",
        name: "plus-filled",
        font_class: "paperplane-filled",
        unicode: "e675",
        unicode_decimal: 58997,
      },
      {
        icon_id: "24879598",
        name: "plus",
        font_class: "plus",
        unicode: "e676",
        unicode_decimal: 58998,
      },
      {
        icon_id: "24879599",
        name: "mic-filled",
        font_class: "mic-filled",
        unicode: "e677",
        unicode_decimal: 58999,
      },
      {
        icon_id: "24879600",
        name: "image-filled",
        font_class: "image-filled",
        unicode: "e678",
        unicode_decimal: 59e3,
      },
      {
        icon_id: "24855900",
        name: "locked-filled",
        font_class: "locked-filled",
        unicode: "e668",
        unicode_decimal: 58984,
      },
      {
        icon_id: "24855901",
        name: "info",
        font_class: "info",
        unicode: "e669",
        unicode_decimal: 58985,
      },
      {
        icon_id: "24855903",
        name: "locked",
        font_class: "locked",
        unicode: "e66b",
        unicode_decimal: 58987,
      },
      {
        icon_id: "24855884",
        name: "camera-filled",
        font_class: "camera-filled",
        unicode: "e658",
        unicode_decimal: 58968,
      },
      {
        icon_id: "24855885",
        name: "chat-filled",
        font_class: "chat-filled",
        unicode: "e659",
        unicode_decimal: 58969,
      },
      {
        icon_id: "24855886",
        name: "camera",
        font_class: "camera",
        unicode: "e65a",
        unicode_decimal: 58970,
      },
      {
        icon_id: "24855887",
        name: "circle",
        font_class: "circle",
        unicode: "e65b",
        unicode_decimal: 58971,
      },
      {
        icon_id: "24855888",
        name: "checkmarkempty",
        font_class: "checkmarkempty",
        unicode: "e65c",
        unicode_decimal: 58972,
      },
      {
        icon_id: "24855889",
        name: "chat",
        font_class: "chat",
        unicode: "e65d",
        unicode_decimal: 58973,
      },
      {
        icon_id: "24855890",
        name: "circle-filled",
        font_class: "circle-filled",
        unicode: "e65e",
        unicode_decimal: 58974,
      },
      {
        icon_id: "24855891",
        name: "flag",
        font_class: "flag",
        unicode: "e65f",
        unicode_decimal: 58975,
      },
      {
        icon_id: "24855892",
        name: "flag-filled",
        font_class: "flag-filled",
        unicode: "e660",
        unicode_decimal: 58976,
      },
      {
        icon_id: "24855893",
        name: "gear-filled",
        font_class: "gear-filled",
        unicode: "e661",
        unicode_decimal: 58977,
      },
      {
        icon_id: "24855894",
        name: "home",
        font_class: "home",
        unicode: "e662",
        unicode_decimal: 58978,
      },
      {
        icon_id: "24855895",
        name: "home-filled",
        font_class: "home-filled",
        unicode: "e663",
        unicode_decimal: 58979,
      },
      {
        icon_id: "24855896",
        name: "gear",
        font_class: "gear",
        unicode: "e664",
        unicode_decimal: 58980,
      },
      {
        icon_id: "24855897",
        name: "smallcircle-filled",
        font_class: "smallcircle-filled",
        unicode: "e665",
        unicode_decimal: 58981,
      },
      {
        icon_id: "24855898",
        name: "map-filled",
        font_class: "map-filled",
        unicode: "e666",
        unicode_decimal: 58982,
      },
      {
        icon_id: "24855899",
        name: "map",
        font_class: "map",
        unicode: "e667",
        unicode_decimal: 58983,
      },
      {
        icon_id: "24855825",
        name: "refresh-filled",
        font_class: "refresh-filled",
        unicode: "e656",
        unicode_decimal: 58966,
      },
      {
        icon_id: "24855826",
        name: "refresh",
        font_class: "refresh",
        unicode: "e657",
        unicode_decimal: 58967,
      },
      {
        icon_id: "24855808",
        name: "cloud-upload",
        font_class: "cloud-upload",
        unicode: "e645",
        unicode_decimal: 58949,
      },
      {
        icon_id: "24855809",
        name: "cloud-download-filled",
        font_class: "cloud-download-filled",
        unicode: "e646",
        unicode_decimal: 58950,
      },
      {
        icon_id: "24855810",
        name: "cloud-download",
        font_class: "cloud-download",
        unicode: "e647",
        unicode_decimal: 58951,
      },
      {
        icon_id: "24855811",
        name: "cloud-upload-filled",
        font_class: "cloud-upload-filled",
        unicode: "e648",
        unicode_decimal: 58952,
      },
      {
        icon_id: "24855813",
        name: "redo",
        font_class: "redo",
        unicode: "e64a",
        unicode_decimal: 58954,
      },
      {
        icon_id: "24855814",
        name: "images-filled",
        font_class: "images-filled",
        unicode: "e64b",
        unicode_decimal: 58955,
      },
      {
        icon_id: "24855815",
        name: "undo-filled",
        font_class: "undo-filled",
        unicode: "e64c",
        unicode_decimal: 58956,
      },
      {
        icon_id: "24855816",
        name: "more",
        font_class: "more",
        unicode: "e64d",
        unicode_decimal: 58957,
      },
      {
        icon_id: "24855817",
        name: "more-filled",
        font_class: "more-filled",
        unicode: "e64e",
        unicode_decimal: 58958,
      },
      {
        icon_id: "24855818",
        name: "undo",
        font_class: "undo",
        unicode: "e64f",
        unicode_decimal: 58959,
      },
      {
        icon_id: "24855819",
        name: "images",
        font_class: "images",
        unicode: "e650",
        unicode_decimal: 58960,
      },
      {
        icon_id: "24855821",
        name: "paperclip",
        font_class: "paperclip",
        unicode: "e652",
        unicode_decimal: 58962,
      },
      {
        icon_id: "24855822",
        name: "settings",
        font_class: "settings",
        unicode: "e653",
        unicode_decimal: 58963,
      },
      {
        icon_id: "24855823",
        name: "search",
        font_class: "search",
        unicode: "e654",
        unicode_decimal: 58964,
      },
      {
        icon_id: "24855824",
        name: "redo-filled",
        font_class: "redo-filled",
        unicode: "e655",
        unicode_decimal: 58965,
      },
      {
        icon_id: "24841702",
        name: "list",
        font_class: "list",
        unicode: "e644",
        unicode_decimal: 58948,
      },
      {
        icon_id: "24841489",
        name: "mail-open-filled",
        font_class: "mail-open-filled",
        unicode: "e63a",
        unicode_decimal: 58938,
      },
      {
        icon_id: "24841491",
        name: "hand-thumbsdown-filled",
        font_class: "hand-down-filled",
        unicode: "e63c",
        unicode_decimal: 58940,
      },
      {
        icon_id: "24841492",
        name: "hand-thumbsdown",
        font_class: "hand-down",
        unicode: "e63d",
        unicode_decimal: 58941,
      },
      {
        icon_id: "24841493",
        name: "hand-thumbsup-filled",
        font_class: "hand-up-filled",
        unicode: "e63e",
        unicode_decimal: 58942,
      },
      {
        icon_id: "24841494",
        name: "hand-thumbsup",
        font_class: "hand-up",
        unicode: "e63f",
        unicode_decimal: 58943,
      },
      {
        icon_id: "24841496",
        name: "heart-filled",
        font_class: "heart-filled",
        unicode: "e641",
        unicode_decimal: 58945,
      },
      {
        icon_id: "24841498",
        name: "mail-open",
        font_class: "mail-open",
        unicode: "e643",
        unicode_decimal: 58947,
      },
      {
        icon_id: "24841488",
        name: "heart",
        font_class: "heart",
        unicode: "e639",
        unicode_decimal: 58937,
      },
      {
        icon_id: "24839963",
        name: "loop",
        font_class: "loop",
        unicode: "e633",
        unicode_decimal: 58931,
      },
      {
        icon_id: "24839866",
        name: "pulldown",
        font_class: "pulldown",
        unicode: "e632",
        unicode_decimal: 58930,
      },
      {
        icon_id: "24813798",
        name: "scan",
        font_class: "scan",
        unicode: "e62a",
        unicode_decimal: 58922,
      },
      {
        icon_id: "24813786",
        name: "bars",
        font_class: "bars",
        unicode: "e627",
        unicode_decimal: 58919,
      },
      {
        icon_id: "24813788",
        name: "cart-filled",
        font_class: "cart-filled",
        unicode: "e629",
        unicode_decimal: 58921,
      },
      {
        icon_id: "24813790",
        name: "checkbox",
        font_class: "checkbox",
        unicode: "e62b",
        unicode_decimal: 58923,
      },
      {
        icon_id: "24813791",
        name: "checkbox-filled",
        font_class: "checkbox-filled",
        unicode: "e62c",
        unicode_decimal: 58924,
      },
      {
        icon_id: "24813794",
        name: "shop",
        font_class: "shop",
        unicode: "e62f",
        unicode_decimal: 58927,
      },
      {
        icon_id: "24813795",
        name: "headphones",
        font_class: "headphones",
        unicode: "e630",
        unicode_decimal: 58928,
      },
      {
        icon_id: "24813796",
        name: "cart",
        font_class: "cart",
        unicode: "e631",
        unicode_decimal: 58929,
      },
    ],
  },
  uniIcons_vue_vue_type_style_index_0_scoped_true_lang = "",
  _export_sfc = (e, t) => {
    const o = e.__vccOpts || e;
    for (const [a, i] of t) o[a] = i;
    return o;
  };
const getVal = (e) =>
    "number" == typeof e || /^[0-9]*$/g.test(e) ? e + "px" : e,
  _sfc_main$y = {
    name: "UniIcons",
    emits: ["click"],
    props: {
      type: { type: String, default: "" },
      color: { type: String, default: "#333333" },
      size: { type: [Number, String], default: 16 },
      customPrefix: { type: String, default: "" },
    },
    data: () => ({ icons: icons.glyphs }),
    computed: {
      unicode() {
        let e = this.icons.find((e) => e.font_class === this.type);
        return e ? unescape(`%u${e.unicode}`) : "";
      },
      iconSize() {
        return getVal(this.size);
      },
    },
    methods: {
      _onClick() {
        this.$emit("click");
      },
    },
  };
function _sfc_render$y(e, t, o, a, i, c) {
  const s = index$j;
  return (
    openBlock(),
    createBlock(
      s,
      {
        style: normalizeStyle({ color: o.color, "font-size": c.iconSize }),
        class: normalizeClass([
          "uni-icons",
          ["uniui-" + o.type, o.customPrefix, o.customPrefix ? o.type : ""],
        ]),
        onClick: c._onClick,
      },
      null,
      8,
      ["style", "class", "onClick"]
    )
  );
}
var __easycom_0$1 = _export_sfc(_sfc_main$y, [
  ["render", _sfc_render$y],
  ["__scopeId", "data-v-785f2c69"],
]);
function resolveEasycom(e, t) {
  return isString(e) ? t : e;
}
const _sfc_main$x = {
  name: "dec-header",
  props: {
    tab: { type: Object, default: () => ({}) },
    title: { type: String, default: "" },
    bgColor: { type: String, default: "transparent" },
    center: { type: Boolean, default: !1 },
  },
  data: () => ({
    totalHeight: 64,
    statusBarHeight: 20,
    fontSizeSetting: 16,
    titleBarHeight: 44,
    titleBarWidth: "",
  }),
  created() {
    let e = getSystemInfoSync();
    (this.statusBarHeight = e.statusBarHeight || 0),
      (this.fontSizeSetting =
        (e.fontSizeSetting || e.hostFontSizeSetting || 16) + 1),
      console.log("head-systemInfo:", e);
    let t = 0;
    const o = 2 * (0 - this.statusBarHeight) + t;
    (this.titleBarHeight = o || 44),
      (this.titleBarWidth = ""),
      "custom" == this.tab.mode
        ? (this.totalHeight = this.statusBarHeight + this.titleBarHeight)
        : (this.totalHeight = 0);
  },
  mounted() {
    if ("fix" == this.tab.styleArg) {
      createSelectorQuery()
        .in(this)
        .select(".dec-header")
        .boundingClientRect((e) => {
          this.$emit("inited", e);
        })
        .exec();
    }
  },
  methods: {
    back() {
      navigateBack({ delta: 1 });
    },
    nameSwitch() {
      this.$emit(
        "decEventHandler",
        { moudle: "shopHead", type: "switch", desc: "切换门店" },
        null
      );
    },
    headFn(e, t) {
      const o = { moudle: "shopHead", type: e, desc: "跳转" };
      this.$emit("decEventHandler", o, this.tab[t]);
    },
  },
};
function _sfc_render$x(e, t, o, a, i, c) {
  const s = index$h,
    l = index$r,
    n = resolveEasycom(resolveDynamicComponent("uni-icons"), __easycom_0$1),
    r = index$j;
  return (
    openBlock(),
    createBlock(
      s,
      {
        class: "dec-header",
        style: normalizeStyle({ height: i.totalHeight + "px" }),
      },
      {
        default: withCtx(() => [
          "custom" == o.tab.mode
            ? (openBlock(),
              createBlock(
                s,
                {
                  key: 0,
                  class: normalizeClass({ fixed: "fix" == o.tab.styleArg }),
                  style: normalizeStyle({ background: o.bgColor }),
                },
                {
                  default: withCtx(() => [
                    createVNode(
                      s,
                      {
                        class: "header-top",
                        style: normalizeStyle({
                          height: i.statusBarHeight + "px",
                        }),
                      },
                      null,
                      8,
                      ["style"]
                    ),
                    createVNode(
                      s,
                      {
                        class: normalizeClass([
                          "header-bottom",
                          { center: o.center },
                        ]),
                        style: normalizeStyle({
                          height: i.titleBarHeight + "px",
                          width: i.titleBarWidth + "px",
                        }),
                      },
                      {
                        default: withCtx(() => [
                          "link" == o.tab.lIcon
                            ? (openBlock(),
                              createBlock(
                                s,
                                {
                                  key: 0,
                                  class: "at-scan link",
                                  onClick:
                                    t[0] ||
                                    (t[0] = withModifiers(
                                      (e) => c.headFn("link", "lIconLink"),
                                      ["stop"]
                                    )),
                                },
                                {
                                  default: withCtx(() => [
                                    createVNode(
                                      l,
                                      {
                                        class: "img",
                                        mode: "widthFix",
                                        src: o.tab.lIconImg,
                                      },
                                      null,
                                      8,
                                      ["src"]
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          createVNode(
                            s,
                            {
                              class: "at-name dec-truncate",
                              onClick: withModifiers(c.nameSwitch, ["stop"]),
                              style: normalizeStyle({
                                color: o.tab.fontColor,
                                "font-size": i.fontSizeSetting + "px",
                              }),
                            },
                            {
                              default: withCtx(() => [
                                "back" == o.tab.lIcon
                                  ? (openBlock(),
                                    createBlock(
                                      s,
                                      {
                                        key: 0,
                                        class: "at-back",
                                        onClick: withModifiers(c.back, [
                                          "stop",
                                        ]),
                                      },
                                      {
                                        default: withCtx(() => [
                                          createVNode(
                                            n,
                                            {
                                              type: "back",
                                              size: "24",
                                              color: o.tab.fontColor,
                                            },
                                            null,
                                            8,
                                            ["color"]
                                          ),
                                        ]),
                                        _: 1,
                                      },
                                      8,
                                      ["onClick"]
                                    ))
                                  : createCommentVNode("v-if", !0),
                                o.tab.title
                                  ? (openBlock(),
                                    createBlock(
                                      r,
                                      {
                                        key: 1,
                                        class: normalizeClass({
                                          "at-dot": "shop" == o.tab.title,
                                          white: "black" != o.tab.fontColor,
                                        }),
                                      },
                                      {
                                        default: withCtx(() => [
                                          createTextVNode(
                                            toDisplayString(o.title),
                                            1
                                          ),
                                        ]),
                                        _: 1,
                                      },
                                      8,
                                      ["class"]
                                    ))
                                  : createCommentVNode("v-if", !0),
                              ]),
                              _: 1,
                            },
                            8,
                            ["onClick", "style"]
                          ),
                          renderSlot(e.$slots, "default"),
                          o.tab.search
                            ? (openBlock(),
                              createBlock(
                                s,
                                { key: 1, class: "at-search" },
                                {
                                  default: withCtx(() => [
                                    createVNode(
                                      s,
                                      {
                                        onClick:
                                          t[1] ||
                                          (t[1] = withModifiers(
                                            (e) => c.headFn("search"),
                                            ["stop"]
                                          )),
                                        class: "wrap",
                                        style: normalizeStyle({
                                          backgroundColor: o.tab.searchBg,
                                        }),
                                      },
                                      {
                                        default: withCtx(() => [
                                          createVNode(
                                            r,
                                            {
                                              style: normalizeStyle({
                                                color: o.tab.fontColor,
                                              }),
                                              class: "search dec-truncate",
                                            },
                                            {
                                              default: withCtx(() => [
                                                createTextVNode("搜索"),
                                              ]),
                                              _: 1,
                                            },
                                            8,
                                            ["style"]
                                          ),
                                          createVNode(
                                            s,
                                            { class: "ic-search" },
                                            {
                                              default: withCtx(() => [
                                                createVNode(
                                                  n,
                                                  {
                                                    type: "search",
                                                    color: o.tab.fontColor,
                                                    size: "20",
                                                  },
                                                  null,
                                                  8,
                                                  ["color"]
                                                ),
                                              ]),
                                              _: 1,
                                            }
                                          ),
                                        ]),
                                        _: 1,
                                      },
                                      8,
                                      ["style"]
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          o.tab.rIcon
                            ? (openBlock(),
                              createElementBlock(
                                Fragment,
                                { key: 2 },
                                [
                                  o.tab.rIconFn.includes("park")
                                    ? (openBlock(),
                                      createBlock(
                                        s,
                                        {
                                          key: 0,
                                          class: "at-scan circle",
                                          onClick:
                                            t[2] ||
                                            (t[2] = withModifiers(
                                              (e) => c.headFn("park"),
                                              ["stop"]
                                            )),
                                        },
                                        {
                                          default: withCtx(() => [
                                            createVNode(l, {
                                              class: "img",
                                              mode: "widthFix",
                                              src: "https://lirimall.test.tikcos.cn/lirimall/jeditor/333_1658414626394.png",
                                            }),
                                          ]),
                                          _: 1,
                                        }
                                      ))
                                    : createCommentVNode("v-if", !0),
                                  o.tab.rIconFn.includes("member")
                                    ? (openBlock(),
                                      createBlock(
                                        s,
                                        {
                                          key: 1,
                                          class: "at-scan circle",
                                          onClick:
                                            t[3] ||
                                            (t[3] = withModifiers(
                                              (e) => c.headFn("member"),
                                              ["stop"]
                                            )),
                                        },
                                        {
                                          default: withCtx(() => [
                                            createVNode(l, {
                                              style: {
                                                width: "36rpx",
                                                "margin-top": "8rpx",
                                              },
                                              class: "img",
                                              mode: "widthFix",
                                              src: "https://lirimall.test.tikcos.cn/lirimall/lirimall/member_1659434366749.png",
                                            }),
                                          ]),
                                          _: 1,
                                        }
                                      ))
                                    : createCommentVNode("v-if", !0),
                                  o.tab.rIconFn.includes("link")
                                    ? (openBlock(),
                                      createBlock(
                                        s,
                                        {
                                          key: 2,
                                          class: normalizeClass([
                                            "at-scan link",
                                            { circle: o.tab.rIconCc },
                                          ]),
                                          onClick:
                                            t[4] ||
                                            (t[4] = withModifiers(
                                              (e) =>
                                                c.headFn("link", "rIconLink"),
                                              ["stop"]
                                            )),
                                        },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              l,
                                              {
                                                class: "img",
                                                mode: "heightFix",
                                                src: o.tab.rIconImg,
                                              },
                                              null,
                                              8,
                                              ["src"]
                                            ),
                                          ]),
                                          _: 1,
                                        },
                                        8,
                                        ["class"]
                                      ))
                                    : createCommentVNode("v-if", !0),
                                ],
                                64
                              ))
                            : createCommentVNode("v-if", !0),
                        ]),
                        _: 3,
                      },
                      8,
                      ["class", "style"]
                    ),
                  ]),
                  _: 3,
                },
                8,
                ["class", "style"]
              ))
            : createCommentVNode("v-if", !0),
        ]),
        _: 3,
      },
      8,
      ["style"]
    )
  );
}
var shopHead = _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]);
const _sfc_main$w = {
  inject: ["decAxios", "decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: null }),
  created() {
    this.arg = this.tab.arg;
  },
};
function _sfc_render$w(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h,
    n = index$j;
  return (
    openBlock(),
    createElementBlock(
      Fragment,
      null,
      [
        createCommentVNode(" 展示：背景 头像 店名 介绍 "),
        createVNode(
          l,
          { class: "dec-shopFront" },
          {
            default: withCtx(() => [
              createVNode(
                l,
                { class: normalizeClass(["type", i.arg.styleArg]) },
                {
                  default: withCtx(() => [
                    createVNode(
                      s,
                      {
                        class: "image",
                        mode: "widthFix",
                        src: c.decImgDomain(i.arg.bgImg, "temp-bg.png"),
                      },
                      null,
                      8,
                      ["src"]
                    ),
                    createVNode(
                      l,
                      { class: "wrap" },
                      {
                        default: withCtx(() => [
                          createVNode(
                            l,
                            { class: "logo" },
                            {
                              default: withCtx(() => [
                                i.arg.logoImg
                                  ? (openBlock(),
                                    createBlock(
                                      s,
                                      {
                                        key: 0,
                                        class: "img",
                                        src: c.decImgDomain(
                                          i.arg.logoImg,
                                          "temp-user.jpg"
                                        ),
                                        mode: "aspectFit",
                                      },
                                      null,
                                      8,
                                      ["src"]
                                    ))
                                  : createCommentVNode("v-if", !0),
                              ]),
                              _: 1,
                            }
                          ),
                          createVNode(
                            l,
                            { class: "info" },
                            {
                              default: withCtx(() => [
                                createVNode(
                                  n,
                                  { class: "name dec-truncate" },
                                  {
                                    default: withCtx(() => [
                                      createTextVNode(
                                        toDisplayString(i.arg.shopName),
                                        1
                                      ),
                                    ]),
                                    _: 1,
                                  }
                                ),
                                createVNode(
                                  n,
                                  { class: "intro dec-truncate" },
                                  {
                                    default: withCtx(() => [
                                      createTextVNode(
                                        toDisplayString(i.arg.intro),
                                        1
                                      ),
                                    ]),
                                    _: 1,
                                  }
                                ),
                              ]),
                              _: 1,
                            }
                          ),
                        ]),
                        _: 1,
                      }
                    ),
                  ]),
                  _: 1,
                },
                8,
                ["class"]
              ),
            ]),
            _: 1,
          }
        ),
      ],
      2112
    )
  );
}
var shopFront = _export_sfc(_sfc_main$w, [["render", _sfc_render$w]]);
const _sfc_main$v = {
  inject: ["decImgDomain", "decAxios"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: {} }),
  created() {
    this.arg = this.tab.arg;
  },
  methods: {
    toSearchPage() {
      this.decAxios.decEventHandler(
        { moudle: "search", type: "activity", desc: "跳搜索页" },
        null,
        null
      );
    },
    toNavLink() {
      const e = this.arg.linkArg;
      e &&
        (e.path || e.argValue) &&
        this.decAxios.decEventHandler(
          { moudle: "search", type: "detail", desc: "跳绑定的链接" },
          e,
          null
        );
    },
  },
};
function _sfc_render$v(e, t, o, a, i, c) {
  const s = index$j,
    l = resolveEasycom(resolveDynamicComponent("uni-icons"), __easycom_0$1),
    n = index$h;
  return (
    openBlock(),
    createBlock(
      n,
      { class: "dec-search" },
      {
        default: withCtx(() => [
          createCommentVNode(" 顶部搜索框 "),
          "top" === i.arg.styleArg
            ? (openBlock(),
              createBlock(
                n,
                {
                  key: 0,
                  class: "top",
                  style: normalizeStyle({ backgroundColor: i.arg.outColor }),
                },
                {
                  default: withCtx(() => [
                    createVNode(
                      n,
                      {
                        onClick: withModifiers(c.toSearchPage, ["stop"]),
                        class: "wrap radius",
                        style: normalizeStyle({
                          backgroundColor: i.arg.inColor,
                        }),
                      },
                      {
                        default: withCtx(() => [
                          createVNode(
                            s,
                            {
                              style: normalizeStyle({ color: i.arg.fontColor }),
                              class: "search",
                            },
                            {
                              default: withCtx(() => [
                                createTextVNode("在店铺内搜索"),
                              ]),
                              _: 1,
                            },
                            8,
                            ["style"]
                          ),
                          createVNode(
                            n,
                            { class: "ic-search" },
                            {
                              default: withCtx(() => [
                                createVNode(
                                  l,
                                  {
                                    type: "search",
                                    color: i.arg.fontColor,
                                    size: "22",
                                  },
                                  null,
                                  8,
                                  ["color"]
                                ),
                              ]),
                              _: 1,
                            }
                          ),
                        ]),
                        _: 1,
                      },
                      8,
                      ["onClick", "style"]
                    ),
                    createVNode(
                      n,
                      {
                        class: "ic-person",
                        onClick: withModifiers(c.toNavLink, ["stop"]),
                      },
                      {
                        default: withCtx(() => [
                          i.arg.rightImg
                            ? (openBlock(),
                              createElementBlock(
                                "img",
                                {
                                  key: 0,
                                  class: "img",
                                  mode: "widthFix",
                                  src: c.decImgDomain(i.arg.rightImg),
                                },
                                null,
                                8,
                                ["src"]
                              ))
                            : (openBlock(),
                              createBlock(
                                l,
                                {
                                  key: 1,
                                  type: "contact",
                                  color: i.arg.fontColor,
                                  size: "38",
                                },
                                null,
                                8,
                                ["color"]
                              )),
                        ]),
                        _: 1,
                      },
                      8,
                      ["onClick"]
                    ),
                  ]),
                  _: 1,
                },
                8,
                ["style"]
              ))
            : (openBlock(),
              createElementBlock(
                Fragment,
                { key: 1 },
                [
                  createCommentVNode(" 普通搜索框 "),
                  createVNode(
                    n,
                    {
                      class: "ordinary",
                      style: normalizeStyle({
                        backgroundColor: i.arg.outColor,
                      }),
                    },
                    {
                      default: withCtx(() => [
                        createVNode(
                          n,
                          {
                            onClick: withModifiers(c.toSearchPage, ["stop"]),
                            class: normalizeClass([
                              "wrap",
                              { border: i.arg.border, radius: i.arg.radius },
                            ]),
                            style: normalizeStyle({
                              backgroundColor: i.arg.inColor,
                            }),
                          },
                          {
                            default: withCtx(() => [
                              createVNode(
                                s,
                                {
                                  style: normalizeStyle({
                                    color: i.arg.fontColor,
                                  }),
                                  class: "search",
                                },
                                {
                                  default: withCtx(() => [
                                    createTextVNode("在店铺内搜索"),
                                  ]),
                                  _: 1,
                                },
                                8,
                                ["style"]
                              ),
                              createVNode(
                                n,
                                { class: "ic-search" },
                                {
                                  default: withCtx(() => [
                                    createVNode(
                                      l,
                                      {
                                        type: "search",
                                        color: i.arg.fontColor,
                                        size: "20",
                                      },
                                      null,
                                      8,
                                      ["color"]
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ),
                            ]),
                            _: 1,
                          },
                          8,
                          ["onClick", "class", "style"]
                        ),
                      ]),
                      _: 1,
                    },
                    8,
                    ["style"]
                  ),
                ],
                2112
              )),
        ]),
        _: 1,
      }
    )
  );
}
var shopSearch = _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]);
const _sfc_main$u = { props: { tab: { type: Object, default: () => ({}) } } };
function _sfc_render$u(e, t, o, a, i, c) {
  const s = index$h;
  return (
    openBlock(),
    createBlock(
      s,
      { class: "dec-blank" },
      {
        default: withCtx(() => [
          createVNode(
            s,
            {
              class: "blank-wrap",
              style: normalizeStyle({ height: o.tab.arg.value + "px" }),
            },
            null,
            8,
            ["style"]
          ),
        ]),
        _: 1,
      }
    )
  );
}
var showBlank = _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]);
const _sfc_main$t = {
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: null }),
  created() {
    this.arg = this.tab.arg;
  },
  computed: {
    width() {
      return "yes" === this.arg.margin ? "80%" : "100%";
    },
  },
};
function _sfc_render$t(e, t, o, a, i, c) {
  const s = index$h;
  return (
    openBlock(),
    createBlock(
      s,
      { class: "dec-line" },
      {
        default: withCtx(() => [
          createVNode(
            s,
            { class: "d-wrap" },
            {
              default: withCtx(() => [
                createVNode(
                  s,
                  {
                    class: "d-line",
                    style: normalizeStyle({
                      borderColor: i.arg.color,
                      width: c.width,
                      borderStyle: i.arg.lineStyle,
                    }),
                  },
                  null,
                  8,
                  ["style"]
                ),
              ]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      }
    )
  );
}
var showLines = _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]);
const _sfc_main$s = {
  inject: ["decImgDomain", "decAxios"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: {}, itemWidth: "25%", navList: [] }),
  created() {
    (this.arg = this.tab.arg),
      (this.arg.space = parseInt(this.arg.space || 10)),
      this.initData();
  },
  computed: {
    navStyle() {
      let e = [];
      return (
        this.arg.bgColor && e.push(`backgroundColor:${this.arg.bgColor}`),
        this.arg.space &&
          (e.push(`padding-top:${this.arg.space}px`),
          e.push(`padding-bottom:${this.arg.space}px`)),
        e.join(";")
      );
    },
    wrapMr() {
      let e = [];
      return (
        this.arg.space && e.push(`margin-top:${this.arg.space}px`), e.join(";")
      );
    },
    swiperH() {
      if ("row" == this.arg.styleArg) {
        let e = "";
        const t = parseInt(this.arg.iconSize || 0);
        switch (this.arg.iconStyle) {
          case "left":
            e = `${2 * this.arg.space + t}px`;
            break;
          case "top":
            e = `${2 * this.arg.space + t + 25}px`;
            break;
          case "no":
            e = 2 * this.arg.space + 25 + "px";
        }
        return e;
      }
      return "";
    },
  },
  methods: {
    initData() {
      const e = this.arg.rowNum || 4;
      (this.itemWidth = parseInt((100 / e) * 100) / 100 + "%"),
        (this.navList = this.concatList(this.arg.ids || [], e));
    },
    concatList(e = [], t = 4) {
      let o = [],
        a = 0,
        i = 0;
      const c = e.length;
      for (; a < c; ) a == t && i++, o[i] || (o[i] = []), o[i].push(e[a]), a++;
      return o;
    },
    toNavLink(e) {
      e &&
        e.path &&
        this.decAxios.decEventHandler(
          { moudle: "shopNav", type: "detail", desc: "跳绑定的链接" },
          e,
          null
        );
    },
  },
};
function _sfc_render$s(e, t, o, a, i, c) {
  const s = index$r,
    l = index$j,
    n = index$h,
    r = SwiperItem,
    d = Swiper;
  return i.navList.length > 0
    ? (openBlock(),
      createBlock(
        n,
        { key: 0, class: "dec-nav", style: normalizeStyle(c.navStyle) },
        {
          default: withCtx(() => [
            "group" == i.arg.styleArg
              ? (openBlock(!0),
                createElementBlock(
                  Fragment,
                  { key: 0 },
                  renderList(
                    i.navList,
                    (e, t) => (
                      openBlock(),
                      createBlock(
                        n,
                        {
                          class: "wrap",
                          key: t,
                          style: normalizeStyle(t > 0 ? c.wrapMr : ""),
                        },
                        {
                          default: withCtx(() => [
                            (openBlock(!0),
                            createElementBlock(
                              Fragment,
                              null,
                              renderList(
                                e,
                                (e, t) => (
                                  openBlock(),
                                  createBlock(
                                    n,
                                    {
                                      class: "box",
                                      key: t,
                                      style: normalizeStyle({
                                        width: i.itemWidth,
                                      }),
                                    },
                                    {
                                      default: withCtx(() => [
                                        createVNode(
                                          n,
                                          {
                                            onClick: (t) =>
                                              c.toNavLink(e.linkArg),
                                            class: normalizeClass([
                                              "nav",
                                              i.arg.iconStyle,
                                            ]),
                                          },
                                          {
                                            default: withCtx(() => [
                                              "no" !== i.arg.iconStyle
                                                ? (openBlock(),
                                                  createBlock(
                                                    s,
                                                    {
                                                      key: 0,
                                                      class: "image",
                                                      mode: "aspectFit",
                                                      src: c.decImgDomain(
                                                        e.img,
                                                        "img-list.png"
                                                      ),
                                                      style: normalizeStyle({
                                                        width:
                                                          i.arg.iconSize + "px",
                                                        height:
                                                          i.arg.iconSize + "px",
                                                      }),
                                                    },
                                                    null,
                                                    8,
                                                    ["src", "style"]
                                                  ))
                                                : createCommentVNode(
                                                    "v-if",
                                                    !0
                                                  ),
                                              createVNode(
                                                l,
                                                {
                                                  class: "text dec-truncate",
                                                  style: normalizeStyle({
                                                    color: i.arg.color,
                                                  }),
                                                },
                                                {
                                                  default: withCtx(() => [
                                                    createTextVNode(
                                                      toDisplayString(e.title),
                                                      1
                                                    ),
                                                  ]),
                                                  _: 2,
                                                },
                                                1032,
                                                ["style"]
                                              ),
                                            ]),
                                            _: 2,
                                          },
                                          1032,
                                          ["onClick", "class"]
                                        ),
                                      ]),
                                      _: 2,
                                    },
                                    1032,
                                    ["style"]
                                  )
                                )
                              ),
                              128
                            )),
                          ]),
                          _: 2,
                        },
                        1032,
                        ["style"]
                      )
                    )
                  ),
                  128
                ))
              : (openBlock(),
                createBlock(
                  d,
                  {
                    key: 1,
                    class: "swiper",
                    "indicator-dots": !1,
                    style: normalizeStyle({ height: c.swiperH }),
                  },
                  {
                    default: withCtx(() => [
                      (openBlock(!0),
                      createElementBlock(
                        Fragment,
                        null,
                        renderList(
                          i.navList,
                          (e, t) => (
                            openBlock(),
                            createBlock(
                              r,
                              { key: t },
                              {
                                default: withCtx(() => [
                                  createVNode(
                                    n,
                                    {
                                      class: "wrap",
                                      style: { "flex-wrap": "nowrap" },
                                    },
                                    {
                                      default: withCtx(() => [
                                        (openBlock(!0),
                                        createElementBlock(
                                          Fragment,
                                          null,
                                          renderList(
                                            e,
                                            (e, t) => (
                                              openBlock(),
                                              createBlock(
                                                n,
                                                {
                                                  class: "box",
                                                  key: t,
                                                  style: normalizeStyle({
                                                    width: i.itemWidth,
                                                  }),
                                                },
                                                {
                                                  default: withCtx(() => [
                                                    createVNode(
                                                      n,
                                                      {
                                                        onClick: (t) =>
                                                          c.toNavLink(
                                                            e.linkArg
                                                          ),
                                                        class: normalizeClass([
                                                          "nav",
                                                          i.arg.iconStyle,
                                                        ]),
                                                      },
                                                      {
                                                        default: withCtx(() => [
                                                          "no" !==
                                                          i.arg.iconStyle
                                                            ? (openBlock(),
                                                              createBlock(
                                                                s,
                                                                {
                                                                  key: 0,
                                                                  class:
                                                                    "image",
                                                                  mode: "aspectFit",
                                                                  src: c.decImgDomain(
                                                                    e.img,
                                                                    "img-list.png"
                                                                  ),
                                                                  style:
                                                                    normalizeStyle(
                                                                      {
                                                                        width:
                                                                          i.arg
                                                                            .iconSize +
                                                                          "px",
                                                                        height:
                                                                          i.arg
                                                                            .iconSize +
                                                                          "px",
                                                                      }
                                                                    ),
                                                                },
                                                                null,
                                                                8,
                                                                ["src", "style"]
                                                              ))
                                                            : createCommentVNode(
                                                                "v-if",
                                                                !0
                                                              ),
                                                          createVNode(
                                                            l,
                                                            {
                                                              class:
                                                                "text dec-truncate",
                                                              style:
                                                                normalizeStyle([
                                                                  {
                                                                    height:
                                                                      "25px",
                                                                  },
                                                                  {
                                                                    color:
                                                                      i.arg
                                                                        .color,
                                                                  },
                                                                ]),
                                                            },
                                                            {
                                                              default: withCtx(
                                                                () => [
                                                                  createTextVNode(
                                                                    toDisplayString(
                                                                      e.title
                                                                    ),
                                                                    1
                                                                  ),
                                                                ]
                                                              ),
                                                              _: 2,
                                                            },
                                                            1032,
                                                            ["style"]
                                                          ),
                                                        ]),
                                                        _: 2,
                                                      },
                                                      1032,
                                                      ["onClick", "class"]
                                                    ),
                                                  ]),
                                                  _: 2,
                                                },
                                                1032,
                                                ["style"]
                                              )
                                            )
                                          ),
                                          128
                                        )),
                                      ]),
                                      _: 2,
                                    },
                                    1024
                                  ),
                                ]),
                                _: 2,
                              },
                              1024
                            )
                          )
                        ),
                        128
                      )),
                    ]),
                    _: 1,
                  },
                  8,
                  ["style"]
                )),
          ]),
          _: 1,
        },
        8,
        ["style"]
      ))
    : createCommentVNode("v-if", !0);
}
var shopNav = _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]),
  liLoadMore_vue_vue_type_style_index_0_scoped_true_lang = "";
const _sfc_main$r = {
  props: { status: { type: String, default: "noMore" } },
  data: () => ({
    contentText: {
      contentdown: "上拉显示更多!",
      contentrefresh: "加载中!",
      contentnomore: "我也有底线~",
    },
  }),
  methods: { clickLoadMore(e) {} },
};
function _sfc_render$r(e, t, o, a, i, c) {
  const s = resolveComponent("uni-load-more"),
    l = index$h;
  return (
    openBlock(),
    createElementBlock(
      Fragment,
      null,
      [
        createCommentVNode("下拉加载 "),
        createVNode(
          l,
          { class: "load-more-box" },
          {
            default: withCtx(() => [
              createVNode(
                s,
                {
                  status: o.status,
                  iconSize: 20,
                  onClickLoadMore: c.clickLoadMore,
                  contentText: i.contentText,
                },
                null,
                8,
                ["status", "onClickLoadMore", "contentText"]
              ),
            ]),
            _: 1,
          }
        ),
      ],
      2112
    )
  );
}
var __easycom_2$2 = _export_sfc(_sfc_main$r, [
  ["render", _sfc_render$r],
  ["__scopeId", "data-v-9671f8fa"],
]);
const ratio = 2;
var variable = {
  "@base": ratio,
  "@phoneWidth": 375 * ratio,
  "@space": 10 * ratio,
  "@space2": 5 * ratio,
  "@lacuna": 10 * ratio,
  "@lacuna2": 5 * ratio,
  "@margin": 10 * ratio,
  "@font-super": 20 * ratio,
  "@font-big": 18 * ratio,
  "@font-middle": 16 * ratio,
  "@font-base": 14 * ratio,
  "@font-sub": 13 * ratio,
  "@font-small": 12 * ratio,
  "@radius-base": 4 * ratio,
  "@color-theme": "#ec6560",
  "@color-theme2": "#ff6d33",
  "@color-tip": "#f44444",
  "@color-coupon": "#e74c2c",
  "@color-bright": "#efd241",
  "@color-border": "#d9d9d9",
  "@color-head": "#000000",
  "@color-text": "#333333",
  "@color-text2": "#666666",
  "@color-text3": "#999999",
};
const _sfc_main$q = {
  inject: ["decImgDomain", "decAxios"],
  props: {
    moudle: { type: String, default: "goodList" },
    good: { type: Object, default: () => ({}) },
    show: { type: Object, default: () => ({}) },
    count: { type: Number, default: 0 },
    imgArg: { type: String, default: "" },
    imgH: { type: String, default: "" },
  },
  data: () => ({
    cartNum: 0,
    postName: { 1: "保税仓", 2: "香港直邮", 3: "海外直邮" },
  }),
  watch: {
    count(e, t) {
      e != t && (this.cartNum = e || 0);
    },
  },
  created() {
    this.cartNum = this.count || 0;
  },
  computed: {
    className() {
      let e = [];
      return (
        this.imgArg && e.push(this.imgArg),
        this.show.radius && e.push("radius"),
        e
      );
    },
    titleClass() {
      return !this.imgH || ["one", "big"].includes(this.imgArg)
        ? "dec-truncate2"
        : "dec-truncate";
    },
    hasShop() {
      const e = this.show.price || this.show.origin,
        t = this.show.bug && "small" != this.imgArg;
      return e || t;
    },
    opriceShow() {
      return (
        !(!this.show.origin || !this.good.smarketPrice) &&
        this.good.smarketPrice > this.good.salePrice
      );
    },
    predictReward() {
      let e = this.good.predictReward || 0;
      if (((e = parseInt(100 * e)), e > 0)) {
        e = "" + e / 100;
        const t = e.split(".");
        e = t[1] ? (1 == t[1].length ? `${t[0]}.${t[1]}0` : e) : `${e}.00`;
      } else e = "";
      return e;
    },
    rewardShow() {
      const e = !this.imgArg && this.show.reward,
        t = !!this.imgH || !!this.predictReward;
      return e && t;
    },
    postTypeShow() {
      const e = this.show.postType,
        t = !!this.imgH || !!this.good.postType;
      return e && t;
    },
    tagRewardShow() {
      const e = "big" == this.imgArg && this.show.reward,
        t = !!this.imgH || !!this.predictReward;
      return e && t;
    },
    shopNameShow() {
      const e = this.show.shopName,
        t = !!this.imgH || !!this.good.shopName;
      return e && t;
    },
  },
  methods: {
    go() {
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "detail", desc: "跳商品详情页" },
        this.good,
        null
      );
    },
    buy() {
      const e = this;
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "buy", desc: "购买商品" },
        this.good,
        (t) => {
          (e.cartNum = t[e.good.id] || 0), e.$emit("refreshBuyNum", t);
        }
      );
    },
    goShop() {
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "shop", desc: "跳所属店铺" },
        this.good,
        null
      );
    },
  },
};
function _sfc_render$q(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h,
    n = index$j,
    r = resolveEasycom(resolveDynamicComponent("uni-icons"), __easycom_0$1);
  return (
    openBlock(),
    createElementBlock(
      Fragment,
      null,
      [
        createCommentVNode(
          " 区分是否是固定高度的还是非固定高度-默认传了图片高度就是要统一高度 "
        ),
        createVNode(
          l,
          {
            class: normalizeClass(["dec-box-good", c.className]),
            onClick: withModifiers(c.go, ["stop"]),
          },
          {
            default: withCtx(() => [
              createCommentVNode(" 图片 角标 dec-row-flex "),
              createVNode(
                l,
                {
                  class: "good-img",
                  style: normalizeStyle({ height: o.imgH }),
                },
                {
                  default: withCtx(() => [
                    o.imgH
                      ? (openBlock(),
                        createBlock(
                          s,
                          {
                            key: 0,
                            class: "imgH",
                            src: c.decImgDomain(o.good.productImg),
                            mode: "aspectFit",
                          },
                          null,
                          8,
                          ["src"]
                        ))
                      : (openBlock(),
                        createBlock(
                          s,
                          {
                            key: 1,
                            class: "imgW",
                            src: c.decImgDomain(o.good.productImg),
                            mode: "widthFix",
                          },
                          null,
                          8,
                          ["src"]
                        )),
                    o.show.mark
                      ? (openBlock(),
                        createBlock(
                          l,
                          {
                            key: 2,
                            class: normalizeClass(["mark", o.show.markStyle]),
                          },
                          null,
                          8,
                          ["class"]
                        ))
                      : createCommentVNode("v-if", !0),
                  ]),
                  _: 1,
                },
                8,
                ["style"]
              ),
              createCommentVNode(" 名称 "),
              o.show.name || o.show.desc
                ? (openBlock(),
                  createBlock(
                    l,
                    { key: 0, class: "good-info" },
                    {
                      default: withCtx(() => [
                        o.show.name
                          ? (openBlock(),
                            createBlock(
                              l,
                              {
                                key: 0,
                                class: normalizeClass([
                                  "good-title",
                                  c.titleClass,
                                ]),
                              },
                              {
                                default: withCtx(() => [
                                  createTextVNode(
                                    toDisplayString(o.good.productName),
                                    1
                                  ),
                                ]),
                                _: 1,
                              },
                              8,
                              ["class"]
                            ))
                          : createCommentVNode("v-if", !0),
                        o.show.desc
                          ? (openBlock(),
                            createBlock(
                              l,
                              { key: 1, class: "good-desc dec-truncate" },
                              {
                                default: withCtx(() => [
                                  createTextVNode(
                                    toDisplayString(
                                      o.good.productDesc || o.good.productName
                                    ),
                                    1
                                  ),
                                ]),
                                _: 1,
                              }
                            ))
                          : createCommentVNode("v-if", !0),
                      ]),
                      _: 1,
                    }
                  ))
                : createCommentVNode("v-if", !0),
              o.show.postType || o.show.reward
                ? (openBlock(),
                  createBlock(
                    l,
                    { key: 1, class: "tag-wrap" },
                    {
                      default: withCtx(() => [
                        createCommentVNode(" 发货模式tag "),
                        c.postTypeShow
                          ? (openBlock(),
                            createBlock(
                              l,
                              {
                                key: 0,
                                class: normalizeClass([
                                  "post-type dec-truncate",
                                  { "no-text": !o.good.postType },
                                ]),
                              },
                              {
                                default: withCtx(() => [
                                  o.good.postType
                                    ? (openBlock(),
                                      createElementBlock(
                                        Fragment,
                                        { key: 0 },
                                        [
                                          createTextVNode(
                                            toDisplayString(
                                              i.postName[o.good.postType] ||
                                                "未知"
                                            ),
                                            1
                                          ),
                                        ],
                                        2112
                                      ))
                                    : createCommentVNode("v-if", !0),
                                ]),
                                _: 1,
                              },
                              8,
                              ["class"]
                            ))
                          : createCommentVNode("v-if", !0),
                        createCommentVNode(" tag形式的返佣 "),
                        c.tagRewardShow
                          ? (openBlock(),
                            createBlock(
                              l,
                              {
                                key: 1,
                                class: normalizeClass([
                                  "discount-name dec-truncate",
                                  { "no-text": !c.predictReward },
                                ]),
                              },
                              {
                                default: withCtx(() => [
                                  c.predictReward
                                    ? (openBlock(),
                                      createElementBlock(
                                        Fragment,
                                        { key: 0 },
                                        [
                                          createVNode(
                                            n,
                                            { class: "flag" },
                                            {
                                              default: withCtx(() => [
                                                createTextVNode("返"),
                                              ]),
                                              _: 1,
                                            }
                                          ),
                                          createTextVNode(
                                            toDisplayString(c.predictReward) +
                                              "元 ",
                                            1
                                          ),
                                        ],
                                        64
                                      ))
                                    : createCommentVNode("v-if", !0),
                                ]),
                                _: 1,
                              },
                              8,
                              ["class"]
                            ))
                          : createCommentVNode("v-if", !0),
                      ]),
                      _: 1,
                    }
                  ))
                : createCommentVNode("v-if", !0),
              createCommentVNode(" 价格 购买｜兼容点击宽高问题 "),
              c.hasShop
                ? (openBlock(),
                  createBlock(
                    l,
                    { key: 2, class: "price-wrap dec-row-flex j-between" },
                    {
                      default: withCtx(() => [
                        o.show.price || o.show.origin || o.show.bug
                          ? (openBlock(),
                            createBlock(
                              l,
                              {
                                key: 0,
                                class: "dec-row-flex a-bottom shrink1",
                              },
                              {
                                default: withCtx(() => [
                                  o.show.price
                                    ? (openBlock(),
                                      createBlock(
                                        n,
                                        { key: 0, class: "dot" },
                                        {
                                          default: withCtx(() => [
                                            createTextVNode("¥"),
                                          ]),
                                          _: 1,
                                        }
                                      ))
                                    : createCommentVNode("v-if", !0),
                                  o.show.price
                                    ? (openBlock(),
                                      createBlock(
                                        n,
                                        { key: 1, class: "sale" },
                                        {
                                          default: withCtx(() => [
                                            createTextVNode(
                                              toDisplayString(
                                                o.good.salePrice || 0
                                              ),
                                              1
                                            ),
                                          ]),
                                          _: 1,
                                        }
                                      ))
                                    : createCommentVNode("v-if", !0),
                                  c.opriceShow
                                    ? (openBlock(),
                                      createBlock(
                                        n,
                                        { key: 2, class: "origin" },
                                        {
                                          default: withCtx(() => [
                                            createTextVNode(
                                              "￥" +
                                                toDisplayString(
                                                  o.good.smarketPrice
                                                ),
                                              1
                                            ),
                                          ]),
                                          _: 1,
                                        }
                                      ))
                                    : createCommentVNode("v-if", !0),
                                ]),
                                _: 1,
                              }
                            ))
                          : createCommentVNode("v-if", !0),
                        o.show.bug && "small" != o.imgArg
                          ? (openBlock(),
                            createElementBlock(
                              Fragment,
                              { key: 1 },
                              [
                                "custom" == o.show.bugStyle
                                  ? (openBlock(),
                                    createBlock(
                                      l,
                                      {
                                        key: 0,
                                        class: "shrink0 b-buy",
                                        onClick: withModifiers(c.buy, ["stop"]),
                                      },
                                      {
                                        default: withCtx(() => [
                                          createVNode(n, null, {
                                            default: withCtx(() => [
                                              createTextVNode(
                                                toDisplayString(o.show.bugTxt),
                                                1
                                              ),
                                            ]),
                                            _: 1,
                                          }),
                                        ]),
                                        _: 1,
                                      },
                                      8,
                                      ["onClick"]
                                    ))
                                  : "custom2" == o.show.bugStyle
                                  ? (openBlock(),
                                    createBlock(
                                      l,
                                      {
                                        key: 1,
                                        class: "shrink0 c-buy",
                                        onClick: withModifiers(c.buy, ["stop"]),
                                      },
                                      {
                                        default: withCtx(() => [
                                          createVNode(n, null, {
                                            default: withCtx(() => [
                                              createTextVNode(
                                                toDisplayString(o.show.bugTxt),
                                                1
                                              ),
                                            ]),
                                            _: 1,
                                          }),
                                        ]),
                                        _: 1,
                                      },
                                      8,
                                      ["onClick"]
                                    ))
                                  : "shop3" == o.show.bugStyle
                                  ? (openBlock(),
                                    createBlock(
                                      l,
                                      {
                                        key: 2,
                                        class: "shrink0 d-buy",
                                        onClick: withModifiers(c.buy, ["stop"]),
                                      },
                                      {
                                        default: withCtx(() => [
                                          createVNode(
                                            l,
                                            { class: "cart-circle" },
                                            {
                                              default: withCtx(() => [
                                                createVNode(
                                                  r,
                                                  {
                                                    type: "cart",
                                                    size:
                                                      "big" == o.imgArg
                                                        ? 22
                                                        : 18,
                                                    color: "#ffffff",
                                                  },
                                                  null,
                                                  8,
                                                  ["size"]
                                                ),
                                                i.cartNum > 0
                                                  ? (openBlock(),
                                                    createBlock(
                                                      n,
                                                      {
                                                        key: 0,
                                                        class: "count",
                                                      },
                                                      {
                                                        default: withCtx(() => [
                                                          createTextVNode(
                                                            toDisplayString(
                                                              i.cartNum
                                                            ),
                                                            1
                                                          ),
                                                        ]),
                                                        _: 1,
                                                      }
                                                    ))
                                                  : createCommentVNode(
                                                      "v-if",
                                                      !0
                                                    ),
                                              ]),
                                              _: 1,
                                            }
                                          ),
                                        ]),
                                        _: 1,
                                      },
                                      8,
                                      ["onClick"]
                                    ))
                                  : (openBlock(),
                                    createBlock(
                                      l,
                                      {
                                        key: 3,
                                        class: "shrink0 a-buy",
                                        onClick: withModifiers(c.buy, ["stop"]),
                                      },
                                      {
                                        default: withCtx(() => [
                                          "shop" == o.show.bugStyle
                                            ? (openBlock(),
                                              createBlock(
                                                l,
                                                {
                                                  key: 0,
                                                  class: "text",
                                                  onClick: withModifiers(
                                                    c.buy,
                                                    ["stop"]
                                                  ),
                                                },
                                                {
                                                  default: withCtx(() => [
                                                    createVNode(
                                                      r,
                                                      {
                                                        type: "cart-filled",
                                                        size:
                                                          "big" == o.imgArg
                                                            ? 40
                                                            : 34,
                                                        color: "#ff4444",
                                                      },
                                                      null,
                                                      8,
                                                      ["size"]
                                                    ),
                                                    i.cartNum > 0
                                                      ? (openBlock(),
                                                        createBlock(
                                                          n,
                                                          {
                                                            key: 0,
                                                            class: "cart-count",
                                                          },
                                                          {
                                                            default: withCtx(
                                                              () => [
                                                                createTextVNode(
                                                                  toDisplayString(
                                                                    i.cartNum
                                                                  ),
                                                                  1
                                                                ),
                                                              ]
                                                            ),
                                                            _: 1,
                                                          }
                                                        ))
                                                      : createCommentVNode(
                                                          "v-if",
                                                          !0
                                                        ),
                                                  ]),
                                                  _: 1,
                                                },
                                                8,
                                                ["onClick"]
                                              ))
                                            : "shop2" == o.show.bugStyle
                                            ? (openBlock(),
                                              createBlock(
                                                l,
                                                {
                                                  key: 1,
                                                  class: "text",
                                                  onClick: withModifiers(
                                                    c.buy,
                                                    ["stop"]
                                                  ),
                                                },
                                                {
                                                  default: withCtx(() => [
                                                    createVNode(
                                                      r,
                                                      {
                                                        type: "cart",
                                                        size:
                                                          "big" == o.imgArg
                                                            ? 40
                                                            : 34,
                                                        color: "#ff4444",
                                                      },
                                                      null,
                                                      8,
                                                      ["size"]
                                                    ),
                                                    i.cartNum > 0
                                                      ? (openBlock(),
                                                        createBlock(
                                                          n,
                                                          {
                                                            key: 0,
                                                            class: "cart-count",
                                                          },
                                                          {
                                                            default: withCtx(
                                                              () => [
                                                                createTextVNode(
                                                                  toDisplayString(
                                                                    i.cartNum
                                                                  ),
                                                                  1
                                                                ),
                                                              ]
                                                            ),
                                                            _: 1,
                                                          }
                                                        ))
                                                      : createCommentVNode(
                                                          "v-if",
                                                          !0
                                                        ),
                                                  ]),
                                                  _: 1,
                                                },
                                                8,
                                                ["onClick"]
                                              ))
                                            : "plus" == o.show.bugStyle
                                            ? (openBlock(),
                                              createBlock(
                                                l,
                                                {
                                                  key: 2,
                                                  class: "text",
                                                  onClick: withModifiers(
                                                    c.buy,
                                                    ["stop"]
                                                  ),
                                                },
                                                {
                                                  default: withCtx(() => [
                                                    createVNode(
                                                      r,
                                                      {
                                                        type: "plus-filled",
                                                        size:
                                                          "big" == o.imgArg
                                                            ? 40
                                                            : 34,
                                                        color: "#ff4444",
                                                      },
                                                      null,
                                                      8,
                                                      ["size"]
                                                    ),
                                                    i.cartNum > 0
                                                      ? (openBlock(),
                                                        createBlock(
                                                          n,
                                                          {
                                                            key: 0,
                                                            class: "cart-count",
                                                          },
                                                          {
                                                            default: withCtx(
                                                              () => [
                                                                createTextVNode(
                                                                  toDisplayString(
                                                                    i.cartNum
                                                                  ),
                                                                  1
                                                                ),
                                                              ]
                                                            ),
                                                            _: 1,
                                                          }
                                                        ))
                                                      : createCommentVNode(
                                                          "v-if",
                                                          !0
                                                        ),
                                                  ]),
                                                  _: 1,
                                                },
                                                8,
                                                ["onClick"]
                                              ))
                                            : "plus2" == o.show.bugStyle
                                            ? (openBlock(),
                                              createBlock(
                                                l,
                                                {
                                                  key: 3,
                                                  class: "text",
                                                  onClick: withModifiers(
                                                    c.buy,
                                                    ["stop"]
                                                  ),
                                                },
                                                {
                                                  default: withCtx(() => [
                                                    createVNode(
                                                      r,
                                                      {
                                                        type: "plus",
                                                        size:
                                                          "big" == o.imgArg
                                                            ? 40
                                                            : 34,
                                                        color: "#ff4444",
                                                      },
                                                      null,
                                                      8,
                                                      ["size"]
                                                    ),
                                                    i.cartNum > 0
                                                      ? (openBlock(),
                                                        createBlock(
                                                          n,
                                                          {
                                                            key: 0,
                                                            class: "cart-count",
                                                          },
                                                          {
                                                            default: withCtx(
                                                              () => [
                                                                createTextVNode(
                                                                  toDisplayString(
                                                                    i.cartNum
                                                                  ),
                                                                  1
                                                                ),
                                                              ]
                                                            ),
                                                            _: 1,
                                                          }
                                                        ))
                                                      : createCommentVNode(
                                                          "v-if",
                                                          !0
                                                        ),
                                                  ]),
                                                  _: 1,
                                                },
                                                8,
                                                ["onClick"]
                                              ))
                                            : createCommentVNode("v-if", !0),
                                        ]),
                                        _: 1,
                                      },
                                      8,
                                      ["onClick"]
                                    )),
                              ],
                              2112
                            ))
                          : createCommentVNode("v-if", !0),
                      ]),
                      _: 1,
                    }
                  ))
                : (openBlock(), createBlock(l, { key: 3, class: "none-h" })),
              createCommentVNode(" 返佣设定[佣金设定先用tag形式] "),
              c.rewardShow
                ? (openBlock(),
                  createBlock(
                    l,
                    { key: 4, class: "good-reward dec-truncate" },
                    {
                      default: withCtx(() => [
                        c.predictReward
                          ? (openBlock(),
                            createElementBlock(
                              Fragment,
                              { key: 0 },
                              [
                                createTextVNode(
                                  "预计返" +
                                    toDisplayString(c.predictReward) +
                                    "元",
                                  1
                                ),
                              ],
                              2112
                            ))
                          : createCommentVNode("v-if", !0),
                      ]),
                      _: 1,
                    }
                  ))
                : createCommentVNode("v-if", !0),
              createCommentVNode(" 所属店铺 "),
              c.shopNameShow
                ? (openBlock(),
                  createBlock(
                    l,
                    { key: 5, onClick: withModifiers(c.goShop, ["stop"]) },
                    {
                      default: withCtx(() => [
                        createVNode(
                          l,
                          { class: "shop-name dec-row-flex j-between" },
                          {
                            default: withCtx(() => [
                              createVNode(
                                l,
                                { class: "text shrink1 dec-truncate" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode(
                                      toDisplayString(
                                        o.good.shopName || "所属店铺"
                                      ),
                                      1
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ),
                              createVNode(
                                r,
                                {
                                  class: "shrink0",
                                  type: "right",
                                  size: "big" == o.imgArg ? 16 : 14,
                                  color: "#999999",
                                },
                                null,
                                8,
                                ["size"]
                              ),
                            ]),
                            _: 1,
                          }
                        ),
                      ]),
                      _: 1,
                    },
                    8,
                    ["onClick"]
                  ))
                : "big" == o.imgArg
                ? (openBlock(), createBlock(l, { key: 6, class: "none-h" }))
                : createCommentVNode("v-if", !0),
            ]),
            _: 1,
          },
          8,
          ["class", "onClick"]
        ),
      ],
      2112
    )
  );
}
var goodShort$2 = _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
const _sfc_main$p = {
  inject: ["decImgDomain", "decAxios"],
  props: {
    moudle: { type: String, default: "goodList" },
    show: { type: Object, default: () => ({}) },
    good: { type: Object, default: () => ({}) },
    count: { type: Number, default: 0 },
    imgArg: { type: String, default: "" },
    imgW: { type: String, default: "40%" },
  },
  data: () => ({ cartNum: 0 }),
  watch: {
    count(e, t) {
      e != t && (this.cartNum = e || 0);
    },
  },
  computed: {
    className() {
      let e = [];
      return (
        this.imgArg && e.push(this.imgArg),
        this.show.radius && e.push("radius"),
        e
      );
    },
    hasShop() {
      return this.show.price || this.show.origin || this.show.bug;
    },
    predictReward() {
      let e = this.good.predictReward || 0;
      if (((e = parseInt(100 * e)), e > 0)) {
        e = "" + e / 100;
        const t = e.split(".");
        e = t[1] ? (1 == t[1].length ? `${t[0]}.${t[1]}0` : e) : `${e}.00`;
      } else e = "";
      return e;
    },
    opriceShow() {
      return (
        !(!this.show.origin || !this.good.smarketPrice) &&
        this.good.smarketPrice > this.good.salePrice
      );
    },
  },
  created() {
    this.cartNum = this.count || 0;
  },
  methods: {
    go() {
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "detail", desc: "跳商品详情页" },
        this.good,
        null
      );
    },
    buy() {
      const e = this;
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "buy", desc: "购买商品" },
        this.good,
        (t) => {
          (e.cartNum = t[e.good.id] || 0), e.$emit("refreshBuyNum", t);
        }
      );
    },
    goShop() {
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "shop", desc: "跳所属店铺" },
        this.good,
        null
      );
    },
  },
};
function _sfc_render$p(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h,
    n = index$j,
    r = resolveEasycom(resolveDynamicComponent("uni-icons"), __easycom_0$1);
  return (
    openBlock(),
    createBlock(
      l,
      {
        class: normalizeClass(["dec-long-good", c.className]),
        onClick: withModifiers(c.go, ["stop"]),
      },
      {
        default: withCtx(() => [
          createCommentVNode(" 图片 角标  "),
          createVNode(
            l,
            {
              class: "good-img",
              style: normalizeStyle({ width: o.imgW, height: o.imgW }),
            },
            {
              default: withCtx(() => [
                createVNode(
                  s,
                  {
                    mode: "widthFix",
                    class: "img",
                    src: c.decImgDomain(o.good.productImg || ""),
                  },
                  null,
                  8,
                  ["src"]
                ),
                o.show.mark
                  ? (openBlock(),
                    createBlock(
                      l,
                      {
                        key: 0,
                        class: normalizeClass(["mark", o.show.markStyle]),
                      },
                      null,
                      8,
                      ["class"]
                    ))
                  : createCommentVNode("v-if", !0),
              ]),
              _: 1,
            },
            8,
            ["style"]
          ),
          createVNode(
            l,
            { class: "good-info" },
            {
              default: withCtx(() => [
                createVNode(
                  l,
                  { class: "good-intro" },
                  {
                    default: withCtx(() => [
                      o.show.name
                        ? (openBlock(),
                          createBlock(
                            l,
                            { key: 0, class: "good-title dec-truncate2 mb" },
                            {
                              default: withCtx(() => [
                                createTextVNode(
                                  toDisplayString(o.good.productName),
                                  1
                                ),
                              ]),
                              _: 1,
                            }
                          ))
                        : createCommentVNode("v-if", !0),
                      o.show.desc
                        ? (openBlock(),
                          createBlock(
                            l,
                            { key: 1, class: "good-desc dec-truncate" },
                            {
                              default: withCtx(() => [
                                createTextVNode(
                                  toDisplayString(
                                    o.good.productDesc || o.good.productName
                                  ),
                                  1
                                ),
                              ]),
                              _: 1,
                            }
                          ))
                        : createCommentVNode("v-if", !0),
                    ]),
                    _: 1,
                  }
                ),
                createCommentVNode(' 店铺名称|@tap.stop="goShop" '),
                o.show.shopName && o.good.shopName
                  ? (openBlock(),
                    createBlock(
                      l,
                      { key: 0, class: "shop-name dec-truncate" },
                      {
                        default: withCtx(() => [
                          createTextVNode(
                            toDisplayString(o.good.shopName || "所属店铺"),
                            1
                          ),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
                createCommentVNode(" 商品佣金 "),
                o.show.reward && c.predictReward
                  ? (openBlock(),
                    createBlock(
                      l,
                      { key: 1, class: "good-reward" },
                      {
                        default: withCtx(() => [
                          createTextVNode(
                            "预计返" + toDisplayString(c.predictReward) + "元",
                            1
                          ),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
                createCommentVNode(" 价格 购买 "),
                c.hasShop
                  ? (openBlock(),
                    createBlock(
                      l,
                      { key: 2, class: "price-wrap dec-row-flex j-between" },
                      {
                        default: withCtx(() => [
                          o.show.price || o.show.origin || o.show.bug
                            ? (openBlock(),
                              createBlock(
                                l,
                                {
                                  key: 0,
                                  class: "dec-row-flex a-bottom shrink1",
                                },
                                {
                                  default: withCtx(() => [
                                    o.show.price
                                      ? (openBlock(),
                                        createBlock(
                                          n,
                                          { key: 0, class: "dot" },
                                          {
                                            default: withCtx(() => [
                                              createTextVNode("¥"),
                                            ]),
                                            _: 1,
                                          }
                                        ))
                                      : createCommentVNode("v-if", !0),
                                    o.show.price
                                      ? (openBlock(),
                                        createBlock(
                                          n,
                                          { key: 1, class: "sale" },
                                          {
                                            default: withCtx(() => [
                                              createTextVNode(
                                                toDisplayString(
                                                  o.good.salePrice || 0
                                                ),
                                                1
                                              ),
                                            ]),
                                            _: 1,
                                          }
                                        ))
                                      : createCommentVNode("v-if", !0),
                                    c.opriceShow
                                      ? (openBlock(),
                                        createBlock(
                                          n,
                                          { key: 2, class: "origin" },
                                          {
                                            default: withCtx(() => [
                                              createTextVNode(
                                                "￥" +
                                                  toDisplayString(
                                                    o.good.smarketPrice
                                                  ),
                                                1
                                              ),
                                            ]),
                                            _: 1,
                                          }
                                        ))
                                      : createCommentVNode("v-if", !0),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          o.show.bug
                            ? (openBlock(),
                              createElementBlock(
                                Fragment,
                                { key: 1 },
                                [
                                  "custom" == o.show.bugStyle
                                    ? (openBlock(),
                                      createBlock(
                                        l,
                                        {
                                          key: 0,
                                          class: "shrink0 b-buy",
                                          onClick: withModifiers(c.buy, [
                                            "stop",
                                          ]),
                                        },
                                        {
                                          default: withCtx(() => [
                                            createVNode(n, null, {
                                              default: withCtx(() => [
                                                createTextVNode(
                                                  toDisplayString(
                                                    o.show.bugTxt
                                                  ),
                                                  1
                                                ),
                                              ]),
                                              _: 1,
                                            }),
                                          ]),
                                          _: 1,
                                        },
                                        8,
                                        ["onClick"]
                                      ))
                                    : "custom2" == o.show.bugStyle
                                    ? (openBlock(),
                                      createBlock(
                                        l,
                                        {
                                          key: 1,
                                          class: "shrink0 c-buy",
                                          onClick: withModifiers(c.buy, [
                                            "stop",
                                          ]),
                                        },
                                        {
                                          default: withCtx(() => [
                                            createVNode(n, null, {
                                              default: withCtx(() => [
                                                createTextVNode(
                                                  toDisplayString(
                                                    o.show.bugTxt
                                                  ),
                                                  1
                                                ),
                                              ]),
                                              _: 1,
                                            }),
                                          ]),
                                          _: 1,
                                        },
                                        8,
                                        ["onClick"]
                                      ))
                                    : "shop3" == o.show.bugStyle
                                    ? (openBlock(),
                                      createBlock(
                                        l,
                                        {
                                          key: 2,
                                          class: "shrink0 d-buy",
                                          onClick: withModifiers(c.buy, [
                                            "stop",
                                          ]),
                                        },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              l,
                                              { class: "cart-circle" },
                                              {
                                                default: withCtx(() => [
                                                  createVNode(r, {
                                                    type: "cart",
                                                    size: 18,
                                                    color: "#ffffff",
                                                  }),
                                                  i.cartNum > 0
                                                    ? (openBlock(),
                                                      createBlock(
                                                        n,
                                                        {
                                                          key: 0,
                                                          class: "count",
                                                        },
                                                        {
                                                          default: withCtx(
                                                            () => [
                                                              createTextVNode(
                                                                toDisplayString(
                                                                  i.cartNum
                                                                ),
                                                                1
                                                              ),
                                                            ]
                                                          ),
                                                          _: 1,
                                                        }
                                                      ))
                                                    : createCommentVNode(
                                                        "v-if",
                                                        !0
                                                      ),
                                                ]),
                                                _: 1,
                                              }
                                            ),
                                          ]),
                                          _: 1,
                                        },
                                        8,
                                        ["onClick"]
                                      ))
                                    : (openBlock(),
                                      createBlock(
                                        l,
                                        {
                                          key: 3,
                                          class: "shrink0 a-buy",
                                          onClick: withModifiers(c.buy, [
                                            "stop",
                                          ]),
                                        },
                                        {
                                          default: withCtx(() => [
                                            "shop" == o.show.bugStyle
                                              ? (openBlock(),
                                                createBlock(
                                                  l,
                                                  {
                                                    key: 0,
                                                    class: "text",
                                                    onClick: withModifiers(
                                                      c.buy,
                                                      ["stop"]
                                                    ),
                                                  },
                                                  {
                                                    default: withCtx(() => [
                                                      createVNode(
                                                        r,
                                                        {
                                                          type: "cart-filled",
                                                          size:
                                                            "big" == o.imgArg
                                                              ? 40
                                                              : 34,
                                                          color: "#ff4444",
                                                        },
                                                        null,
                                                        8,
                                                        ["size"]
                                                      ),
                                                      i.cartNum > 0
                                                        ? (openBlock(),
                                                          createBlock(
                                                            n,
                                                            {
                                                              key: 0,
                                                              class: "count",
                                                            },
                                                            {
                                                              default: withCtx(
                                                                () => [
                                                                  createTextVNode(
                                                                    toDisplayString(
                                                                      i.cartNum
                                                                    ),
                                                                    1
                                                                  ),
                                                                ]
                                                              ),
                                                              _: 1,
                                                            }
                                                          ))
                                                        : createCommentVNode(
                                                            "v-if",
                                                            !0
                                                          ),
                                                    ]),
                                                    _: 1,
                                                  },
                                                  8,
                                                  ["onClick"]
                                                ))
                                              : "shop2" == o.show.bugStyle
                                              ? (openBlock(),
                                                createBlock(
                                                  l,
                                                  {
                                                    key: 1,
                                                    class: "text",
                                                    onClick: withModifiers(
                                                      c.buy,
                                                      ["stop"]
                                                    ),
                                                  },
                                                  {
                                                    default: withCtx(() => [
                                                      createVNode(
                                                        r,
                                                        {
                                                          type: "cart",
                                                          size:
                                                            "big" == o.imgArg
                                                              ? 40
                                                              : 34,
                                                          color: "#ff4444",
                                                        },
                                                        null,
                                                        8,
                                                        ["size"]
                                                      ),
                                                      i.cartNum > 0
                                                        ? (openBlock(),
                                                          createBlock(
                                                            n,
                                                            {
                                                              key: 0,
                                                              class: "count",
                                                            },
                                                            {
                                                              default: withCtx(
                                                                () => [
                                                                  createTextVNode(
                                                                    toDisplayString(
                                                                      i.cartNum
                                                                    ),
                                                                    1
                                                                  ),
                                                                ]
                                                              ),
                                                              _: 1,
                                                            }
                                                          ))
                                                        : createCommentVNode(
                                                            "v-if",
                                                            !0
                                                          ),
                                                    ]),
                                                    _: 1,
                                                  },
                                                  8,
                                                  ["onClick"]
                                                ))
                                              : "plus" == o.show.bugStyle
                                              ? (openBlock(),
                                                createBlock(
                                                  l,
                                                  {
                                                    key: 2,
                                                    class: "text",
                                                    onClick: withModifiers(
                                                      c.buy,
                                                      ["stop"]
                                                    ),
                                                  },
                                                  {
                                                    default: withCtx(() => [
                                                      createVNode(
                                                        r,
                                                        {
                                                          type: "plus-filled",
                                                          size:
                                                            "big" == o.imgArg
                                                              ? 40
                                                              : 34,
                                                          color: "#ff4444",
                                                        },
                                                        null,
                                                        8,
                                                        ["size"]
                                                      ),
                                                      i.cartNum > 0
                                                        ? (openBlock(),
                                                          createBlock(
                                                            n,
                                                            {
                                                              key: 0,
                                                              class: "count",
                                                            },
                                                            {
                                                              default: withCtx(
                                                                () => [
                                                                  createTextVNode(
                                                                    toDisplayString(
                                                                      i.cartNum
                                                                    ),
                                                                    1
                                                                  ),
                                                                ]
                                                              ),
                                                              _: 1,
                                                            }
                                                          ))
                                                        : createCommentVNode(
                                                            "v-if",
                                                            !0
                                                          ),
                                                    ]),
                                                    _: 1,
                                                  },
                                                  8,
                                                  ["onClick"]
                                                ))
                                              : "plus2" == o.show.bugStyle
                                              ? (openBlock(),
                                                createBlock(
                                                  l,
                                                  {
                                                    key: 3,
                                                    class: "text",
                                                    onClick: withModifiers(
                                                      c.buy,
                                                      ["stop"]
                                                    ),
                                                  },
                                                  {
                                                    default: withCtx(() => [
                                                      createVNode(
                                                        r,
                                                        {
                                                          type: "plus",
                                                          size:
                                                            "big" == o.imgArg
                                                              ? 40
                                                              : 34,
                                                          color: "#ff4444",
                                                        },
                                                        null,
                                                        8,
                                                        ["size"]
                                                      ),
                                                      i.cartNum > 0
                                                        ? (openBlock(),
                                                          createBlock(
                                                            n,
                                                            {
                                                              key: 0,
                                                              class: "count",
                                                            },
                                                            {
                                                              default: withCtx(
                                                                () => [
                                                                  createTextVNode(
                                                                    toDisplayString(
                                                                      i.cartNum
                                                                    ),
                                                                    1
                                                                  ),
                                                                ]
                                                              ),
                                                              _: 1,
                                                            }
                                                          ))
                                                        : createCommentVNode(
                                                            "v-if",
                                                            !0
                                                          ),
                                                    ]),
                                                    _: 1,
                                                  },
                                                  8,
                                                  ["onClick"]
                                                ))
                                              : createCommentVNode("v-if", !0),
                                          ]),
                                          _: 1,
                                        },
                                        8,
                                        ["onClick"]
                                      )),
                                ],
                                2112
                              ))
                            : createCommentVNode("v-if", !0),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
              ]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      },
      8,
      ["class", "onClick"]
    )
  );
}
var goodLong$1 = _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
const _sfc_main$o = {
  inject: ["decImgDomain", "decAxios"],
  props: {
    moudle: { type: String, default: "goodList" },
    simple: { type: Boolean, default: !0 },
    show: { type: Object, default: () => ({}) },
    good: { type: Object, default: () => ({}) },
    imgArg: { type: String, default: "" },
    imgH: { type: String, default: "" },
  },
  computed: {
    className() {
      let e = [];
      return (
        this.imgArg && e.push(this.imgArg),
        this.show.radius && e.push("radius"),
        e
      );
    },
    predictReward() {
      let e = this.good.predictReward || 0;
      if (((e = parseInt(100 * e)), e > 0)) {
        e = "" + e / 100;
        const t = e.split(".");
        e = t[1] ? (1 == t[1].length ? `${t[0]}.${t[1]}0` : e) : `${e}.00`;
      } else e = "";
      return e;
    },
    opriceShow() {
      return (
        !(!this.show.origin || !this.good.smarketPrice) &&
        this.good.smarketPrice > this.good.salePrice
      );
    },
  },
  methods: {
    go() {
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "buy", desc: "跳商品详情页" },
        this.good,
        null
      );
    },
  },
};
function _sfc_render$o(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h;
  return (
    openBlock(),
    createBlock(
      l,
      {
        class: normalizeClass(["dec-img-good", c.className]),
        onClick: withModifiers(c.go, ["stop"]),
      },
      {
        default: withCtx(() => [
          o.imgH
            ? (openBlock(),
              createBlock(
                s,
                {
                  key: 0,
                  class: "good-img",
                  style: normalizeStyle({ height: o.imgH }),
                  src: c.decImgDomain(o.good.productImg),
                  mode: "aspectFill",
                },
                null,
                8,
                ["style", "src"]
              ))
            : (openBlock(),
              createBlock(
                s,
                {
                  key: 1,
                  class: "good-img",
                  src: c.decImgDomain(o.good.productImg),
                  mode: "big" == o.imgArg ? "widthFix" : "aspectFill",
                },
                null,
                8,
                ["src", "mode"]
              )),
          createVNode(
            l,
            { class: "good-info" },
            {
              default: withCtx(() => [
                createVNode(
                  l,
                  {
                    class: normalizeClass([
                      "good-title dec-truncate2",
                      o.show.nameStyle,
                    ]),
                  },
                  {
                    default: withCtx(() => [
                      createTextVNode(toDisplayString(o.good.productName), 1),
                    ]),
                    _: 1,
                  },
                  8,
                  ["class"]
                ),
                o.simple
                  ? createCommentVNode("v-if", !0)
                  : (openBlock(),
                    createBlock(
                      l,
                      { key: 0, class: "price-wrap dec-row-flex j-between" },
                      {
                        default: withCtx(() => [
                          o.show.price
                            ? (openBlock(),
                              createBlock(
                                l,
                                { key: 0, class: "dec-row-flex a-bottom" },
                                {
                                  default: withCtx(() => [
                                    createVNode(
                                      l,
                                      { class: "dot" },
                                      {
                                        default: withCtx(() => [
                                          createTextVNode("￥"),
                                        ]),
                                        _: 1,
                                      }
                                    ),
                                    createVNode(
                                      l,
                                      { class: "sale" },
                                      {
                                        default: withCtx(() => [
                                          createTextVNode(
                                            toDisplayString(
                                              o.good.salePrice || 0
                                            ),
                                            1
                                          ),
                                        ]),
                                        _: 1,
                                      }
                                    ),
                                    c.opriceShow
                                      ? (openBlock(),
                                        createBlock(
                                          l,
                                          {
                                            key: 0,
                                            class: normalizeClass([
                                              "origin",
                                              o.show.nameStyle,
                                            ]),
                                          },
                                          {
                                            default: withCtx(() => [
                                              createTextVNode(
                                                "￥" +
                                                  toDisplayString(
                                                    o.good.smarketPrice
                                                  ),
                                                1
                                              ),
                                            ]),
                                            _: 1,
                                          },
                                          8,
                                          ["class"]
                                        ))
                                      : createCommentVNode("v-if", !0),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          o.show.reward && c.predictReward
                            ? (openBlock(),
                              createBlock(
                                l,
                                { key: 1, class: "good-reward" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode(
                                      "预计返" +
                                        toDisplayString(c.predictReward) +
                                        "元",
                                      1
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                        ]),
                        _: 1,
                      }
                    )),
              ]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      },
      8,
      ["class", "onClick"]
    )
  );
}
var goodImg = _export_sfc(_sfc_main$o, [["render", _sfc_render$o]]);
const _sfc_main$n = {
  inject: ["decAxios"],
  components: {
    goodShort: goodShort$2,
    goodLong: goodLong$1,
    goodImg: goodImg,
  },
  props: {
    moudle: { type: String, default: "goodList" },
    arg: { type: String, default: "" },
    groupKey: { type: String, default: "left" },
    goodKey: { type: String, default: "" },
  },
  data: () => ({ goodIds: [], cartListMap: {}, goods: [], show: {}, img: {} }),
  created() {
    const e = `${this.groupKey}-${this.goodKey}`;
    let t = {};
    if (
      ((t = this.$parent.$parent.$parent),
      t.allGoods || (t = t.$parent),
      t.allGoods || (t = t.$parent),
      t.allGoods || (t = t.$parent),
      t.allGoods &&
        ((this.goods = t.allGoods[e]),
        this.goods &&
          this.goods.length > 0 &&
          ((this.img = t.img), (this.show = t.show), this.show.bug)))
    ) {
      this.refreshBuyNum();
      const e = this.decAxios.getAppMemberData("decPageType");
      $on(`refreshAppCartEvent${e || "1"}`, (e) => {
        this.refreshBuyNum(e);
      });
    }
  },
  computed: {
    scrollH() {
      if ("scroll-two" == this.arg) {
        return parseInt((this.img.h2 || "").replace("px", "")) + 14 + "px";
      }
      if ("scroll-three" == this.arg) {
        return parseInt((this.img.h3 || "").replace("px", "")) + 14 + "px";
      }
      return "";
    },
  },
  watch: {
    goodKey(e) {
      if (e) {
        const e = `${this.groupKey}-${this.goodKey}`;
        this.goods = this.$parent.allGoods[e];
      }
    },
  },
  methods: {
    refreshBuyNum(e) {
      const t = e || this.decAxios.getAppMemberData() || {};
      this.cartListMap = t;
    },
  },
  beforeDestroy() {
    const e = this.decAxios.getAppMemberData("decPageType");
    $off(`refreshAppCartEvent${e || "1"}`);
  },
};
function _sfc_render$n(e, t, o, a, i, c) {
  const s = resolveComponent("good-img"),
    l = index$h,
    n = resolveComponent("good-short"),
    r = resolveComponent("good-long"),
    d = SwiperItem,
    m = Swiper;
  return i.goods && i.goods.length > 0
    ? (openBlock(),
      createBlock(
        l,
        { key: 0, class: "item-wrap" },
        {
          default: withCtx(() => [
            createCommentVNode(" 商品为:字下图img "),
            "img" === o.arg
              ? (openBlock(!0),
                createElementBlock(
                  Fragment,
                  { key: 0 },
                  renderList(
                    i.goods,
                    (e, t) => (
                      openBlock(),
                      createBlock(
                        l,
                        { class: "img-wrap", key: t },
                        {
                          default: withCtx(() => [
                            createVNode(
                              s,
                              {
                                good: e,
                                show: i.show,
                                simple: !1,
                                imgArg: "big",
                              },
                              null,
                              8,
                              ["good", "show"]
                            ),
                          ]),
                          _: 2,
                        },
                        1024
                      )
                    )
                  ),
                  128
                ))
              : "join" === o.arg
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 1 },
                  [
                    createCommentVNode(" 商品为: 拼图join-左右 img['4']??"),
                    (openBlock(!0),
                    createElementBlock(
                      Fragment,
                      null,
                      renderList(
                        i.goods,
                        (e, t) => (
                          openBlock(),
                          createBlock(
                            l,
                            { class: "join-wrap", key: t },
                            {
                              default: withCtx(() => [
                                createVNode(
                                  l,
                                  { class: "big-wrap" },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        s,
                                        {
                                          good: e.big,
                                          show: i.show,
                                          imgH: i.img.h2,
                                        },
                                        null,
                                        8,
                                        ["good", "show", "imgH"]
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                                createVNode(
                                  l,
                                  { class: "small-wrap" },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        l,
                                        { class: "item" },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              s,
                                              {
                                                good: e.small[0],
                                                show: i.show,
                                                imgArg: "small",
                                              },
                                              null,
                                              8,
                                              ["good", "show"]
                                            ),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                      createVNode(
                                        l,
                                        { class: "item" },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              s,
                                              {
                                                good: e.small[1],
                                                show: i.show,
                                                imgArg: "small",
                                              },
                                              null,
                                              8,
                                              ["good", "show"]
                                            ),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                              ]),
                              _: 2,
                            },
                            1024
                          )
                        )
                      ),
                      128
                    )),
                  ],
                  2112
                ))
              : "concat" === o.arg
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 2 },
                  [
                    createCommentVNode(" 商品为: 组图concat-上下"),
                    (openBlock(!0),
                    createElementBlock(
                      Fragment,
                      null,
                      renderList(
                        i.goods,
                        (e, t) => (
                          openBlock(),
                          createBlock(
                            l,
                            { class: "concat-wrap", key: t },
                            {
                              default: withCtx(() => [
                                createVNode(
                                  l,
                                  { class: "big-wrap" },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        n,
                                        {
                                          onRefreshBuyNum: c.refreshBuyNum,
                                          good: e.big,
                                          show: i.show,
                                          imgArg: "big",
                                          imgH: i.img.h1,
                                        },
                                        null,
                                        8,
                                        [
                                          "onRefreshBuyNum",
                                          "good",
                                          "show",
                                          "imgH",
                                        ]
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                                createVNode(
                                  l,
                                  { class: "small-wrap" },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        l,
                                        { class: "item" },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              s,
                                              {
                                                good: e.small[0],
                                                show: i.show,
                                                imgH: i.img.h2,
                                              },
                                              null,
                                              8,
                                              ["good", "show", "imgH"]
                                            ),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                      createVNode(
                                        l,
                                        { class: "item" },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              s,
                                              {
                                                good: e.small[1],
                                                show: i.show,
                                                imgH: i.img.h2,
                                              },
                                              null,
                                              8,
                                              ["good", "show", "imgH"]
                                            ),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                              ]),
                              _: 2,
                            },
                            1024
                          )
                        )
                      ),
                      128
                    )),
                  ],
                  2112
                ))
              : "list,list-x".indexOf(o.arg) > -1
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 3 },
                  [
                    createCommentVNode(" 商品为:列表list-x "),
                    (openBlock(!0),
                    createElementBlock(
                      Fragment,
                      null,
                      renderList(
                        i.goods,
                        (e, t) => (
                          openBlock(),
                          createBlock(
                            l,
                            { class: "list-wrap", key: t },
                            {
                              default: withCtx(() => [
                                createVNode(
                                  r,
                                  {
                                    onRefreshBuyNum: c.refreshBuyNum,
                                    good: e,
                                    count: i.cartListMap[e.id] || 0,
                                    show: i.show,
                                    imgArg: "",
                                    imgW: i.img.w40,
                                  },
                                  null,
                                  8,
                                  [
                                    "onRefreshBuyNum",
                                    "good",
                                    "count",
                                    "show",
                                    "imgW",
                                  ]
                                ),
                              ]),
                              _: 2,
                            },
                            1024
                          )
                        )
                      ),
                      128
                    )),
                  ],
                  2112
                ))
              : "scroll-two" == o.arg
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 4 },
                  [
                    createCommentVNode(" 商品为:滚两图scroll-two  "),
                    createVNode(
                      m,
                      {
                        class: "swiper-scroll",
                        "indicator-dots": !1,
                        style: normalizeStyle({ height: c.scrollH }),
                      },
                      {
                        default: withCtx(() => [
                          (openBlock(!0),
                          createElementBlock(
                            Fragment,
                            null,
                            renderList(
                              i.goods,
                              (e, t) => (
                                openBlock(),
                                createBlock(
                                  d,
                                  { key: t },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        l,
                                        { class: "swiper-wrap" },
                                        {
                                          default: withCtx(() => [
                                            (openBlock(!0),
                                            createElementBlock(
                                              Fragment,
                                              null,
                                              renderList(
                                                e,
                                                (e, t) => (
                                                  openBlock(),
                                                  createBlock(
                                                    l,
                                                    {
                                                      key: t,
                                                      class: "swiper-item",
                                                    },
                                                    {
                                                      default: withCtx(() => [
                                                        createVNode(
                                                          s,
                                                          {
                                                            good: e,
                                                            show: i.show,
                                                            imgH: i.img.h2,
                                                          },
                                                          null,
                                                          8,
                                                          [
                                                            "good",
                                                            "show",
                                                            "imgH",
                                                          ]
                                                        ),
                                                      ]),
                                                      _: 2,
                                                    },
                                                    1024
                                                  )
                                                )
                                              ),
                                              128
                                            )),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                )
                              )
                            ),
                            128
                          )),
                        ]),
                        _: 1,
                      },
                      8,
                      ["style"]
                    ),
                  ],
                  2112
                ))
              : "scroll-three" == o.arg
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 5 },
                  [
                    createCommentVNode(" 商品为:滚三图scroll-three "),
                    createVNode(
                      m,
                      {
                        class: "swiper-scroll",
                        "indicator-dots": !1,
                        style: normalizeStyle({ height: c.scrollH }),
                      },
                      {
                        default: withCtx(() => [
                          (openBlock(!0),
                          createElementBlock(
                            Fragment,
                            null,
                            renderList(
                              i.goods,
                              (e, t) => (
                                openBlock(),
                                createBlock(
                                  d,
                                  { key: t },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        l,
                                        { class: "swiper-wrap" },
                                        {
                                          default: withCtx(() => [
                                            (openBlock(!0),
                                            createElementBlock(
                                              Fragment,
                                              null,
                                              renderList(
                                                e,
                                                (e, t) => (
                                                  openBlock(),
                                                  createBlock(
                                                    l,
                                                    {
                                                      key: t,
                                                      class:
                                                        "swiper-item three",
                                                    },
                                                    {
                                                      default: withCtx(() => [
                                                        createVNode(
                                                          s,
                                                          {
                                                            good: e,
                                                            show: i.show,
                                                            imgArg: "small",
                                                            imgH: i.img.h3,
                                                          },
                                                          null,
                                                          8,
                                                          [
                                                            "good",
                                                            "show",
                                                            "imgH",
                                                          ]
                                                        ),
                                                      ]),
                                                      _: 2,
                                                    },
                                                    1024
                                                  )
                                                )
                                              ),
                                              128
                                            )),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                )
                              )
                            ),
                            128
                          )),
                        ]),
                        _: 1,
                      },
                      8,
                      ["style"]
                    ),
                  ],
                  2112
                ))
              : "three" == o.arg
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 6 },
                  [
                    createCommentVNode(" 商品为:三图,二图,大图 "),
                    (openBlock(!0),
                    createElementBlock(
                      Fragment,
                      null,
                      renderList(
                        i.goods,
                        (e, t) => (
                          openBlock(),
                          createBlock(
                            l,
                            { key: t, class: "item" },
                            {
                              default: withCtx(() => [
                                createVNode(
                                  n,
                                  {
                                    moudle: o.moudle,
                                    good: e,
                                    show: i.show,
                                    imgH: i.img.h3,
                                    imgArg: "small",
                                  },
                                  null,
                                  8,
                                  ["moudle", "good", "show", "imgH"]
                                ),
                              ]),
                              _: 2,
                            },
                            1024
                          )
                        )
                      ),
                      128
                    )),
                  ],
                  2112
                ))
              : "double,two".indexOf(o.arg) > -1
              ? (openBlock(!0),
                createElementBlock(
                  Fragment,
                  { key: 7 },
                  renderList(
                    i.goods,
                    (e, t) => (
                      openBlock(),
                      createBlock(
                        l,
                        { key: t, class: "item" },
                        {
                          default: withCtx(() => [
                            createVNode(
                              n,
                              {
                                onRefreshBuyNum: c.refreshBuyNum,
                                moudle: o.moudle,
                                count: i.cartListMap[e.id] || 0,
                                good: e,
                                show: i.show,
                                imgH: i.img.h2,
                              },
                              null,
                              8,
                              [
                                "onRefreshBuyNum",
                                "moudle",
                                "count",
                                "good",
                                "show",
                                "imgH",
                              ]
                            ),
                          ]),
                          _: 2,
                        },
                        1024
                      )
                    )
                  ),
                  128
                ))
              : (openBlock(!0),
                createElementBlock(
                  Fragment,
                  { key: 8 },
                  renderList(
                    i.goods,
                    (e, t) => (
                      openBlock(),
                      createBlock(
                        l,
                        { key: t, class: "item" },
                        {
                          default: withCtx(() => [
                            createVNode(
                              n,
                              {
                                onRefreshBuyNum: c.refreshBuyNum,
                                moudle: o.moudle,
                                count: i.cartListMap[e.id] || 0,
                                good: e,
                                show: i.show,
                                imgH: i.img.h1,
                                imgArg: "big",
                              },
                              null,
                              8,
                              [
                                "onRefreshBuyNum",
                                "moudle",
                                "count",
                                "good",
                                "show",
                                "imgH",
                              ]
                            ),
                          ]),
                          _: 2,
                        },
                        1024
                      )
                    )
                  ),
                  128
                )),
          ]),
          _: 1,
        }
      ))
    : createCommentVNode("v-if", !0);
}
var goodWrap$1 = _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
const _sfc_main$m = {
  inject: ["decAxios", "decImgDomain"],
  components: { goodWrap: goodWrap$1 },
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({
    loading: !1,
    loadMore: "",
    arg: {},
    show: null,
    isStatic: !1,
    groups: [],
    styleW: "",
    className: "",
    allGoods: {},
    showGoods: [],
    styleMap: {
      "scroll-two": ["left"],
      "scroll-three": ["left"],
      join: ["left"],
      concat: ["left"],
      big: ["left"],
      one: ["left"],
      double: ["left", "right"],
      two: ["left", "right"],
      three: ["left", "middle", "right"],
    },
    pager: { pages: 0, pageNo: 0, pageSize: 30 },
    img: { h1: "", h2: "", h3: "", w40: "", url: "" },
  }),
  onUnload() {
    this.loadMore = "";
  },
  created() {
    (this.arg = this.tab.arg), (this.show = this.arg.show || this.arg.goodShow);
    const e = this.arg.styleArg || "";
    (this.groups = this.styleMap[this.arg.listStyle] || ["left"]),
      (this.styleW = `width:${parseInt(1e4 / this.groups.length) / 100}%`);
    (this.className = `${
      ["one", "two", "three"][this.groups.length - 1] || "other"
    }-group`),
      "api" === e
        ? ((this.pager.pageNo = 0), this.initApiData(!0))
        : this.initData(this.reachBottomFn);
  },
  methods: {
    initData(e) {
      if (!this.loading) {
        this.loading = !0;
        const t = this.arg.ids || [];
        this.isStatic =
          "fix" == this.arg.styleArg && (0 == t.length || this.arg.static);
        const o = this.decAxios.getGoodListData,
          a = this.isStatic
            ? new Promise((e) => {
                e({ code: 200, result: t.length > 0 ? [...t] : [] });
              })
            : o({
                getType: "0",
                ids: t.map((e) => e._id || e.id || e).join(","),
              }),
          i = this;
        a.then((t) => {
          const o = ("200" == t.code && (t.result.records || t.result)) || [],
            a = i.listStyleChange(o),
            c = `0-${i.pager.pageSize}`;
          i.groups.forEach((e) => {
            const t = `${e}-${c}`;
            i.allGoods[t] = a[e];
          }),
            (i.loading = !1),
            (i.pager.pageNo = 0),
            "function" == typeof e && e();
        });
      }
    },
    initApiData(e) {
      if (!this.loading) {
        this.loading = !0;
        const t = this.decAxios.getGoodListData,
          { pageSize: o } = this.pager;
        let a = this.pager.pageNo + 1,
          i = { getType: "1" };
        "Y" == this.arg.autoLoad
          ? (i = Object.assign({}, i, { pageNo: a, pageSize: o }))
          : (i.getCount = this.arg.dataNum || 10),
          t(i).then((t) => {
            this.loading = !1;
            const o = t.result || {},
              c = ("200" == t.code && (o.records || o)) || [],
              s = this;
            this.judgeWhoShort((t) => {
              const l = s.listStyleChange(c, t) || { left: [] },
                n = `${a}-${s.pager.pageSize}`;
              s.groups.forEach((e) => {
                const t = `${e}-${n}`;
                s.allGoods[t] = l[e];
              }),
                (s.pager.pages = o.pages || 1),
                (s.pager.pageNo = i.pageNo || 1),
                e ? s.reachBottomFn() : (s.loadMore = "");
            }, e);
          });
      }
    },
    reachBottomFn() {
      const { pageNo: e, pageSize: t, pages: o } = this.pager,
        a = `${e}-${t}`;
      (this.loadMore = ""),
        "Y" != this.arg.autoLoad || this.loading
          ? this.showGoods.includes(a) || this.showGoods.push(a)
          : e > 0 && e == o
          ? (this.showGoods.includes(a) || this.showGoods.push(a),
            (this.loadMore = "noMore"))
          : ((this.loadMore = "loading"),
            this.showGoods.includes(a) || this.showGoods.push(a),
            this.initApiData());
      const i = `left-${this.showGoods[0]}`;
      let c = this.allGoods[i][0];
      (c = (Array.isArray(c) ? c[0] : c) || {}),
        c.big && c.big.productImg && (c = c.big);
      const s = (c && c.productImg) || "";
      this.initImgH(s ? this.decImgDomain(s) : "", () => {});
    },
    initImgH(e, t) {
      console.log("reachBottomFn-initImgH:", e);
      const o = this.img.url == e,
        a = this;
      function i(t) {
        const o = variable["@phoneWidth"] - 4 * variable["@space2"],
          i = variable["@phoneWidth"] - 6 * variable["@space2"],
          c = variable["@phoneWidth"] - 8 * variable["@space2"],
          s = 0.4 * o;
        let l = parseInt((100 * o * t.height) / t.width),
          n = parseInt((50 * i * t.height) / t.width),
          r = parseInt((33.33 * c * t.height) / t.width),
          d = parseInt(100 * s);
        (l = upx2px(l) / 100),
          (n = upx2px(n) / 100),
          (r = upx2px(r) / 100),
          (d = upx2px(d) / 100),
          (function (t, o, i, c) {
            console.log("handerImgSize:", upx2px(100), t, o, i, c);
            ["two", "three", "double"].includes(a.arg.listStyle) &&
            "fluid" == a.arg.layout
              ? ((a.img.h2 = ""), (a.img.h3 = ""))
              : ((a.img.h1 = t || a.img.h1),
                (a.img.h2 = o || a.img.h2),
                (a.img.h3 = i || a.img.h3),
                (a.img.w40 = c || a.img.h40),
                (a.img.url = e));
          })(l + "px", n + "px", r + "px", d + "px");
      }
      e && o
        ? t()
        : e
        ? getImageInfo({
            src: e,
            success: function (e) {
              i(e), t();
            },
            fail: function (e) {
              i({ height: 200, width: 200 }), t();
            },
          })
        : (i({ height: 200, width: 200 }), t());
    },
    listStyleChange(e, t) {
      const o = this.arg.listStyle;
      if ("scroll-two" == o) {
        let t = [];
        return (
          e.forEach((o, a) => {
            (a + 1) % 2 == 0 && t.push([e[a - 1], o]);
          }),
          { left: t }
        );
      }
      if ("scroll-three" == o) {
        let t = [];
        return (
          e.forEach((o, a) => {
            (a + 1) % 3 == 0 && t.push([e[a - 2], e[a - 1], o]);
          }),
          { left: t }
        );
      }
      if ("join,concat".indexOf(o) > -1) {
        let t = [];
        return (
          e.forEach((o, a) => {
            (a + 1) % 3 == 0 && t.push({ big: e[a - 2], small: [e[a - 1], o] });
          }),
          { left: t }
        );
      }
      if (["double", "two"].includes(o)) {
        let o = { right: [], left: [] },
          a = t || 0;
        return (
          e.forEach((e, t) => {
            (t + 1 + a) % 2 == 1 ? o.left.push(e) : o.right.push(e);
          }),
          o
        );
      }
      if ("three" == o) {
        let o = { right: [], middle: [], left: [] },
          a = t || 0;
        return (
          e.forEach((e, t) => {
            (t + 1 + a) % 3 == 1
              ? o.left.push(e)
              : (t + 1 + a) % 3 == 2
              ? o.middle.push(e)
              : o.right.push(e);
          }),
          o
        );
      }
      return { left: e || [] };
    },
    judgeWhoShort(e, t) {
      if (t) return e(0);
      createSelectorQuery()
        .in(this)
        .selectAll(".group-bottom")
        .boundingClientRect((t) => {
          let o = 0,
            a = 0;
          t &&
            t.length > 0 &&
            t.forEach((e, t) => {
              0 == t && (a = e.top), e.top < a && ((a = e.top), (o = t));
            }),
            e(o);
        })
        .exec();
    },
  },
};
function _sfc_render$m(e, t, o, a, i, c) {
  const s = resolveComponent("goodWrap"),
    l = index$h,
    n = resolveEasycom(resolveDynamicComponent("li-load-more"), __easycom_2$2);
  return i.showGoods.length > 0
    ? (openBlock(),
      createBlock(
        l,
        { key: 0, class: "dec-goodList" },
        {
          default: withCtx(() => [
            createVNode(
              l,
              { class: "group-wrap" },
              {
                default: withCtx(() => [
                  (openBlock(!0),
                  createElementBlock(
                    Fragment,
                    null,
                    renderList(
                      i.groups,
                      (e) => (
                        openBlock(),
                        createBlock(
                          l,
                          {
                            key: e,
                            class: normalizeClass(["group", i.className]),
                            style: normalizeStyle(i.styleW),
                          },
                          {
                            default: withCtx(() => [
                              (openBlock(!0),
                              createElementBlock(
                                Fragment,
                                null,
                                renderList(
                                  i.showGoods,
                                  (t) => (
                                    openBlock(),
                                    createBlock(
                                      s,
                                      {
                                        key: t,
                                        arg: i.arg.listStyle,
                                        groupKey: e,
                                        goodKey: t,
                                      },
                                      null,
                                      8,
                                      ["arg", "groupKey", "goodKey"]
                                    )
                                  )
                                ),
                                128
                              )),
                              createVNode(l, { class: "group-bottom" }),
                            ]),
                            _: 2,
                          },
                          1032,
                          ["style", "class"]
                        )
                      )
                    ),
                    128
                  )),
                ]),
                _: 1,
              }
            ),
            "Y" == i.arg.autoLoad
              ? (openBlock(),
                createBlock(n, { key: 0, status: i.loadMore }, null, 8, [
                  "status",
                ]))
              : createCommentVNode("v-if", !0),
          ]),
          _: 1,
        }
      ))
    : createCommentVNode("v-if", !0);
}
var goodList = _export_sfc(_sfc_main$m, [["render", _sfc_render$m]]);
const _sfc_main$l = {
  inject: ["decImgDomain", "decAxios"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: {} }),
  created() {
    this.arg = this.tab.arg;
  },
  methods: {
    toNavLink(e) {
      e &&
        e.path &&
        this.decAxios.decEventHandler(
          { moudle: "blockTitle", type: "detail", desc: "跳绑定的连接" },
          e,
          null
        );
    },
  },
};
function _sfc_render$l(e, t, o, a, i, c) {
  const s = index$j,
    l = index$h;
  return (
    openBlock(),
    createBlock(
      l,
      { class: "dec-blockTitle" },
      {
        default: withCtx(() => [
          createVNode(
            s,
            { class: normalizeClass(["box", i.arg.titleStyle]) },
            {
              default: withCtx(() => [
                createTextVNode(
                  toDisplayString(i.arg.title || "右侧编辑『标题』"),
                  1
                ),
              ]),
              _: 1,
            },
            8,
            ["class"]
          ),
          "yes" === i.arg.more
            ? (openBlock(),
              createBlock(
                l,
                {
                  key: 0,
                  class: "more",
                  onClick: t[0] || (t[0] = (e) => c.toNavLink(i.arg.linkArg)),
                },
                {
                  default: withCtx(() => [
                    createVNode(
                      s,
                      { class: "text" },
                      {
                        default: withCtx(() => [createTextVNode("更多")]),
                        _: 1,
                      }
                    ),
                    createVNode(l, { class: "svg" }),
                  ]),
                  _: 1,
                }
              ))
            : createCommentVNode("v-if", !0),
        ]),
        _: 1,
      }
    )
  );
}
var blockTitle = _export_sfc(_sfc_main$l, [["render", _sfc_render$l]]);
const _sfc_main$k = {
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: null, className: "", desc: [] }),
  created() {
    (this.arg = this.tab.arg), this.initData();
  },
  methods: {
    initData() {
      if (this.arg.title) {
        const e = this.arg.title.replace(/\n\r?/g, "<br>");
        this.desc = e.split("<br>");
      } else this.desc = ["左侧编辑『文本内容』"];
      this.className = (function (e) {
        let t = "";
        return (
          e.arg.size && (t = e.arg.size),
          e.arg.position && (t = t + (t ? " " : "") + e.arg.position),
          t
        );
      })(this);
    },
  },
};
function _sfc_render$k(e, t, o, a, i, c) {
  const s = index$j,
    l = index$h;
  return (
    openBlock(),
    createBlock(
      l,
      {
        class: "dec-desc",
        style: normalizeStyle({ backgroundColor: i.arg.bgColor }),
      },
      {
        default: withCtx(() => [
          (openBlock(!0),
          createElementBlock(
            Fragment,
            null,
            renderList(
              i.desc,
              (e, t) => (
                openBlock(),
                createBlock(
                  s,
                  {
                    class: normalizeClass(["text", i.className]),
                    key: t + e,
                    style: normalizeStyle({ color: i.arg.color }),
                  },
                  {
                    default: withCtx(() => [
                      createTextVNode(toDisplayString(e), 1),
                    ]),
                    _: 2,
                  },
                  1032,
                  ["class", "style"]
                )
              )
            ),
            128
          )),
        ]),
        _: 1,
      },
      8,
      ["style"]
    )
  );
}
var descText = _export_sfc(_sfc_main$k, [["render", _sfc_render$k]]);
function makeMap(e) {
  for (var t = {}, o = e.split(","), a = o.length; a--; ) t[o[a]] = !0;
  return t;
}
var cfg = {
    filter: null,
    highlight: null,
    onText: null,
    entities: {
      quot: '"',
      apos: "'",
      semi: ";",
      nbsp: " ",
      ensp: " ",
      emsp: " ",
      ndash: "–",
      mdash: "—",
      middot: "·",
      lsquo: "‘",
      rsquo: "’",
      ldquo: "“",
      rdquo: "”",
      bull: "•",
      hellip: "…",
    },
    blankChar: makeMap(" , ,\t,\r,\n,\f"),
    blockTags: (function (e) {
      let t =
        "address,article,aside,body,caption,center,cite,footer,header,html,nav,section";
      return (t += ",pre"), makeMap(t);
    })(),
    ignoreTags: (function (e) {
      let t =
        "area,base,basefont,canvas,command,frame,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr";
      return (t += ",embed,iframe"), makeMap(t);
    })(),
    richOnlyTags: makeMap("a,colgroup,fieldset,legend,picture,table"),
    selfClosingTags: makeMap(
      "area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr"
    ),
    trustAttrs: makeMap(
      "align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"
    ),
    boolAttrs: makeMap("autoplay,controls,ignore,loop,muted"),
    trustTags: makeMap(
      "a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"
    ),
    userAgentStyles: {
      address: "font-style:italic",
      big: "display:inline;font-size:1.2em",
      blockquote:
        "background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",
      caption: "display:table-caption;text-align:center",
      center: "text-align:center",
      cite: "font-style:italic",
      dd: "margin-left:40px",
      mark: "background-color:yellow",
      pre: "font-family:monospace;white-space:pre;overflow:scroll",
      s: "text-decoration:line-through",
      small: "display:inline;font-size:0.8em",
      u: "text-decoration:underline",
    },
  },
  jyfParser_vue_vue_type_style_index_0_scoped_true_lang = "",
  rpx = getSystemInfoSync().screenWidth / 750;
const _sfc_main$j = {
  name: "parser",
  data() {
    return { uid: this._uid, scaleAm: "", showAm: "", imgs: [], nodes: [] };
  },
  props: {
    html: null,
    autopause: { type: Boolean, default: !0 },
    autosetTitle: { type: Boolean, default: !0 },
    domain: String,
    gestureZoom: Boolean,
    lazyLoad: Boolean,
    selectable: Boolean,
    tagStyle: Object,
    showWithAnimation: Boolean,
    useAnchor: Boolean,
  },
  watch: {
    html(e) {
      this.setContent(e);
    },
  },
  mounted() {
    (this.imgList = []),
      (this.imgList.each = function (e) {
        for (var t = 0, o = this.length; t < o; t++)
          this.setItem(t, e(this[t], t, this));
      }),
      (this.imgList.setItem = function (e, t) {
        if (null != e && t) {
          if (0 == t.indexOf("http") && this.includes(t)) {
            for (
              var o, a = "", i = 0;
              (o = t[i]) && ("/" != o || "/" == t[i - 1] || "/" == t[i + 1]);
              i++
            )
              a += Math.random() > 0.5 ? o.toUpperCase() : o;
            return (a += t.substr(i)), (this[e] = a);
          }
          if (((this[e] = t), t.includes("data:image")))
            if (!t.match(/data:image\/(\S+?);(\S+?),(.+)/)) return;
        }
      }),
      (this.document = document.getElementById("rtf" + this._uid)),
      this.html && this.setContent(this.html);
  },
  beforeDestroy() {
    this._observer && this._observer.disconnect(),
      this.imgList.each((e) => {}),
      clearInterval(this._timer);
  },
  methods: {
    _Dom2Str(e) {
      var t = "";
      for (var o of e)
        if ("text" == o.type) t += o.text;
        else {
          for (var a in ((t += "<" + o.name), o.attrs || {}))
            t += " " + a + '="' + o.attrs[a] + '"';
          o.children && o.children.length
            ? (t += ">" + this._Dom2Str(o.children) + "</" + o.name + ">")
            : (t += ">");
        }
      return t;
    },
    _handleHtml(e, t) {
      if (("string" != typeof e && (e = this._Dom2Str(e.nodes || e)), !t)) {
        var o =
          "<style scoped>@keyframes show{0%{opacity:0}100%{opacity:1}}img{max-width:100%}";
        for (var a in cfg.userAgentStyles)
          o += `${a}{${cfg.userAgentStyles[a]}}`;
        for (a in this.tagStyle) o += `${a}{${this.tagStyle[a]}}`;
        e = (o += "</style>") + e;
      }
      return (
        e.includes("rpx") &&
          (e = e.replace(/[0-9.]+\s*rpx/g, (e) => parseFloat(e) * rpx + "px")),
        e
      );
    },
    setContent(e, t) {
      if (e) {
        var o = document.createElement("div");
        t
          ? this.rtf
            ? this.rtf.appendChild(o)
            : (this.rtf = o)
          : (this.rtf && this.rtf.parentNode.removeChild(this.rtf),
            (this.rtf = o)),
          (o.innerHTML = this._handleHtml(e, t));
        for (
          var a, i = this.rtf.getElementsByTagName("style"), c = 0;
          (a = i[c++]);

        )
          (a.innerHTML = a.innerHTML.replace(/body/g, "#rtf" + this._uid)),
            a.setAttribute("scoped", "true");
        !this._observer &&
          this.lazyLoad &&
          IntersectionObserver &&
          (this._observer = new IntersectionObserver(
            (e) => {
              for (let t, o = 0; (t = e[o++]); )
                t.isIntersecting &&
                  ((t.target.src = t.target.getAttribute("data-src")),
                  t.target.removeAttribute("data-src"),
                  this._observer.unobserve(t.target));
            },
            { rootMargin: "500px 0px 500px 0px" }
          ));
        var s = this,
          l = this.rtf.getElementsByTagName("title");
        l.length &&
          this.autosetTitle &&
          setNavigationBarTitle({ title: l[0].innerText }),
          (this.imgList.length = 0);
        var n = this.rtf.getElementsByTagName("img");
        for (let e, t = 0, o = 0; (e = n[t]); t++) {
          var r = e.getAttribute("src");
          this.domain &&
            r &&
            ("/" == r[0]
              ? "/" == r[1]
                ? (e.src =
                    (this.domain.includes("://")
                      ? this.domain.split("://")[0]
                      : "") +
                    ":" +
                    r)
                : (e.src = this.domain + r)
              : r.includes("://") || (e.src = this.domain + "/" + r)),
            e.hasAttribute("ignore") ||
              "A" == e.parentElement.nodeName ||
              ((e.i = o++),
              s.imgList.push(e.src || e.getAttribute("data-src")),
              (e.onclick = function () {
                var e = !0;
                (this.ignore = () => (e = !1)),
                  s.$emit("imgtap", this),
                  e && previewImage({ current: this.i, urls: s.imgList });
              })),
            (e.onerror = function () {
              s.$emit("error", {
                source: "img",
                target: this,
                context: { setSrc: (e) => (this.src = e) },
              });
            }),
            s.lazyLoad &&
              this._observer &&
              e.src &&
              0 != e.i &&
              (e.setAttribute("data-src", e.src),
              e.removeAttribute("src"),
              this._observer.observe(e));
        }
        var d = this.rtf.getElementsByTagName("a");
        for (var m of d)
          m.onclick = function () {
            var e = !0,
              t = this.getAttribute("href");
            if (
              (s.$emit("linkpress", { href: t, ignore: () => (e = !1) }),
              e && t)
            )
              if ("#" == t[0]) s.useAnchor && s.navigateTo({ id: t.substr(1) });
              else {
                if (0 == t.indexOf("http") || 0 == t.indexOf("//")) return !0;
                navigateTo({ url: t });
              }
            return !1;
          };
        var h = this.rtf.getElementsByTagName("video");
        s.videoContexts = h;
        for (let e, t = 0; (e = h[t++]); )
          (e.style.maxWidth = "100%"),
            (e.onerror = function () {
              s.$emit("error", {
                source: "video",
                target: this,
                context: this,
              });
            }),
            (e.onplay = function () {
              if (s.autopause)
                for (let e, t = 0; (e = s.videoContexts[t++]); )
                  e != this && e.pause();
            });
        var u,
          g = this.rtf.getElementsByTagName("audios");
        for (var p of g)
          p.onerror = function () {
            s.$emit("error", { source: "audio", target: this, context: this });
          };
        t || this.document.appendChild(this.rtf),
          this.$nextTick(() => {
            (this.nodes = [1]), this.$emit("load");
          }),
          setTimeout(() => (this.showAm = ""), 500),
          clearInterval(this._timer),
          (this._timer = setInterval(() => {
            var e = [this.rtf.getBoundingClientRect()];
            (this.width = e[0].width),
              e[0].height == u &&
                (this.$emit("ready", e[0]), clearInterval(this._timer)),
              (u = e[0].height);
          }, 350)),
          this.showWithAnimation && !t && (this.showAm = "animation:show .5s");
      } else this.rtf && !t && this.rtf.parentNode.removeChild(this.rtf);
    },
    getText(e = this.nodes) {
      return this.rtf.innerText;
    },
    navigateTo(e) {
      if (!this.useAnchor)
        return e.fail && e.fail({ errMsg: "Anchor is disabled" });
      if (!e.id)
        return (
          window.scrollTo(0, this.rtf.offsetTop),
          e.success && e.success({ errMsg: "pageScrollTo:ok" })
        );
      var t = document.getElementById(e.id);
      if (!t) return e.fail && e.fail({ errMsg: "Label not found" });
      (e.scrollTop = this.rtf.offsetTop + t.offsetTop + (e.offset || 0)),
        pageScrollTo(e);
    },
    getVideoContext(e) {
      if (!e) return this.videoContexts;
      for (var t = this.videoContexts.length; t--; )
        if (this.videoContexts[t].id == e) return this.videoContexts[t];
    },
    preLoad(html, num) {
      html.constructor == Array && (html = this._Dom2Str(html));
      var script =
        "var contain=document.createElement('div');contain.innerHTML='" +
        html.replace(/'/g, "\\'") +
        "';for(var imgs=contain.querySelectorAll('img'),i=imgs.length-1;i>=" +
        num +
        ";i--)imgs[i].removeAttribute('src');";
      eval(script);
    },
    _tap(e) {
      if (this.gestureZoom && e.timeStamp - this._lastT < 300) {
        var t = e.touches[0].pageY - e.currentTarget.offsetTop;
        if (this._zoom)
          this._scaleAm.translateX(0).scale(1).step(),
            pageScrollTo({
              scrollTop: (t + this._initY) / 2 - e.touches[0].clientY,
              duration: 400,
            });
        else {
          var o = e.touches[0].pageX - e.currentTarget.offsetLeft;
          (this._initY = t),
            (this._scaleAm = createAnimation$1({
              transformOrigin: `${o}px ${this._initY}px 0`,
              timingFunction: "ease-in-out",
            })),
            this._scaleAm.scale(2).step(),
            (this._tMax = o / 2),
            (this._tMin = (o - this.width) / 2),
            (this._tX = 0);
        }
        (this._zoom = !this._zoom), (this.scaleAm = this._scaleAm.export());
      }
      this._lastT = e.timeStamp;
    },
    _touchstart(e) {
      1 == e.touches.length && (this._initX = this._lastX = e.touches[0].pageX);
    },
    _touchmove(e) {
      var t = e.touches[0].pageX - this._lastX;
      if (this._zoom && 1 == e.touches.length && Math.abs(t) > 20) {
        if (
          ((this._lastX = e.touches[0].pageX),
          (this._tX <= this._tMin && t < 0) ||
            (this._tX >= this._tMax && t > 0))
        )
          return;
        (this._tX += t * Math.abs(this._lastX - this._initX) * 0.05),
          this._tX < this._tMin && (this._tX = this._tMin),
          this._tX > this._tMax && (this._tX = this._tMax),
          this._scaleAm.translateX(this._tX).step(),
          (this.scaleAm = this._scaleAm.export());
      }
    },
  },
};
function _sfc_render$j(e, t, o, a, i, c) {
  const s = index$h;
  return (
    openBlock(),
    createBlock(s, null, {
      default: withCtx(() => [
        i.nodes.length
          ? createCommentVNode("v-if", !0)
          : renderSlot(e.$slots, "default", { key: 0 }, void 0, !0),
        createVNode(
          s,
          {
            id: "top",
            style: normalizeStyle(
              i.showAm +
                (o.selectable
                  ? ";user-select:text;-webkit-user-select:text"
                  : "")
            ),
            animation: i.scaleAm,
            onClick: c._tap,
            onTouchstart: c._touchstart,
            onTouchmove: c._touchmove,
          },
          {
            default: withCtx(() => [
              createBaseVNode("div", { id: "rtf" + i.uid }, null, 8, ["id"]),
            ]),
            _: 1,
          },
          8,
          ["style", "animation", "onClick", "onTouchstart", "onTouchmove"]
        ),
      ]),
      _: 3,
    })
  );
}
var __easycom_0 = _export_sfc(_sfc_main$j, [
  ["render", _sfc_render$j],
  ["__scopeId", "data-v-5bad932d"],
]);
const _sfc_main$i = {
  components: { jyfParser: __easycom_0 },
  props: { tempId: Number, tab: { type: Object, default: () => ({}) } },
  mounted() {
    let { content: e } = this.tab.arg;
    this.$refs.desc.setContent(e);
  },
};
function _sfc_render$i(e, t, o, a, i, c) {
  const s = resolveEasycom(resolveDynamicComponent("jyf-parser"), __easycom_0),
    l = index$h;
  return (
    openBlock(),
    createBlock(
      l,
      {
        class: "dec-rich",
        style: normalizeStyle({ backgroundColor: o.tab.arg.bgColor }),
      },
      {
        default: withCtx(() => [
          createVNode(
            l,
            { class: "wrap" },
            {
              default: withCtx(() => [
                createVNode(s, { ref: "desc" }, null, 512),
              ]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      },
      8,
      ["style"]
    )
  );
}
var richText = _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]);
function imgLoad(e, t) {
  var o = getSystemInfoSync(),
    a = e.target.dataset,
    i = {};
  if ((a && a.first) || !1) {
    var c, s, l, n, r, d, m, h, u;
    (c = e),
      (l = o),
      (n = ((s = a) && s.num) || 1),
      (r = parseInt((s && s.space) || 0)),
      (d = parseInt(1 == n ? 0 : (s && s.lacuna) || 0)),
      (m = parseInt(((l.windowWidth - 2 * r + d) / n) * 100) / 100),
      (h = c.detail.width),
      (u = c.detail.height),
      (i = {
        imgW: m,
        imgH: parseInt((m / h) * u * 100) / 100 || 100,
        space: r,
        lacuna: d,
      }).space > 0 &&
        ((t.$el.style.paddingLeft = i.space + "px"),
        (t.$el.style.paddingRight = i.space + "px")),
      0 != i.lacuna && (t.$el.style.marginLeft = 0 - i.lacuna + "px");
    for (
      var g = t.selectAllComponents(".imgH"), p = g.length, f = 0;
      f < p;
      f++
    )
      g[f].setStyle({
        height: i.imgH + "px",
        width: i.imgW + "px",
        "padding-left": i.lacuna + "px",
      });
  }
}
const _sfc_main$h = {
  inject: ["decImgDomain", "decAxios"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({
    windowWidth: 0,
    arg: null,
    goodsList: [],
    isScroll: !1,
    scrollNum: 1,
    space: !1,
    lacuna: !1,
    win: { imgLoad: imgLoad },
    columSpace: "",
    columLacuna: "",
  }),
  created() {
    var e, t;
    (this.windowWidth = getSystemInfoSync().windowWidth),
      (this.arg = this.tab.arg),
      this.initData(),
      (this.scrollNum = parseInt(this.arg.rowNum || 1)),
      (this.isScroll =
        ((e = this.goodsList.length), (t = this.scrollNum), e > t)),
      (this.space = this.arg.space || 0),
      (this.lacuna = this.arg.lacuna || 0),
      (this.columSpace = `0 ${this.space}px`),
      (this.columLacuna = `0 ${this.space}px`);
  },
  methods: {
    initData() {
      this.arg.ids.length > 0
        ? (this.goodsList = this.arg.ids)
        : (this.goodsList = [{ img: "", title: "图片", linkArg: {} }]);
    },
    toNavLink(e) {
      let t = e.linkArg;
      t &&
        t.path &&
        this.decAxios.decEventHandler(
          { moudle: "imageLink", type: "detail", desc: "跳绑定的连接" },
          t,
          null
        );
    },
  },
};
function _sfc_render$h(e, t, o, a, i, c) {
  const s = index$r,
    l = SwiperItem,
    n = Swiper,
    r = index$h,
    d = ScrollView;
  return (
    openBlock(),
    createElementBlock(
      Fragment,
      null,
      [
        createCommentVNode(
          " 轮播-carousel 水平滑动-row 热区-tap 垂直叠放-colum"
        ),
        createVNode(
          r,
          {
            class: normalizeClass([
              "dec-imageLink referW",
              { radius: i.arg.radius },
            ]),
          },
          {
            default: withCtx(() => [
              "carousel" === i.arg.styleArg
                ? (openBlock(),
                  createBlock(
                    n,
                    {
                      key: 0,
                      class: "imgH",
                      "indicator-dots": i.isScroll,
                      autoplay: !0,
                      circular: !0,
                      interval: 3e3,
                      duration: 500,
                    },
                    {
                      default: withCtx(() => [
                        (openBlock(!0),
                        createElementBlock(
                          Fragment,
                          null,
                          renderList(
                            i.goodsList,
                            (e, t) => (
                              openBlock(),
                              createBlock(
                                l,
                                { key: t },
                                {
                                  default: withCtx(() => [
                                    createVNode(
                                      s,
                                      {
                                        "data-first": 0 == t,
                                        "data-num": 1,
                                        "data-space": i.space,
                                        "data-lacuna": 0,
                                        class: "imgH",
                                        onLoad: i.win.imgLoad,
                                        onClick: (t) => c.toNavLink(e),
                                        src: c.decImgDomain(e.img),
                                        mode: "aspectFit",
                                      },
                                      null,
                                      8,
                                      [
                                        "data-first",
                                        "data-space",
                                        "onLoad",
                                        "onClick",
                                        "src",
                                      ]
                                    ),
                                  ]),
                                  _: 2,
                                },
                                1024
                              )
                            )
                          ),
                          128
                        )),
                      ]),
                      _: 1,
                    },
                    8,
                    ["indicator-dots"]
                  ))
                : "row" === i.arg.styleArg
                ? (openBlock(),
                  createBlock(
                    r,
                    { key: 1, class: "row" },
                    {
                      default: withCtx(() => [
                        createVNode(
                          d,
                          {
                            class: "scroll-w",
                            "scroll-x": i.isScroll,
                            "scroll-left": 0,
                          },
                          {
                            default: withCtx(() => [
                              (openBlock(!0),
                              createElementBlock(
                                Fragment,
                                null,
                                renderList(
                                  i.goodsList,
                                  (e, t) => (
                                    openBlock(),
                                    createBlock(
                                      r,
                                      { key: t, class: "imgH" },
                                      {
                                        default: withCtx(() => [
                                          createVNode(
                                            s,
                                            {
                                              "data-first": 0 == t,
                                              "show-menu-by-longpress": "true",
                                              "data-num": i.scrollNum,
                                              "data-space": i.space,
                                              "data-lacuna": i.lacuna,
                                              onLoad: i.win.imgLoad,
                                              onClick: (t) => c.toNavLink(e),
                                              mode: "aspectFit",
                                              src: c.decImgDomain(e.img),
                                            },
                                            null,
                                            8,
                                            [
                                              "data-first",
                                              "data-num",
                                              "data-space",
                                              "data-lacuna",
                                              "onLoad",
                                              "onClick",
                                              "src",
                                            ]
                                          ),
                                        ]),
                                        _: 2,
                                      },
                                      1024
                                    )
                                  )
                                ),
                                128
                              )),
                            ]),
                            _: 1,
                          },
                          8,
                          ["scroll-x"]
                        ),
                      ]),
                      _: 1,
                    }
                  ))
                : "tap" === i.arg.styleArg
                ? (openBlock(),
                  createBlock(
                    r,
                    { key: 2, class: "tap" },
                    {
                      default: withCtx(() => [
                        createVNode(
                          s,
                          {
                            class: "imgH",
                            "show-menu-by-longpress": "true",
                            "data-first": !0,
                            onLoad: i.win.imgLoad,
                            "data-num": 1,
                            "data-space": i.space,
                            "data-lacuna": 0,
                            mode: "aspectFit",
                            src: c.decImgDomain(i.goodsList[0].img),
                          },
                          null,
                          8,
                          ["onLoad", "data-space", "src"]
                        ),
                        (openBlock(!0),
                        createElementBlock(
                          Fragment,
                          null,
                          renderList(
                            i.arg.taps,
                            (e, t) => (
                              openBlock(),
                              createBlock(
                                r,
                                {
                                  class: "mask",
                                  key: t,
                                  style: normalizeStyle({
                                    width: e.width,
                                    height: e.height,
                                    top: e.top,
                                    left: e.left,
                                  }),
                                  onClick: (t) => c.toNavLink(e),
                                },
                                null,
                                8,
                                ["style", "onClick"]
                              )
                            )
                          ),
                          128
                        )),
                      ]),
                      _: 1,
                    }
                  ))
                : "column" === i.arg.styleArg
                ? (openBlock(!0),
                  createElementBlock(
                    Fragment,
                    { key: 3 },
                    renderList(
                      i.goodsList,
                      (e, t) => (
                        openBlock(),
                        createBlock(
                          r,
                          {
                            class: "colum",
                            key: t,
                            style: normalizeStyle({
                              paddingRight: i.space + "px",
                              paddingLeft: i.space + "px",
                              paddingTop: 0 == t ? 0 : i.lacuna + "px",
                            }),
                          },
                          {
                            default: withCtx(() => [
                              createVNode(
                                s,
                                {
                                  class: "imgH",
                                  "show-menu-by-longpress": "true",
                                  onClick: (t) => c.toNavLink(e),
                                  mode: "widthFix",
                                  src: c.decImgDomain(e.img),
                                },
                                null,
                                8,
                                ["onClick", "src"]
                              ),
                            ]),
                            _: 2,
                          },
                          1032,
                          ["style"]
                        )
                      )
                    ),
                    128
                  ))
                : (openBlock(),
                  createBlock(
                    r,
                    { key: 4, class: "colum" },
                    {
                      default: withCtx(() => [
                        createVNode(
                          s,
                          {
                            class: "imgH",
                            "show-menu-by-longpress": "true",
                            mode: "widthFix",
                            src: c.decImgDomain(i.arg.img),
                          },
                          null,
                          8,
                          ["src"]
                        ),
                      ]),
                      _: 1,
                    }
                  )),
            ]),
            _: 1,
          },
          8,
          ["class"]
        ),
      ],
      2112
    )
  );
}
var imageLink = _export_sfc(_sfc_main$h, [["render", _sfc_render$h]]);
const _sfc_main$g = {
  inject: ["decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: null, audioTarget: null, playing: !1 }),
  created() {
    (this.arg = this.tab.arg), this.initAudio();
  },
  methods: {
    initAudio() {
      const e = createInnerAudioContext();
      (e.autoplay = !1),
        this.arg.source
          ? (e.src = this.arg.source)
          : (e.src =
              "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3"),
        e.onPlay(() => {}),
        e.onPause(() => {}),
        e.onStop(() => {}),
        e.onError(() => {}),
        (this.audioTarget = e);
    },
    action() {
      this.audioTarget.paused
        ? this.audioTarget.play()
        : "continue" === this.arg.play
        ? this.audioTarget.pause()
        : this.audioTarget.stop();
    },
  },
  destroyed() {
    this.audioTarget.destroy();
  },
};
function _sfc_render$g(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h,
    n = index$j;
  return (
    openBlock(),
    createBlock(
      l,
      { class: "dec-voice" },
      {
        default: withCtx(() => [
          "weChat" === i.arg.styleArg
            ? (openBlock(),
              createBlock(
                l,
                { key: 0, class: normalizeClass(["weixin", i.arg.listStyle]) },
                {
                  default: withCtx(() => [
                    createVNode(
                      s,
                      {
                        class: "image",
                        mode: "widthFix",
                        src: c.decImgDomain(i.arg.titleImg, "temp-user.jpg"),
                      },
                      null,
                      8,
                      ["src"]
                    ),
                    createVNode(
                      l,
                      { class: "text", onClick: c.action },
                      {
                        default: withCtx(() => [
                          createVNode(
                            s,
                            {
                              class: "r-image",
                              mode: "widthFix",
                              src: c.decImgDomain(
                                "",
                                "wechat-" + i.arg.listStyle + ".png"
                              ),
                            },
                            null,
                            8,
                            ["src"]
                          ),
                        ]),
                        _: 1,
                      },
                      8,
                      ["onClick"]
                    ),
                  ]),
                  _: 1,
                },
                8,
                ["class"]
              ))
            : createCommentVNode("v-if", !0),
          createCommentVNode(" 通用播放器 "),
          "simple" === i.arg.styleArg
            ? (openBlock(),
              createBlock(
                l,
                { key: 1, class: "simple" },
                {
                  default: withCtx(() => [
                    createVNode(
                      l,
                      { class: "wrap" },
                      {
                        default: withCtx(() => [
                          createVNode(
                            s,
                            {
                              class: "image",
                              src: c.decImgDomain(
                                i.arg.titleImg,
                                "ic-cover.png"
                              ),
                              onClick: c.action,
                            },
                            null,
                            8,
                            ["src", "onClick"]
                          ),
                          createVNode(
                            n,
                            { class: "text" },
                            {
                              default: withCtx(() => [
                                createTextVNode(
                                  toDisplayString(
                                    i.arg.title || "左侧编辑『标题』"
                                  ),
                                  1
                                ),
                              ]),
                              _: 1,
                            }
                          ),
                        ]),
                        _: 1,
                      }
                    ),
                  ]),
                  _: 1,
                }
              ))
            : createCommentVNode("v-if", !0),
        ]),
        _: 1,
      }
    )
  );
}
var voiceLink = _export_sfc(_sfc_main$g, [["render", _sfc_render$g]]);
const _sfc_main$f = {
  inject: ["decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({
    windowWidth: "",
    arg: null,
    source: "",
    cover: "",
    width: 100,
    height: 50,
  }),
  created() {
    (this.windowWidth = getSystemInfoSync().windowWidth),
      (this.arg = this.tab.arg);
    (this.source =
      this.tab.arg.source ||
      "https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20200317.mp4"),
      (this.cover = this.decImgDomain(this.arg.cover, "temp-video.png")),
      this.arg.ratio || (this.arg.ratio = "100*66"),
      this.initRatio(this.arg.ratio);
  },
  methods: {
    videoErrorCallback: function (e) {
      showModal({ content: e.target.errMsg, showCancel: !1 });
    },
  },
  methods: {
    initRatio(e) {
      const t = (e || "*").split("*"),
        o = parseInt(t[0] || 100),
        a = parseInt(t[1] || 50);
      (this.width = this.windowWidth),
        (this.height = parseInt((this.windowWidth / o) * a * 10) / 10 + "px");
    },
  },
};
function _sfc_render$f(e, t, o, a, i, c) {
  const s = index$e,
    l = index$h;
  return (
    openBlock(),
    createBlock(
      l,
      { class: "dec-video" },
      {
        default: withCtx(() => [
          createVNode(
            s,
            {
              id: "myVideo",
              style: normalizeStyle({ height: i.height }),
              src: i.source,
              onError: c.videoErrorCallback,
              poster: i.cover,
              controls: "",
            },
            null,
            8,
            ["style", "src", "onError", "poster"]
          ),
        ]),
        _: 1,
      }
    )
  );
}
var videoLink = _export_sfc(_sfc_main$f, [["render", _sfc_render$f]]),
  uniNoticeBar_vue_vue_type_style_index_0_scoped_true_lang = "";
const _sfc_main$e = {
  name: "UniNoticeBar",
  emits: ["click", "getmore", "close"],
  props: {
    text: { type: String, default: "" },
    moreText: { type: String, default: "" },
    backgroundColor: { type: String, default: "#FFF9EA" },
    speed: { type: Number, default: 100 },
    color: { type: String, default: "#FF9A43" },
    moreColor: { type: String, default: "#FF9A43" },
    single: { type: [Boolean, String], default: !1 },
    scrollable: { type: [Boolean, String], default: !1 },
    showIcon: { type: [Boolean, String], default: !1 },
    showGetMore: { type: [Boolean, String], default: !1 },
    showClose: { type: [Boolean, String], default: !1 },
  },
  data: () => ({
    textWidth: 0,
    boxWidth: 0,
    wrapWidth: "",
    webviewHide: !1,
    elId: `Uni_${Math.ceil(1e6 * Math.random()).toString(36)}`,
    elIdBox: `Uni_${Math.ceil(1e6 * Math.random()).toString(36)}`,
    show: !0,
    animationDuration: "none",
    animationPlayState: "paused",
    animationDelay: "0s",
  }),
  mounted() {
    this.$nextTick(() => {
      this.initSize();
    });
  },
  methods: {
    initSize() {
      if (this.scrollable) {
        let e = [];
        const t = createSelectorQuery;
        let o = new Promise((e, o) => {
            t()
              .in(this)
              .select(`#${this.elId}`)
              .boundingClientRect()
              .exec((t) => {
                (this.textWidth = t[0].width), e();
              });
          }),
          a = new Promise((e, o) => {
            t()
              .in(this)
              .select(`#${this.elIdBox}`)
              .boundingClientRect()
              .exec((t) => {
                (this.boxWidth = t[0].width), e();
              });
          });
        e.push(o),
          e.push(a),
          Promise.all(e).then(() => {
            (this.animationDuration = this.textWidth / this.speed + "s"),
              (this.animationDelay = `-${this.boxWidth / this.speed}s`),
              setTimeout(() => {
                this.animationPlayState = "running";
              }, 1e3);
          });
      }
    },
    loopAnimation() {},
    clickMore() {
      this.$emit("getmore");
    },
    close() {
      (this.show = !1), this.$emit("close");
    },
    onClick() {
      this.$emit("click");
    },
  },
};
function _sfc_render$e(e, t, o, a, i, c) {
  const s = resolveEasycom(resolveDynamicComponent("uni-icons"), __easycom_0$1),
    l = index$j,
    n = index$h;
  return i.show
    ? (openBlock(),
      createBlock(
        n,
        {
          key: 0,
          class: "uni-noticebar",
          style: normalizeStyle({ backgroundColor: o.backgroundColor }),
          onClick: c.onClick,
        },
        {
          default: withCtx(() => [
            !0 === o.showIcon || "true" === o.showIcon
              ? (openBlock(),
                createBlock(
                  s,
                  {
                    key: 0,
                    class: "uni-noticebar-icon",
                    type: "sound",
                    color: o.color,
                    size: "22",
                  },
                  null,
                  8,
                  ["color"]
                ))
              : createCommentVNode("v-if", !0),
            createVNode(
              n,
              {
                ref: "textBox",
                class: normalizeClass([
                  "uni-noticebar__content-wrapper",
                  {
                    "uni-noticebar__content-wrapper--scrollable": o.scrollable,
                    "uni-noticebar__content-wrapper--single":
                      !o.scrollable && (o.single || o.moreText),
                  },
                ]),
              },
              {
                default: withCtx(() => [
                  createVNode(
                    n,
                    {
                      id: i.elIdBox,
                      class: normalizeClass([
                        "uni-noticebar__content",
                        {
                          "uni-noticebar__content--scrollable": o.scrollable,
                          "uni-noticebar__content--single":
                            !o.scrollable && (o.single || o.moreText),
                        },
                      ]),
                    },
                    {
                      default: withCtx(() => [
                        createVNode(
                          l,
                          {
                            id: i.elId,
                            ref: "animationEle",
                            class: normalizeClass([
                              "uni-noticebar__content-text",
                              {
                                "uni-noticebar__content-text--scrollable":
                                  o.scrollable,
                                "uni-noticebar__content-text--single":
                                  !o.scrollable && (o.single || o.showGetMore),
                              },
                            ]),
                            style: normalizeStyle({
                              color: o.color,
                              width: i.wrapWidth + "px",
                              animationDuration: i.animationDuration,
                              "-webkit-animationDuration": i.animationDuration,
                              animationPlayState: i.webviewHide
                                ? "paused"
                                : i.animationPlayState,
                              "-webkit-animationPlayState": i.webviewHide
                                ? "paused"
                                : i.animationPlayState,
                              animationDelay: i.animationDelay,
                              "-webkit-animationDelay": i.animationDelay,
                            }),
                          },
                          {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(o.text), 1),
                            ]),
                            _: 1,
                          },
                          8,
                          ["id", "class", "style"]
                        ),
                      ]),
                      _: 1,
                    },
                    8,
                    ["id", "class"]
                  ),
                ]),
                _: 1,
              },
              8,
              ["class"]
            ),
            !0 === o.showGetMore || "true" === o.showGetMore
              ? (openBlock(),
                createBlock(
                  n,
                  {
                    key: 1,
                    class: "uni-noticebar__more uni-cursor-point",
                    onClick: c.clickMore,
                  },
                  {
                    default: withCtx(() => [
                      o.moreText.length > 0
                        ? (openBlock(),
                          createBlock(
                            l,
                            {
                              key: 0,
                              style: normalizeStyle({ color: o.moreColor }),
                              class: "uni-noticebar__more-text",
                            },
                            {
                              default: withCtx(() => [
                                createTextVNode(toDisplayString(o.moreText), 1),
                              ]),
                              _: 1,
                            },
                            8,
                            ["style"]
                          ))
                        : (openBlock(),
                          createBlock(
                            s,
                            {
                              key: 1,
                              type: "right",
                              color: o.moreColor,
                              size: "16",
                            },
                            null,
                            8,
                            ["color"]
                          )),
                    ]),
                    _: 1,
                  },
                  8,
                  ["onClick"]
                ))
              : createCommentVNode("v-if", !0),
            (!0 !== o.showClose && "true" !== o.showClose) ||
            (!1 !== o.showGetMore && "false" !== o.showGetMore)
              ? createCommentVNode("v-if", !0)
              : (openBlock(),
                createBlock(
                  n,
                  { key: 2, class: "uni-noticebar-close uni-cursor-point" },
                  {
                    default: withCtx(() => [
                      createVNode(
                        s,
                        {
                          type: "closeempty",
                          color: o.color,
                          size: "16",
                          onClick: c.close,
                        },
                        null,
                        8,
                        ["color", "onClick"]
                      ),
                    ]),
                    _: 1,
                  }
                )),
          ]),
          _: 1,
        },
        8,
        ["style", "onClick"]
      ))
    : createCommentVNode("v-if", !0);
}
var __easycom_2$1 = _export_sfc(_sfc_main$e, [
  ["render", _sfc_render$e],
  ["__scopeId", "data-v-30265acc"],
]);
const _sfc_main$d = {
  inject: ["decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: null, titleChange: !1, animation: "", paddingLeft: "0" }),
  created() {
    this.arg = this.tab.arg;
  },
};
function _sfc_render$d(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h,
    n = resolveEasycom(
      resolveDynamicComponent("uni-notice-bar"),
      __easycom_2$1
    );
  return (
    openBlock(),
    createBlock(
      l,
      {
        class: "dec-notice",
        style: normalizeStyle({ backgroundColor: i.arg.bgColor }),
      },
      {
        default: withCtx(() => [
          i.arg.leftIcon
            ? (openBlock(),
              createBlock(
                l,
                { key: 0, class: "wrap" },
                {
                  default: withCtx(() => [
                    createVNode(
                      s,
                      {
                        class: "image",
                        src: c.decImgDomain(i.arg.leftIcon, "img-notice.png"),
                        mode: "heightFix",
                      },
                      null,
                      8,
                      ["src"]
                    ),
                  ]),
                  _: 1,
                }
              ))
            : (openBlock(), createBlock(l, { key: 1, class: "default" })),
          createVNode(
            l,
            { class: "list" },
            {
              default: withCtx(() => [
                i.arg.title
                  ? (openBlock(),
                    createBlock(
                      n,
                      {
                        key: 0,
                        speed: 50,
                        scrollable: "static" !== i.arg.styleArg,
                        single: "true",
                        text: i.arg.title,
                        "background-color": i.arg.bgColor,
                        color: i.arg.color,
                      },
                      null,
                      8,
                      ["scrollable", "text", "background-color", "color"]
                    ))
                  : createCommentVNode("v-if", !0),
              ]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      },
      8,
      ["style"]
    )
  );
}
var shopNotice = _export_sfc(_sfc_main$d, [["render", _sfc_render$d]]);
const _sfc_main$c = {
  inject: ["decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ arg: null }),
  created() {
    this.arg = this.tab.arg;
  },
  methods: {
    callUs() {
      this.arg.tel && makePhoneCall({ phoneNumber: this.arg.tel });
    },
  },
};
function _sfc_render$c(e, t, o, a, i, c) {
  const s = index$h;
  return (
    openBlock(),
    createBlock(
      s,
      { class: "dec-tel" },
      {
        default: withCtx(() => [
          createVNode(s, { class: "ic-tel" }),
          createVNode(
            s,
            { class: "info", onClick: c.callUs },
            {
              default: withCtx(() => [
                createTextVNode(
                  toDisplayString(i.arg.title) +
                    "：" +
                    toDisplayString(i.arg.tel),
                  1
                ),
              ]),
              _: 1,
            },
            8,
            ["onClick"]
          ),
          createVNode(s, { class: "ic-more" }),
        ]),
        _: 1,
      }
    )
  );
}
var shopTel = _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
const _sfc_main$b = {
  inject: ["decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ img: "" }),
  created() {
    const e = this.tab.arg && this.tab.arg.img;
    console.log(this.tab, "tab"), (this.img = this.decImgDomain(e || ""));
  },
};
function _sfc_render$b(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h;
  return (
    openBlock(),
    createBlock(
      l,
      { class: "dec-img-block" },
      {
        default: withCtx(() => [
          i.img
            ? (openBlock(),
              createBlock(
                s,
                {
                  key: 0,
                  class: "img-block",
                  mode: "widthFix",
                  src: i.img,
                  "show-menu-by-longpress": "imageBlock" == o.tab.type,
                },
                null,
                8,
                ["src", "show-menu-by-longpress"]
              ))
            : (openBlock(),
              createBlock(
                l,
                { key: 1, class: "img-block img-default" },
                {
                  default: withCtx(() => [createTextVNode("自定义图片区域")]),
                  _: 1,
                }
              )),
        ]),
        _: 1,
      }
    )
  );
}
var imageBlock = _export_sfc(_sfc_main$b, [["render", _sfc_render$b]]);
const _sfc_main$a = {
  inject: ["decImgDomain", "decAxios"],
  props: {
    good: { type: Object, default: () => ({}) },
    show: { type: Object, default: () => ({}) },
    imgArg: { type: String, default: "" },
    imgH: { type: String, default: "auto" },
    time: { type: Object, default: () => ({}) },
    state: { type: String, default: "" },
  },
  computed: {
    endTime() {
      return this.time.hour
        ? "big" == this.imgArg
          ? this.time.day
            ? `${this.time.day} 天 ${this.time.hour} 时 ${this.time.minutes} 分 ${this.time.seconds}`
            : `${this.time.hour} 时 ${this.time.minutes} 分 ${this.time.seconds}`
          : ((this.good.limit || "--").split("-"),
            this.time.day
              ? `${this.time.day}天:${this.time.hour}:${this.time.minutes}:${this.time.seconds}`
              : `${this.time.hour}:${this.time.minutes}:${this.time.seconds}`)
        : "活动" + (this.state || "未开始");
    },
    inLine() {
      let e = "";
      return (
        (e =
          "big" == this.imgArg
            ? ["已结束", "未开始"].includes(this.state)
              ? ""
              : "限时抢购"
            : ["已结束", "未开始"].includes(this.state)
            ? ""
            : "距结束"),
        e
      );
    },
    inLine2() {
      let e = "";
      return (
        "big" == this.imgArg &&
          (e = ["已结束", "未开始"].includes(this.state)
            ? "活动状态"
            : "距结束仅剩"),
        e
      );
    },
    remain() {
      return parseInt(this.good.activityStock - this.good.saleCount);
    },
    className() {
      let e = [];
      return (
        this.imgArg && e.push(this.imgArg),
        this.show.border && e.push(this.show.border),
        this.show.radius && e.push("radius"),
        e
      );
    },
    opriceShow() {
      return (
        !(!this.show.origin || !this.good.smarketPrice) &&
        this.good.smarketPrice > this.good.activityPrice
      );
    },
  },
  methods: {
    go() {
      this.decAxios.decEventHandler(
        { moudle: "goodDiscount", type: "detail", desc: "跳折扣商品详情页" },
        this.good,
        null
      );
    },
    buy() {
      this.decAxios.decEventHandler(
        { moudle: "goodDiscount", type: "buy", desc: "购买折扣商品" },
        this.good,
        null
      );
    },
  },
};
function _sfc_render$a(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h,
    n = index$j;
  return (
    openBlock(),
    createBlock(
      l,
      {
        class: normalizeClass(["dec-discount-s-good", c.className]),
        onClick: c.go,
      },
      {
        default: withCtx(() => [
          createVNode(
            l,
            { class: "image", style: normalizeStyle({ height: o.imgH }) },
            {
              default: withCtx(() => [
                createVNode(
                  s,
                  {
                    class: "img",
                    mode: "aspectFill",
                    src: c.decImgDomain(o.good.productImg || ""),
                    alt: "",
                  },
                  null,
                  8,
                  ["src"]
                ),
              ]),
              _: 1,
            },
            8,
            ["style"]
          ),
          "small" != o.imgArg && o.show.time
            ? (openBlock(),
              createBlock(
                l,
                { key: 0, class: "flex time" },
                {
                  default: withCtx(() => [
                    createVNode(
                      n,
                      { class: "start" },
                      {
                        default: withCtx(() => [
                          createTextVNode(toDisplayString(c.inLine), 1),
                        ]),
                        _: 1,
                      }
                    ),
                    createVNode(
                      l,
                      { class: "limit" },
                      {
                        default: withCtx(() => [
                          c.inLine2
                            ? (openBlock(),
                              createElementBlock(
                                Fragment,
                                { key: 0 },
                                [
                                  createVNode(n, null, {
                                    default: withCtx(() => [
                                      createTextVNode(
                                        toDisplayString(c.inLine2),
                                        1
                                      ),
                                    ]),
                                    _: 1,
                                  }),
                                  createBaseVNode("br"),
                                ],
                                64
                              ))
                            : createCommentVNode("v-if", !0),
                          createVNode(n, null, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(c.endTime), 1),
                            ]),
                            _: 1,
                          }),
                        ]),
                        _: 1,
                      }
                    ),
                  ]),
                  _: 1,
                }
              ))
            : createCommentVNode("v-if", !0),
          createVNode(
            l,
            { class: "info" },
            {
              default: withCtx(() => [
                o.show.title
                  ? (openBlock(),
                    createBlock(
                      l,
                      { key: 0, class: "title dec-truncate2" },
                      {
                        default: withCtx(() => [
                          createTextVNode(
                            toDisplayString(o.good.productName),
                            1
                          ),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
                o.show.desc
                  ? (openBlock(),
                    createBlock(
                      l,
                      { key: 1, class: "desc dec-truncate" },
                      {
                        default: withCtx(() => [
                          createTextVNode(
                            toDisplayString(
                              o.good.introduction || o.good.productName
                            ),
                            1
                          ),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
                createCommentVNode(" 价格 购买 "),
                o.show.price || o.show.origin
                  ? (openBlock(),
                    createBlock(
                      l,
                      { key: 2, class: "price-wrap dec-row-flex a-bottom" },
                      {
                        default: withCtx(() => [
                          o.show.price
                            ? (openBlock(),
                              createBlock(
                                n,
                                { key: 0, class: "dot" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode("¥"),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          o.show.price
                            ? (openBlock(),
                              createBlock(
                                n,
                                { key: 1, class: "sale" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode(
                                      toDisplayString(
                                        o.good.activityPrice || 0
                                      ),
                                      1
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          c.opriceShow
                            ? (openBlock(),
                              createBlock(
                                n,
                                { key: 2, class: "origin" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode(
                                      "￥" +
                                        toDisplayString(o.good.smarketPrice),
                                      1
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
              ]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      },
      8,
      ["class", "onClick"]
    )
  );
}
var goodShort$1 = _export_sfc(_sfc_main$a, [["render", _sfc_render$a]]);
const _sfc_main$9 = {
  inject: ["decImgDomain", "decAxios"],
  props: {
    show: { type: Object, default: () => ({}) },
    good: { type: Object, default: () => ({}) },
    imgArg: { type: String, default: "" },
    imgW: { type: String, default: "36%" },
    time: { type: Object, default: () => ({}) },
    state: { type: String, default: "" },
  },
  computed: {
    endTime() {
      return this.time.hour
        ? this.time.day
          ? `${this.time.day}天:${this.time.hour}:${this.time.minutes}:${this.time.seconds}`
          : `${this.time.hour}:${this.time.minutes}:${this.time.seconds}`
        : "活动" + this.state;
    },
    inLine() {
      return ["已结束", "未开始"].includes(this.state) ? "" : "距结束";
    },
    remain() {
      return parseInt(this.good.activityStock - this.good.saleCount);
    },
    className() {
      let e = [];
      return (
        this.imgArg && e.push(this.imgArg),
        this.show.border && e.push(this.show.border),
        this.show.radius && e.push("radius"),
        e
      );
    },
    opriceShow() {
      return (
        !(!this.show.origin || !this.good.smarketPrice) &&
        this.good.smarketPrice > this.good.activityPrice
      );
    },
  },
  methods: {
    go() {
      this.decAxios.decEventHandler(
        { moudle: "goodDiscount", type: "detail", desc: "跳折扣商品详情页" },
        this.good,
        null
      );
    },
    buy() {
      this.decAxios.decEventHandler(
        { moudle: "goodDiscount", type: "buy", desc: "购买折扣商品" },
        this.good,
        null
      );
    },
  },
};
function _sfc_render$9(e, t, o, a, i, c) {
  const s = index$r,
    l = index$j,
    n = index$h;
  return (
    openBlock(),
    createBlock(
      n,
      {
        class: normalizeClass(["dec-discount-l-good", c.className]),
        onClick: c.go,
      },
      {
        default: withCtx(() => [
          createCommentVNode(" 图片 角标  "),
          createVNode(
            n,
            {
              class: "good-image",
              style: normalizeStyle({ width: o.imgW, height: o.imgW }),
            },
            {
              default: withCtx(() => [
                createVNode(
                  s,
                  {
                    class: "img",
                    mode: "widthFix",
                    src: c.decImgDomain(o.good.productImg || ""),
                  },
                  null,
                  8,
                  ["src"]
                ),
                o.show.time
                  ? (openBlock(),
                    createBlock(
                      n,
                      { key: 0, class: "time flex" },
                      {
                        default: withCtx(() => [
                          createVNode(
                            l,
                            { class: "start" },
                            {
                              default: withCtx(() => [
                                createTextVNode(toDisplayString(c.inLine), 1),
                              ]),
                              _: 1,
                            }
                          ),
                          createVNode(l, null, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(c.endTime), 1),
                            ]),
                            _: 1,
                          }),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
              ]),
              _: 1,
            },
            8,
            ["style"]
          ),
          createVNode(
            n,
            { class: "info" },
            {
              default: withCtx(() => [
                createVNode(
                  n,
                  { class: "intro" },
                  {
                    default: withCtx(() => [
                      o.show.title
                        ? (openBlock(),
                          createBlock(
                            n,
                            { key: 0, class: "title dec-truncate2 mb" },
                            {
                              default: withCtx(() => [
                                createTextVNode(
                                  toDisplayString(o.good.productName),
                                  1
                                ),
                              ]),
                              _: 1,
                            }
                          ))
                        : createCommentVNode("v-if", !0),
                      o.show.desc
                        ? (openBlock(),
                          createBlock(
                            n,
                            { key: 1, class: "desc dec-truncate mb" },
                            {
                              default: withCtx(() => [
                                createTextVNode(
                                  toDisplayString(
                                    o.good.introduction || o.good.productName
                                  ),
                                  1
                                ),
                              ]),
                              _: 1,
                            }
                          ))
                        : createCommentVNode("v-if", !0),
                    ]),
                    _: 1,
                  }
                ),
                createCommentVNode(" 价格 购买 "),
                o.show.price || o.show.origin
                  ? (openBlock(),
                    createBlock(
                      n,
                      { key: 0, class: "price-wrap dec-row-flex a-bottom" },
                      {
                        default: withCtx(() => [
                          o.show.price
                            ? (openBlock(),
                              createBlock(
                                l,
                                { key: 0, class: "dot" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode("¥"),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          o.show.price
                            ? (openBlock(),
                              createBlock(
                                l,
                                { key: 1, class: "sale" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode(
                                      toDisplayString(
                                        o.good.activityPrice || 0
                                      ),
                                      1
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                          c.opriceShow
                            ? (openBlock(),
                              createBlock(
                                l,
                                { key: 2, class: "origin" },
                                {
                                  default: withCtx(() => [
                                    createTextVNode(
                                      "￥" +
                                        toDisplayString(o.good.smarketPrice),
                                      1
                                    ),
                                  ]),
                                  _: 1,
                                }
                              ))
                            : createCommentVNode("v-if", !0),
                        ]),
                        _: 1,
                      }
                    ))
                  : createCommentVNode("v-if", !0),
              ]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      },
      8,
      ["class", "onClick"]
    )
  );
}
var goodLong = _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
const _sfc_main$8 = {
  inject: ["decAxios", "decImgDomain"],
  components: { goodShort: goodShort$1, goodLong: goodLong },
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({
    arg: null,
    windowWidth: 375,
    show: null,
    goodsList: [],
    pdStyleStr: "",
    mgStyleStr: "",
    scrollStyleStr: {},
    imgStyle: {},
    endName: "",
    endTime: {},
    timer: null,
  }),
  created() {
    (this.arg = this.tab.arg), (this.show = this.arg.show), this.initData();
  },
  beforeDestroy() {
    clearInterval(this.timer), (this.timer = null);
  },
  methods: {
    initTime(e, t) {
      this.timer && clearInterval(this.timer);
      const o = new Date(e),
        a = new Date(t),
        i = new Date();
      if (i - a > 0)
        if (o - i > 0) {
          const a = o - i;
          let c = Math.floor(a / 1e3 / 3600),
            s = 0;
          c > 23 && ((s = parseInt(c / 24)), (c -= 24 * s)),
            c < 10 && (c = "0" + c);
          let l = Math.floor((a / 6e4) % 60);
          l < 10 && (l = "0" + l);
          let n = Math.floor((a / 1e3) % 60);
          n < 10 && (n = "0" + n),
            (this.endTime = { day: s, hour: c, minutes: l, seconds: n }),
            (this.timer = setTimeout(() => {
              this.initTime(e, t);
            }, 1e3)),
            (this.endName = "进行中");
        } else (this.endName = "已结束"), (this.endTime = {});
      else (this.endName = "未开始"), (this.endTime = {});
      return this.endName;
    },
    initImg(e) {
      const t = (this.arg.show.ratio || "1-1").split("-"),
        o = parseInt(t[0]) || 1,
        a = parseInt(t[1]) || 1,
        i = variable["@phoneWidth"];
      let c = (this.arg.space || 0) * variable["@base"],
        s = (this.arg.lacuna || 0) * variable["@base"],
        l = parseInt(5 * s) / 10,
        n = i - 2 * c,
        r = i - 2 * c - s,
        d = i - 2 * c - 2 * s,
        m = i - c - 3 * s,
        h = parseInt((100 * n * a) / o),
        u = parseInt((50 * r * a) / o),
        g = parseInt((33.33 * d * a) / o),
        p = parseInt((30 * m * a) / o);
      (h = upx2px(h) / 100),
        (u = upx2px(u) / 100),
        (g = upx2px(g) / 100),
        (p = upx2px(p) / 100),
        (n = upx2px(100 * n) / 100),
        (r = upx2px(50 * r) / 100),
        (d = upx2px(33.33 * d) / 100),
        (m = upx2px(30 * m) / 100),
        (c = upx2px(100 * c) / 100),
        (s = upx2px(100 * s) / 100),
        (l = upx2px(100 * l) / 100);
      const f = {
          one: { width: n + "px", height: h + "px" },
          two: { width: r + "px", height: u + "px" },
          three: { width: d + "px", height: g + "px" },
          scroll: { width: m + "px", height: p + "px" },
          list: { width: 0.36 * n + "px", height: 0.36 * n + "px" },
        },
        _ = {
          one: { padding: `0 ${c}px ${s}px` },
          two: { padding: `0 ${c - l}px` },
          three: { padding: `0 ${c - l}px` },
          scroll: { "padding-left": `${c}px`, "padding-top": "5px" },
          list: { padding: `0 ${c}px ${s}px` },
        },
        y = {
          one: {},
          two: { padding: `${l}px` },
          three: { padding: `${l}px` },
          scroll: { "margin-right": `${s}px` },
          list: {},
        };
      (this.pdStyleStr = (function (e) {
        let t = [];
        return (
          Object.keys(e).forEach((o) => {
            e[o] && t.push(`${o}:${e[o]}`);
          }),
          t.join(";")
        );
      })(_[e] || {})),
        (this.mgStyleStr = (function (e) {
          let t = [];
          return (
            Object.keys(e).forEach((o) => {
              e[o] && t.push(`${o}:${e[o]}`);
            }),
            t.join(";")
          );
        })(y[e] || {})),
        (this.scrollStyleStr = (function (e) {
          let t = [];
          return (
            Object.keys(e).forEach((o) => {
              e[o] && t.push(`${o}:${e[o]}`);
            }),
            t.join(";")
          );
        })(
          __spreadValues(
            __spreadProps(__spreadValues({}, f[e]), { height: "" }),
            y[e]
          )
        )),
        (this.imgStyle = f[e]);
    },
    initData() {
      const e = this.decAxios.getGoodDiscountData,
        t = this,
        o = this.arg.id || {},
        a = t.arg.listStyle;
      (o.id
        ? e(__spreadValues({}, o))
        : new Promise((e) => {
            e({ code: 201 });
          })
      ).then((e) => {
        const o = e || {};
        let i = [],
          c = {},
          s = (o && o.result) || {};
        if ("200" == o.code) {
          (i = s.records || []), (c = s.activity || {});
          const e = (c.activityEndTime || "").replace(/-/g, "/"),
            o = (c.activityStartTime || "").replace(/-/g, "/");
          if ("已结束" != t.initTime(e, o) && i.length > 0)
            return (t.goodsList = t.listStyleChange(a, i)), void t.initImg(a);
        }
        t.goodsList = [];
      });
    },
    listStyleChange(e, t) {
      if ("scroll" == e) return t;
      if ("concat" == e) {
        let e = [];
        return (
          t.forEach((o, a) => {
            (a + 1) % 3 == 0 && e.push({ big: t[a - 2], small: [o, t[a - 1]] });
          }),
          e
        );
      }
      return t;
    },
  },
};
function _sfc_render$8(e, t, o, a, i, c) {
  const s = resolveComponent("good-long"),
    l = index$h,
    n = resolveComponent("good-short"),
    r = ScrollView;
  return i.goodsList.length > 0
    ? (openBlock(),
      createBlock(
        l,
        { key: 0, class: "dec-discount" },
        {
          default: withCtx(() => [
            createCommentVNode(" 商品为:列表list-x "),
            "list" == i.arg.listStyle
              ? (openBlock(!0),
                createElementBlock(
                  Fragment,
                  { key: 0 },
                  renderList(
                    i.goodsList,
                    (e, t) => (
                      openBlock(),
                      createBlock(
                        l,
                        {
                          class: "list-wrap",
                          key: t,
                          style: normalizeStyle(i.pdStyleStr),
                        },
                        {
                          default: withCtx(() => [
                            createVNode(
                              s,
                              {
                                time: i.endTime,
                                state: i.endName,
                                good: e,
                                show: i.show,
                                imgArg: "big",
                                imgW: i.imgStyle.height,
                              },
                              null,
                              8,
                              ["time", "state", "good", "show", "imgW"]
                            ),
                          ]),
                          _: 2,
                        },
                        1032,
                        ["style"]
                      )
                    )
                  ),
                  128
                ))
              : "concat" == i.arg.listStyle
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 1 },
                  [
                    createCommentVNode(" 商品为: 组图concat-上下"),
                    (openBlock(!0),
                    createElementBlock(
                      Fragment,
                      null,
                      renderList(
                        i.goodsList,
                        (e, t) => (
                          openBlock(),
                          createBlock(
                            l,
                            { class: "concat-wrap", key: t },
                            {
                              default: withCtx(() => [
                                createVNode(
                                  l,
                                  { class: "big-wrap" },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        n,
                                        {
                                          good: e.big,
                                          show: i.show,
                                          imgArg: "big",
                                        },
                                        null,
                                        8,
                                        ["good", "show"]
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                                createVNode(
                                  l,
                                  { class: "small-wrap" },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        l,
                                        { class: "item" },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              n,
                                              {
                                                good: e.small,
                                                show: i.show,
                                                imgArg: "middle",
                                              },
                                              null,
                                              8,
                                              ["good", "show"]
                                            ),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                      createVNode(
                                        l,
                                        { class: "item" },
                                        {
                                          default: withCtx(() => [
                                            createVNode(
                                              n,
                                              {
                                                good: e.small,
                                                show: i.show,
                                                imgArg: "middle",
                                              },
                                              null,
                                              8,
                                              ["good", "show"]
                                            ),
                                          ]),
                                          _: 2,
                                        },
                                        1024
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                              ]),
                              _: 2,
                            },
                            1024
                          )
                        )
                      ),
                      128
                    )),
                  ],
                  2112
                ))
              : "scroll" == i.arg.listStyle
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 2 },
                  [
                    createCommentVNode(" 商品为: 滚图 "),
                    createVNode(
                      l,
                      { class: "limit-time" },
                      {
                        default: withCtx(() => [
                          createTextVNode(" 限时抢购  "),
                          i.endTime.hour
                            ? (openBlock(),
                              createElementBlock(
                                Fragment,
                                { key: 0 },
                                [
                                  i.endTime.day
                                    ? (openBlock(),
                                      createElementBlock(
                                        Fragment,
                                        { key: 0 },
                                        [
                                          createBaseVNode(
                                            "span",
                                            { class: "box" },
                                            toDisplayString(i.endTime.day) +
                                              "天",
                                            1
                                          ),
                                          createBaseVNode(
                                            "span",
                                            { class: "box2" },
                                            ":"
                                          ),
                                        ],
                                        64
                                      ))
                                    : createCommentVNode("v-if", !0),
                                  createBaseVNode(
                                    "span",
                                    { class: "box" },
                                    toDisplayString(i.endTime.hour),
                                    1
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box2" },
                                    ":"
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box" },
                                    toDisplayString(i.endTime.minutes),
                                    1
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box2" },
                                    ":"
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box" },
                                    toDisplayString(i.endTime.seconds),
                                    1
                                  ),
                                ],
                                64
                              ))
                            : (openBlock(),
                              createElementBlock(
                                "span",
                                { key: 1, class: "box3" },
                                toDisplayString(i.endName),
                                1
                              )),
                        ]),
                        _: 1,
                      }
                    ),
                    createVNode(
                      r,
                      {
                        class: "scroll-X",
                        "scroll-x": "true",
                        "scroll-left": 0,
                        style: normalizeStyle(i.pdStyleStr),
                      },
                      {
                        default: withCtx(() => [
                          (openBlock(!0),
                          createElementBlock(
                            Fragment,
                            null,
                            renderList(
                              i.goodsList,
                              (e, t) => (
                                openBlock(),
                                createBlock(
                                  l,
                                  {
                                    key: t,
                                    style: normalizeStyle(i.scrollStyleStr),
                                    class: "item",
                                  },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        n,
                                        {
                                          good: e,
                                          show: i.show,
                                          imgArg: "small",
                                          imgH: i.imgStyle.height,
                                        },
                                        null,
                                        8,
                                        ["good", "show", "imgH"]
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1032,
                                  ["style"]
                                )
                              )
                            ),
                            128
                          )),
                        ]),
                        _: 1,
                      },
                      8,
                      ["style"]
                    ),
                  ],
                  64
                ))
              : "three" == i.arg.listStyle
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 3 },
                  [
                    createCommentVNode(" 商品为:三图three "),
                    createVNode(
                      l,
                      { class: "limit-time" },
                      {
                        default: withCtx(() => [
                          createTextVNode(" 限时抢购  "),
                          i.endTime.hour
                            ? (openBlock(),
                              createElementBlock(
                                Fragment,
                                { key: 0 },
                                [
                                  i.endTime.day
                                    ? (openBlock(),
                                      createElementBlock(
                                        Fragment,
                                        { key: 0 },
                                        [
                                          createBaseVNode(
                                            "span",
                                            { class: "box" },
                                            toDisplayString(i.endTime.day) +
                                              "天",
                                            1
                                          ),
                                          createBaseVNode(
                                            "span",
                                            { class: "box2" },
                                            ":"
                                          ),
                                        ],
                                        64
                                      ))
                                    : createCommentVNode("v-if", !0),
                                  createBaseVNode(
                                    "span",
                                    { class: "box" },
                                    toDisplayString(i.endTime.hour),
                                    1
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box2" },
                                    ":"
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box" },
                                    toDisplayString(i.endTime.minutes),
                                    1
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box2" },
                                    ":"
                                  ),
                                  createBaseVNode(
                                    "span",
                                    { class: "box" },
                                    toDisplayString(i.endTime.seconds),
                                    1
                                  ),
                                ],
                                64
                              ))
                            : (openBlock(),
                              createElementBlock(
                                "span",
                                { key: 1, class: "box3" },
                                toDisplayString(i.endName),
                                1
                              )),
                        ]),
                        _: 1,
                      }
                    ),
                    createVNode(
                      l,
                      {
                        class: "three-wrap",
                        style: normalizeStyle(i.pdStyleStr),
                      },
                      {
                        default: withCtx(() => [
                          (openBlock(!0),
                          createElementBlock(
                            Fragment,
                            null,
                            renderList(
                              i.goodsList,
                              (e, t) => (
                                openBlock(),
                                createBlock(
                                  l,
                                  {
                                    key: t,
                                    class: "item",
                                    style: normalizeStyle(i.mgStyleStr),
                                  },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        n,
                                        {
                                          good: e,
                                          show: i.show,
                                          imgArg: "small",
                                          imgH: i.imgStyle.height,
                                        },
                                        null,
                                        8,
                                        ["good", "show", "imgH"]
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1032,
                                  ["style"]
                                )
                              )
                            ),
                            128
                          )),
                        ]),
                        _: 1,
                      },
                      8,
                      ["style"]
                    ),
                  ],
                  64
                ))
              : "two" == i.arg.listStyle
              ? (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 4 },
                  [
                    createCommentVNode(" 商品为:双图double "),
                    createVNode(
                      l,
                      {
                        class: "two-wrap",
                        style: normalizeStyle(i.pdStyleStr),
                      },
                      {
                        default: withCtx(() => [
                          (openBlock(!0),
                          createElementBlock(
                            Fragment,
                            null,
                            renderList(
                              i.goodsList,
                              (e, t) => (
                                openBlock(),
                                createBlock(
                                  l,
                                  {
                                    key: t,
                                    style: normalizeStyle(i.mgStyleStr),
                                    class: "item",
                                  },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        n,
                                        {
                                          time: i.endTime,
                                          state: i.endName,
                                          good: e,
                                          show: i.show,
                                          imgH: i.imgStyle.height,
                                        },
                                        null,
                                        8,
                                        [
                                          "time",
                                          "state",
                                          "good",
                                          "show",
                                          "imgH",
                                        ]
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1032,
                                  ["style"]
                                )
                              )
                            ),
                            128
                          )),
                        ]),
                        _: 1,
                      },
                      8,
                      ["style"]
                    ),
                  ],
                  2112
                ))
              : (openBlock(),
                createElementBlock(
                  Fragment,
                  { key: 5 },
                  [
                    createCommentVNode(" 商品为:大图big "),
                    createVNode(
                      l,
                      { class: "big-wrap" },
                      {
                        default: withCtx(() => [
                          (openBlock(!0),
                          createElementBlock(
                            Fragment,
                            null,
                            renderList(
                              i.goodsList,
                              (e, t) => (
                                openBlock(),
                                createBlock(
                                  l,
                                  {
                                    key: t,
                                    class: "item",
                                    style: normalizeStyle(i.pdStyleStr),
                                  },
                                  {
                                    default: withCtx(() => [
                                      createVNode(
                                        n,
                                        {
                                          time: i.endTime,
                                          state: i.endName,
                                          good: e,
                                          show: i.show,
                                          imgArg: "big",
                                          imgH: i.imgStyle.height,
                                        },
                                        null,
                                        8,
                                        [
                                          "time",
                                          "state",
                                          "good",
                                          "show",
                                          "imgH",
                                        ]
                                      ),
                                    ]),
                                    _: 2,
                                  },
                                  1032,
                                  ["style"]
                                )
                              )
                            ),
                            128
                          )),
                        ]),
                        _: 1,
                      }
                    ),
                  ],
                  2112
                )),
          ]),
          _: 1,
        }
      ))
    : createCommentVNode("v-if", !0);
}
var goodDiscount = _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
const _sfc_main$7 = {
  inject: ["decAxios", "decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ bgImg: "" }),
  computed: {
    className() {
      const e = this.tab.arg;
      let t = [];
      return (
        e.space && t.push(`margin: 0 ${e.space}px`),
        e.radius && t.push(`borderRadius: ${e.radius}px`),
        e.bgColor &&
          "transparent" != e.bgColor &&
          t.push(`background-color: ${e.bgColor}`),
        e.bgSize && t.push(`padding: 0 ${50 - 0.5 * e.bgSize}%`),
        t.join(";")
      );
    },
  },
  created() {
    const e = this.tab.arg,
      t = this.decAxios.getGoodSpecialData,
      o = e.id,
      a = this;
    o.id
      ? t({ id: o.id }).then(({ code: e, result: t }) => {
          (a.bgImg = ""), 200 == e && (a.bgImg = a.decImgDomain(t.picture));
        })
      : (this.bgImg = "");
  },
  methods: {
    go() {
      this.decAxios.decEventHandler(
        { moudle: "goodSpecial", type: "detail", desc: "跳专区商品页" },
        this.tab.arg.id,
        null
      );
    },
  },
};
function _sfc_render$7(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h;
  return i.bgImg
    ? (openBlock(),
      createBlock(
        l,
        {
          key: 0,
          class: "dec-goodSpecial",
          style: normalizeStyle(c.className),
          onClick: c.go,
        },
        {
          default: withCtx(() => [
            createVNode(
              s,
              { class: "img", mode: "widthFix", src: i.bgImg },
              null,
              8,
              ["src"]
            ),
          ]),
          _: 1,
        },
        8,
        ["style", "onClick"]
      ))
    : createCommentVNode("v-if", !0);
}
var goodSpecial = _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
const _sfc_main$6 = {
  inject: ["decAxios", "decImgDomain"],
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({ bgImg: "" }),
  computed: {
    className() {
      const e = this.tab.arg;
      let t = [];
      return (
        e.space && t.push(`margin: 0 ${e.space}px`),
        e.radius && t.push(`borderRadius: ${e.radius}px`),
        e.bgColor &&
          "transparent" != e.bgColor &&
          t.push(`background-color: ${e.bgColor}`),
        e.bgSize && t.push(`padding: 0 ${50 - 0.5 * e.bgSize}%`),
        t.join(";")
      );
    },
  },
  created() {
    const e = this.tab.arg,
      t = this.decAxios.getGoodFineData,
      o = e.id,
      a = this;
    o.id
      ? t({ id: o.id }).then(({ code: e, result: t }) => {
          if (((a.bgImg = ""), 200 == e)) {
            const e = ((t = t || {}).endTime || "2022-5-20").replace(/-/g, "/"),
              o = (t.startTime || "2022-5-20").replace(/-/g, "/");
            "end" != a.initTime(e, o) && (a.bgImg = a.decImgDomain(t.picture));
          }
        })
      : (this.bgImg = "");
  },
  methods: {
    initTime(e, t) {
      const o = new Date(e),
        a = new Date(t),
        i = new Date();
      let c = "";
      return (c = i - a > 0 ? (o - i > 0 ? "ing" : "end") : "start"), c;
    },
    go() {
      this.decAxios.decEventHandler(
        { moudle: "goodFine", type: "detail", desc: "跳优惠限购活动页" },
        this.tab.arg.id,
        null
      );
    },
  },
};
function _sfc_render$6(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h;
  return i.bgImg
    ? (openBlock(),
      createBlock(
        l,
        {
          key: 0,
          class: "dec-goodSpecial",
          style: normalizeStyle(c.className),
          onClick: c.go,
        },
        {
          default: withCtx(() => [
            createVNode(
              s,
              { class: "img", mode: "widthFix", src: i.bgImg },
              null,
              8,
              ["src"]
            ),
          ]),
          _: 1,
        },
        8,
        ["style", "onClick"]
      ))
    : createCommentVNode("v-if", !0);
}
var goodFine = _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
const _sfc_main$5 = {
  inject: ["decImgDomain", "decAxios"],
  props: {
    moudle: { type: String, default: "goodList" },
    good: { type: Object, default: () => ({}) },
    show: { type: Object, default: () => ({}) },
    imgArg: { type: String, default: "" },
    imgH: { type: String, default: "" },
  },
  computed: {
    className() {
      let e = [];
      return (
        this.imgArg && e.push(this.imgArg),
        this.show.radius && e.push("radius"),
        e
      );
    },
    titleClass() {
      return this.imgH ? "dec-truncate" : "dec-truncate2";
    },
    hasShop() {
      const e = this.show.price || this.show.origin,
        t = this.show.bug && "small" != this.imgArg;
      return e || t;
    },
    salePrice() {
      let e = [];
      return (
        this.good.integral &&
          this.good.integral > 0 &&
          e.push(this.good.integral + "积分"),
        this.good.paymentAmount &&
          this.good.paymentAmount > 0 &&
          e.push(this.good.paymentAmount + "元"),
        e.length > 0 ? e.join("+") : 0
      );
    },
  },
  methods: {
    go() {
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "detail", desc: "跳商品详情页" },
        this.good,
        null
      );
    },
    buy() {
      this.decAxios.decEventHandler(
        { moudle: this.moudle, type: "buy", desc: "购买商品" },
        this.good,
        null
      );
    },
  },
};
function _sfc_render$5(e, t, o, a, i, c) {
  const s = index$r,
    l = index$h,
    n = index$j;
  return (
    openBlock(),
    createElementBlock(
      Fragment,
      null,
      [
        createCommentVNode(
          " 区分是否是固定高度的还是非固定高度-默认传了图片高度就是要统一高度 "
        ),
        createVNode(
          l,
          {
            class: normalizeClass(["dec-box-good", c.className]),
            onClick: withModifiers(c.go, ["stop"]),
          },
          {
            default: withCtx(() => [
              createCommentVNode(" 图片 角标 dec-row-flex "),
              createVNode(
                l,
                {
                  class: "good-img",
                  style: normalizeStyle({ height: o.imgH }),
                },
                {
                  default: withCtx(() => [
                    o.imgH
                      ? (openBlock(),
                        createBlock(
                          s,
                          {
                            key: 0,
                            class: "imgH",
                            src: c.decImgDomain(o.good.targetImg),
                            mode: "aspectFill",
                          },
                          null,
                          8,
                          ["src"]
                        ))
                      : (openBlock(),
                        createBlock(
                          s,
                          {
                            key: 1,
                            class: "imgW",
                            src: c.decImgDomain(o.good.targetImg),
                            mode: "widthFix",
                          },
                          null,
                          8,
                          ["src"]
                        )),
                  ]),
                  _: 1,
                },
                8,
                ["style"]
              ),
              createCommentVNode(" 名称 "),
              createVNode(
                l,
                { class: "good-info dec-row-flex" },
                {
                  default: withCtx(() => [
                    createVNode(
                      l,
                      { class: normalizeClass(["good-title", c.titleClass]) },
                      {
                        default: withCtx(() => [
                          createTextVNode(
                            toDisplayString(o.good.targetName),
                            1
                          ),
                        ]),
                        _: 1,
                      },
                      8,
                      ["class"]
                    ),
                  ]),
                  _: 1,
                }
              ),
              createCommentVNode(" 价格 购买 "),
              createVNode(
                l,
                { class: "price-sale" },
                {
                  default: withCtx(() => [
                    createTextVNode(toDisplayString(c.salePrice), 1),
                  ]),
                  _: 1,
                }
              ),
              createCommentVNode(" 剩余多少件 "),
              o.show.stock
                ? (openBlock(),
                  createBlock(
                    l,
                    { key: 0, class: "good-stock" },
                    {
                      default: withCtx(() => [
                        createVNode(
                          n,
                          { class: "text dec-truncate" },
                          {
                            default: withCtx(() => [
                              createTextVNode(
                                "剩余" +
                                  toDisplayString(o.good.stock || 0) +
                                  "件",
                                1
                              ),
                            ]),
                            _: 1,
                          }
                        ),
                      ]),
                      _: 1,
                    }
                  ))
                : createCommentVNode("v-if", !0),
              createCommentVNode(" 到期时间 "),
              createCommentVNode(
                ' <view class="good-valid" v-if="show.stop">\n      <text class="text dec-truncate">{{good.endTime}}到期</text>\n    </view> '
              ),
            ]),
            _: 1,
          },
          8,
          ["class", "onClick"]
        ),
      ],
      2112
    )
  );
}
var goodShort = _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
const _sfc_main$4 = {
  components: { goodShort: goodShort },
  props: {
    moudle: { type: String, default: "goodIntegral" },
    arg: { type: String, default: "" },
    groupKey: { type: String, default: "left" },
    goodKey: { type: String, default: "" },
  },
  data: () => ({ goods: [], show: {}, img: {} }),
  created() {
    const e = `${this.groupKey}-${this.goodKey}`;
    let t = {};
    (t = this.$parent.$parent.$parent),
      t.allGoods || (t = t.$parent),
      t.allGoods || (t = t.$parent),
      t.allGoods || (t = t.$parent),
      t.allGoods &&
        ((this.goods = t.allGoods[e]),
        (this.img = t.img),
        (this.show = t.show));
  },
  computed: {
    scrollH() {
      if ("scroll-two" == this.arg) {
        return parseInt((this.img.h2 || "").replace("px", "")) + 14 + "px";
      }
      if ("scroll-three" == this.arg) {
        return parseInt((this.img.h3 || "").replace("px", "")) + 14 + "px";
      }
      return "";
    },
  },
  watch: {
    goodKey(e) {
      if (e) {
        const e = `${this.groupKey}-${this.goodKey}`;
        this.goods = this.$parent.allGoods[e];
      }
    },
  },
};
function _sfc_render$4(e, t, o, a, i, c) {
  const s = resolveComponent("good-short"),
    l = index$h;
  return i.goods && i.goods.length > 0
    ? (openBlock(),
      createBlock(
        l,
        { key: 0, class: "item-wrap" },
        {
          default: withCtx(() => [
            (openBlock(!0),
            createElementBlock(
              Fragment,
              null,
              renderList(
                i.goods,
                (e, t) => (
                  openBlock(),
                  createBlock(
                    l,
                    { key: t, class: "item" },
                    {
                      default: withCtx(() => [
                        createVNode(
                          s,
                          {
                            moudle: o.moudle,
                            good: e,
                            show: i.show,
                            imgH: i.img.h2,
                          },
                          null,
                          8,
                          ["moudle", "good", "show", "imgH"]
                        ),
                      ]),
                      _: 2,
                    },
                    1024
                  )
                )
              ),
              128
            )),
          ]),
          _: 1,
        }
      ))
    : createCommentVNode("v-if", !0);
}
var goodWrap = _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
const _sfc_main$3 = {
  inject: ["decAxios", "decImgDomain"],
  components: { goodWrap: goodWrap },
  props: { tab: { type: Object, default: () => ({}) } },
  data: () => ({
    loading: !1,
    loadMore: "",
    arg: {},
    show: null,
    isStatic: !1,
    activeTab: 0,
    fixedStyle: "",
    tabs: ["全部", "1-1000", "1001-5000", "5001-10000", "10000以上"],
    groups: ["left", "right"],
    allGoods: {},
    showGoods: [],
    pager: { tab: 0, pages: 0, pageNo: 0, pageSize: 30 },
    img: { h2: "" },
  }),
  onUnload() {
    this.loadMore = "";
  },
  created() {
    (this.arg = this.tab.arg), (this.show = this.arg.show);
    const e = variable["@phoneWidth"] - 3 * variable["@space"],
      t = parseInt(50 * e);
    (this.img.h2 = upx2px(t) / 100 + "px"),
      (this.pager.pageNo = 0),
      this.initApiData(!0);
  },
  methods: {
    tabClick(e) {
      this.activeTab != e &&
        ((this.pager = { tab: e, pages: 0, pageNo: 0, pageSize: 30 }),
        this.initApiData(!0));
    },
    initApiData(e) {
      if (!this.loading) {
        this.loading = !0;
        const t = this.decAxios.getGoodIntegralData,
          { tab: o, pages: a, pageSize: i } = this.pager;
        let c = this.pager.pageNo;
        c += 1;
        let s = { range: this.tabs[o] };
        if ("Y" == this.arg.autoLoad)
          s = Object.assign({}, s, { pageNo: c, pageSize: i });
        else {
          const e = this.arg.dataNum || i;
          s = Object.assign({}, s, { pageNo: c, pageSize: e });
        }
        t(s).then((t) => {
          this.loading = !1;
          const a = t.result || {},
            l = ("200" == t.code && (a.records || a)) || [],
            n = this.listStyleChange(l) || { left: [] },
            r = `${o}-${c}-${i}`;
          1 == c && ((this.allGoods = {}), (this.showGoods = [])),
            this.groups.forEach((e) => {
              const t = `${e}-${r}`;
              this.allGoods[t] = n[e];
            }),
            (this.activeTab = o),
            (this.pager.pages = a.pages || 1),
            (this.pager.pageNo = s.pageNo || 1),
            e
              ? (this.reachBottomFn(),
                "Y" == this.arg.autoLoad && this.$emit("inited"))
              : (this.loadMore = "");
        });
      }
    },
    reachBottomFn() {
      const { tab: e, pageNo: t, pageSize: o, pages: a } = this.pager,
        i = `${e}-${t}-${o}`;
      (this.loadMore = ""),
        "Y" != this.arg.autoLoad || this.loading
          ? this.showGoods.includes(i) || this.showGoods.push(i)
          : t > 0 && t == a
          ? (this.showGoods.includes(i) || this.showGoods.push(i),
            (this.loadMore = "noMore"))
          : ((this.loadMore = "loading"),
            this.showGoods.includes(i) || this.showGoods.push(i),
            this.initApiData());
    },
    setTabFixed(e, t) {
      const o = e ? `position:fixed;top:${t}px;left:0;` : "";
      this.fixedStyle = o;
    },
    listStyleChange(e) {
      let t = { right: [], left: [] };
      return (
        e.forEach((e, o) => {
          (o + 1) % 2 == 1 ? t.left.push(e) : t.right.push(e);
        }),
        t
      );
    },
  },
};
function _sfc_render$3(e, t, o, a, i, c) {
  const s = index$j,
    l = index$h,
    n = resolveComponent("goodWrap"),
    r = resolveEasycom(resolveDynamicComponent("li-load-more"), __easycom_2$2);
  return i.showGoods.length > 0
    ? (openBlock(),
      createBlock(
        l,
        { key: 0, class: "dec-goodList" },
        {
          default: withCtx(() => [
            createVNode(
              l,
              { class: "group-tab" },
              {
                default: withCtx(() => [
                  createVNode(
                    l,
                    { class: "tab-wrap", style: normalizeStyle(i.fixedStyle) },
                    {
                      default: withCtx(() => [
                        (openBlock(!0),
                        createElementBlock(
                          Fragment,
                          null,
                          renderList(
                            i.tabs,
                            (e, t) => (
                              openBlock(),
                              createBlock(
                                l,
                                {
                                  key: e,
                                  class: normalizeClass([
                                    "tab-item",
                                    { active: i.activeTab == t },
                                  ]),
                                  onClick: (e) => c.tabClick(t),
                                },
                                {
                                  default: withCtx(() => [
                                    createVNode(
                                      s,
                                      { class: "text" },
                                      {
                                        default: withCtx(() => [
                                          createTextVNode(
                                            toDisplayString(e),
                                            1
                                          ),
                                        ]),
                                        _: 2,
                                      },
                                      1024
                                    ),
                                  ]),
                                  _: 2,
                                },
                                1032,
                                ["class", "onClick"]
                              )
                            )
                          ),
                          128
                        )),
                      ]),
                      _: 1,
                    },
                    8,
                    ["style"]
                  ),
                ]),
                _: 1,
              }
            ),
            createVNode(
              l,
              { class: "group-wrap" },
              {
                default: withCtx(() => [
                  (openBlock(!0),
                  createElementBlock(
                    Fragment,
                    null,
                    renderList(
                      i.groups,
                      (e) => (
                        openBlock(),
                        createBlock(
                          l,
                          {
                            key: e,
                            class: "group two-group",
                            style: { width: "50%" },
                          },
                          {
                            default: withCtx(() => [
                              (openBlock(!0),
                              createElementBlock(
                                Fragment,
                                null,
                                renderList(
                                  i.showGoods,
                                  (t) => (
                                    openBlock(),
                                    createBlock(
                                      n,
                                      {
                                        moudle: "goodIntegral",
                                        key: t,
                                        arg: "two",
                                        groupKey: e,
                                        goodKey: t,
                                      },
                                      null,
                                      8,
                                      ["groupKey", "goodKey"]
                                    )
                                  )
                                ),
                                128
                              )),
                            ]),
                            _: 2,
                          },
                          1024
                        )
                      )
                    ),
                    128
                  )),
                ]),
                _: 1,
              }
            ),
            "Y" == i.arg.autoLoad
              ? (openBlock(),
                createBlock(r, { key: 0, status: i.loadMore }, null, 8, [
                  "status",
                ]))
              : createCommentVNode("v-if", !0),
          ]),
          _: 1,
        }
      ))
    : createCommentVNode("v-if", !0);
}
var goodIntegral = _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
const _sfc_main$2 = {
  name: "shop-decorater",
  components: {
    shopHead: shopHead,
    shopFront: shopFront,
    shopSearch: shopSearch,
    showBlank: showBlank,
    showLines: showLines,
    shopNav: shopNav,
    goodList: goodList,
    blockTitle: blockTitle,
    descText: descText,
    richText: richText,
    imageLink: imageLink,
    voiceLink: voiceLink,
    videoLink: videoLink,
    shopNotice: shopNotice,
    shopTel: shopTel,
    imageBlock: imageBlock,
    goodDiscount: goodDiscount,
    goodSpecial: goodSpecial,
    goodFine: goodFine,
    goodIntegral: goodIntegral,
  },
  inject: ["decAxios", "decImgDomain"],
  props: { header: { type: String, default: "in" } },
  computed: {
    globalStyle() {
      return "in" == this.header ? this.getGlobalStyle() : "";
    },
  },
  data: () => ({
    waiting: !1,
    tabs: [],
    paddingTop: 0,
    autoLoadTop: 0,
    autoLoadTopUpdate: 0,
    autoLoadAtBottom: {},
    componentMap: {},
    pageSet: {
      id: "0",
      type: "pageSet",
      name: "页面配置",
      pageName: "首页",
      pageDesc: "页面描述",
      bgColor: "",
    },
    shopBase: {
      type: "shopBase",
      mode: "",
      styleArg: "",
      fontColor: "black",
      lIcon: "",
      lIconImg: "",
      lIconLink: {},
      title: "",
      search: !1,
      searchBg: "",
      rIcon: !1,
      rIconFn: [],
      rIconImg: "",
      rIconCc: !0,
      rIconLink: {},
    },
  }),
  methods: {
    initData(e) {
      let t = [],
        o = {},
        a = {};
      try {
        const i = JSON.parse(e);
        let c,
          s,
          l = i.length,
          n = !1;
        for (let e = l; e > 0; e--) {
          const t = i[e - 1].type;
          "pageSet" == t
            ? ((n = !0), (c = i.splice(e - 1, 1)))
            : "shopBase" == t && (s = i.splice(e - 1, 1));
        }
        (t = i),
          n
            ? ((this.pageSet = Object.assign({}, this.pageSet, c[0])),
              (this.shopBase = Object.assign({}, this.shopBase, s[0])))
            : ((this.pageSet = Object.assign({}, this.pageSet, s[0])),
              (this.shopBase = this.shopBase));
        const r = "in" == this.header ? 1 : 0;
        t.forEach((e, i) => {
          const c = e.type;
          a[c] || (a[c] = []),
            a[c].push(i),
            t.length == i + 1 &&
              ["goodList", "goodIntegral"].includes(e.type) &&
              "Y" == e.arg.autoLoad &&
              (o = { name: e.type, index: i - r, ref: e.id });
        });
      } catch (i) {
        console.log("initData-err:", i);
      }
      console.log("initData-layout:", t),
        (this.tabs = t),
        this.$emit("inited", {
          count: t.length,
          pageName: this.pageSet.pageName,
          navMode: this.shopBase.mode,
          pageSet: this.pageSet,
          shopBase: this.shopBase,
          globalStyle: this.getGlobalStyle(),
          autoLoadAtBottom: o,
        }),
        (this.componentMap = a),
        (this.autoLoadAtBottom = o);
    },
    getGlobalStyle() {
      return [
        `background-color:${this.pageSet.bgColor};`,
        `background-image: url('${this.pageSet.bgImg}')`,
        "background-repeat:" + (this.pageSet.repeat ? "repeat" : "no-repeat"),
        "background-size:" + (this.pageSet.repeat ? "" : "100% auto"),
      ].join(";");
    },
    headInited(e) {
      this.paddingTop = (e && e.height) || 57;
    },
    autoLoadInited() {
      const e = this,
        t = createSelectorQuery().in(this);
      t.select("#decoraterId").boundingClientRect(),
        t.select("#decoraterId .autoLoadId").boundingClientRect(),
        t.exec((t) => {
          const o = t[0].height - t[1].height;
          (e.autoLoadTop = o), (e.autoLoadTopUpdate += 1);
        });
    },
    pageScroll(e, t) {
      if (!this.waiting) {
        this.waiting = !0;
        if ((this.autoLoadAtBottom.index || -1) > -1) {
          const o = this.$refs.autoLoadRef,
            a = o[o.length - 1];
          if (!a.setTabFixed) return;
          1 == this.autoLoadTopUpdate &&
            0.5 * this.autoLoadTop < e &&
            this.autoLoadInited(),
            this.autoLoadTop < e
              ? a.setTabFixed(!0, t || this.paddingTop)
              : a.setTabFixed(!1),
            (this.waiting = !1);
        }
      }
    },
    pageShow() {
      console.log("$children-$children:", this.$children);
    },
    reachBottom() {
      const e = this.autoLoadAtBottom.index || -1;
      if (e > -1) {
        console.log("autoLoad-reachBottom:", e);
        const t = this.$refs.autoLoadRef,
          o = t[t.length - 1];
        o.reachBottomFn && o.reachBottomFn();
      }
    },
    headFn(e, t) {
      this.decAxios.decEventHandler(e, t);
    },
  },
};
function _sfc_render$2(e, t, o, a, i, c) {
  const s = resolveComponent("shopHead"),
    l = resolveComponent("shopFront"),
    n = resolveComponent("shopSearch"),
    r = resolveComponent("showBlank"),
    d = resolveComponent("showLines"),
    m = resolveComponent("shopNav"),
    h = resolveComponent("goodList"),
    u = resolveComponent("blockTitle"),
    g = resolveComponent("descText"),
    p = resolveComponent("richText"),
    f = resolveComponent("imageLink"),
    _ = resolveComponent("voiceLink"),
    y = resolveComponent("videoLink"),
    k = resolveComponent("shopNotice"),
    w = resolveComponent("shopTel"),
    x = resolveComponent("imageBlock"),
    C = resolveComponent("goodDiscount"),
    b = resolveComponent("goodSpecial"),
    B = resolveComponent("goodFine"),
    N = resolveComponent("goodIntegral"),
    S = index$h;
  return i.tabs && i.tabs.length > 0
    ? (openBlock(),
      createBlock(
        S,
        { key: 0, id: "decoraterId", style: normalizeStyle(c.globalStyle) },
        {
          default: withCtx(() => [
            "in" == o.header
              ? (openBlock(),
                createBlock(
                  s,
                  {
                    key: 0,
                    tab: i.shopBase,
                    title: i.pageSet.pageName,
                    onInited: c.headInited,
                    onDecEventHandler: c.headFn,
                  },
                  null,
                  8,
                  ["tab", "title", "onInited", "onDecEventHandler"]
                ))
              : createCommentVNode("v-if", !0),
            (openBlock(!0),
            createElementBlock(
              Fragment,
              null,
              renderList(
                i.tabs,
                (e, t) => (
                  openBlock(),
                  createBlock(
                    S,
                    { key: e.id, class: "decorater-item" },
                    {
                      default: withCtx(() => [
                        "shopFront" === e.type
                          ? (openBlock(),
                            createBlock(l, { key: 0, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "shopSearch" === e.type
                          ? (openBlock(),
                            createBlock(n, { key: 1, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "showBlank" === e.type
                          ? (openBlock(),
                            createBlock(r, { key: 2, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "showLines" === e.type
                          ? (openBlock(),
                            createBlock(d, { key: 3, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "shopNav" === e.type
                          ? (openBlock(),
                            createBlock(m, { key: 4, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "goodList" === e.type
                          ? (openBlock(),
                            createBlock(
                              h,
                              {
                                key: 5,
                                ref_for: !0,
                                ref: "autoLoadRef",
                                class: normalizeClass(
                                  i.autoLoadAtBottom.ref == e.id
                                    ? "autoLoadId"
                                    : "noAuto"
                                ),
                                onInited: c.autoLoadInited,
                                tab: e,
                              },
                              null,
                              8,
                              ["class", "onInited", "tab"]
                            ))
                          : "blockTitle" === e.type
                          ? (openBlock(),
                            createBlock(u, { key: 6, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "descText" === e.type
                          ? (openBlock(),
                            createBlock(g, { key: 7, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "richText" === e.type
                          ? (openBlock(),
                            createBlock(p, { key: 8, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "imageLink" === e.type
                          ? (openBlock(),
                            createBlock(f, { key: 9, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "voiceLink" === e.type
                          ? (openBlock(),
                            createBlock(_, { key: 10, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "videoLink" === e.type
                          ? (openBlock(),
                            createBlock(y, { key: 11, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "shopNotice" === e.type
                          ? (openBlock(),
                            createBlock(k, { key: 12, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "shopTel" === e.type
                          ? (openBlock(),
                            createBlock(w, { key: 13, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "imageBlock" === e.type
                          ? (openBlock(),
                            createBlock(x, { key: 14, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "goodDiscount" === e.type
                          ? (openBlock(),
                            createBlock(C, { key: 15, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "goodSpecial" === e.type
                          ? (openBlock(),
                            createBlock(b, { key: 16, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "goodFine" === e.type
                          ? (openBlock(),
                            createBlock(B, { key: 17, tab: e }, null, 8, [
                              "tab",
                            ]))
                          : "goodIntegral" === e.type
                          ? (openBlock(),
                            createBlock(
                              N,
                              {
                                key: 18,
                                ref_for: !0,
                                ref: "autoLoadRef",
                                class: normalizeClass(
                                  i.autoLoadAtBottom.ref == e.id
                                    ? "autoLoadId"
                                    : "noAuto"
                                ),
                                onInited: c.autoLoadInited,
                                tab: e,
                              },
                              null,
                              8,
                              ["class", "onInited", "tab"]
                            ))
                          : createCommentVNode("v-if", !0),
                      ]),
                      _: 2,
                    },
                    1024
                  )
                )
              ),
              128
            )),
          ]),
          _: 1,
        },
        8,
        ["style"]
      ))
    : createCommentVNode("v-if", !0);
}
var __easycom_1 = _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]),
  liLoad_vue_vue_type_style_index_0_scoped_true_lang = "";
const _sfc_main$1 = { name: "fileLoading", data: () => ({}) };
function _sfc_render$1(e, t, o, a, i, c) {
  const s = index$h;
  return (
    openBlock(),
    createBlock(
      s,
      { class: "loading" },
      {
        default: withCtx(() => [
          createVNode(
            s,
            { class: "load" },
            {
              default: withCtx(() => [createVNode(s, { class: "loader" })]),
              _: 1,
            }
          ),
        ]),
        _: 1,
      }
    )
  );
}
var __easycom_2 = _export_sfc(_sfc_main$1, [
  ["render", _sfc_render$1],
  ["__scopeId", "data-v-64e4493c"],
]);
function randomNumber() {
  const e = (e, t) => Math.floor(Math.random() * (t - e + 1) + e);
  if (1 === arguments.length) {
    let [t] = arguments,
      o = [...Array(t).keys()].map((t) => e(t > 0 ? 0 : 1, 9));
    return parseInt(o.join(""));
  }
  if (arguments.length >= 2) {
    let [t, o] = arguments;
    return e(t, o);
  }
  return Number.NaN;
}
function randomString(e, t) {
  e || (e = 1), t || (t = "0123456789qwertyuioplkjhgfdsazxcvbnm");
  let o = "";
  for (let a = 0; a < e; a++) {
    o += t[randomNumber(0, t.length - 1)];
  }
  return o;
}
function randomUUID() {
  return randomString(32, "0123456789abcdef");
}
let promiseArr = {};
function setPromise(e, t) {
  promiseArr[e] && (promiseArr[e][0](t), (promiseArr[e] = null));
}
function globalRequest(e, t) {
  let o = e;
  return new Promise((a, i) => {
    promiseArr[e]
      ? ((o = `${o}@${randomUUID()}`), (promiseArr[o] = [a, i]))
      : (promiseArr[o] = [a, i]);
    const c = window.top.location.origin;
    window.top.postMessage({ type: o, params: t }, c);
  });
}
const decAxios = {
  getAppMemberData: function (e = "decAppCartListMap", t) {
    return {};
  },
  decImgDomain: function (e, t = "goods.png") {
    return e || "https://tikcos.oss-cn-beijing.aliyuncs.com/decOnlineImg/" + t;
  },
  decEventHandler: function (e, t, o) {
    console.log("decEventHandler:", e, t);
  },
  getInfo: function (e) {},
  getGoodGroupData: (e) => globalRequest("getGoodGroupData", e),
  getGoodListData: (e) => globalRequest("getGoodListData", e),
  getBargainData: (e) => globalRequest("getBargainData", e),
  getShoppingData: (e) => globalRequest("getShoppingData", e),
  getShopCouponData: (e) => globalRequest("getShopCouponData", e),
  getGoodDiscountData: (e) => globalRequest("getGoodDiscountData", e),
  getGoodSpecialData: (e) => globalRequest("getGoodSpecialData", e),
  getGoodFineData: (e) => globalRequest("getGoodFineData", e),
  getShopGroup: (e) => globalRequest("getShopGroup", e),
  getShopGroupData: (e) => globalRequest("getShopGroupData", e),
  getGoodIntegralData: (e) => globalRequest("getGoodIntegralData", e),
};
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
let hander = null,
  onPageScrollTop = 0;
const _sfc_main = {
  components: { shopHead: shopHead },
  data: () => ({
    shopTitle: "",
    bgColor: "",
    loading: !0,
    waiting: !1,
    paddingTop: 0,
    headerName: "",
    headerConfig: {},
    headerBgColor: "",
    decoraterStyle: "",
    decoraterAutoLoad: -1,
  }),
  onLoad() {
    const e = window.top.location.origin,
      t = this;
    (hander = function (e) {
      "onLoad" == e.data.type
        ? (t.$refs.shopDecorater.initData(e.data.res), (t.loading = !1))
        : e.data.type && setPromise(e.data.type, e.data.res);
    }),
      window.top.postMessage({ type: "onLoad" }, e),
      window.addEventListener("message", hander);
  },
  onHide() {
    window.removeEventListener("message", hander), (hander = null);
  },
  mounted() {
    const e = document.getElementById("app"),
      t = this;
    e.addEventListener("scroll", (e) => {
      t.pageScroll(e.target);
    });
  },
  provide: () => ({ decAxios: decAxios, decImgDomain: decAxios.decImgDomain }),
  methods: {
    decInited(e) {
      (this.shopTitle = e.navMode ? "" : e.pageName),
        (this.bgColor = e.pageSet.bgColor || ""),
        (this.decoraterAutoLoad = e.autoLoadAtBottom.index || -1),
        (this.decoraterStyle = e.globalStyle),
        (this.headerName = e.navMode ? e.pageName : ""),
        (this.headerConfig = e.shopBase);
    },
    headInited(e) {
      this.paddingTop = e.height || 57;
    },
    headHandler(e, t) {
      console.log("headHandler:", e, t);
    },
    pageScroll(e) {
      (onPageScrollTop = e.scrollTop),
        this.waiting ||
          ((this.waiting = !0),
          setTimeout(() => {
            onPageScrollTop > 0 &&
            onPageScrollTop < this.paddingTop &&
            "#ffffff60" != this.headerBgColor
              ? (this.headerBgColor = "#ffffff60")
              : onPageScrollTop <= 0 && "#ffffff00" != this.headerBgColor
              ? (this.headerBgColor = "#ffffff00")
              : onPageScrollTop >= this.paddingTop &&
                "#ffffff" != this.headerBgColor &&
                (this.headerBgColor = "#ffffff");
            const t = e.scrollHeight - e.clientHeight - 10;
            onPageScrollTop > t && this.reachBottom(), (this.waiting = !1);
          }, 200));
    },
    reachBottom() {
      if (this.decoraterAutoLoad > -1) {
        this.$refs.shopDecorater.reachBottom();
      }
    },
  },
};
function _sfc_render(e, t, o, a, i, c) {
  const s = index$h,
    l = resolveComponent("shopHead"),
    n = resolveEasycom(resolveDynamicComponent("shop-decorater"), __easycom_1),
    r = resolveEasycom(resolveDynamicComponent("li-load"), __easycom_2);
  return (
    openBlock(),
    createBlock(
      s,
      {
        class: "container",
        style: normalizeStyle({ "background-color": i.bgColor }),
      },
      {
        default: withCtx(() => [
          i.shopTitle
            ? (openBlock(),
              createBlock(
                s,
                { key: 0, class: "header-bottom center" },
                {
                  default: withCtx(() => [
                    createVNode(
                      s,
                      { class: "fixed" },
                      {
                        default: withCtx(() => [
                          createVNode(
                            s,
                            { class: "record dec-truncate" },
                            {
                              default: withCtx(() => [
                                createTextVNode(
                                  toDisplayString(i.shopTitle),
                                  1
                                ),
                              ]),
                              _: 1,
                            }
                          ),
                        ]),
                        _: 1,
                      }
                    ),
                  ]),
                  _: 1,
                }
              ))
            : createCommentVNode("v-if", !0),
          createVNode(
            s,
            { class: "content", style: normalizeStyle(i.decoraterStyle) },
            {
              default: withCtx(() => [
                i.headerName
                  ? (openBlock(),
                    createBlock(
                      l,
                      {
                        key: 0,
                        tab: i.headerConfig,
                        title: i.headerName,
                        bgColor: i.headerBgColor,
                        onInited: c.headInited,
                        onDecEventHandler: c.headHandler,
                      },
                      null,
                      8,
                      [
                        "tab",
                        "title",
                        "bgColor",
                        "onInited",
                        "onDecEventHandler",
                      ]
                    ))
                  : createCommentVNode("v-if", !0),
                createVNode(
                  n,
                  {
                    onInited: c.decInited,
                    header: "out",
                    ref: "shopDecorater",
                  },
                  null,
                  8,
                  ["onInited"]
                ),
                i.loading
                  ? (openBlock(), createBlock(r, { key: 1 }))
                  : createCommentVNode("v-if", !0),
              ]),
              _: 1,
            },
            8,
            ["style"]
          ),
        ]),
        _: 1,
      },
      8,
      ["style"]
    )
  );
}
var index = _export_sfc(_sfc_main, [
  ["render", _sfc_render],
  ["__scopeId", "data-v-0ff67548"],
]);
export { index as default };
