;(function () {
  function _toConsumableArray(arr) {
    return (
      _arrayWithoutHoles(arr) ||
      _iterableToArray(arr) ||
      _unsupportedIterableToArray(arr) ||
      _nonIterableSpread()
    )
  }
  function _nonIterableSpread() {
    throw new TypeError(
      'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
    )
  }
  function _unsupportedIterableToArray(o, minLen) {
    if (!o) return
    if (typeof o === 'string') return _arrayLikeToArray(o, minLen)
    var n = Object.prototype.toString.call(o).slice(8, -1)
    if (n === 'Object' && o.constructor) n = o.constructor.name
    if (n === 'Map' || n === 'Set') return Array.from(o)
    if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
      return _arrayLikeToArray(o, minLen)
  }
  function _iterableToArray(iter) {
    if (
      (typeof Symbol !== 'undefined' && iter[Symbol.iterator] != null) ||
      iter['@@iterator'] != null
    )
      return Array.from(iter)
  }
  function _arrayWithoutHoles(arr) {
    if (Array.isArray(arr)) return _arrayLikeToArray(arr)
  }
  function _arrayLikeToArray(arr, len) {
    if (len == null || len > arr.length) len = arr.length
    for (var i = 0, arr2 = new Array(len); i < len; i++) {
      arr2[i] = arr[i]
    }
    return arr2
  }
  function ownKeys(object, enumerableOnly) {
    var keys = Object.keys(object)
    if (Object.getOwnPropertySymbols) {
      var symbols = Object.getOwnPropertySymbols(object)
      enumerableOnly &&
        (symbols = symbols.filter(function (sym) {
          return Object.getOwnPropertyDescriptor(object, sym).enumerable
        })),
        keys.push.apply(keys, symbols)
    }
    return keys
  }
  function _objectSpread(target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = null != arguments[i] ? arguments[i] : {}
      i % 2
        ? ownKeys(Object(source), !0).forEach(function (key) {
            _defineProperty(target, key, source[key])
          })
        : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(
            target,
            Object.getOwnPropertyDescriptors(source)
          )
        : ownKeys(Object(source)).forEach(function (key) {
            Object.defineProperty(
              target,
              key,
              Object.getOwnPropertyDescriptor(source, key)
            )
          })
    }
    return target
  }
  function _defineProperty(obj, key, value) {
    if (key in obj) {
      Object.defineProperty(obj, key, {
        value: value,
        enumerable: true,
        configurable: true,
        writable: true
      })
    } else {
      obj[key] = value
    }
    return obj
  }
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
    try {
      var info = gen[key](arg)
      var value = info.value
    } catch (error) {
      reject(error)
      return
    }
    if (info.done) {
      resolve(value)
    } else {
      Promise.resolve(value).then(_next, _throw)
    }
  }
  function _asyncToGenerator(fn) {
    return function () {
      var self = this,
        args = arguments
      return new Promise(function (resolve, reject) {
        var gen = fn.apply(self, args)
        function _next(value) {
          asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value)
        }
        function _throw(err) {
          asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err)
        }
        _next(undefined)
      })
    }
  }
  var __vite_style__ = document.createElement('style')
  __vite_style__.innerHTML =
    '._order-detail_5sbtb_1{position:relative;padding:.37333rem .37333rem 0;overflow:hidden}._order-detail_5sbtb_1 ._tips_5sbtb_6{margin-bottom:3.2rem;background-color:#fff;border-radius:.21333rem;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding)}._order-detail_5sbtb_1 ._tips_5sbtb_6 h3{display:flex;font-size:.37333rem;font-weight:500;color:#333;line-height:1}._order-detail_5sbtb_1 ._tips_5sbtb_6 p{padding-top:.24rem;font-size:.32rem;color:#7a7a7a;line-height:.61333rem}._order-detail_5sbtb_1 ._tips_5sbtb_6 .van-icon{margin-right:.16rem}._order-detail_5sbtb_1 .van-popup--bottom.van-popup--round{border-radius:.26667rem .26667rem 0 0}._order-detail_5sbtb_1 ._paymentInfo_5sbtb_31{position:fixed;bottom:0;left:0;right:0}._order-detail_5sbtb_1 ._protocol_5sbtb_37{padding:0 .37333rem;background-color:#f6f8f9}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41{background-color:#fff;display:flex;align-items:center;padding:.32rem .42667rem;justify-content:space-between}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 .van-button{padding:0 .48rem}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 ._priceSection_5sbtb_51{display:flex;align-items:center;font-size:.42667rem;color:#1a1a1a}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 ._priceSection_5sbtb_51 ._price_5sbtb_51{font-size:.48rem;font-weight:700;color:#ff3535}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 ._priceSection_5sbtb_51 ._price_5sbtb_51 ._priceUnit_5sbtb_62{font-size:.37333rem}._videoOrder_v9f0c_1 ._tag_v9f0c_1{margin-right:.13333rem;padding:.05333rem .13333rem;font-size:.29333rem;font-weight:500;color:#ff8900;line-height:.42667rem;background:#fff0d9;border-radius:.10667rem;vertical-align:middle}._videoOrder_v9f0c_1 ._title_v9f0c_12{font-size:.42667rem;font-weight:500;color:#333}._videoOrder_v9f0c_1 ._teacher_v9f0c_17{margin-left:.13333rem;color:#1a1a1a;font-size:.42667rem;font-weight:500}._videoOrder_v9f0c_1 ._price_v9f0c_23{font-size:.42667rem;font-weight:500;color:#ff3535;line-height:.53333rem}._videoOrder_v9f0c_1 ._price_v9f0c_23 i{font-style:normal;font-size:.37333rem}._videoOrder_v9f0c_1 ._userLogo_v9f0c_33{width:.74667rem;height:.74667rem;overflow:hidden;border-radius:50%}._videoOrder_v9f0c_1 ._classItem_v9f0c_39{font-size:.37333rem;color:#333;line-height:.53333rem;padding-bottom:.26667rem}._videoOrder_v9f0c_1 ._classItem_v9f0c_39 ._time_v9f0c_45{padding-bottom:.16rem}._videoOrder_v9f0c_1 ._classItem_v9f0c_39 p{color:var(--van-primary)}._videoOrder_v9f0c_1 .van-cell-group{margin-bottom:.26667rem;border-radius:.21333rem;overflow:hidden}._liveOrder_12rl8_1 ._tag_12rl8_1{margin-right:.13333rem;padding:.05333rem .13333rem;font-size:.29333rem;font-weight:500;color:var(--van-primary);line-height:.42667rem;background:#e0f7f3;border-radius:.10667rem;vertical-align:middle}._liveOrder_12rl8_1 ._title_12rl8_12{font-size:.42667rem;font-weight:500;color:#333}._liveOrder_12rl8_1 ._collapseItem_12rl8_17 .van-cell{background:#f7f8f9;padding-top:.24rem;padding-bottom:.24rem}._liveOrder_12rl8_1 ._teacher_12rl8_22{margin-left:.13333rem;color:#1a1a1a;font-size:.42667rem;font-weight:500}._liveOrder_12rl8_1 ._price_12rl8_28{font-size:.42667rem;font-weight:500;color:#ff3535;line-height:.53333rem}._liveOrder_12rl8_1 ._price_12rl8_28 i{font-style:normal;font-size:.37333rem}._liveOrder_12rl8_1 ._userLogo_12rl8_38{width:.74667rem;height:.74667rem;overflow:hidden;border-radius:50%}._liveOrder_12rl8_1 ._classItem_12rl8_44{font-size:.37333rem;color:#333;line-height:.53333rem}._liveOrder_12rl8_1 ._classItem_12rl8_44 ._time_12rl8_49{padding-bottom:.16rem}._liveOrder_12rl8_1 ._classItem_12rl8_44 p{color:var(--van-primary)}._liveOrder_12rl8_1 .van-cell-group{margin-bottom:.26667rem;border-radius:.21333rem;overflow:hidden}._videoOrder_1rdsx_1 ._tag_1rdsx_1{margin-right:.13333rem;padding:.05333rem .13333rem;font-size:.29333rem;font-weight:500;color:#ff3535;line-height:.42667rem;background:#ffece6;border-radius:.10667rem;vertical-align:middle}._videoOrder_1rdsx_1 ._title_1rdsx_12{font-size:.42667rem;font-weight:500;color:#333}._videoOrder_1rdsx_1 ._collapseItem_1rdsx_17 .van-cell{background:#f7f8f9;padding-top:.24rem;padding-bottom:.24rem}._videoOrder_1rdsx_1 ._teacher_1rdsx_22{margin-left:.13333rem;color:#1a1a1a;font-size:.42667rem;font-weight:500}._videoOrder_1rdsx_1 ._price_1rdsx_28{font-size:.42667rem;font-weight:500;color:#ff3535;line-height:.53333rem}._videoOrder_1rdsx_1 ._price_1rdsx_28 i{font-style:normal;font-size:.37333rem}._videoOrder_1rdsx_1 ._userLogo_1rdsx_38{width:.74667rem;height:.74667rem;overflow:hidden;border-radius:50%}._videoOrder_1rdsx_1 ._classItem_1rdsx_44{font-size:.37333rem;color:#333;line-height:.53333rem}._videoOrder_1rdsx_1 ._classItem_1rdsx_44 ._time_1rdsx_49{padding-bottom:.16rem}._videoOrder_1rdsx_1 ._classItem_1rdsx_44 p{color:var(--van-primary)}._videoOrder_1rdsx_1 .van-cell-group{margin-bottom:.26667rem;border-radius:.21333rem;overflow:hidden}._item_12gra_1{background-color:var(--music-list-item-background-color);margin-bottom:.32rem;padding:.26667rem;border-radius:.24rem;--van-button-disabled-opacity: 1}._item_12gra_1 ._header_12gra_8{display:flex;align-items:center;border-bottom:.02667rem solid var(--music-list-item-border-color);padding-bottom:.32rem}._item_12gra_1 ._header_12gra_8 ._mate_12gra_14{display:flex;flex:1;align-items:center}._item_12gra_1 ._header_12gra_8 ._mate_12gra_14 ._icon_12gra_19{width:1.06667rem;height:1.06667rem}._item_12gra_1 ._header_12gra_8 ._mate_12gra_14 ._info_12gra_23{margin-left:.37333rem}._item_12gra_1 ._header_12gra_8 ._mate_12gra_14 ._info_12gra_23>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600}._item_12gra_1 ._header_12gra_8 ._mate_12gra_14 ._info_12gra_23>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._item_12gra_1 ._header_12gra_8 ._btn_12gra_35{width:1.44rem;height:.58667rem;font-size:.32rem;border-radius:.29333rem;padding:0;border:none}._item_12gra_1 ._header_12gra_8 ._btn_12gra_35._vip_12gra_43{background-color:var(--music-list-item-vip-bg);color:var(--music-list-item-vip-color)}._item_12gra_1 ._header_12gra_8 ._btn_12gra_35._free_12gra_47{background-color:var(--music-list-item-free-bg);color:var(--music-list-item-free-color)}._item_12gra_1 ._header_12gra_8 ._btn_12gra_35._charge_12gra_51{background-color:var(--music-list-item-charge-bg);color:var(--music-list-item-charge-color)}._item_12gra_1 ._footer_12gra_55{display:flex;padding-top:.21333rem;align-items:center;justify-content:space-between}._item_12gra_1 ._footer_12gra_55 ._user_12gra_61{display:flex;align-items:center;padding:0 .26667rem}._item_12gra_1 ._footer_12gra_55 ._user_12gra_61 ._userIcon_12gra_66{width:.53333rem;height:.53333rem;margin-right:.21333rem}._item_12gra_1 ._footer_12gra_55 ._favorite_12gra_71{font-size:.42667rem}._item_12gra_1 ._footer_12gra_55 ._tags_12gra_74{display:flex;align-items:center;--van-tag-default-color: #fff1de;--van-tag-text-color: #ff8c00}._memberLogo_1ki51_1{width:1.41333rem;height:1.33333rem}._titleClass_1ki51_5{padding-left:.53333rem}._title_1ki51_5{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._price_1ki51_14{padding-top:.08rem;font-size:.42667rem;font-weight:500;color:#ff4e19;line-height:.53333rem}._price_1ki51_14 i{font-style:normal;font-size:.37333rem}._timerTitle_1ki51_25{display:flex;align-items:center;font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem;padding-right:.32rem}._timer_1ki51_25{font-size:.34667rem;color:#999;line-height:.48rem}._timerCell_1ki51_39{display:flex;align-items:center}._liveOrder_w4wdr_1 ._tag_w4wdr_1{margin-right:.13333rem;padding:.05333rem .13333rem;font-size:.29333rem;font-weight:500;color:var(--van-primary);line-height:.42667rem;background:#e0f7f3;border-radius:.10667rem;vertical-align:middle}._liveOrder_w4wdr_1 ._title_w4wdr_12{font-size:.42667rem;font-weight:500;color:#333}._liveOrder_w4wdr_1 ._collapseItem_w4wdr_17 .van-cell{background:#f7f8f9;padding-top:.24rem;padding-bottom:.24rem}._liveOrder_w4wdr_1 ._line_w4wdr_22{margin-right:.16rem;display:inline-block;width:.10667rem;height:.32rem;border-radius:.10667rem;background:linear-gradient(to bottom,#59e5d5,#01C1B5);vertical-align:middle}._liveOrder_w4wdr_1 ._teacher_w4wdr_31{flex:1 auto;margin-left:.32rem;color:#1a1a1a;font-size:.42667rem;font-weight:500;max-width:4.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._liveOrder_w4wdr_1 ._price_w4wdr_42{font-size:.42667rem;font-weight:500;color:#ff3535;line-height:.53333rem}._liveOrder_w4wdr_1 ._price_w4wdr_42 i{font-style:normal;font-size:.37333rem}._liveOrder_w4wdr_1 ._userLogo_w4wdr_52{width:1.12rem;height:1.12rem;overflow:hidden;border-radius:50%}._liveOrder_w4wdr_1 ._classItem_w4wdr_58{font-size:.37333rem;color:#333;line-height:.53333rem}._liveOrder_w4wdr_1 ._classItem_w4wdr_58 ._time_w4wdr_63{padding-bottom:.16rem}._liveOrder_w4wdr_1 ._classItem_w4wdr_58 p{color:var(--van-primary)}._liveOrder_w4wdr_1 .van-cell-group{margin-bottom:.26667rem;border-radius:.21333rem;overflow:hidden}\n'
  document.head.appendChild(__vite_style__)
  System.register(
    [
      './index-legacy.5f8a11bf.js',
      './vendor-legacy.09f20d09.js',
      './index-legacy.535e160e.js',
      './index-legacy.595c24c3.js',
      './index-legacy.392f4e2b.js',
      './index-legacy.7786b249.js',
      './index-legacy.fa4145a4.js',
      './orderStatus-legacy.6131dfb6.js',
      './index-legacy.f25f109a.js',
      './index-legacy.f25f109a4.js',
      './index-legacy.f25f109a2.js',
      './icon_teacher-legacy.e765b7f7.js',
      './index-legacy.f25f109a16.js',
      './index-legacy.f25f109a10.js',
      './index-legacy.6e10cd37.js',
      './music-icon-legacy.a161f8f1.js',
      './tradeOrder-legacy.a0642d41.js',
      './index-legacy.49899e4e.js',
      './index-legacy.f25f109a13.js',
      './index-legacy.f25f109a14.js',
      './icon_checkbox_default-legacy.e33240bc.js',
      './index-legacy.c75fe8a2.js',
      './index-legacy.c1757005.js',
      './index-legacy.637f35563.js',
      './index-legacy.f25f109a5.js',
      './index-legacy.637f35565.js',
      './index-legacy.f25f109a8.js',
      './index-legacy.9dfebfce.js',
      './item-legacy.bddec109.js'
    ],
    function (exports) {
      'use strict'
      var ColProtocol,
        defineComponent,
        createVNode,
        CellGroup,
        Cell,
        createTextVNode,
        Image,
        Collapse,
        CollapseItem,
        Fragment,
        dayjs,
        Icon,
        Button,
        Tag,
        isVNode,
        Toast,
        Dialog,
        Popup,
        ColPopup,
        moneyFormat,
        postMessage,
        state,
        request,
        UserAuth,
        Payment,
        ColHeader,
        orderStatus,
        orderInfos,
        resestState,
        IconAvator,
        classNames,
        MusicIcon,
        getMusicDetail,
        UseCoupons
      return {
        setters: [
          function (module) {
            ColProtocol = module.C
          },
          function (module) {
            defineComponent = module.d
            createVNode = module.a
            CellGroup = module.y
            Cell = module.C
            createTextVNode = module.j
            Image = module.I
            Collapse = module.ar
            CollapseItem = module.as
            Fragment = module.F
            dayjs = module.g
            Icon = module.K
            Button = module.B
            Tag = module.U
            isVNode = module.x
            Toast = module.T
            Dialog = module.D
            Popup = module.P
          },
          function (module) {
            ColPopup = module.C
          },
          function (module) {
            moneyFormat = module.o
            postMessage = module.p
            state = module.s
            request = module.r
          },
          function (module) {
            UserAuth = module.U
          },
          function (module) {
            Payment = module.P
          },
          function (module) {
            ColHeader = module.C
          },
          function (module) {
            orderStatus = module.o
            orderInfos = module.b
            resestState = module.r
          },
          function () {},
          function () {},
          function () {},
          function (module) {
            IconAvator = module.I
          },
          function () {},
          function () {},
          function (module) {
            classNames = module.c
          },
          function (module) {
            MusicIcon = module.M
          },
          function (module) {
            getMusicDetail = module.g
          },
          function (module) {
            UseCoupons = module.U
          },
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {}
        ],
        execute: function execute() {
          var tips = '_tips_5sbtb_6'
          var paymentInfo = '_paymentInfo_5sbtb_31'
          var protocol = '_protocol_5sbtb_37'
          var btnGroup = '_btnGroup_5sbtb_41'
          var priceSection = '_priceSection_5sbtb_51'
          var price$6 = '_price_5sbtb_51'
          var priceUnit = '_priceUnit_5sbtb_62'
          var styles$7 = {
            'order-detail': '_order-detail_5sbtb_1',
            tips: tips,
            paymentInfo: paymentInfo,
            protocol: protocol,
            btnGroup: btnGroup,
            priceSection: priceSection,
            price: price$6,
            priceUnit: priceUnit
          }
          var videoOrder$1 = '_videoOrder_v9f0c_1'
          var tag$3 = '_tag_v9f0c_1'
          var title$5 = '_title_v9f0c_12'
          var teacher$3 = '_teacher_v9f0c_17'
          var price$5 = '_price_v9f0c_23'
          var userLogo$3 = '_userLogo_v9f0c_33'
          var classItem$3 = '_classItem_v9f0c_39'
          var time$3 = '_time_v9f0c_45'
          var styles$6 = {
            videoOrder: videoOrder$1,
            tag: tag$3,
            title: title$5,
            teacher: teacher$3,
            price: price$5,
            userLogo: userLogo$3,
            classItem: classItem$3,
            time: time$3
          }
          var OrderVideo = defineComponent({
            name: 'OrderVideo',
            props: { item: { type: Object, default: {} } },
            render: function render() {
              var item = this.item
              return createVNode('div', { class: styles$6.videoOrder }, [
                createVNode(
                  CellGroup,
                  { border: false },
                  {
                    default: function _default() {
                      return [
                        createVNode(
                          Cell,
                          { center: true },
                          {
                            title: function title() {
                              return createVNode(
                                'div',
                                { class: [styles$6.title, 'van-ellipsis'] },
                                [
                                  createVNode('span', { class: styles$6.tag }, [
                                    createTextVNode('\u89C6\u9891\u8BFE')
                                  ]),
                                  item.courseGroupName
                                ]
                              )
                            }
                          }
                        ),
                        createVNode(
                          Cell,
                          {
                            center: true,
                            title: item.teacherName,
                            titleClass: styles$6.teacher
                          },
                          {
                            icon: function icon() {
                              return createVNode(
                                Image,
                                {
                                  class: styles$6.userLogo,
                                  src: item.avatar || IconAvator
                                },
                                null
                              )
                            },
                            default: function _default() {
                              return createVNode(
                                'span',
                                { class: styles$6.price },
                                [
                                  createVNode('i', null, [
                                    createTextVNode('\xA5')
                                  ]),
                                  moneyFormat(item.coursePrice)
                                ]
                              )
                            }
                          }
                        )
                      ]
                    }
                  }
                )
              ])
            }
          })
          var liveOrder$1 = '_liveOrder_12rl8_1'
          var tag$2 = '_tag_12rl8_1'
          var title$4 = '_title_12rl8_12'
          var collapseItem$2 = '_collapseItem_12rl8_17'
          var teacher$2 = '_teacher_12rl8_22'
          var price$4 = '_price_12rl8_28'
          var userLogo$2 = '_userLogo_12rl8_38'
          var classItem$2 = '_classItem_12rl8_44'
          var time$2 = '_time_12rl8_49'
          var styles$5 = {
            liveOrder: liveOrder$1,
            tag: tag$2,
            title: title$4,
            collapseItem: collapseItem$2,
            teacher: teacher$2,
            price: price$4,
            userLogo: userLogo$2,
            classItem: classItem$2,
            time: time$2
          }
          var OrderLive = defineComponent({
            name: 'OrderLive',
            props: { item: { type: Object, default: {} } },
            data: function data() {
              return { collapse: [1] }
            },
            render: function render() {
              var _this = this
              var item = this.item
              return createVNode('div', { class: styles$5.liveOrder }, [
                createVNode(
                  CellGroup,
                  { border: false },
                  {
                    default: function _default() {
                      return [
                        createVNode(
                          Cell,
                          { center: true },
                          {
                            title: function title() {
                              return createVNode(
                                'div',
                                { class: [styles$5.title, 'van-ellipsis'] },
                                [
                                  createVNode('span', { class: styles$5.tag }, [
                                    createTextVNode('\u76F4\u64AD\u8BFE')
                                  ]),
                                  item.courseGroupName
                                ]
                              )
                            }
                          }
                        ),
                        createVNode(
                          Cell,
                          {
                            center: true,
                            border: false,
                            title: item.teacherName,
                            titleClass: styles$5.teacher
                          },
                          {
                            icon: function icon() {
                              return createVNode(
                                Image,
                                {
                                  class: styles$5.userLogo,
                                  src: item.avatar || IconAvator
                                },
                                null
                              )
                            },
                            default: function _default() {
                              return createVNode(
                                'span',
                                { class: styles$5.price },
                                [
                                  createVNode('i', null, [
                                    createTextVNode('\xA5')
                                  ]),
                                  moneyFormat(item.coursePrice)
                                ]
                              )
                            }
                          }
                        ),
                        createVNode(
                          Cell,
                          { border: false },
                          {
                            default: function _default() {
                              return [
                                createVNode(
                                  Collapse,
                                  {
                                    border: false,
                                    modelValue: _this.collapse,
                                    'onUpdate:modelValue':
                                      function onUpdateModelValue($event) {
                                        return (_this.collapse = $event)
                                      }
                                  },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          CollapseItem,
                                          {
                                            title: '课程详情',
                                            name: 1,
                                            class: styles$5.collapseItem
                                          },
                                          {
                                            default: function _default() {
                                              return [
                                                createVNode(
                                                  'div',
                                                  { class: styles$5.classItem },
                                                  [
                                                    item.courseInfo.map(
                                                      function (item) {
                                                        return createVNode(
                                                          'div',
                                                          {
                                                            class: styles$5.time
                                                          },
                                                          [item.courseTime]
                                                        )
                                                      }
                                                    )
                                                  ]
                                                )
                                              ]
                                            }
                                          }
                                        )
                                      ]
                                    }
                                  }
                                )
                              ]
                            }
                          }
                        )
                      ]
                    }
                  }
                )
              ]) // 视频课
            }
          })
          var videoOrder = '_videoOrder_1rdsx_1'
          var tag$1 = '_tag_1rdsx_1'
          var title$3 = '_title_1rdsx_12'
          var collapseItem$1 = '_collapseItem_1rdsx_17'
          var teacher$1 = '_teacher_1rdsx_22'
          var price$3 = '_price_1rdsx_28'
          var userLogo$1 = '_userLogo_1rdsx_38'
          var classItem$1 = '_classItem_1rdsx_44'
          var time$1 = '_time_1rdsx_49'
          var styles$4 = {
            videoOrder: videoOrder,
            tag: tag$1,
            title: title$3,
            collapseItem: collapseItem$1,
            teacher: teacher$1,
            price: price$3,
            userLogo: userLogo$1,
            classItem: classItem$1,
            time: time$1
          }
          var OrderPractice = defineComponent({
            name: 'OrderPractice',
            props: { item: { type: Object, default: {} } },
            data: function data() {
              return { collapse: [1] }
            },
            render: function render() {
              var _this2 = this
              var item = this.item
              console.log(item.classTime)
              return createVNode('div', { class: styles$4.videoOrder }, [
                createVNode(
                  CellGroup,
                  { border: false },
                  {
                    default: function _default() {
                      return [
                        createVNode(
                          Cell,
                          { center: true },
                          {
                            title: function title() {
                              return createVNode(
                                'div',
                                { class: [styles$4.title, 'van-ellipsis'] },
                                [
                                  createVNode('span', { class: styles$4.tag }, [
                                    createTextVNode('\u966A\u7EC3\u8BFE')
                                  ]),
                                  item.courseGroupName
                                ]
                              )
                            }
                          }
                        ),
                        createVNode(
                          Cell,
                          {
                            center: true,
                            border: false,
                            title: item.teacherName,
                            titleClass: styles$4.teacher
                          },
                          {
                            icon: function icon() {
                              return createVNode(
                                Image,
                                {
                                  class: styles$4.userLogo,
                                  src: item.avatar || IconAvator
                                },
                                null
                              )
                            },
                            default: function _default() {
                              return createVNode(Fragment, null, [
                                createVNode('span', { class: styles$4.price }, [
                                  createVNode('i', null, [
                                    createTextVNode('\xA5')
                                  ]),
                                  moneyFormat(item.coursePrice)
                                ]),
                                createTextVNode('/'),
                                item.classTime.length,
                                createTextVNode('\u8BFE\u65F6')
                              ])
                            }
                          }
                        ),
                        createVNode(
                          Cell,
                          { border: false },
                          {
                            default: function _default() {
                              return [
                                createVNode(
                                  Collapse,
                                  {
                                    border: false,
                                    modelValue: _this2.collapse,
                                    'onUpdate:modelValue':
                                      function onUpdateModelValue($event) {
                                        return (_this2.collapse = $event)
                                      }
                                  },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          CollapseItem,
                                          {
                                            title: '课程详情',
                                            name: 1,
                                            class: styles$4.collapseItem
                                          },
                                          {
                                            default: function _default() {
                                              return [
                                                createVNode(
                                                  'div',
                                                  { class: styles$4.classItem },
                                                  [
                                                    item.classTime.map(
                                                      function (item) {
                                                        var dateTime = ''
                                                          .concat(
                                                            item.classDate,
                                                            ' '
                                                          )
                                                          .concat(
                                                            dayjs(
                                                              item.startTime
                                                            ).format('HH:mm'),
                                                            '-'
                                                          )
                                                          .concat(
                                                            dayjs(
                                                              item.endTime
                                                            ).format('HH:mm')
                                                          )
                                                        return createVNode(
                                                          'div',
                                                          {
                                                            class: styles$4.time
                                                          },
                                                          [dateTime]
                                                        )
                                                      }
                                                    )
                                                  ]
                                                )
                                              ]
                                            }
                                          }
                                        )
                                      ]
                                    }
                                  }
                                )
                              ]
                            }
                          }
                        )
                      ]
                    }
                  }
                )
              ])
            }
          })
          var memberLogo$1 = '_memberLogo_1ki51_1'
          var titleClass$1 = '_titleClass_1ki51_5'
          var title$2 = '_title_1ki51_5'
          var price$2 = '_price_1ki51_14'
          var timerTitle$1 = '_timerTitle_1ki51_25'
          var timer$1 = '_timer_1ki51_25'
          var timerCell$1 = '_timerCell_1ki51_39'
          var styles$3 = {
            memberLogo: memberLogo$1,
            titleClass: titleClass$1,
            title: title$2,
            price: price$2,
            timerTitle: timerTitle$1,
            timer: timer$1,
            timerCell: timerCell$1
          }
          var iconMember =
            'data:image/png;base64,[encoded data, 4736 characters]'
          var iconTimer =
            'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAIRQTFRFAAAAAP//AKqqAP+qK6qqLtGiLtG5Mc6qLsitLsmqMseuLMisK8OoLcisLMmqLMmqLMeoLcaoLcarLcmrLMepLciqLMapLcepLMeqLMaqLMiqLcipLcirLciqLciqLceqLceqLMeqLceqLceqLMeqLceqLceqLcerLceqLMepLMeqLceqEn68CgAAACt0Uk5TAAEDAwYLCxUcISkuL0pLUVJVVVVWeHmDhJCQmMLH1tff4Orw8vP4+Pz9/Uvj+oYAAAFBSURBVDjLtZTbtoIwDESDooKKVzgiF7koFt3//38+aIEiLs+L89R0zWrSSSYiP8HEj9NSqTKN/ckHihtXNKhid4Bih1cMqNDuc2YJQBHtl46z3EUFQDIzOfMcyDaWjq1NBuRz450c6r9x92oc1JB33rITuKz6FXgXSNq6QqhX73/xagibv18h0MHhfD7ocwBXrUQMWVPPDW76PMogfulcwabJAdAEa6ie2vtQWMMkqwBfZ4tkmCSRzpfC/hNpC6mIiJSwNEkAt4OIyAJKERFR4LyTOIuIOKAGSPdhkpkuug+mS2H3aVabwk0JTBy1BKaYBloxp0ZbDLRtMRvcxejUNFhc1RmVLgJQbnfovC9D9xxf78v4Po0QjIx6+kZ4Weq0bi21Pr1ZqjXnduE4i+1x0Jwidqi+2vx/C6O3eqa/WW4PDPQ4oVW3WKoAAAAASUVORK5CYII='
          var OrderVip = defineComponent({
            name: 'OrderVideo',
            props: { item: { type: Object, default: {} } },
            render: function render() {
              var _this3 = this
              var item = this.item
              return createVNode('div', { class: styles$3.videoOrder }, [
                createVNode(
                  CellGroup,
                  {
                    class: 'mb12',
                    border: false,
                    style: { borderRadius: '8px', overflow: 'hidden' }
                  },
                  {
                    default: function _default() {
                      return [
                        createVNode(
                          Cell,
                          { center: true, titleClass: styles$3.titleClass },
                          {
                            icon: function icon() {
                              return createVNode(
                                Image,
                                { class: styles$3.memberLogo, src: iconMember },
                                null
                              )
                            },
                            title: function title() {
                              return createVNode(
                                'div',
                                { class: styles$3.container },
                                [
                                  createVNode(
                                    'div',
                                    { class: styles$3.title },
                                    [
                                      createTextVNode('\u5C0F\u9177Ai'),
                                      item.title
                                    ]
                                  ),
                                  createVNode(
                                    'div',
                                    { class: styles$3.price },
                                    [
                                      createVNode('i', null, [
                                        createTextVNode('\xA5')
                                      ]),
                                      _this3.$filters.moneyFormat(item.price)
                                    ]
                                  )
                                ]
                              )
                            }
                          }
                        ),
                        createVNode(
                          Cell,
                          { center: true },
                          {
                            title: function title() {
                              return createVNode(
                                'div',
                                { class: styles$3.timerCell },
                                [
                                  createVNode(
                                    'div',
                                    { class: styles$3.timerTitle },
                                    [
                                      createVNode(
                                        Icon,
                                        { name: iconTimer, size: 18 },
                                        null
                                      ),
                                      createVNode(
                                        'span',
                                        { style: { paddingLeft: '5px' } },
                                        [
                                          createTextVNode(
                                            '\u751F\u6548\u65F6\u95F4'
                                          )
                                        ]
                                      )
                                    ]
                                  ),
                                  createVNode(
                                    'div',
                                    { class: styles$3.timer },
                                    [
                                      item.startTime,
                                      createTextVNode(' \u81F3 '),
                                      item.endTime
                                    ]
                                  )
                                ]
                              )
                            }
                          }
                        )
                      ]
                    }
                  }
                )
              ]) // 视频课
            }
          })
          var InitUserIcon = './assets/init-user-icon.e8bc7f33.png'
          var item = '_item_12gra_1'
          var header = '_header_12gra_8'
          var mate = '_mate_12gra_14'
          var icon = '_icon_12gra_19'
          var info = '_info_12gra_23'
          var btn = '_btn_12gra_35'
          var vip = '_vip_12gra_43'
          var free = '_free_12gra_47'
          var charge = '_charge_12gra_51'
          var footer = '_footer_12gra_55'
          var user = '_user_12gra_61'
          var userIcon = '_userIcon_12gra_66'
          var favorite = '_favorite_12gra_71'
          var tags = '_tags_12gra_74'
          var styles$2 = {
            item: item,
            header: header,
            mate: mate,
            icon: icon,
            info: info,
            btn: btn,
            vip: vip,
            free: free,
            charge: charge,
            footer: footer,
            user: user,
            userIcon: userIcon,
            favorite: favorite,
            tags: tags
          }
          function _isSlot(s) {
            return (
              typeof s === 'function' ||
              (Object.prototype.toString.call(s) === '[object Object]' &&
                !isVNode(s))
            )
          }
          var chargeTypes = { CHARGE: '点播', FREE: '免费', VIP: 'VIP' }
          var OrderMusic = defineComponent({
            name: 'OrderMusic',
            props: { item: { type: Object, default: {} } },
            render: function render() {
              var item = this.item
              return createVNode('div', { class: styles$2.item }, [
                createVNode('header', { class: styles$2.header }, [
                  createVNode('div', { class: styles$2.mate }, [
                    createVNode(
                      Image,
                      {
                        src: item.titleImg || MusicIcon,
                        round: true,
                        class: styles$2.icon
                      },
                      null
                    ),
                    createVNode('div', { class: styles$2.info }, [
                      createVNode('h4', null, [item.musicSheetName]),
                      createVNode('p', null, [item.composer])
                    ])
                  ]),
                  createVNode('div', { class: styles$2.buttons }, [
                    createVNode(
                      Button,
                      {
                        class: classNames(
                          styles$2.btn,
                          styles$2[item.chargeType.toLocaleLowerCase()]
                        ),
                        disabled: true
                      },
                      {
                        default: function _default() {
                          return [
                            chargeTypes[item.chargeType],
                            createVNode(Icon, { name: 'arrow' }, null)
                          ]
                        }
                      }
                    )
                  ])
                ]),
                createVNode('footer', { class: styles$2.footer }, [
                  createVNode('div', { class: styles$2.user }, [
                    createVNode(
                      Image,
                      {
                        round: true,
                        src: item.addUserAvatar || InitUserIcon,
                        class: styles$2.userIcon
                      },
                      null
                    ),
                    createVNode('p', null, [item.addName]),
                    createVNode('div', { class: styles$2.tags }, [
                      (item.subjectNames || '').split(',').map(function (item) {
                        return createVNode(
                          Tag,
                          null,
                          _isSlot(item)
                            ? item
                            : {
                                default: function _default() {
                                  return [item]
                                }
                              }
                        )
                      })
                    ])
                  ]),
                  createVNode('div', { class: styles$2.icons }, null)
                ])
              ])
            }
          })
          var memberLogo = '_memberLogo_1ki51_1'
          var titleClass = '_titleClass_1ki51_5'
          var title$1 = '_title_1ki51_5'
          var price$1 = '_price_1ki51_14'
          var timerTitle = '_timerTitle_1ki51_25'
          var timer = '_timer_1ki51_25'
          var timerCell = '_timerCell_1ki51_39'
          var styles$1 = {
            memberLogo: memberLogo,
            titleClass: titleClass,
            title: title$1,
            price: price$1,
            timerTitle: timerTitle,
            timer: timer,
            timerCell: timerCell
          }
          var iconPinao =
            'data:image/png;base64,[encoded data, 4560 characters]'
          var OrderPinao = defineComponent({
            name: 'OrderPinao',
            props: { item: { type: Object, default: {} } },
            render: function render() {
              var _this4 = this
              var item = this.item
              console.log(item)
              return createVNode('div', { class: styles$1.videoOrder }, [
                createVNode(
                  CellGroup,
                  {
                    class: 'mb12',
                    border: false,
                    style: { borderRadius: '8px' }
                  },
                  {
                    default: function _default() {
                      return [
                        createVNode(
                          Cell,
                          { center: true, titleClass: styles$1.titleClass },
                          {
                            icon: function icon() {
                              return createVNode(
                                Image,
                                { class: styles$1.memberLogo, src: iconPinao },
                                null
                              )
                            },
                            title: function title() {
                              return createVNode(
                                'div',
                                { class: styles$1.container },
                                [
                                  createVNode(
                                    'div',
                                    { class: styles$1.title },
                                    [
                                      item.times,
                                      createTextVNode(
                                        '\u5206\u949F\u7434\u623F\u65F6\u957F'
                                      )
                                    ]
                                  ),
                                  createVNode(
                                    'div',
                                    { class: styles$1.price },
                                    [
                                      createVNode('i', null, [
                                        createTextVNode('\xA5')
                                      ]),
                                      _this4.$filters.moneyFormat(
                                        item.salePrice
                                      )
                                    ]
                                  )
                                ]
                              )
                            }
                          }
                        )
                      ]
                    }
                  }
                )
              ]) // 视频课
            }
          })
          var liveOrder = '_liveOrder_w4wdr_1'
          var tag = '_tag_w4wdr_1'
          var title = '_title_w4wdr_12'
          var collapseItem = '_collapseItem_w4wdr_17'
          var line = '_line_w4wdr_22'
          var teacher = '_teacher_w4wdr_31'
          var price = '_price_w4wdr_42'
          var userLogo = '_userLogo_w4wdr_52'
          var classItem = '_classItem_w4wdr_58'
          var time = '_time_w4wdr_63'
          var styles = {
            liveOrder: liveOrder,
            tag: tag,
            title: title,
            collapseItem: collapseItem,
            line: line,
            teacher: teacher,
            price: price,
            userLogo: userLogo,
            classItem: classItem,
            time: time
          }
          var activityLogo =
            'data:image/png;base64,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'
          var OrderActive = defineComponent({
            name: 'OrderLive',
            props: { item: { type: Object, default: {} } },
            data: function data() {
              return { collapse: [1] }
            },
            render: function render() {
              var item = this.item
              return createVNode('div', { class: styles.liveOrder }, [
                createVNode(
                  CellGroup,
                  { border: false },
                  {
                    default: function _default() {
                      return [
                        createVNode(
                          Cell,
                          { center: true },
                          {
                            title: function title() {
                              return createVNode(
                                'div',
                                { class: [styles.title, 'van-ellipsis'] },
                                [
                                  createVNode(
                                    'span',
                                    { class: styles.line },
                                    null
                                  ),
                                  createTextVNode('\u6D3B\u52A8\u62A5\u540D')
                                ]
                              )
                            }
                          }
                        ),
                        createVNode(
                          Cell,
                          {
                            center: true,
                            border: false,
                            title: item.goodsName,
                            titleClass: styles.teacher
                          },
                          {
                            icon: function icon() {
                              return createVNode(
                                Image,
                                { class: styles.userLogo, src: activityLogo },
                                null
                              )
                            },
                            default: function _default() {
                              return createVNode(
                                'span',
                                { class: styles.price },
                                [
                                  createVNode('i', null, [
                                    createTextVNode('\xA5')
                                  ]),
                                  moneyFormat(item.actualPrice)
                                ]
                              )
                            }
                          }
                        )
                      ]
                    }
                  }
                )
              ]) // 视频课
            }
          })
          var index = exports(
            'default',
            defineComponent({
              name: 'order-detail',
              data: function data() {
                var query = this.$route.query
                return {
                  loading: false, // 是否加载中，为了处理0元订单（）
                  orderType: query.orderType,
                  recomUserId: query.recomUserId, // 推荐人id
                  activityId: query.activityId, // 活动编号
                  id: query.id,
                  agreeStatus: false,
                  popupShow: false,
                  paymentStatus: false,
                  orderAmount: 0, // 订单金额，用于使用优惠券，余额，优惠等
                  orderPrice: 0, // 支付金额，最后支付金额
                  dataLoading: true
                }
              },
              unmounted: function unmounted() {
                // 销毁时解绑监听
                orderStatus.orderInfo = {
                  orderNo: '',
                  actualPrice: 0,
                  payStatus: false
                }
              },
              computed: {
                orderList: function orderList() {
                  // 商品列表
                  var orderObject = orderStatus.orderObject
                  return orderObject.orderList || []
                }
              },
              mounted: function mounted() {
                var _this5 = this
                return _asyncToGenerator(
                  /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
                    var _item
                    return regeneratorRuntime.wrap(
                      function _callee$(_context) {
                        while (1) {
                          switch ((_context.prev = _context.next)) {
                            case 0: // 判断是否是曲目购买（只有智能陪练才会有入口），其它地方不会有入口
                              _this5.dataLoading = true
                              if (!(_this5.orderType == 'MUSIC' && _this5.id)) {
                                _context.next = 18
                                break
                              }
                              _context.prev = 2
                              _context.next = 5
                              return getMusicDetail(_this5.id)
                            case 5:
                              _item = _context.sent
                              orderStatus.orderObject.orderType = 'MUSIC'
                              orderStatus.orderObject.orderName =
                                _item.musicSheetName
                              orderStatus.orderObject.orderDesc =
                                _item.musicSheetName
                              orderStatus.orderObject.actualPrice =
                                _item.musicPrice
                              orderStatus.orderObject.recomUserId =
                                _this5.recomUserId
                              orderStatus.orderObject.activityId =
                                _this5.activityId // 判断当前订单是否在支付中
                              if (
                                ['WAIT_PAY', 'PAYING'].includes(
                                  _item.orderStatus
                                )
                              ) {
                                orderStatus.orderObject.orderNo = _item.orderNo
                              } else if (
                                ['PAID', 'CLOSE', 'FAIL'].includes(
                                  _item.orderStatus
                                )
                              ) {
                                // 判断订单是否是其它状态
                                Toast('订单有误')
                                postMessage({ api: 'back', content: {} })
                              }
                              orderStatus.orderObject.orderList = [
                                _objectSpread(
                                  {
                                    orderType: 'MUSIC',
                                    goodsName: _item.musicSheetName,
                                    actualPrice: _item.musicPrice
                                  },
                                  _item
                                )
                              ]
                              _context.next = 18
                              break
                            case 16:
                              _context.prev = 16
                              _context.t0 = _context['catch'](2)
                            case 18:
                              _this5.orderAmount =
                                orderStatus.orderObject.actualPrice || 0
                              _this5.orderPrice =
                                orderStatus.orderObject.actualPrice || 0
                              _this5.dataLoading = false // 0元支付特别处理
                              if (
                                _this5.orderPrice === 0 &&
                                orderStatus.orderObject.orderType
                              ) {
                                _this5.loading = true
                                _this5.onSubmit()
                              }
                            case 22:
                            case 'end':
                              return _context.stop()
                          }
                        }
                      },
                      _callee,
                      null,
                      [[2, 16]]
                    )
                  })
                )()
              },
              methods: {
                onAuthSuccess: function onAuthSuccess() {
                  this.popupShow = false
                  this.onSubmit() // 实名成功后自动支付
                },
                onSubmit: function onSubmit() {
                  var _this6 = this
                  return _asyncToGenerator(
                    /*#__PURE__*/ regeneratorRuntime.mark(function _callee2() {
                      var users, orderObject, url, res, result
                      return regeneratorRuntime.wrap(
                        function _callee2$(_context2) {
                          while (1) {
                            switch ((_context2.prev = _context2.next)) {
                              case 0:
                                if (!(_this6.orderPrice > 0)) {
                                  _context2.next = 8
                                  break
                                }
                                if (_this6.agreeStatus) {
                                  _context2.next = 4
                                  break
                                }
                                Toast('请先阅读并同意《酷乐秀平台服务协议》')
                                return _context2.abrupt('return')
                              case 4:
                                users = state.user.data // 判断是否需要实名认证
                                if (
                                  !(
                                    !(
                                      users !== null &&
                                      users !== void 0 &&
                                      users.realName
                                    ) ||
                                    !(
                                      users !== null &&
                                      users !== void 0 &&
                                      users.idCardNo
                                    )
                                  )
                                ) {
                                  _context2.next = 8
                                  break
                                }
                                _this6.popupShow = true
                                return _context2.abrupt('return')
                              case 8:
                                if (!orderStatus.orderObject.orderNo) {
                                  _context2.next = 11
                                  break
                                }
                                _this6.paymentStatus = true
                                return _context2.abrupt('return')
                              case 11:
                                _context2.prev = 11
                                orderObject = orderStatus.orderObject
                                url =
                                  state.platformType === 'TEACHER'
                                    ? '/api-teacher/userOrder/executeOrder'
                                    : '/api-student/userOrder/executeOrder'
                                _context2.next = 16
                                return request.post(url, {
                                  data: {
                                    orderName: orderObject.orderName,
                                    orderDesc: orderObject.orderDesc,
                                    orderType: orderObject.orderType,
                                    actualPrice: _this6.orderPrice || 0,
                                    recomUserId: orderObject.recomUserId,
                                    activityId: orderObject.activityId,
                                    couponId: orderObject.couponId,
                                    orderInfos: _toConsumableArray(orderInfos())
                                  }
                                })
                              case 16:
                                res = _context2.sent
                                result = res.data || {} // 支付成功
                                if (!(result.status == 'PAID')) {
                                  _context2.next = 21
                                  break
                                }
                                _this6.$router.replace({
                                  path: '/tradeDetail',
                                  query: { orderNo: result.orderNo }
                                })
                                return _context2.abrupt('return')
                              case 21: // 拉起支付方式
                                orderStatus.orderObject.orderNo = result.orderNo
                                orderStatus.orderObject.actualPrice =
                                  result.actualPrice
                                _this6.paymentStatus = true
                                _context2.next = 30
                                break
                              case 26:
                                _context2.prev = 26
                                _context2.t0 = _context2['catch'](11)
                                _this6.loading = false
                                if (_this6.orderPrice === 0) {
                                  Dialog.alert({
                                    title: '提示',
                                    message: '支付失败，请稍后重试！',
                                    confirmButtonText: '确定',
                                    confirmButtonColor: '#01C1B5'
                                  })
                                }
                              case 30:
                              case 'end':
                                return _context2.stop()
                            }
                          }
                        },
                        _callee2,
                        null,
                        [[11, 26]]
                      )
                    })
                  )()
                },
                onBackOut: function onBackOut() {
                  // 关闭订单后需要重置数据
                  resestState()
                },
                onCouponSelect: function onCouponSelect(item) {
                  console.log('onCouponSelect', item)
                  var discountCount = 0
                  ;(item || []).forEach(function (item) {
                    discountCount += Number(item.discountPrice)
                  })
                  var lastAmount = Number(
                    (Number(this.orderAmount) - Number(discountCount)).toFixed(
                      2
                    )
                  )
                  this.orderPrice = lastAmount >= 0 ? lastAmount : 0 // 设置优惠券编号
                  var couponIds = (item || []).map(function (item) {
                    return item.couponIssueId
                  })
                  orderStatus.orderObject.couponId = couponIds.join(',') || ''
                }
              },
              render: function render() {
                var _this7 = this
                return createVNode('div', { class: styles$7['order-detail'] }, [
                  createVNode(ColHeader, null, null),
                  !this.loading &&
                    createVNode(Fragment, null, [
                      this.orderList.map(function (item) {
                        if (item.orderType === 'VIDEO') {
                          return createVNode(OrderVideo, { item: item }, null)
                        } else if (item.orderType === 'LIVE') {
                          return createVNode(OrderLive, { item: item }, null)
                        } else if (item.orderType === 'PRACTICE') {
                          return createVNode(
                            OrderPractice,
                            { item: item },
                            null
                          )
                        } else if (item.orderType === 'VIP') {
                          return createVNode(OrderVip, { item: item }, null)
                        } else if (item.orderType === 'MUSIC') {
                          return createVNode(OrderMusic, { item: item }, null)
                        } else if (item.orderType === 'PINAO_ROOM') {
                          return createVNode(OrderPinao, { item: item }, null)
                        } else if (item.orderType === 'ACTI_REGIST') {
                          return createVNode(OrderActive, { item: item }, null)
                        }
                      }),
                      !this.dataLoading &&
                        createVNode(
                          UseCoupons,
                          {
                            discountPrice:
                              orderStatus.orderObject.discountPrice,
                            orderType: this.orderType,
                            orderAmount: this.orderAmount,
                            onCouponSelect: this.onCouponSelect,
                            disabled: orderStatus.orderObject.orderNo
                              ? true
                              : false
                          },
                          null
                        ),
                      createVNode('div', { class: styles$7.paymentInfo }, [
                        this.orderPrice > 0 &&
                          createVNode('div', { class: styles$7.protocol }, [
                            createVNode(
                              ColProtocol,
                              {
                                modelValue: this.agreeStatus,
                                'onUpdate:modelValue':
                                  function onUpdateModelValue($event) {
                                    return (_this7.agreeStatus = $event)
                                  },
                                showHeader: true,
                                style: { paddingLeft: 0, paddingRight: 0 }
                              },
                              null
                            )
                          ]),
                        createVNode('div', { class: styles$7.btnGroup }, [
                          createVNode('div', { class: styles$7.priceSection }, [
                            createTextVNode('\u652F\u4ED8\u91D1\u989D\uFF1A'),
                            createVNode('div', { class: styles$7.price }, [
                              createVNode(
                                'span',
                                { class: styles$7.priceUnit },
                                [createTextVNode('\uFFE5')]
                              ),
                              createVNode(
                                'span',
                                { class: styles$7.priceNum },
                                [moneyFormat(this.orderPrice)]
                              )
                            ])
                          ]),
                          createVNode(
                            Button,
                            {
                              type: 'primary',
                              round: true,
                              class: styles$7.btn,
                              onClick: this.onSubmit
                            },
                            {
                              default: function _default() {
                                return [
                                  createTextVNode('\u7ACB\u5373\u652F\u4ED8')
                                ]
                              }
                            }
                          )
                        ])
                      ])
                    ]),
                  createVNode(
                    ColPopup,
                    {
                      modelValue: this.popupShow,
                      'onUpdate:modelValue': function onUpdateModelValue(
                        $event
                      ) {
                        return (_this7.popupShow = $event)
                      }
                    },
                    {
                      default: function _default() {
                        return [
                          createVNode(
                            UserAuth,
                            { onSuccess: _this7.onAuthSuccess },
                            null
                          )
                        ]
                      }
                    }
                  ),
                  createVNode(
                    Popup,
                    {
                      show: this.paymentStatus,
                      closeOnClickOverlay: false,
                      position: 'bottom',
                      round: true,
                      closeOnPopstate: true,
                      safeAreaInsetBottom: true,
                      style: { minHeight: '30%' }
                    },
                    {
                      default: function _default() {
                        return [
                          createVNode(
                            Payment,
                            {
                              modelValue: _this7.paymentStatus,
                              'onUpdate:modelValue':
                                function onUpdateModelValue($event) {
                                  return (_this7.paymentStatus = $event)
                                },
                              orderInfo: orderStatus.orderObject,
                              onBackOut: _this7.onBackOut
                            },
                            null
                          )
                        ]
                      }
                    }
                  )
                ])
              }
            })
          )
        }
      }
    }
  )
})()
