live-detail-legacy.1797db6c.js 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. ;(function () {
  2. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  3. try {
  4. var info = gen[key](arg)
  5. var value = info.value
  6. } catch (error) {
  7. reject(error)
  8. return
  9. }
  10. if (info.done) {
  11. resolve(value)
  12. } else {
  13. Promise.resolve(value).then(_next, _throw)
  14. }
  15. }
  16. function _asyncToGenerator(fn) {
  17. return function () {
  18. var self = this,
  19. args = arguments
  20. return new Promise(function (resolve, reject) {
  21. var gen = fn.apply(self, args)
  22. function _next(value) {
  23. asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value)
  24. }
  25. function _throw(err) {
  26. asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err)
  27. }
  28. _next(undefined)
  29. })
  30. }
  31. }
  32. var __vite_style__ = document.createElement('style')
  33. __vite_style__.innerHTML =
  34. '._live-detail_17dsu_1 ._introduction_17dsu_1{color:#7a7a7a;line-height:.61333rem;padding-bottom:.21333rem}._live-detail_17dsu_1 .van-tabs__wrap{margin-bottom:.4rem}._live-detail_17dsu_1 .van-button--disabled{opacity:.9}._live-detail_17dsu_1 ._tips_17dsu_12{background-color:#fff;border-radius:.26667rem;margin:.37333rem .32rem;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding)}._live-detail_17dsu_1 ._tips_17dsu_12 h3{display:flex;font-size:.37333rem;font-weight:500;color:#333;line-height:1}._live-detail_17dsu_1 ._tips_17dsu_12 p{text-align:justify;padding-top:.24rem;font-size:.32rem;color:#7a7a7a;line-height:.61333rem}._live-detail_17dsu_1 ._tips_17dsu_12 .van-icon{margin-right:.16rem}._live-detail_17dsu_1 ._btnMore_17dsu_35{display:flex;justify-content:space-around}._live-detail_17dsu_1 ._btnMore_17dsu_35 .van-button{width:60%}\n'
  35. document.head.appendChild(__vite_style__)
  36. System.register(
  37. [
  38. './index-legacy.91b80b61.js',
  39. './index-legacy.f9759ffc.js',
  40. './index-legacy.34e07a99.js',
  41. './index-legacy.595c24c3.js',
  42. './vendor-legacy.09f20d09.js',
  43. './orderStatus-legacy.6131dfb6.js',
  44. './index-legacy.fa4145a4.js',
  45. './index-legacy.53480b15.js',
  46. './index-legacy.69ca4eed.js',
  47. './index-legacy.f25f109a.js',
  48. './index-legacy.f25f109a4.js',
  49. './index-legacy.f25f109a2.js',
  50. './icon_teacher-legacy.e765b7f7.js',
  51. './icon_timer2-legacy.b6c78faa.js',
  52. './icon-jiaozi-legacy.dd5ed0e2.js',
  53. './index-legacy.f25f109a8.js'
  54. ],
  55. function (exports) {
  56. 'use strict'
  57. var CoursePlanStep,
  58. SectionDetail,
  59. UserDetail,
  60. request,
  61. postMessage,
  62. defineComponent,
  63. dayjs,
  64. Toast,
  65. Dialog,
  66. createVNode,
  67. Icon,
  68. createTextVNode,
  69. Button,
  70. orderStatus,
  71. onSubmitZero,
  72. ColHeader,
  73. ColSticky
  74. return {
  75. setters: [
  76. function (module) {
  77. CoursePlanStep = module.C
  78. },
  79. function (module) {
  80. SectionDetail = module.S
  81. },
  82. function (module) {
  83. UserDetail = module.U
  84. },
  85. function (module) {
  86. request = module.r
  87. postMessage = module.p
  88. },
  89. function (module) {
  90. defineComponent = module.d
  91. dayjs = module.g
  92. Toast = module.T
  93. Dialog = module.D
  94. createVNode = module.a
  95. Icon = module.K
  96. createTextVNode = module.j
  97. Button = module.B
  98. },
  99. function (module) {
  100. orderStatus = module.o
  101. onSubmitZero = module.a
  102. },
  103. function (module) {
  104. ColHeader = module.C
  105. },
  106. function (module) {
  107. ColSticky = module.C
  108. },
  109. function () {},
  110. function () {},
  111. function () {},
  112. function () {},
  113. function () {},
  114. function () {},
  115. function () {},
  116. function () {}
  117. ],
  118. execute: function execute() {
  119. var introduction = '_introduction_17dsu_1'
  120. var tips = '_tips_17dsu_12'
  121. var btnMore = '_btnMore_17dsu_35'
  122. var styles = {
  123. 'live-detail': '_live-detail_17dsu_1',
  124. introduction: introduction,
  125. tips: tips,
  126. btnMore: btnMore
  127. }
  128. var iconTips =
  129. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAASNQTFRFAAAA/wAA/4AA/6pV/5kz/4Ar/4BA/49A/445/4BA/4xA/4VD/4pA/4U9/4lA/4g7/4M+/4Y5/4Y9/4VA/4g+/4U9/4g8/4Y8/4Q+/4U//4U9/4g8/4Y+/4c9/4Y9/4c8/4c+/4c+/4U9/4Y+/4Y9/4Y8/4c+/4Y+/4c9/4Y9/4Y8/4Y9/4c9/4Y9/4Y8/4Y+/4U+/4U9/4c9/4Y8/4U+/4Y9/4c8/4Y8/4Y+/4Y9/4Y+/4c+/4c9/4Y9/4c+/4Y9/4Y9/4Y8/4c9/4Y9/4Y8/4Y9/4U9/4c9/4Y8/4c9/4Y9/4Y9/4Y9/4c9/4Y8/4Y+/4Y9/4Y9/4U8/4Y9/4Y9/4Y9/4Y8/4Y9/4Y9/4Y8/4Y9/4Y9/4Y9/4c9/4Y8/4Y9/4Y9qWZ60gAAAGB0Uk5TAAECAwUGEBASFBQXGBkcHiUoKiwtLi83OkFLTU5TVFVXYmRnaXJzdH1+h42Ok5SUlZeXmJmgoaWlp6qusLGys7u+w8rL0NbW19jZ3d7j5OTn7O3t8vP19/j5+fr7/P3+TBv5LQAAAThJREFUOMvF1OszQkEYx/FK6KakXMpBSDfkknIJSYUuKIVOl+P7//8VXmiOc057mDHTeF7t85vP7uzu7KzFMrE6eY3/jhQebD8Lf7IMdMtJvynx5oaMapjzik2oBdxnEonjO6AVEhmpD4Wlr/HiNfSlcRPsIG99t5tdOkGjsZb4WNcGawolqwFFYE+f7ELEgIq0Z/XJzAtFfeIYkDHu4IiBQxeEYewwEoR1QRTGzhKAqC6IgceIPBDTBXFwG5Eb4v+JUmKU0rS2LGJE1qa9AKXpNCJnU9FeQpW6T/TEfHWqatMjLX6saXrquEHNJTKuGg21SYD8LCgZkiqyX2JSV3bNwqvpU0EdSNY//QJzGwujidMr2/MmqA7tm7P9w4vbN3g0QUXtjvMmaGo5lq88vcutyvlOYEIf2ydPMlkWBCFozgAAAABJRU5ErkJggg=='
  130. var liveDetail = exports(
  131. 'default',
  132. defineComponent({
  133. name: 'LiveDetail',
  134. data: function data() {
  135. var query = this.$route.query
  136. return {
  137. joinRoom: query.joinRoom, // 原生传递过来的参数,判断是否进入直播间
  138. recomUserId: query.recomUserId, // 推荐人id
  139. groupId: query.groupId,
  140. courseId: query.classId,
  141. live: {}
  142. }
  143. },
  144. computed: {
  145. userInfo: function userInfo() {
  146. var _planList$, _planList$2
  147. var live = this.live
  148. var planList = live.planList || []
  149. var startTime =
  150. ((_planList$ = planList[0]) === null ||
  151. _planList$ === void 0
  152. ? void 0
  153. : _planList$.startTime) || new Date()
  154. var endTime =
  155. ((_planList$2 = planList[0]) === null ||
  156. _planList$2 === void 0
  157. ? void 0
  158. : _planList$2.endTime) || new Date()
  159. return {
  160. headUrl: live.avatar,
  161. username:
  162. live.userName ||
  163. '\u6E38\u5BA2'.concat(live.teacherId || ''),
  164. startTime:
  165. ''
  166. .concat(dayjs(startTime).format('YYYY-MM-DD'), ' ')
  167. .concat(dayjs(startTime).format('HH:mm'), '~')
  168. .concat(dayjs(endTime).format('HH:mm')) || '',
  169. buyNum: live.studentCount,
  170. lessonPrice: live.coursePrice,
  171. lessonNum: live.courseNum,
  172. lessonDesc: live.courseIntroduce,
  173. lessonCoverUrl:
  174. live.backgroundPic || live.backgroundPicTemplate,
  175. lessonName: live.courseGroupName,
  176. auditVersion: live.auditVersion || 0,
  177. isDegree: live.degreeFlag ? true : false,
  178. isTeacher: live.teacherFlag ? true : false
  179. }
  180. },
  181. courseInfo: function courseInfo() {
  182. var tempArr = []
  183. var coursePlanList = this.live.planList || []
  184. coursePlanList.forEach(function (item) {
  185. var startTime = item.startTime || new Date()
  186. var endTime = item.endTime || new Date()
  187. tempArr.push({
  188. courseTime: ''
  189. .concat(dayjs(startTime).format('YYYY-MM-DD'), ' ')
  190. .concat(dayjs(startTime).format('HH:mm'), '~')
  191. .concat(dayjs(endTime).format('HH:mm')),
  192. coursePlan: item.plan,
  193. roomUid: item.roomUid,
  194. liveState: item.liveState,
  195. id: item.courseId
  196. })
  197. })
  198. return tempArr || []
  199. },
  200. salesEndDate: function salesEndDate() {
  201. var live = this.live
  202. return dayjs(live.salesEndDate || new Date()).format(
  203. 'YYYY-MM-DD'
  204. )
  205. },
  206. liveStatus: function liveStatus() {
  207. var _this = this
  208. var coursePlanList = this.live.planList || []
  209. var tempObj = { status: false, liveStatus: 0, roomUid: '' }
  210. coursePlanList.forEach(function (item) {
  211. if (item.courseId === Number(_this.courseId)) {
  212. tempObj.status = true
  213. tempObj.liveStatus = item.liveStatus
  214. tempObj.roomUid = item.roomUid
  215. }
  216. })
  217. return tempObj
  218. }
  219. },
  220. mounted: function mounted() {
  221. var _this2 = this
  222. return _asyncToGenerator(
  223. /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
  224. return regeneratorRuntime.wrap(function _callee$(_context) {
  225. while (1) {
  226. switch ((_context.prev = _context.next)) {
  227. case 0:
  228. _context.next = 2
  229. return _this2._init()
  230. case 2:
  231. case 'end':
  232. return _context.stop()
  233. }
  234. }
  235. }, _callee)
  236. })
  237. )()
  238. },
  239. methods: {
  240. _init: function _init() {
  241. var _this3 = this
  242. return _asyncToGenerator(
  243. /*#__PURE__*/ regeneratorRuntime.mark(function _callee2() {
  244. var res
  245. return regeneratorRuntime.wrap(
  246. function _callee2$(_context2) {
  247. while (1) {
  248. switch ((_context2.prev = _context2.next)) {
  249. case 0:
  250. _context2.prev = 0
  251. _context2.next = 3
  252. return request.get(
  253. '/api-student/courseGroup/queryLiveCourseInfo',
  254. { params: { groupId: _this3.groupId } }
  255. )
  256. case 3:
  257. res = _context2.sent
  258. _this3.live = res.data || {}
  259. _context2.next = 9
  260. break
  261. case 7:
  262. _context2.prev = 7
  263. _context2.t0 = _context2['catch'](0)
  264. case 9:
  265. case 'end':
  266. return _context2.stop()
  267. }
  268. }
  269. },
  270. _callee2,
  271. null,
  272. [[0, 7]]
  273. )
  274. })
  275. )()
  276. },
  277. onJoinRoom: function onJoinRoom() {
  278. var _this4 = this
  279. return _asyncToGenerator(
  280. /*#__PURE__*/ regeneratorRuntime.mark(function _callee3() {
  281. var res, result, coursePlanList, tempObj
  282. return regeneratorRuntime.wrap(
  283. function _callee3$(_context3) {
  284. while (1) {
  285. switch ((_context3.prev = _context3.next)) {
  286. case 0:
  287. _context3.prev = 0
  288. _context3.next = 3
  289. return request.get(
  290. '/api-student/courseGroup/queryLiveCourseInfo',
  291. { params: { groupId: _this4.groupId } }
  292. )
  293. case 3:
  294. res = _context3.sent
  295. result = res.data || {}
  296. coursePlanList = result.planList || []
  297. tempObj = {}
  298. coursePlanList.forEach(function (item) {
  299. if (
  300. item.courseId === Number(_this4.courseId)
  301. ) {
  302. tempObj = item
  303. }
  304. })
  305. console.log(tempObj, _this4.live, 'tempObj')
  306. if (tempObj && tempObj.liveState === 1) {
  307. postMessage({
  308. api: 'joinLiveRoom',
  309. content: {
  310. roomId: tempObj.roomUid,
  311. teacherId: _this4.live.teacherId
  312. }
  313. })
  314. } else if (tempObj && tempObj.liveState === 2) {
  315. setTimeout(function () {
  316. Toast('课程已结束')
  317. }, 100)
  318. } else {
  319. setTimeout(function () {
  320. Toast('课程尚未开始,请耐心等候')
  321. }, 100)
  322. }
  323. _context3.next = 14
  324. break
  325. case 12:
  326. _context3.prev = 12
  327. _context3.t0 = _context3['catch'](0)
  328. case 14:
  329. case 'end':
  330. return _context3.stop()
  331. }
  332. }
  333. },
  334. _callee3,
  335. null,
  336. [[0, 12]]
  337. )
  338. })
  339. )()
  340. },
  341. onBuy: function onBuy() {
  342. var _this5 = this
  343. return _asyncToGenerator(
  344. /*#__PURE__*/ regeneratorRuntime.mark(function _callee5() {
  345. var live, res, result
  346. return regeneratorRuntime.wrap(
  347. function _callee5$(_context5) {
  348. while (1) {
  349. switch ((_context5.prev = _context5.next)) {
  350. case 0:
  351. _context5.prev = 0
  352. live = _this5.live
  353. orderStatus.orderObject.orderType = 'LIVE'
  354. orderStatus.orderObject.orderName = '直播课购买'
  355. orderStatus.orderObject.orderDesc = '直播课购买'
  356. orderStatus.orderObject.actualPrice =
  357. live.coursePrice
  358. orderStatus.orderObject.recomUserId =
  359. _this5.recomUserId
  360. orderStatus.orderObject.orderNo = ''
  361. orderStatus.orderObject.orderList = [
  362. {
  363. orderType: 'LIVE',
  364. goodsName: '直播课购买',
  365. courseGroupId: live.courseGroupId,
  366. courseGroupName: live.courseGroupName,
  367. coursePrice: live.coursePrice,
  368. teacherName:
  369. live.userName ||
  370. '\u6E38\u5BA2'.concat(
  371. live.teacherId || ''
  372. ),
  373. teacherId: live.teacherId,
  374. avatar: live.avatar,
  375. courseInfo: _this5.courseInfo,
  376. recomUserId: _this5.recomUserId
  377. }
  378. ] // 判断是否是0无订单
  379. if (!(live.coursePrice <= 0)) {
  380. _context5.next = 13
  381. break
  382. }
  383. _context5.next = 12
  384. return onSubmitZero(function () {
  385. Dialog.alert({
  386. message: '领取成功',
  387. confirmButtonText: '确定',
  388. confirmButtonColor: '#01C1B5'
  389. }).then(function () {
  390. _this5._init()
  391. })
  392. })
  393. case 12:
  394. return _context5.abrupt('return')
  395. case 13:
  396. _context5.next = 15
  397. return request.post(
  398. '/api-student/userOrder/getPendingOrder',
  399. {
  400. data: {
  401. goodType: 'LIVE',
  402. bizId: _this5.groupId
  403. }
  404. }
  405. )
  406. case 15:
  407. res = _context5.sent
  408. result = res.data
  409. if (result) {
  410. Dialog.confirm({
  411. title: '提示',
  412. message:
  413. '您有一个未支付的订单,是否继续支付?',
  414. confirmButtonColor: '#269a93',
  415. cancelButtonText: '取消订单',
  416. confirmButtonText: '继续支付'
  417. })
  418. .then(
  419. /*#__PURE__*/ _asyncToGenerator(
  420. /*#__PURE__*/ regeneratorRuntime.mark(
  421. function _callee4() {
  422. return regeneratorRuntime.wrap(
  423. function _callee4$(_context4) {
  424. while (1) {
  425. switch (
  426. (_context4.prev =
  427. _context4.next)
  428. ) {
  429. case 0:
  430. orderStatus.orderObject.orderNo =
  431. result.orderNo
  432. orderStatus.orderObject.actualPrice =
  433. result.actualPrice
  434. orderStatus.orderObject.discountPrice =
  435. result.discountPrice
  436. _this5.routerTo()
  437. case 4:
  438. case 'end':
  439. return _context4.stop()
  440. }
  441. }
  442. },
  443. _callee4
  444. )
  445. }
  446. )
  447. )
  448. )
  449. .catch(function () {
  450. Dialog.close() // 只用取消订单,不用做其它处理
  451. _this5.cancelPayment(result.orderNo)
  452. })
  453. } else {
  454. _this5.routerTo()
  455. }
  456. _context5.next = 22
  457. break
  458. case 20:
  459. _context5.prev = 20
  460. _context5.t0 = _context5['catch'](0)
  461. case 22:
  462. case 'end':
  463. return _context5.stop()
  464. }
  465. }
  466. },
  467. _callee5,
  468. null,
  469. [[0, 20]]
  470. )
  471. })
  472. )()
  473. },
  474. routerTo: function routerTo() {
  475. var live = this.live
  476. this.$router.push({
  477. path: '/orderDetail',
  478. query: {
  479. orderType: 'LIVE',
  480. courseGroupId: live.courseGroupId
  481. }
  482. })
  483. },
  484. cancelPayment: function cancelPayment(orderNo) {
  485. return _asyncToGenerator(
  486. /*#__PURE__*/ regeneratorRuntime.mark(function _callee6() {
  487. return regeneratorRuntime.wrap(
  488. function _callee6$(_context6) {
  489. while (1) {
  490. switch ((_context6.prev = _context6.next)) {
  491. case 0:
  492. _context6.prev = 0
  493. _context6.next = 3
  494. return request.post(
  495. '/api-student/userOrder/orderCancel',
  496. { data: { orderNo: orderNo } }
  497. )
  498. case 3:
  499. _context6.next = 7
  500. break
  501. case 5:
  502. _context6.prev = 5
  503. _context6.t0 = _context6['catch'](0)
  504. case 7:
  505. case 'end':
  506. return _context6.stop()
  507. }
  508. }
  509. },
  510. _callee6,
  511. null,
  512. [[0, 5]]
  513. )
  514. })
  515. )()
  516. }
  517. },
  518. render: function render() {
  519. var _this6 = this
  520. return createVNode(
  521. 'div',
  522. { class: [styles['live-detail'], 'mb12'] },
  523. [
  524. createVNode(ColHeader, null, null),
  525. createVNode(
  526. UserDetail,
  527. { userInfo: this.userInfo, showBuy: false },
  528. null
  529. ),
  530. createVNode(
  531. SectionDetail,
  532. { border: true },
  533. {
  534. default: function _default() {
  535. return [
  536. createVNode('p', { class: styles.introduction }, [
  537. _this6.userInfo.lessonDesc
  538. ])
  539. ]
  540. }
  541. }
  542. ),
  543. createVNode(
  544. SectionDetail,
  545. {
  546. title: '课程列表',
  547. icon: 'courseList',
  548. border: true,
  549. contentStyle: { paddingTop: '0' }
  550. },
  551. {
  552. default: function _default() {
  553. return [
  554. _this6.courseInfo.length > 0 &&
  555. createVNode(
  556. CoursePlanStep,
  557. {
  558. courseInfo: _this6.courseInfo,
  559. courseId: Number(_this6.courseId) || 0
  560. },
  561. null
  562. )
  563. ]
  564. }
  565. }
  566. ),
  567. createVNode('div', { class: styles.tips }, [
  568. createVNode('h3', null, [
  569. createVNode(Icon, { name: iconTips, size: 15 }, null),
  570. createTextVNode('\u6E29\u99A8\u63D0\u793A')
  571. ]),
  572. createVNode('p', null, [
  573. createTextVNode(
  574. '1\u3001\u8BE5\u76F4\u64AD\u8BFE\u7A0B\u9500\u552E\u622A\u6B62\u540E\uFF0C\u62A5\u540D\u4EBA\u6570\u82E5\u5C11\u4E8E'
  575. ),
  576. this.live.mixStudentNum || 0,
  577. createTextVNode(
  578. '\u4EBA\u5C06\u53D6\u6D88\u5F00\u8BFE\uFF0C\u5DF2\u8D2D\u4E70\u5B66\u5458\u4ED8\u8D39\u91D1\u989D\u5C06\u81EA\u52A8\u8FD4\u8FD8\uFF0C\u8BF7\u60A8\u653E\u5FC3\u8D2D\u4E70\uFF1B'
  579. ),
  580. createVNode('br', null, null),
  581. createTextVNode(
  582. '2\u3001\u76F4\u64AD\u8BFE\u6559\u5B66\u8BA1\u5212\u4E2D\u7684\u4E0A\u8BFE\u65F6\u95F4\u4E3A\u8001\u5E08\u9884\u8BA1\u65F6\u95F4\uFF0C\u5B9E\u9645\u4E0A\u8BFE\u65F6\u95F4\u4EE5\u8001\u5E08\u5F00\u542F\u76F4\u64AD\u65F6\u95F4\u4E3A\u51C6\uFF1B'
  583. ),
  584. createVNode('br', null, null),
  585. createTextVNode(
  586. '3\u3001\u82E5\u60A8\u9519\u8FC7\u8001\u5E08\u76F4\u64AD\uFF0C\u53EF\u901A\u8FC7\u89C6\u9891\u56DE\u653E\u89C2\u770B\u5B8C\u6574\u8BFE\u7A0B\u3002'
  587. )
  588. ])
  589. ]),
  590. this.courseInfo.length > 0 &&
  591. this.live.existBuy !== 1 && // <Sticky offsetBottom={0} position="bottom">
  592. // <div class={['btnGroup', styles.btnMore]}>
  593. // <Button block round type="primary" onClick={this.onBuy}>
  594. // {this.live.coursePrice <= 0 ? '免费领取' : `立即购买`}
  595. // </Button>
  596. // </div>
  597. // </Sticky>
  598. createVNode(
  599. ColSticky,
  600. { position: 'bottom', background: 'white' },
  601. {
  602. default: function _default() {
  603. return [
  604. createVNode(
  605. 'div',
  606. { class: ['btnGroup', styles.btnMore] },
  607. [
  608. createVNode(
  609. Button,
  610. {
  611. block: true,
  612. round: true,
  613. type: 'primary',
  614. onClick: _this6.onBuy
  615. },
  616. {
  617. default: function _default() {
  618. return [
  619. _this6.live.coursePrice <= 0
  620. ? '免费领取'
  621. : '\u7ACB\u5373\u8D2D\u4E70'
  622. ]
  623. }
  624. }
  625. )
  626. ]
  627. )
  628. ]
  629. }
  630. }
  631. ),
  632. this.joinRoom == '1' &&
  633. this.liveStatus.liveStatus !== 2 && // <Sticky offsetBottom={0} position="bottom">
  634. // <div class={['btnGroup']} style={{ paddingTop: '12px' }}>
  635. // <Button block round type="primary" onClick={this.onJoinRoom}>
  636. // 进入直播间
  637. // </Button>
  638. // </div>
  639. // </Sticky>
  640. createVNode(
  641. ColSticky,
  642. { position: 'bottom', background: 'white' },
  643. {
  644. default: function _default() {
  645. return [
  646. createVNode(
  647. 'div',
  648. {
  649. class: ['btnGroup'],
  650. style: { paddingTop: '12px' }
  651. },
  652. [
  653. createVNode(
  654. Button,
  655. {
  656. block: true,
  657. round: true,
  658. type: 'primary',
  659. onClick: _this6.onJoinRoom
  660. },
  661. {
  662. default: function _default() {
  663. return [
  664. createTextVNode(
  665. '\u8FDB\u5165\u76F4\u64AD\u95F4'
  666. )
  667. ]
  668. }
  669. }
  670. )
  671. ]
  672. )
  673. ]
  674. }
  675. }
  676. )
  677. ]
  678. )
  679. }
  680. })
  681. )
  682. }
  683. }
  684. }
  685. )
  686. })()