details.html 120 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822
  1. <!-- +---------------------------------------------------------------------- -->
  2. <!-- | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -->
  3. <!-- +---------------------------------------------------------------------- -->
  4. <!-- | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. -->
  5. <!-- +---------------------------------------------------------------------- -->
  6. <!-- | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -->
  7. <!-- +---------------------------------------------------------------------- -->
  8. <!-- | Author: CRMEB Team <admin@crmeb.com> -->
  9. <!-- +---------------------------------------------------------------------- -->
  10. {extend name="public/container"}
  11. {block name="title"}{$title}{/block}
  12. {block name="head_top"}
  13. <link rel="stylesheet" type="text/css" href="{__WAP_PATH}zsff/css/video-js.min.css" />
  14. <script src="{__WAP_PATH}zsff/js/video.min.js"></script>
  15. <script src="{__WAP_PATH}zsff/js/zh-CN.js"></script>
  16. <link rel="stylesheet" href="{__PLUG_PATH}vue-photo-preview/skin.css">
  17. <script src="{__PLUG_PATH}vue-photo-preview/vue-photo-preview.js"></script>
  18. <style>
  19. body {
  20. padding-bottom: 1rem;
  21. padding-bottom: calc(1rem + constant(safe-area-inset-bottom));
  22. padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  23. }
  24. .video-js .vjs-big-play-button {
  25. top: 50%;
  26. left: 50%;
  27. transform: translate(-50%, -50%);
  28. }
  29. .navCon {
  30. position: relative;
  31. padding: 0 0.3rem;
  32. }
  33. .swiper-details .swiper-nav .free {
  34. position: absolute;
  35. font-size: 0.2rem;
  36. color: #fff;
  37. left: 67%;
  38. top: 0;
  39. margin-top: -0.5rem;
  40. animation: stone linear 1s infinite alternate;
  41. -webkit-animation: free linear 1s infinite alternate;
  42. }
  43. .swiper-details .swiper-nav .free .freeCon {
  44. width: 1.1rem;
  45. height: 0.4rem;
  46. border-radius: 0.05rem;
  47. background-color: #ea2f2f;
  48. position: relative;
  49. left: 0.5rem
  50. }
  51. .swiper-details .swiper-nav .free .freeCon:after {
  52. content: "";
  53. width: 0;
  54. height: 0;
  55. border-left: 0.1rem solid transparent;
  56. border-right: 0.1rem solid transparent;
  57. border-top: 0.13rem solid #ea2f2f;
  58. position: absolute;
  59. bottom: -0.1rem;
  60. left: 50%;
  61. margin-left: -0.1rem;
  62. }
  63. @keyframes free {
  64. from {
  65. transform: scale(1);
  66. }
  67. to {
  68. transform: scale(0.9);
  69. }
  70. }
  71. @-webkit-keyframes stone {
  72. from {
  73. transform: scale(1);
  74. }
  75. to {
  76. transform: scale(0.9);
  77. }
  78. }
  79. /*这里开始*/
  80. .video_footer_img {
  81. width: 0.4rem;
  82. height: 0.4rem;
  83. margin-right: auto;
  84. margin-left: auto;
  85. }
  86. .video_footer_img img {
  87. width: 100%;
  88. height: 100%;
  89. display: block;
  90. }
  91. .video_footer_img2 {
  92. width: 0.4rem;
  93. height: 0.4rem;
  94. margin-right: auto;
  95. margin-left: auto;
  96. }
  97. .video_footer_img2 img {
  98. width: 100%;
  99. height: 100%;
  100. display: block;
  101. }
  102. .video_footer_tit {
  103. font-weight: 400;
  104. font-size: 0.18rem;
  105. line-height: .36rem;
  106. color: #666;
  107. }
  108. .video_footer_left {
  109. width: .9rem;
  110. height: 1rem;
  111. line-height: 1rem;
  112. text-align: center;
  113. }
  114. .video_footer_left .cont {
  115. display: inline-block;
  116. vertical-align: middle;
  117. font-weight: 400;
  118. font-size: .18rem;
  119. line-height: .36rem;
  120. color: #666;
  121. }
  122. .video_footer_btn {
  123. -webkit-flex: 1;
  124. flex: 1;
  125. height: 0.76rem;
  126. border-radius: 37px;
  127. }
  128. .video_footer_btn_left {
  129. width: 50%;
  130. height: 100%;
  131. border-radius: 37px 0px 0px 37px;
  132. background: #FF6B00;
  133. }
  134. .video_footer_btn_right {
  135. width: 50%;
  136. height: 100%;
  137. border-radius: 0px 37px 37px 0px;
  138. /* background: linear-gradient(90deg, rgba(64, 157, 255, 1) 0%, rgba(30, 133, 251, 1) 100%); */
  139. background-color: #191C6E;
  140. }
  141. .video_footer_btn_left_pic {
  142. font-size: 0.28rem;
  143. line-height: .22rem;
  144. color: #fff;
  145. text-align: center;
  146. }
  147. .video_footer_btn_left_num {
  148. font-size: 0.2rem;
  149. line-height: .2rem;
  150. color: #fff;
  151. text-align: center;
  152. }
  153. .video_footer_btn_left_pic+.video_footer_btn_left_num {
  154. margin-top: .09rem;
  155. }
  156. footer .video_footer_btn .on {
  157. width: 100% !important;
  158. border-radius: 37px !important;
  159. }
  160. video {
  161. width: 100%
  162. }
  163. .labelItem {
  164. font-size: 0.24rem;
  165. color: #999;
  166. font-weight: 400;
  167. background-color: #F2F8FF;
  168. padding: 0.04rem 0.1rem;
  169. border-radius: 0.06rem;
  170. color: #191C6E;
  171. }
  172. .catalogue {
  173. background-color: #fff;
  174. }
  175. .video-listn {
  176. background-color: #fff;
  177. }
  178. .teacher {
  179. margin-top: .16rem;
  180. background-color: #fff;
  181. }
  182. .teacher .teacher-hd {
  183. padding: .2rem .3rem 0;
  184. font-weight: bold;
  185. font-size: .3rem;
  186. line-height: .42rem;
  187. color: #333;
  188. }
  189. .teacher .teacher-bd {
  190. display: -webkit-box;
  191. display: -webkit-flex;
  192. display: flex;
  193. -webkit-box-align: center;
  194. -webkit-align-items: center;
  195. align-items: center;
  196. padding: .28rem .3rem .3rem;
  197. }
  198. .teacher .teacher-bd .img {
  199. width: 1.1rem;
  200. height: 1.1rem;
  201. border-radius: 50%;
  202. object-fit: cover;
  203. }
  204. .teacher .teacher-bd .text {
  205. -webkit-box-flex: 1;
  206. -webkit-flex: 1;
  207. flex: 1;
  208. min-width: 0;
  209. margin-right: .08rem;
  210. margin-left: .2rem;
  211. }
  212. .teacher .teacher-bd .name {
  213. overflow: hidden;
  214. white-space: nowrap;
  215. text-overflow: ellipsis;
  216. font-weight: bold;
  217. font-size: .3rem;
  218. line-height: .42rem;
  219. color: #282828;
  220. }
  221. .teacher .teacher-bd .label {
  222. display: -webkit-box;
  223. display: -webkit-flex;
  224. display: flex;
  225. -webkit-box-align: center;
  226. -webkit-align-items: center;
  227. align-items: center;
  228. margin-top: .06rem;
  229. }
  230. .teacher .teacher-bd .label .cell {
  231. height: .34rem;
  232. padding: 0 .12rem;
  233. border-radius: .04rem;
  234. background-color: #fff7e6;
  235. font-size: .22rem;
  236. line-height: .34rem;
  237. color: #feb720;
  238. }
  239. .teacher .teacher-bd .label .cell~.cell {
  240. margin-left: .1rem;
  241. }
  242. .teacher .teacher-bd .attr {
  243. margin-top: .09rem;
  244. font-size: .22rem;
  245. line-height: .37rem;
  246. color: #385270;
  247. }
  248. .teacher .teacher-bd .iconfont {
  249. font-size: .2rem;
  250. color: #999;
  251. }
  252. .teacher-section {
  253. border-top: .14rem solid #f5f5f5;
  254. }
  255. .teacher-table {
  256. display: -webkit-box;
  257. display: -webkit-flex;
  258. display: flex;
  259. -webkit-box-align: center;
  260. -webkit-align-items: center;
  261. align-items: center;
  262. height: 1.5rem;
  263. }
  264. .teacher-table .item {
  265. -webkit-box-flex: 1;
  266. -webkit-flex: 1;
  267. flex: 1;
  268. position: relative;
  269. min-width: 0;
  270. font-size: 0.24rem;
  271. text-align: center;
  272. color: #999999;
  273. }
  274. .teacher-table .item:last-child::before {
  275. content: "";
  276. position: absolute;
  277. top: 50%;
  278. left: 0;
  279. width: 0.02rem;
  280. height: 0.4rem;
  281. background-color: #e8e8e8;
  282. -webkit-transform: translateY(-50%);
  283. transform: translateY(-50%);
  284. }
  285. .teacher-table .item .learn {
  286. font-size: 0;
  287. }
  288. .teacher-table .item .learn span {
  289. font-size: .24rem;
  290. }
  291. .teacher-table .item .learn span:nth-child(2) {
  292. font-weight: bold;
  293. font-size: .28rem;
  294. }
  295. .teacher-table>div:last-child>div:first-child {
  296. margin-bottom: 0.06rem;
  297. }
  298. .teacher-table .num {
  299. font-size: 0.38rem;
  300. color: #333333;
  301. }
  302. .teacher-table img {
  303. width: 0.5rem;
  304. height: 0.5rem;
  305. border: 2px solid #FFFFFF;
  306. border-radius: 50%;
  307. margin-left: -0.15rem;
  308. -webkit-box-sizing: border-box;
  309. box-sizing: border-box;
  310. background-color: #191C6E;
  311. vertical-align: middle;
  312. object-fit: cover;
  313. pointer-events: none;
  314. -webkit-touch-callout: none;
  315. }
  316. .teacher-detail-wrap {
  317. padding: 0 0.3rem 0.3rem;
  318. }
  319. .teacher-detail-wrap a {
  320. display: block;
  321. padding: 0.3rem;
  322. border-radius: 0.04rem;
  323. background-color: #f9fafc;
  324. }
  325. .teacher-detail-wrap .iconfont {
  326. color: #666666;
  327. }
  328. .teacher-detail-wrap .detail-hd {
  329. display: -webkit-box;
  330. display: -webkit-flex;
  331. display: flex;
  332. -webkit-box-align: center;
  333. -webkit-align-items: center;
  334. align-items: center;
  335. }
  336. .teacher-detail-wrap .detail-hd .head {
  337. width: 0.9rem;
  338. height: 0.9rem;
  339. border-radius: 50%;
  340. overflow: hidden;
  341. }
  342. .teacher-detail-wrap .detail-hd img {
  343. display: block;
  344. width: 100%;
  345. height: 100%;
  346. object-fit: cover;
  347. }
  348. .teacher-detail-wrap .detail-hd .text {
  349. -webkit-box-flex: 1;
  350. -webkit-flex: 1;
  351. flex: 1;
  352. min-width: 0;
  353. margin: 0 0.18rem;
  354. font-weight: bold;
  355. font-size: 0.3rem;
  356. color: #282828;
  357. }
  358. .teacher-detail-wrap .detail-hd span {
  359. display: inline-block;
  360. height: 0.34rem;
  361. padding: 0 0.12rem;
  362. border-radius: 0.1rem;
  363. background-color: #FFF0E5;
  364. font-weight: normal;
  365. font-size: 0.2rem;
  366. line-height: 0.34rem;
  367. color: #FF6B00;
  368. }
  369. .teacher-detail-wrap .detail-hd span~span {
  370. margin-left: .1rem;
  371. }
  372. .teacher-detail-wrap .detail-bd {
  373. margin-top: 0.2rem;
  374. font-size: 0.26rem;
  375. line-height: 0.38rem;
  376. color: #666666;
  377. }
  378. .scroll-section {
  379. display: -webkit-box;
  380. display: -webkit-flex;
  381. display: flex;
  382. -webkit-box-align: center;
  383. -webkit-align-items: center;
  384. align-items: center;
  385. margin-top: 0.14rem;
  386. background-color: #FFFCF6;
  387. font-size: 0.24rem;
  388. }
  389. .scroll-section .label {
  390. width: 2rem;
  391. padding-left: 0.75rem;
  392. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAADgklEQVRYR+2ZQXbaMBCG/zFdkFXJCaqcoOkJCpu+mk3TE4ScoOQEISdIcoLQE6Td4Pe6SXKCkhNEvQFZNRuYPsmykRQbY6CVF2UHNvKn8a9/RiPCX/hwIrrMuADhEMAdtXBKH+R0F4+iXQxij8GJOGNg5IzLmNEeDqgnZ9s+b2fAfCs6/IwbAN0iKGJ8pr781ghgI4EbEDoZEANfoSJL+KJ+Y+C8FUs38hvQbx3hAgk8ETCkWI7niRgRcNYI4BIJPFALg2yBNQa4TAJRG0N7YdUF5kQMGLgGY0p76BUt0tqSWCUBX5J1gRcTcQfCez1OCbQG5kQcMzCoXAOMjvHW7FZHAtsC80QcMWmnSZkZV62+HNrjEk/EkAkXlbDeDcoFfAlsC6z+P5+Iy8xZ1HffDmmRiEcAogZw7gJV/6kriWw8RxqAjGJ5kF1TwJx/AXpVEAAkxVKucR82BTYOpJ7x2rdEBziKZe1FuAp8U2AtDcvDVQKK+nJfS8SO8L8C5kQIVRwxYdaK5UnRpHWUf2MKwhsNCpyoZBQE2Il8gRPkLpH5cvrD9yiWR0GAffsqK4z0mwCUKegPtbEfBNhodEzAsWFxnMCWyCIRqo5+m1tcCA1b9iV9jVZ5ebAIa7uyNKoSUSuWL7KtrluAWz0Rxn1o4KVGLeuyo+wBT4MCK7DFROSyKLNVJ7mF1LABzis0auFd0Wb1P3BZel4nNdvFV+Ml4SWGpyiW+SbWynZLlwAegi467w0029ZMcfOYtQbK0rNd0KtWQbAIzxNxTdm2jHEf9WVhA2YxET+zbZmeVAhbszOcKR17FMs7f/E2pviZJyIvfFZ1hJwiPmh5+UMc8hwjZkh/V5y7Q1rALzUesoBfta3KrnlbpF9RX+qNchANVwG/cBAT3cYC284ARh7dFNiqlqpmbmrSGUUY0Ud5VXX/Oqm5oGBf2l26+XQcZOPOjz4KSF9VaY+iLrBvd0UOkvXWBsxr9NbShrXeX+XRJlxSLM+Lol0X2GsGFiaT2o0T04tTnXTdlTHgU3qFE7+WrQts9fkeqI3uTtqtZi+mGiHjvDVquAkY2dGuC6zHvhWdVYc3tSPs7LfSzufLaBNOVardBLhqIW8FnEWEnzEG8MmZDONSLfLGHcrkMk6b0Qp8qW1rBo069nLyf0G0ATxRG6JRB4uOHNLmh5KEssCVxwpVmvWv/wGVY//ZbDJkGgAAAABJRU5ErkJggg==") 0.3rem center/0.26rem 0.22rem no-repeat;
  393. color: #FEB720;
  394. }
  395. .scroll-section .swiper-container {
  396. position: relative;
  397. -webkit-box-flex: 1;
  398. -webkit-flex: 1;
  399. flex: 1;
  400. min-width: 0;
  401. height: 0.62rem;
  402. padding-left: 0.16rem;
  403. line-height: 0.62rem;
  404. }
  405. .scroll-section .swiper-container::before {
  406. content: "";
  407. position: absolute;
  408. top: 50%;
  409. left: 0;
  410. width: 1px;
  411. height: 0.24rem;
  412. border-left: 1px solid #999999;
  413. -webkit-transform: translateY(-50%);
  414. transform: translateY(-50%);
  415. }
  416. .process-section {
  417. margin-top: .14rem;
  418. background-color: #FFFFFF;
  419. }
  420. .process-section .title {
  421. display: -webkit-box;
  422. display: -webkit-flex;
  423. display: flex;
  424. -webkit-box-align: center;
  425. -webkit-align-items: center;
  426. align-items: center;
  427. height: .86rem;
  428. padding-right: .3rem;
  429. padding-left: .3rem;
  430. font-size: .28rem;
  431. color: #282828;
  432. }
  433. .process-section .list {
  434. display: -webkit-box;
  435. display: flex;
  436. -webkit-box-pack: justify;
  437. justify-content: space-between;
  438. -webkit-box-align: center;
  439. align-items: center;
  440. height: 1.1rem;
  441. padding-right: .3rem;
  442. padding-left: .3rem;
  443. border-top: 1px solid #EEEEEE;
  444. }
  445. .process-section .list .item {
  446. padding-right: 0 !important;
  447. }
  448. .process-section .list .item~.item {
  449. padding-left: .67rem;
  450. border: none !important;
  451. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAoCAYAAACrUDmFAAAGKklEQVRoQ91a3W8U1xX/nXvvrGcnXhwEdgIlKSp22sSO8ceWGKsJS1pBhKhUVeC3PvSp/TP2L8hLnvoQ5SlShJGiSCiv3lAFTDS7yDYmFnaiQojs2vhz2a/ZmXuqY60j4jhpsBdp4nncPXPv/Z3f+b5DiNFz586dRLVaPeC6rtFa16Moqi0tLVXPnj0b7vaYtNsXm/ne2NiYOXLkSLJYLLYrpY4rpVJhGAaO4ywHQfDA87yVq1evhtls1j7tvrEAODMzkyqVSseIqI+ZzzHzrwGUieiutfZTIrrjuu5GT09P8IsEODEx0QGgJ4qiM8z8VwCdAKoA7jLzNQDjxph7xpilp2UyFgz6vv8yEb0J4AyAtwEcBxAx8woRfc3M4wAE6NTTMhkLgIVC4ai19pRS6g8A/sjMXQBaAIjPlffCZCwATkxMPBcEwQtKqd8DuAwgDeAwgCSAcC9MxgIgM6tcLpfwPO+3xpjzzDxMRN0AjuyVyVgAlMgoIG/evPm81volx3HS1to/S1TdK5OxAbgFstlMxgrgs2AydgCbzWQsATaTydgCbBaTsQbYDCYFIGWzWbp48aIuFoucyWQiIuKdilpmpnw+b+S/a9euRT9W3YtcLpfTIpfJZKQa4Z9YU42OjtLly5cxOjqKkZGRTfkn999tniyXyyt05coV3draajo6OtwwDLlSqZR/rP/yfd8B4MnmrutWuru76zsdXNqf9vZ21xhD8/PzdalGdlKcHHxubs5ZX1/XjuNQqVSyDx8+DEZGRqLtCt5NngyC4J4wMmitdYlIkmzAzN8CWFpYWNi4cOFCTTYaGxtzU6nUQSJql+rCWivsPLLWLq2trS2eP3++1DAnMzc351UqlcNRFL0cRdFzjbZnWSn1oK+vb10Uks1m1aVLlwwzH6zVasdlb7EkIloHcD+VSi13dnaK8r7X//1cJoloWowsiqJZAfgegFZmPkpEa9KaWGtva62nBwYGluTgvu8LqLRSqr9RXSSY+WsiKgRBkDt9+vR/RG52dvZAuVwWYP3W2j8R0a8AbACYAPDxxsbGXWFyenraIaLWIAh6rbV/AfAqESlmvsfMn4RhOHHo0KG1rq6uTQVvN9f/V/EAWAYwB2CVfN8vyGYAXiSiR0IYgByA6wMDA/dl8Xw+30lEF5g5A+CUWCgzywIi92E6nZ4SOenroih6Xdoea630dSeI6DGAfzPze8Vi8WYmkwny+bwrJZjW+k1r7T8axbUweBvA+0R03XGc+Z6eHnn3Bw8z68nJSXGpAQB/AyBdiCjzQMOSqg2yasLgQwCJxp8C8AsiyjHzp4ODgwIChULhNQCXGgC7mVmq/HkAnxHRvwYHB/MiNz4+fkxrPaSUkr5OiubfAKgz8+cA3k0mk9dlxpJMJsWPjxljziil/m6tHSDaDOiTRPShrGuM+aq3t3e1GQCvM7P0Xm1KqRVmvk1E0mB+x6Dv+8LEOwCGAPxOGASwII2oMeajvr4+sXlMTU29EASBjB3eICIB+RIzB0opH8AHWmu/t7e3msvlki0tLS8mEolTRCSK6xb6AMwQ0Sda61ue5z3o6uoS896biRYKhX8y8wFmPqaUEpPIh2E4Y639ZmhoaHODycnJg2EYnmBmAdcLQKLpV0T0pdZ66uTJk4sid+PGjaQx5rAx5hVr7TAAGSKJX89GUfR5Op0Wk7eNFOJ6nndCa/2WdPBEpInogSi2ra1tdnV1tZxOpyUCf/fsKsj4vv+6Ukp88GhD2zOlUmmhXq9XttKFjPPET2u1mvhpVyOK3q/VagsAVoaHhytyiq3oGEVRR71ef03ekciotf7vTozcunXrkOM4rzDzYfErIlomopn+/v5H29PPrtOE7/ttURSZlpYWcVrrum5R/OTJvLV18MePH7uJRKJVKUXFYrGsta5uz1sie+7cuRal1OZ8k4jqnudVOzs7ZUr2vfmmKK5UKqW01glZ01obLC4uFrfS0xZ1P5e57aONzUS/kxPH6bfdMPfkcCrWAHfL3JPjxdgC3CtzW1YYS4DNYC62AJvFXCwBNpO52AFsNnOxAvgsmIsVwH0/ut/3ly/7/vps31+A7vsr7H3/EcJWSH8Wn5H8D2fpbyp9zLJtAAAAAElFTkSuQmCC") left center/.28rem .2rem no-repeat;
  452. }
  453. .process-section .list .item span {
  454. display: inline-block;
  455. box-sizing: border-box;
  456. vertical-align: middle;
  457. font-size: .26rem;
  458. line-height: .37rem;
  459. color: #282828;
  460. }
  461. .process-section .list .item span:first-child {
  462. width: .28rem;
  463. height: .28rem;
  464. border: 1px solid #282828;
  465. border-radius: 50%;
  466. margin-right: .06rem;
  467. font-size: .22rem;
  468. line-height: .24rem;
  469. text-align: center;
  470. color: #282828;
  471. }
  472. .thematic-details .poster {
  473. position: fixed;
  474. top: 15%;
  475. left: 15%;
  476. width: 70%;
  477. z-index: 60
  478. }
  479. .thematic-details .poster img {
  480. width: 100%
  481. }
  482. .thematic-details .poster p {
  483. color: #eee;
  484. font-size: 14px;
  485. margin-left: 25%
  486. }
  487. .certificate-image {
  488. position: fixed;
  489. top: 50%;
  490. left: 50%;
  491. z-index: 56;
  492. width: 6rem;
  493. -webkit-transform: translate(-50%, -50%);
  494. transform: translate(-50%, -50%);
  495. }
  496. .evaluate-section .head {
  497. display: -webkit-box;
  498. display: flex;
  499. -webkit-box-pack: justify;
  500. justify-content: space-between;
  501. -webkit-box-align: center;
  502. align-items: center;
  503. padding: .33rem .3rem .13rem;
  504. }
  505. .evaluate-section .score {
  506. display: -webkit-box;
  507. display: flex;
  508. -webkit-box-align: center;
  509. align-items: center;
  510. }
  511. .evaluate-section .score div:first-child {
  512. font-size: .28rem;
  513. color: #ff6b00;
  514. }
  515. .evaluate-section .score span {
  516. margin-right: .05rem;
  517. font-weight: bold;
  518. font-size: .44rem;
  519. }
  520. .evaluate-section .score div:last-child {
  521. width: 1.7rem;
  522. height: .42rem;
  523. border-radius: .21rem;
  524. margin-left: .15rem;
  525. background-color: #f5f5f5;
  526. font-size: .24rem;
  527. line-height: .42rem;
  528. text-align: center;
  529. color: #999;
  530. }
  531. .evaluate-section .head button {
  532. width: 1.6rem;
  533. height: .56rem;
  534. border-radius: .28rem;
  535. background: #191C6E;
  536. font-size: .26rem;
  537. color: #fff;
  538. }
  539. .dialog {
  540. position: fixed;
  541. top: 50%;
  542. right: .85rem;
  543. left: .85rem;
  544. z-index: 56;
  545. display: none;
  546. max-height: 90%;
  547. padding: .5rem 0;
  548. border-radius: .12rem;
  549. background-color: #FFFFFF;
  550. transform: translateY(-50%);
  551. text-align: center;
  552. font-size: .3rem;
  553. color: #333333;
  554. opacity: 0;
  555. }
  556. .dialog.show {
  557. display: block;
  558. opacity: 1;
  559. }
  560. .dialog img {
  561. width: 3.54rem;
  562. height: 3.54rem;
  563. margin-bottom: .2rem;
  564. vertical-align: middle;
  565. object-fit: contain;
  566. }
  567. a[href^="tel"] {
  568. color: #191C6E;
  569. }
  570. </style>
  571. {/block}
  572. {block name="content"}
  573. <div v-cloak id="app" class="thematic-details">
  574. {if !$subscribe && $is_official_account_switch}
  575. <div class="follow acea-row row-between-wrapper" v-if="topFocus">
  576. <div class="picTxt">点击“立即关注”即可关注公众号</div>
  577. <div>
  578. <div class="followBnt" @click="is_code=true">立即关注</div>
  579. <span class="iconfont iconguanbi2" @click="topFocus = false"></span>
  580. </div>
  581. </div>
  582. {/if}
  583. <div class="swiper-details">
  584. <div class="banner slider-banner">
  585. <ul class="swiper-wrapper">
  586. <li class="swiper-slide" v-for="swiper in swiperlist">
  587. <img :src="swiper" />
  588. </li>
  589. </ul>
  590. <div class="swiper-pagination"></div>
  591. </div>
  592. <div class="successTip" v-if="barrageStatus">
  593. <div class="picTxt acea-row row-middle" v-for="(item,index) in Barragelist" v-show="num==index">
  594. <div class="pictrue"><img :src="item.avatar"></div>
  595. <div class="acea-row row-middle" style="flex: 1;overflow: hidden;white-space: nowrap;">
  596. <div class="name line1">{{item.nickname}}</div>
  597. <div v-text="item.status_name" style="flex: 1;overflow: hidden;text-overflow: ellipsis;"></div>
  598. </div>
  599. </div>
  600. </div>
  601. <div class="swiper">
  602. <div v-if="special_validity == -1" class="validity">
  603. <template v-if="special.validity">课程有效期为{{ special.validity }}天,过期后需重新购买哦!</template>
  604. <template v-else>课程永久有效哦!</template>
  605. </div>
  606. <div v-else-if="special_validity == 0" class="validity">课程永久有效哦!</div>
  607. <div v-else-if="special_validity > 0" class="validity">
  608. 课程有效期剩余{{ special_validity | validityFormat }},过期后需重新购买哦!</div>
  609. <div class="name" v-text="special.title"
  610. style="padding:0.25rem 0.3rem 0;font-size:0.32rem;line-height:0.5rem;color:#333333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;">
  611. 加载中
  612. </div>
  613. <div class="swiper-int">
  614. <div class="swiper-int-top">
  615. <div class="swiper-int-top-left">
  616. <div v-if="special.label.length" class="attr">
  617. <div v-for="item in special.label">{{item}}</div>
  618. </div>
  619. </div>
  620. <div class="acea-row row-middle" style="margin-top: .14rem;">
  621. <div class="pin-money" v-if="is_pay==false">
  622. <span class="price">¥<b>{{ special.is_pink ? special.pink_money : special.money }}</b></span>
  623. <!-- <span class="vip-price">¥{{ special.member_money }}</span>
  624. <img class="vip-price-icon" src="{__WAP_PATH}zsff/images/vip.png"> -->
  625. </div>
  626. <div class="pin-money" v-else v-show="is_pay==false">拼课价<span class="money">¥{{special.pink_money}}</span></div>
  627. </div>
  628. </div>
  629. <div class="collect" @click="createSharePoster">
  630. <div class="iconfont iconfenxiang"></div>
  631. <div>分享</div>
  632. </div>
  633. <div class="collect" @click="collect">
  634. <div :class="['iconfont', special.collect ? 'iconshoucang2' : 'iconshoucang11']"></div>
  635. <div>{{special.collect ? '已收藏': '收藏'}}</div>
  636. </div>
  637. </div>
  638. </div>
  639. <!-- <template v-if="special.service_code">
  640. <div class="pinTip2 acea-row row-between-wrapper" v-if="is_pay || isMember && special.member_pay_type==0">
  641. <div class="reminder line1">和小伙伴一起学习,有老师答疑哦~</div>
  642. <div class="chatBnt acea-row row-center-wrapper" @click=" open = false ">加入群聊</div>
  643. </div>
  644. </template> -->
  645. <div class="teacher-section">
  646. <div class="teacher-table">
  647. <div class="item">
  648. <div class="num">{{ count }}</div>
  649. <div>总节数</div>
  650. </div>
  651. <div class="item">
  652. <div>
  653. <template v-for="(item, index) in record.record">
  654. <img v-if="index < 5" :key="index" :src="item.avatar">
  655. </template>
  656. </div>
  657. <div class="learn"><span>已有</span><span>{{ record.recordCoujnt }}</span><span>人学习</span></div>
  658. </div>
  659. </div>
  660. <div v-if="lecturer" class="teacher-detail-wrap">
  661. <a :href="'{:url('merchant/teacher_detail')}' + '?id=' + special.lecturer_id">
  662. <div class="detail-hd">
  663. <div class="head">
  664. <img :src="lecturer.lecturer_head">
  665. </div>
  666. <div class="text">
  667. <div>{{ lecturer.lecturer_name }}</div>
  668. <div v-if="lecturer.label.length">
  669. <template v-for="(item, index) in lecturer.label">
  670. <span v-if="index < 3" :key="index">{{ item }}</span>
  671. </template>
  672. </div>
  673. </div>
  674. <div class="iconfont iconxiangyou"></div>
  675. </div>
  676. </a>
  677. </div>
  678. </div>
  679. <!-- 关联资料 -->
  680. <div v-if="materialList.length" class="material">
  681. <a v-for="item in materialList" :key="item.id" :href="'{:url('special/data_details')}?id=' + item.id">
  682. <div>
  683. <img :src="item.image" alt="">
  684. </div>
  685. <div>
  686. <div>{{ item.title }}</div>
  687. <div v-if="item.pay_type" class="money">¥<span>{{ item.money }}</span></div>
  688. <div v-else>免费</div>
  689. <div>
  690. <div>{{ item.ficti + item.sales }}人已下载</div>
  691. <button type="button">去下载</button>
  692. </div>
  693. </div>
  694. </a>
  695. </div>
  696. <div v-if="pinkIngList.length && is_pay==false" class="scroll-section">
  697. <div class="label">已拼{{ scrollData.length }}件</div>
  698. <div id="scroll" class="swiper-container">
  699. <div class="swiper-wrapper">
  700. <div v-for="(item, index) in scrollData" :key="index" class="swiper-slide">{{ item.nickname }}拼团成功
  701. </div>
  702. </div>
  703. </div>
  704. </div>
  705. <div class="list" v-if="pinkIngList.length && is_pay==false">
  706. <div class="item acea-row row-middle" v-for="item in pinkIngList">
  707. <div class="pictrue"><img :src="item.avatar"></div>
  708. <div class="name line1" v-html="item.nickname"></div>
  709. <div class="left">
  710. <div>还差<span>{{item.num}}人</span>成团</div>
  711. <div class="time">剩余{{item.difftime.hour}}:{{item.difftime.minute}}:{{item.difftime.second}}</div>
  712. </div>
  713. <a class="acea-row row-center-wrapper link" href="javascript:;" @click="goPink(item.id,item.uid)">
  714. 去拼单
  715. <span class="iconfont iconxiangyou"></span>
  716. </a>
  717. </div>
  718. </div>
  719. <div v-if="special.is_pink" class="process-section">
  720. <div class="title">拼团玩法</div>
  721. <div class="list">
  722. <div class="item">
  723. <span>1</span>
  724. <span>开团/参团</span>
  725. </div>
  726. <div class="item">
  727. <span>2</span>
  728. <span>邀请好友</span>
  729. </div>
  730. <div class="item">
  731. <span>3</span>
  732. <span>满员成团</span>
  733. </div>
  734. </div>
  735. </div>
  736. <!-- 导航栏 -->
  737. <div ref="list" class="swiper-nav">
  738. <div class="navCon acea-row row-middle">
  739. <template v-if="special.type === 4">
  740. <div v-for="nav in liveNavlist" :key="nav.value" :class="{ on: active === nav.value }" class="item" @click="active = nav.value">
  741. {{ nav.title }}
  742. </div>
  743. </template>
  744. <template v-else-if="special.type === 5">
  745. <div v-for="nav in cloumnNavlist" :key="nav.value" :class="{ on: active === nav.value }" class="item" @click="active = nav.value">
  746. {{ nav.title }}<span v-if="nav.value === 5">({{ evaluateWhole }})</span></div>
  747. </template>
  748. <template v-else>
  749. <div v-for="nav in otherNavlist" :key="nav.value" :class="{ on: active === nav.value }" class="item" @click="active = nav.value">
  750. {{ nav.title }}<span v-if="nav.value === 5">({{ evaluateWhole }})</span></div>
  751. </template>
  752. </div>
  753. </div>
  754. <!-- 详情 -->
  755. <div v-show="active === 2" class="swiper-conter" v-html="special.content"></div>
  756. <template v-if="special.type === 4">
  757. <!-- 回放目录 -->
  758. <div v-show="active === 1" class="replay-directory">
  759. <ul v-if="liveTaskList.length">
  760. <li v-for="(item, index) in liveTaskList" :key="index" :class="{ active: RecordId === item.RecordId }" class="item"
  761. @click="playBackRecord(item.RecordId)">
  762. <div class="label">回放</div>
  763. <div class="name">{{ index | serial }} |
  764. {{ item.playback_name || special.title }}
  765. </div>
  766. <div></div>
  767. </li>
  768. </ul>
  769. <div class="foot">
  770. <span v-show="liveLoading" class="fa fa-spinner loadingpic"></span>
  771. </div>
  772. </div>
  773. </template>
  774. <template v-else>
  775. <div v-show="active === 1">
  776. <div ref="list">
  777. <div v-if="special.sum && special.type != 5" class="special-tip">
  778. 已更新至{{ special.quantity }}节/共{{ special.sum }}节</div>
  779. <!-- 专栏目录 -->
  780. <ul v-if="special.type === 5" class="parent-catalogue">
  781. <template v-for="specialItem in otherTaskList">
  782. <li :key="specialItem.id" :class="{ active: specialItem.active }" @click="show(specialItem)">
  783. <div class="parent-title">
  784. <div class="name">{{ specialItem.title }}</div>
  785. <div :class="[specialItem.active ? 'iconxiangshang' : 'iconxiangxia', 'iconfont']">
  786. </div>
  787. </div>
  788. <ul v-if="specialItem.special_task.length" class="catalogue">
  789. <li v-for="(item, index) in specialItem.special_task" :key="item.id" @click.stop="play(item)">
  790. <div>
  791. <img v-if="item.type == 1 || item.light_type == 1" src="{__WAP_PATH}zsff/images/media1.png">
  792. <img v-else-if="item.type == 2 || item.light_type == 2" src="{__WAP_PATH}zsff/images/media2.png">
  793. <img v-else-if="item.type == 3 || item.light_type == 3" src="{__WAP_PATH}zsff/images/media3.png">
  794. </div>
  795. <div class="text">
  796. <div class="title">{{ index >= 9 ? index + 1 : '0' + (index + 1) }} |
  797. {{ item.title }}</div>
  798. <div class="try-progress">
  799. <div v-if="!is_pay && (special.member_pay_type || !isMember) && item.is_free && item.is_try"
  800. class="try">试看</div>
  801. <template v-if="isLogin && (is_pay || (!special.member_pay_type && isMember))">
  802. <div v-if="item.watch && item.watch.percentage" class="progress">
  803. 已学习{{ item.watch.percentage }}%</div>
  804. <div v-else class="progress no">未学习</div>
  805. </template>
  806. </div>
  807. </div>
  808. <div class="status">
  809. <i v-if="item.is_free" :class="[item.pay_status ? 'iconsuozi' : 'iconziyuan2', 'iconfont']"></i>
  810. <span v-else class="free">免费</span>
  811. </div>
  812. </li>
  813. </ul>
  814. </li>
  815. </template>
  816. </ul>
  817. <!-- 专题目录 -->
  818. <ul v-else class="catalogue">
  819. <li v-for="(item, index) in otherTaskList" :key="item.id" @click="play(item)">
  820. <div>
  821. <img v-if="item.type == 1" src="{__WAP_PATH}zsff/images/media1.png">
  822. <img v-else-if="item.type == 2" src="{__WAP_PATH}zsff/images/media2.png">
  823. <img v-else-if="item.type == 3" src="{__WAP_PATH}zsff/images/media3.png">
  824. </div>
  825. <div class="text">
  826. <div class="title">{{ index >= 9 ? index + 1 : '0' + (index + 1) }} | {{ item.title }}
  827. </div>
  828. <div class="try-progress">
  829. <div v-if="!is_pay && (special.member_pay_type || !isMember) && item.is_free && item.is_try" class="try">试看</div>
  830. <template v-if="isLogin && (is_pay || (!special.member_pay_type && isMember))">
  831. <div v-if="item.watch && item.watch.percentage" class="progress">
  832. 已学习{{ item.watch.percentage }}%</div>
  833. <div v-else class="progress no">未学习</div>
  834. </template>
  835. </div>
  836. </div>
  837. <div class="status">
  838. <i v-if="item.is_free" :class="[item.pay_status ? 'iconsuozi' : 'iconziyuan2', 'iconfont']"></i>
  839. <span v-else class="free">免费</span>
  840. </div>
  841. </li>
  842. </ul>
  843. </div>
  844. <p class="loading-line" style="background-color: #ffffff">
  845. <span v-show="otherLoading==true" class="fa fa-spinner loadingpic" style="font-size: 0.4rem"></span>
  846. <span v-text="otherLoadTitle">加载更多</span>
  847. </p>
  848. </div>
  849. </template>
  850. <!-- 专栏套餐 -->
  851. <template v-if="special.type === 5">
  852. <div v-show="active === 6" class="video-list" style="-webkit-overflow-scrolling: touch;">
  853. <div v-if="columnTaskList.length" ref="list">
  854. <div class="video-listn" style="padding:0.3rem 0;">
  855. <div class="item acea-row row-between-wrapper" v-for="vo in columnTaskList" @click="setMeal(vo)">
  856. <div class="pictrue" @click="play(vo)" style="position: relative">
  857. <img :src="vo.image" alt="">
  858. <div class="label">{{specialType[vo.type]}}</div>
  859. </div>
  860. <div class="underline">
  861. <div class="text acea-row row-between row-column">
  862. <div class="name line1" v-text="vo.title" @click="setMeal(vo)"></div>
  863. <div v-if="vo.label.length" class="attr">
  864. <div v-for="item in vo.label">{{item}}</div>
  865. </div>
  866. <template v-if="special.pay_type">
  867. <template v-if="vo.pay_status">
  868. <template v-if="isMember">
  869. <div v-if="vo.member_pay_type" class="price">
  870. ¥{{vo.member_money === '0.00' ? vo.money : vo.member_money}}
  871. </div>
  872. <div v-else class="free">去学习</div>
  873. </template>
  874. <div v-else class="price">¥<span>{{vo.money}}</span></div>
  875. </template>
  876. <div v-else class="free">去学习</div>
  877. </template>
  878. <div v-else class="free">去学习</div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. <p class="loading-line" style="background-color: #ffffff">
  885. <span v-show="columnLoading==true" class="fa fa-spinner loadingpic" style="font-size: 0.4rem"></span>
  886. <span v-text="columnLoadTitle">加载更多</span>
  887. </p>
  888. </div>
  889. </template>
  890. <template v-if="special.type !== 4">
  891. <!-- 练习 -->
  892. <div v-show="active === 3" class="problem-section">
  893. <ul v-if="problemList.length">
  894. <li v-for="item in problemList" :key="item.id">
  895. <div :class="{ lock: !is_pay }" class="title">{{ item.title }}</div>
  896. <div class="group">
  897. <div class="progress">
  898. <div :style="{ width: item.rate + '%' }"></div>
  899. </div>
  900. <div class="people"><span>{{ item.rate + '%' }}</span>{{ item.answer }}人已答题</div>
  901. <a href="javascript:" @click="goQuestion(item)">
  902. <img src="{__WAP_PATH}zsff/images/question07.png">练习
  903. </a>
  904. </div>
  905. </li>
  906. </ul>
  907. </div>
  908. <!-- 考试 -->
  909. <div v-show="active === 4" class="question-section">
  910. <ul v-if="questionList.length">
  911. <li v-for="(item, index) in questionList" :key="item.id" @click="goQuestion(item)">
  912. <div>
  913. <img :src="item.image" alt="">
  914. </div>
  915. <div>
  916. <div>{{ item.title }}</div>
  917. <div>
  918. <div>共{{ item.item_number }}题</div>
  919. <div v-if="is_pay" class="btn">
  920. <img src="{__WAP_PATH}zsff/images/question07.png" alt="">答题
  921. </div>
  922. <div v-else>
  923. <img class="lock" src="{__WAP_PATH}zsff/images/question06.png" alt="">
  924. </div>
  925. </div>
  926. </div>
  927. </li>
  928. </ul>
  929. </div>
  930. <!-- 评价 -->
  931. <div v-show="active === 5" class="evaluate-section">
  932. <div class="head">
  933. <div class="score">
  934. <div><span>{{ evaluateScore }}</span>分</div>
  935. <div>课程评分</div>
  936. </div>
  937. <button type="button" @click="userEvaluate">我要答题</button>
  938. </div>
  939. <evaluate-list :evaluate-list="evaluateList"></evaluate-list>
  940. <div v-if="evaluateLoading" class="loading">
  941. <i class="fa fa-spinner fa-spin"></i>
  942. </div>
  943. <div v-if="evaluateFinished && evaluateList.length" class="finished">已全部加载完</div>
  944. <div v-if="evaluateFinished && !evaluateList.length" class="empty">
  945. <img src="{__WAP_PATH}zsff/images/empty.png" alt="暂无评价">
  946. <div>暂无评价</div>
  947. </div>
  948. </div>
  949. </template>
  950. </div>
  951. <footer class="acea-row row-middle" ref="storeMenu" v-if="is_pay==false && is_gift==false && isPink==false">
  952. <a class="link" href="{:Url('wap/index/index')}">
  953. <div class="cont">
  954. <img src="{__WAP_PATH}zsff/images/special01.png">
  955. <div>首页</div>
  956. </div>
  957. </a>
  958. <a class="link" href="javascript:" @click="customerService">
  959. <div class="cont">
  960. <img src="{__WAP_PATH}zsff/images/special02.png">
  961. <div>客服</div>
  962. </div>
  963. </a>
  964. <!-- <a v-if="(special.pay_type == 1 && special.type == 4) || special.money > 0" class="link" href="javascript:;" @click="OpenPay(1)">
  965. <div class="cont">
  966. <img src="{__WAP_PATH}zsff/images/special03.png">
  967. <div>送朋友</div>
  968. </div>
  969. </a> -->
  970. <div class="wrap">
  971. <div class="video_footer_btn acea-row" :class="special.pay_type == 1 ? '': 'item2'">
  972. <div class="video_footer_btn_left acea-row row-column row-center-wrapper"
  973. v-if="(special.is_pink && ((special.member_pay_type == 1 && isMember == 1) || isMember == 0))" @click="OpenPay(3)">
  974. <span class="video_footer_btn_left_pic">¥{{special.pink_money}}</span>
  975. <span class="video_footer_btn_left_num">{{special.pink_number}}人团</span>
  976. </div>
  977. <div class="video_footer_btn_right acea-row"
  978. :class="(special.is_pink == 0 || (special.is_pink && isMember == 1 && special.member_pay_type == 0)) ? 'on':''"
  979. v-if="special.type == 4">
  980. <span class="acea-row row-center-wrapper video_footer_btn_left_pic" style="flex: 1;" @click="OpenPay(6)"
  981. v-if="special.pay_type == 0 || (special.member_pay_type == 0 && isMember) || is_pay">进入直播间</span>
  982. <!-- <span class="acea-row row-center-wrapper video_footer_btn_left_pic" style="flex: 1;" @click="OpenPay(2)"
  983. v-if="isMember == 1 && special.member_pay_type == 1">¥{{special.member_money}}</span> -->
  984. <span class="acea-row row-center-wrapper video_footer_btn_left_pic" style="flex: 1;" @click="OpenPay(2)"
  985. v-if="isMember == 0 && special.pay_type == 1">去学习</span>
  986. <!-- ¥{{special.money}} -->
  987. </div>
  988. <div class="video_footer_btn_right acea-row"
  989. :class="(special.is_pink == 0 || (special.is_pink && isMember == 1 && special.member_pay_type == 0)) ? 'on':''"
  990. v-if="special.type != 4">
  991. <span v-if="special.pay_type == 0 || (special.member_pay_type == 0 && isMember) || is_pay" @click="OpenPay(5)"
  992. class="acea-row row-center-wrapper video_footer_btn_left_pic" style="flex: 1;">免费学习</span>
  993. <!-- <span v-if="isMember == 1 && special.member_pay_type == 1" @click="OpenPay(2)"
  994. class="acea-row row-center-wrapper video_footer_btn_left_pic" style="flex: 1;">¥{{special.member_money}}</span> -->
  995. <span v-if="isMember == 0 && special.pay_type == 1" @click="OpenPay(2)"
  996. class="acea-row row-center-wrapper video_footer_btn_left_pic" style="flex: 1;">去学习</span>
  997. <!-- ¥{{special.money}} -->
  998. </div>
  999. </div>
  1000. </div>
  1001. </footer>
  1002. <footer class="acea-row row-wrap-all" ref="storeMenu" v-if="is_pay==true && is_gift==false && paid && isPink==false">
  1003. <a class="link" href="{:Url('wap/index/index')}">
  1004. <div class="cont">
  1005. <img src="{__WAP_PATH}zsff/images/special01.png">
  1006. <div>首页</div>
  1007. </div>
  1008. </a>
  1009. <a class="link" href="javascript:;" @click="customerService">
  1010. <div class="cont">
  1011. <img src="{__WAP_PATH}zsff/images/special02.png">
  1012. <div>客服</div>
  1013. </div>
  1014. </a>
  1015. <!-- <a v-if="(special.pay_type == 1 && special.type == 4) || special.money > 0" class="link" href="javascript:;" @click="OpenPay(1)">
  1016. <div class="cont">
  1017. <img src="{__WAP_PATH}zsff/images/special03.png">
  1018. <div>送朋友</div>
  1019. </div>
  1020. </a> -->
  1021. <div class="wrap">
  1022. <div class="video_footer_btn acea-row">
  1023. <div class="video_footer_btn_right acea-row row-column row-center-wrapper on" v-if="special.type != 4" @click="OpenPay(5)">
  1024. <span class="video_footer_btn_left_pic">去学习</span>
  1025. </div>
  1026. <div class="video_footer_btn_right acea-row row-column row-center-wrapper on" v-if="special.type == 4" @click="OpenPay(6)">
  1027. <span class="video_footer_btn_left_pic">进入直播间</span>
  1028. </div>
  1029. </div>
  1030. </div>
  1031. </footer>
  1032. <footer class="acea-row row-wrap-all" v-if="isPink" ref="storeMenu">
  1033. <a class="link" href="{:Url('wap/index/index')}">
  1034. <div class="cont">
  1035. <img src="{__WAP_PATH}zsff/images/special01.png">
  1036. <div>首页</div>
  1037. </div>
  1038. </a>
  1039. <a class="link" href="javascript:;" @click="customerService">
  1040. <div class="cont">
  1041. <img src="{__WAP_PATH}zsff/images/special02.png">
  1042. <div>客服</div>
  1043. </div>
  1044. </a>
  1045. <!-- <a class="link" href="javascript:;" @click="OpenPay(1)">
  1046. <div class="cont">
  1047. <img src="{__WAP_PATH}zsff/images/special03.png">
  1048. <div>送朋友</div>
  1049. </div>
  1050. </a> -->
  1051. <div class="wrap">
  1052. <div class="video_footer_btn acea-row">
  1053. <a class="video_footer_btn_right acea-row row-column row-center-wrapper on" href="javascript:;" @click="goPink(0,uid)">
  1054. <span class="video_footer_btn_left_pic">查看拼课详情</span>
  1055. </a>
  1056. </div>
  1057. </div>
  1058. </footer>
  1059. <footer class="acea-row row-middle" v-if="is_gift" ref="storeMenu">
  1060. <a class="link" href="{:Url('wap/index/index')}">
  1061. <div class="cont">
  1062. <img src="{__WAP_PATH}zsff/images/special01.png">
  1063. <div>首页</div>
  1064. </div>
  1065. </a>
  1066. <a class="link" href="javascript:;" @click="customerService">
  1067. <div class="cont">
  1068. <img src="{__WAP_PATH}zsff/images/special02.png">
  1069. <div>客服</div>
  1070. </div>
  1071. </a>
  1072. <div class="wrap">
  1073. <div class="video_footer_btn acea-row">
  1074. <div class="video_footer_btn_right acea-row row-column row-center-wrapper on" @click="OpenPay(4)">
  1075. <span class="video_footer_btn_left_pic">领取课程</span>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. </footer>
  1080. <!-- 遮罩层 -->
  1081. <div :class="{ mask: dialogShow || password || is_poster || imgSrc || !open }" @touchmove.prevent @click="maskClick"></div>
  1082. <!-- 加入群聊弹窗 -->
  1083. <div :class="{ show: !open }" class="dialog">
  1084. <img :src="special.service_code">
  1085. <div>长按扫一扫</div>
  1086. <div>加客服好友进群哦</div>
  1087. </div>
  1088. <!-- 关注公众号弹窗 -->
  1089. <div class="mask" style="align-items:center;display: flex;" v-show="is_code" @click="is_code=false">
  1090. <img :src="wechat_qrcode" alt="" style="width: 5rem;height: 5rem;margin: 0 auto;">
  1091. </div>
  1092. <!-- 支付弹窗 -->
  1093. <pay-dialog :open.sync="payDialogOpen" :money="money" :now_money="now_money" :special_id="special.id" :link_pay_uid="link_pay_uid"
  1094. :pay_type_num="pay_type_num" :pink-id="pinkId" :is-wechat="isWechat" :is-alipay="is_alipay" :is-balance="is_yue"
  1095. :template-id="templateId" :wxpay-h5="wxpayH5" :is-member="isMember" :member-money="special.member_money" :member-link="memberLink" @change="changeVal">
  1096. </pay-dialog>
  1097. <!-- 登录弹窗 -->
  1098. <base-login :login-show="loginShow" :site-name="site_name" @login-close="loginClose"></base-login>
  1099. <!-- 直播间密码弹窗 -->
  1100. <div :class="{ on: password }" class="password">
  1101. <div class="title">请输入密码</div>
  1102. <input type="password" v-model="qr_password" autocomplete="off">
  1103. <input type="hidden" v-model="studio_pwd" autocomplete="off">
  1104. <div class="psdBnt" @click="goLive">确定</div>
  1105. </div>
  1106. <!-- 分享海报 -->
  1107. <div v-show="is_poster" class="poster">
  1108. <img :src="filename" />
  1109. <p v-show="filename">长按保存,分享朋友</p>
  1110. </div>
  1111. <!-- 完课证书 -->
  1112. <img v-if="imgSrc" :src="imgSrc" class="certificate-image">
  1113. <!-- 评价弹窗 -->
  1114. <evaluate-dialog :dialog-show="dialogShow" :rate-value="rateValue" :image-list="imageList" @rate-change="rateChange" @image-upload="imageUpload"
  1115. @image-delete="imageDelete" @evaluate-submit="evaluateSubmit">
  1116. </evaluate-dialog>
  1117. <!-- 兑换码 -->
  1118. <exchange-guide v-if="isBatch && !is_pay" :href="'{:url('special/exchange')}?special_id=' + special.id">
  1119. </exchange-guide>
  1120. <!-- 分享返佣 -->
  1121. <rebate-guide v-if="rebateMoney && isShareDisplaySwitch" :rebate-money="rebateMoney" @rebate-action="rebateAction">
  1122. </rebate-guide>
  1123. </div>
  1124. {/block}
  1125. {block name='foot'}
  1126. <script type="text/javascript">
  1127. window.overallShare = false;
  1128. require([
  1129. 'vue',
  1130. 'helper',
  1131. 'store',
  1132. 'special-type',
  1133. 'layer',
  1134. 'axios',
  1135. 'components/pay-dialog/index',
  1136. 'swiper',
  1137. 'moment',
  1138. 'components/evaluate-list/index',
  1139. 'components/evaluate-dialog/index',
  1140. 'components/exchange-guide/index',
  1141. 'components/base-login/index',
  1142. 'components/rebate-guide/index',
  1143. 'reg-verify',
  1144. 'quick',
  1145. 'qrcode'
  1146. ], function (Vue, $h, app, specialType, layer, axios, PayDialog, Swiper, moment, evaluateList, evaluateDialog, exchangeGuide, BaseLogin, RebateGuide) {
  1147. var swiperlist = {$swiperlist};
  1148. var special = {$special};
  1149. var pinkId = {$pinkId};
  1150. var site_url = "{$site_url}";
  1151. var orderId = '{$orderId ? $orderId : ""}';
  1152. var link_pay_uid = {$link_pay_uid};
  1153. var wechat_qrcode = '{$code_url}';
  1154. var is_yue = {$is_yue? 'true': 'false'};
  1155. var is_alipay = {$is_alipay? 'true': 'false'};
  1156. var isWechat = {$isWechat? 'true': 'false'};
  1157. var isPay = {$isPay? 'true': 'false'};
  1158. var gift = {$gift};
  1159. var now_money = {$now_money};
  1160. var link_pay = {$link_pay};
  1161. var isPink = {$isPink? 'true': 'false'};
  1162. var BarrageShowTime = {$BarrageShowTime? $BarrageShowTime: 5};
  1163. var barrage_index = {$barrage_index? $barrage_index: 0};
  1164. var uid = {$userInfo['uid']? $userInfo['uid'] : 0};
  1165. var liveInfo = {$liveInfo};
  1166. // 站点名称
  1167. var site_name = '{$Auth_site_name}';
  1168. // 是否是会员
  1169. var isMember = {$is_member};
  1170. // H5微信支付是否开启
  1171. var wxpayH5 = {$is_h5_wechat_payment_switch? 'true': 'false'};
  1172. // H5微信支付回调
  1173. var callback_url = '{$callback_url}';
  1174. // 是否兑换
  1175. var isBatch = {$isBatch? 'true': 'false'};
  1176. var options = {
  1177. captionEl: false,
  1178. fullscreenEl: false,
  1179. zoomEl: false,
  1180. arrowEl: false
  1181. };
  1182. var comment_switch = {$comment_switch};
  1183. var memberLink = "{:url('special/member_recharge')}";
  1184. Vue.use(vuePhotoPreview, options);
  1185. new Vue({
  1186. el: '#app',
  1187. components: {
  1188. 'pay-dialog': PayDialog,
  1189. 'evaluate-list': evaluateList,
  1190. 'evaluate-dialog': evaluateDialog,
  1191. 'exchange-guide': exchangeGuide,
  1192. 'base-login': BaseLogin,
  1193. 'rebate-guide': RebateGuide
  1194. },
  1195. filters: {
  1196. serial: function (value) {
  1197. return value < 9 ? '0' + (value + 1) : value + 1;
  1198. },
  1199. validityFormat: function (value) {
  1200. var result = '';
  1201. var days = Math.floor(value / 60 / 60 / 24);
  1202. var hours = Math.floor(value / 60 / 60 % 24);
  1203. var minutes = Math.floor(value / 60 % 60);
  1204. if (days) {
  1205. result += days + '天';
  1206. }
  1207. if (hours) {
  1208. result += hours + '小时';
  1209. }
  1210. return result + minutes + '分钟';
  1211. }
  1212. },
  1213. data: {
  1214. parentActive: 0,
  1215. site_name: site_name,
  1216. RecordId: '',
  1217. count: 0,
  1218. special: special,
  1219. swiperlist: swiperlist,
  1220. pinkIngList: [],
  1221. otherTaskList: [],
  1222. columnTaskList: [],
  1223. liveTaskList: [],
  1224. cloumnNavlist: [
  1225. {
  1226. title: '目录',
  1227. value: 1
  1228. },
  1229. {
  1230. title: '套餐',
  1231. value: 6
  1232. },
  1233. {
  1234. title: '详情',
  1235. value: 2
  1236. },
  1237. {
  1238. title: '答题',
  1239. value: 5
  1240. }
  1241. ],
  1242. otherNavlist: [
  1243. {
  1244. title: '目录',
  1245. value: 1
  1246. },
  1247. {
  1248. title: '详情',
  1249. value: 2
  1250. },
  1251. {
  1252. title: '答题',
  1253. value: 5
  1254. }
  1255. ],
  1256. liveNavlist: [
  1257. {
  1258. title: '回放目录',
  1259. value: 1
  1260. },
  1261. {
  1262. title: '直播介绍',
  1263. value: 2
  1264. }
  1265. ],
  1266. active: 1,
  1267. open: true,
  1268. payDialogOpen: false, // 是否显示支付弹窗
  1269. loginShow: false,
  1270. is_pay: isPay,
  1271. isMember: isMember,
  1272. otherLoading: false,
  1273. columnLoading: false,
  1274. liveLoading: false,
  1275. otherLoadend: false,
  1276. columnLoadend: false,
  1277. liveLoadend: false,
  1278. otherLoaded: false,
  1279. columnLoaded: false,
  1280. liveLoaded: false,
  1281. pay_type_num: -1,
  1282. pinkId: pinkId || 0,
  1283. pinkInfo: {
  1284. pinkT: {
  1285. difftime: {hour: "00", minute: "00", second: "00"}
  1286. }
  1287. },
  1288. Barragelist: [],
  1289. otherLoadTitle: '上拉加载更多',
  1290. columnLoadTitle: '上拉加载更多',
  1291. liveLoadTitle: '上拉加载更多',
  1292. money: special.money,
  1293. where: {
  1294. page: 1,
  1295. limit: 16,
  1296. special_id: special.id || 0,
  1297. source_id: 0,
  1298. },
  1299. where2: {
  1300. page: 1,
  1301. limit: 16,
  1302. special_id: special.id || 0,
  1303. source_id: 0,
  1304. },
  1305. orderId: null,
  1306. is_gift: false,
  1307. paid: isPay,
  1308. link_pay_uid: 0,
  1309. uid: uid,
  1310. wechat_qrcode: wechat_qrcode,
  1311. is_code: false,
  1312. isWechat: isWechat,
  1313. is_live: special.is_live,
  1314. url: isWechat ? $h.U({c: 'index', a: 'login'}) : $h.U({c: 'login', a: 'phone_check'}),
  1315. isPink: isPink,
  1316. barrageStatus: true,
  1317. num: barrage_index,
  1318. stream_name: liveInfo.stream_name || '',
  1319. password: false,
  1320. liveInfo: liveInfo,
  1321. qr_password: '',
  1322. studio_pwd: liveInfo.studio_pwd,
  1323. is_alipay: is_alipay, //支付宝是否开启
  1324. is_yue: is_yue, //余额是否开启
  1325. now_money: now_money, //余额
  1326. lecturer: null,
  1327. specialType: specialType,
  1328. topFocus: true,
  1329. record: {
  1330. recordCoujnt: 0
  1331. },
  1332. scrollData: [],
  1333. templateId: '',
  1334. problemList: [],
  1335. questionList: [],
  1336. is_poster: false,
  1337. filename: '',
  1338. imgSrc: '',
  1339. wxpayH5: wxpayH5,
  1340. dialogShow: false,
  1341. rateValue: 5, // 评价打分
  1342. imageList: [], // 评价上传图片
  1343. evaluateList: [],
  1344. evaluateLoading: false,
  1345. evaluateFinished: false,
  1346. evaluatePage: 1,
  1347. evaluateLimit: 10,
  1348. evaluateWhole: 0,
  1349. evaluateScore: 0,
  1350. isBatch: isBatch,
  1351. materialList: [],
  1352. isLogin: false,
  1353. special_validity: -1, // -1 未购买显示课程有效期 0 已购买并永久 >0 已购买并有有效期
  1354. rebateMoney: 0,
  1355. isShareDisplaySwitch: {$is_share_display_switch},
  1356. memberLink: memberLink
  1357. },
  1358. watch: {
  1359. pay_type_num: function () {
  1360. this.getSubscribeId();
  1361. }
  1362. },
  1363. created: function () {
  1364. this.userLogin();
  1365. this.getNumberCourses();
  1366. this.addLearningRecords();
  1367. this.getLecturer();
  1368. this.getPinkIngLists();
  1369. this.getProblem();
  1370. this.getSubscribeId();
  1371. this.specialMaterial();
  1372. this.rebateAmount();
  1373. if (this.special.type != 4) {
  1374. if (comment_switch) {
  1375. this.getEvaluateStatus();
  1376. this.getEvaluateList();
  1377. } else {
  1378. if (this.special == 5) {
  1379. for (let i = 0; i < this.cloumnNavlist.length; i++) {
  1380. if (this.cloumnNavlist[i].value == 5) {
  1381. this.cloumnNavlist.splice(i, 1);
  1382. break;
  1383. }
  1384. }
  1385. } else {
  1386. for (let j = 0; j < this.otherNavlist.length; j++) {
  1387. if (this.otherNavlist[j].value == 5) {
  1388. this.otherNavlist.splice(j, 1);
  1389. break;
  1390. }
  1391. }
  1392. }
  1393. }
  1394. }
  1395. },
  1396. mounted: function () {
  1397. var that = this;
  1398. this.$nextTick(function () {
  1399. $h.EventUtil.listenTouchDirection(document, function () {
  1400. if (this.active === 1) {
  1401. if (this.special.type === 4) {
  1402. this.getLiveTask();
  1403. } else {
  1404. this.getCourseList();
  1405. }
  1406. }
  1407. if (this.active === 6) {
  1408. this.getCloumnTask();
  1409. }
  1410. if (this.active === 5) {
  1411. this.getEvaluateList();
  1412. }
  1413. }.bind(this));
  1414. mapleWx($jssdk(), function () {
  1415. this.onMenuShareAll({
  1416. title: that.special.title,
  1417. desc: that.special.abstract,
  1418. imgUrl: that.special.image,
  1419. link: location.href.indexOf('?') == -1 ? location.href + '?spread_uid=' + uid : location.href + '&spread_uid=' + uid,
  1420. });
  1421. });
  1422. setTimeout(function () {
  1423. new Swiper('.banner', {
  1424. pagination: {
  1425. el: '.swiper-pagination'
  1426. },
  1427. autoplay: true,
  1428. observer: true,
  1429. observeParents: true
  1430. });
  1431. }, 500);
  1432. switch (location.hash) {
  1433. case '#tash':
  1434. if (that.special.type != 4) that.active = 1;
  1435. $('body,html').animate({scrollTop: $(that.$refs.list).offset().top}, 800);
  1436. break;
  1437. case '#act1':
  1438. that.active = 0;
  1439. $('body,html').animate({scrollTop: $(that.$refs.list).offset().top}, 800);
  1440. break;
  1441. case '#act2':
  1442. if (that.special.type != 4) that.active = 1;
  1443. $('body,html').animate({scrollTop: $(that.$refs.list).offset().top}, 800);
  1444. break;
  1445. case '#gift':
  1446. that.is_gift = true;
  1447. break;
  1448. case '#link_pay':
  1449. that.link_pay_uid = link_pay_uid;
  1450. break;
  1451. }
  1452. if (gift) that.is_gift = true;
  1453. if (link_pay) that.link_pay_uid = link_pay_uid;
  1454. that.barrage();
  1455. });
  1456. switch (this.special.type) {
  1457. case 5:
  1458. this.getCourseList();
  1459. this.getCloumnTask();
  1460. break;
  1461. case 4:
  1462. this.getLiveTask();
  1463. break;
  1464. case 1:
  1465. case 2:
  1466. case 3:
  1467. case 6:
  1468. this.getCourseList();
  1469. break;
  1470. }
  1471. if (that.pinkId) {
  1472. app.baseGet($h.U({c: 'special', a: 'get_pink_info', q: {pinkId: that.pinkId}}), function (res) {
  1473. that.pinkInfo = res.data.data;
  1474. that.CountDown({name: 'pinkInfo.pinkT', time_name: 'stop_time'});
  1475. }, function (msg) {
  1476. $h.showMsg(msg, function () {
  1477. window.location.href = $h.U({c: 'special', a: 'details', q: {id: that.special.id}});
  1478. });
  1479. });
  1480. }
  1481. app.baseGet($h.U({c: 'special', a: 'groupLists', q: {special_id: special.id}}), function (res) {
  1482. that.scrollData = res.data.data;
  1483. that.$nextTick(function () {
  1484. new Swiper('#scroll', {
  1485. direction: "vertical",
  1486. autoplay: true,
  1487. loop: true,
  1488. observer: true,
  1489. observeParents: true
  1490. });
  1491. });
  1492. }, function (err) {
  1493. console.error(err);
  1494. });
  1495. var width = $('.swiper-conter').width();
  1496. $('.video-ue').each(function (index) {
  1497. var id = "video-ue-" + index, videoUrl = $(this).attr('src');
  1498. $(this).attr('id', id);
  1499. $(this).children('video').attr('src', videoUrl);
  1500. $(this).append("<source src='" + videoUrl + "' type='video/mp4' />")
  1501. $(this).addClass("video-js");
  1502. videojs(id, {}, function () {
  1503. this.width(width);
  1504. this.src(videoUrl);
  1505. });
  1506. });
  1507. if (this.special.type != 4) {
  1508. this.getInspect();
  1509. }
  1510. },
  1511. updated: function () {
  1512. this.$nextTick(function () {
  1513. this.$previewRefresh();
  1514. });
  1515. },
  1516. methods: {
  1517. // 获取登录状态
  1518. userLogin: function () {
  1519. var vm = this;
  1520. app.baseGet($h.U({
  1521. c: 'index',
  1522. a: 'user_login',
  1523. }), function () {
  1524. vm.isLogin = true;
  1525. }, false, true);
  1526. app.baseGet($h.U({
  1527. c: 'special',
  1528. a: 'special_validity',
  1529. q: {
  1530. id: special.id
  1531. }
  1532. }), function (res) {
  1533. vm.special_validity = res.data.data.validity;
  1534. }, function () {
  1535. }, true);
  1536. },
  1537. // 点击我要评价
  1538. userEvaluate: function () {
  1539. var vm = this;
  1540. app.baseGet($h.U({
  1541. c: 'index',
  1542. a: 'user_login',
  1543. }), function () {
  1544. if (!(vm.is_pay || (!vm.special.member_pay_type && vm.isMember))) {
  1545. layer.confirm('购买后即可进行评价,是否购买?', {
  1546. title: false,
  1547. btn: ['购买', '取消'],
  1548. closeBtn: false,
  1549. shadeClose: true,
  1550. scrollbar: false
  1551. }, function (index) {
  1552. vm.payDialogOpen = true;
  1553. layer.close(index);
  1554. });
  1555. return;
  1556. }
  1557. vm.dialogShow = true;
  1558. }, function () {
  1559. layer.confirm('登录后即可操作,是否登录?', {
  1560. title: false,
  1561. btn: ['登录', '取消'],
  1562. closeBtn: false,
  1563. shadeClose: true,
  1564. scrollbar: false
  1565. }, function (index) {
  1566. vm.loginShow = true;
  1567. layer.close(index);
  1568. });
  1569. }, true);
  1570. },
  1571. // 获取评价状态
  1572. getEvaluateStatus: function () {
  1573. app.baseGet($h.U({
  1574. c: 'special',
  1575. a: 'special_reply_data',
  1576. q: {
  1577. special_id: this.special.id
  1578. }
  1579. }), function (res) {
  1580. var resData = res.data;
  1581. if (resData.code === 200) {
  1582. var data = resData.data;
  1583. this.evaluateWhole = data.whole;
  1584. this.evaluateScore = data.score;
  1585. } else {
  1586. $h.pushMsg(resData.msg);
  1587. }
  1588. }.bind(this));
  1589. },
  1590. // 获取评价列表
  1591. getEvaluateList: function () {
  1592. if (this.evaluateLoading || this.evaluateFinished) {
  1593. return;
  1594. }
  1595. this.evaluateLoading = true;
  1596. app.baseGet($h.U({
  1597. c: 'special',
  1598. a: 'special_reply_list',
  1599. q: {
  1600. special_id: this.special.id,
  1601. page: this.evaluatePage++,
  1602. limit: this.evaluateLimit
  1603. }
  1604. }), function (res) {
  1605. var resData = res.data;
  1606. this.evaluateLoading = false;
  1607. if (resData.code === 200) {
  1608. var data = resData.data;
  1609. this.evaluateList = this.evaluateList.concat(data);
  1610. this.evaluateFinished = this.evaluateLimit > data.length;
  1611. } else {
  1612. $h.pushMsg(resData.msg);
  1613. }
  1614. }.bind(this), function () {
  1615. this.evaluateLoading = false;
  1616. }.bind(this));
  1617. },
  1618. // 点击遮罩层
  1619. maskClick: function () {
  1620. this.dialogShow = false;
  1621. this.password = false;
  1622. this.is_poster = false;
  1623. this.open = true;
  1624. this.imgSrc = '';
  1625. },
  1626. // 提交评价
  1627. evaluateSubmit: function (text) {
  1628. var that = this;
  1629. $h.loadFFF();
  1630. app.basePost($h.U({
  1631. c: 'special',
  1632. a: 'user_comment_special',
  1633. q: {
  1634. special_id: this.special.id
  1635. }
  1636. }), {
  1637. satisfied_score: this.rateValue,
  1638. comment: text.trim(),
  1639. pics: this.imageList
  1640. }, function (res) {
  1641. $h.loadClear();
  1642. $h.pushMsg(res.data.msg, function () {
  1643. that.dialogShow = false;
  1644. that.getEvaluateStatus();
  1645. that.evaluateFinished = false;
  1646. that.evaluatePage = 1;
  1647. that.evaluateList = [];
  1648. that.getEvaluateList();
  1649. });
  1650. }, function () {
  1651. $h.loadClear();
  1652. });
  1653. },
  1654. // 删除图片
  1655. imageDelete: function (index) {
  1656. this.imageList.splice(index, 1);
  1657. },
  1658. // 上传图片
  1659. imageUpload: function (file) {
  1660. var formData = new FormData();
  1661. formData.append('file', file);
  1662. $h.loadFFF();
  1663. axios.post("{:url('auth_api/upload')}", formData).then(function (res) {
  1664. var resData = res.data;
  1665. if (resData.code === 200) {
  1666. $h.loadClear();
  1667. this.imageList.push(resData.data.url);
  1668. } else {
  1669. $h.loadClear();
  1670. layer.msg(resData.msg);
  1671. }
  1672. }.bind(this)).catch(function () {
  1673. $h.loadClear();
  1674. });
  1675. },
  1676. // 评分
  1677. rateChange: function (value) {
  1678. this.rateValue = value;
  1679. },
  1680. // 生成分享海报
  1681. createSharePoster: function () {
  1682. var vm = this;
  1683. if (this.filename) {
  1684. this.is_poster = true;
  1685. return;
  1686. }
  1687. Promise.all([
  1688. new Promise(function (resolve, reject) {
  1689. var image = new Image();
  1690. image.crossOrigin = 'anonymous';
  1691. image.src = special.poster_image + '?t=' + new Date().getTime();
  1692. image.onload = function () {
  1693. resolve(image);
  1694. };
  1695. image.onerror = function () {
  1696. reject(new Error('image error'));
  1697. };
  1698. }),
  1699. new Promise(function (resolve, reject) {
  1700. try {
  1701. resolve(new QRCode(document.createElement('div'), site_url));
  1702. } catch (error) {
  1703. reject(error);
  1704. }
  1705. })
  1706. ]).then(function (data) {
  1707. var canvas = document.createElement('canvas');
  1708. var context = canvas.getContext('2d');
  1709. canvas.width = 600;
  1710. canvas.height = 960;
  1711. context.fillStyle = '#FFFFFF';
  1712. context.fillRect(0, 0, 600, 960);
  1713. context.drawImage(data[0], 0, 0, 600, 740);
  1714. context.drawImage(data[1]._el.firstChild, 118, 785, 130, 130);
  1715. context.font = '22px sans-serif';
  1716. context.fillStyle = '#999999';
  1717. var text = '邀您加入' + site_name;
  1718. var list = [];
  1719. var start = 0;
  1720. for (var i = 0; i <= text.length; i++) {
  1721. if (context.measureText(text.slice(start, i)).width > 198) {
  1722. list.push(text.slice(start, i - 1));
  1723. start = i - 1;
  1724. }
  1725. }
  1726. if (start !== text.length) {
  1727. list.push(text.slice(start));
  1728. }
  1729. if (list.length > 3) {
  1730. list.length = 3;
  1731. for (var j = 0; j <= list[2].length; j++) {
  1732. if (context.measureText(list[2].slice(0, j) + '……').width > 198) {
  1733. list[2] = list[2].slice(0, j - 1) + '……';
  1734. break;
  1735. }
  1736. }
  1737. }
  1738. list.push('长按识别或扫码进入');
  1739. for (var k = 0; k < list.length; k++) {
  1740. context.fillText(list[k], 284, 785 + (130 / list.length / 2) + (130 / list.length) * k);
  1741. }
  1742. vm.filename = canvas.toDataURL('image/jpeg');
  1743. vm.is_poster = true;
  1744. canvas = null;
  1745. }).catch(function (error) {
  1746. console.error(error);
  1747. });
  1748. },
  1749. // 是否可以发放证书
  1750. getInspect: function () {
  1751. var that = this;
  1752. $h.loadFFF();
  1753. axios.get($h.U({
  1754. c: 'special',
  1755. a: 'inspect',
  1756. q: {
  1757. special_id: this.special.id
  1758. }
  1759. })).then(function (res) {
  1760. $h.loadClear();
  1761. if (200 == res.data.code) {
  1762. layer.confirm('恭喜您已达到证书发放标准,是否领取?', {
  1763. title: false,
  1764. closeBtn: false,
  1765. btn: ['领取', '取消']
  1766. }, function (index) {
  1767. that.getCertificate();
  1768. layer.close(index);
  1769. });
  1770. }
  1771. }).catch(function () {
  1772. $h.loadClear();
  1773. });
  1774. },
  1775. // 领取证书
  1776. getCertificate: function () {
  1777. $h.loadFFF();
  1778. app.baseGet($h.U({
  1779. c: 'special',
  1780. a: 'getTheCertificate',
  1781. q: {
  1782. special_id: this.special.id
  1783. }
  1784. }), function (res) {
  1785. $h.loadClear();
  1786. layer.msg('领取成功<br>证书制作中…', function () {
  1787. this.getCertificateInfo(res.data.msg);
  1788. }.bind(this));
  1789. }.bind(this), function () {
  1790. $h.loadClear();
  1791. });
  1792. },
  1793. // 获取证书信息
  1794. getCertificateInfo: function (id) {
  1795. $h.loadFFF();
  1796. app.baseGet($h.U({
  1797. c: 'topic',
  1798. a: 'viewCertificate',
  1799. q: {
  1800. id: id,
  1801. obtain: 1
  1802. }
  1803. }), function (res) {
  1804. $h.loadClear();
  1805. this.createCertificate(res.data.data);
  1806. }.bind(this), function (err) {
  1807. $h.loadClear();
  1808. console.error(err);
  1809. });
  1810. },
  1811. // 加载图片
  1812. loadImage: function (path) {
  1813. return new Promise(function (resolve, reject) {
  1814. var image = new Image();
  1815. image.crossOrigin = 'anonymous';
  1816. image.onload = function () {
  1817. resolve(image);
  1818. };
  1819. image.onerror = function () {
  1820. reject('error-image');
  1821. };
  1822. image.src = path + '?' + new Date().getTime();
  1823. });
  1824. },
  1825. // 生成证书图片
  1826. createCertificate: function (certificate) {
  1827. $h.loadFFF();
  1828. Promise.all([
  1829. this.loadImage(certificate.certificate.background),
  1830. this.loadImage(certificate.certificate.qr_code)
  1831. ]).then(function (images) {
  1832. var canvas = document.createElement('canvas');
  1833. var context = canvas.getContext('2d');
  1834. canvas.width = images[0].width;
  1835. canvas.height = images[0].height;
  1836. context.drawImage(images[0], 0, 0);
  1837. context.drawImage(images[1], 220, 557, 160, 160);
  1838. context.fillStyle = 'rgba(255, 255, 255, 1)';
  1839. context.fillRect(220, 724, 160, 36);
  1840. context.font = '20px sans-serif';
  1841. context.textAlign = 'center';
  1842. context.fillStyle = '#666666';
  1843. context.fillText('长按二维码查看', 300, 748);
  1844. context.font = 'bold 34px sans-serif';
  1845. context.fillStyle = '#29466D';
  1846. context.fillText(certificate.realname, 300, 296);
  1847. context.font = '24px sans-serif';
  1848. context.fillText('颁发时间:' + moment(certificate.add_time * 1000).format('YYYY.MM.DD'), 300, 481);
  1849. context.font = '28px sans-serif';
  1850. context.textAlign = 'start';
  1851. context.fillStyle = '#333333';
  1852. for (var i = Math.ceil(certificate.certificate.explain.length % 16); i--;) {
  1853. context.fillText(certificate.certificate.explain.substr(i * 16, 16), 83, i * 40 + 370);
  1854. }
  1855. this.imgSrc = canvas.toDataURL('image/jpeg');
  1856. canvas = null;
  1857. $h.loadClear();
  1858. }.bind(this)).catch(function (error) {
  1859. $h.loadClear();
  1860. console.error(error);
  1861. });
  1862. },
  1863. // 去练习、答题
  1864. goQuestion: function (question) {
  1865. var vm = this;
  1866. app.baseGet($h.U({c: 'index', a: 'user_login'}), function () {
  1867. if (question.is_pay || vm.is_pay) {
  1868. if (question.type == 1) {
  1869. window.location = "{:url('topic/problem_index')}?id=" + question.id;
  1870. } else {
  1871. window.location = "{:url('special/question_index')}?id=" + question.id;
  1872. }
  1873. } else {
  1874. vm.payDialogOpen = true;
  1875. }
  1876. }, function () {
  1877. vm.loginShow = true;
  1878. });
  1879. },
  1880. // 获取练习
  1881. getProblem: function () {
  1882. var that = this;
  1883. $h.loadFFF();
  1884. app.basePost($h.U({
  1885. c: 'Topic',
  1886. a: 'specialTestPaper'
  1887. }), {
  1888. special_id: this.special.id,
  1889. type: 1
  1890. }, function (res) {
  1891. $h.loadClear();
  1892. var questions = res.data.data;
  1893. if (questions.length) {
  1894. if (that.special.type === 5) {
  1895. that.cloumnNavlist.splice(that.cloumnNavlist.length - 1, 0, {
  1896. title: '练习',
  1897. value: 3
  1898. });
  1899. } else {
  1900. that.otherNavlist.splice(that.otherNavlist.length - 1, 0, {
  1901. title: '练习',
  1902. value: 3
  1903. });
  1904. }
  1905. for (var i = questions.length; i--;) {
  1906. questions[i].rate = Math.floor(questions[i].done / questions[i].item_number * 100);
  1907. }
  1908. that.problemList = questions;
  1909. }
  1910. that.getQuestion();
  1911. }, function () {
  1912. $h.loadClear();
  1913. that.getQuestion();
  1914. });
  1915. },
  1916. // 获取考试
  1917. getQuestion: function () {
  1918. var that = this;
  1919. $h.loadFFF();
  1920. app.basePost($h.U({
  1921. c: 'Topic',
  1922. a: 'specialTestPaper'
  1923. }), {
  1924. special_id: this.special.id,
  1925. type: 2
  1926. }, function (res) {
  1927. $h.loadClear();
  1928. var questions = res.data.data;
  1929. if (questions.length) {
  1930. if (that.special.type === 5) {
  1931. that.cloumnNavlist.splice(that.cloumnNavlist.length - 1, 0, {
  1932. title: '考试',
  1933. value: 4
  1934. });
  1935. } else {
  1936. that.otherNavlist.splice(that.otherNavlist.length - 1, 0, {
  1937. title: '考试',
  1938. value: 4
  1939. });
  1940. }
  1941. }
  1942. that.questionList = questions;
  1943. }, function () {
  1944. $h.loadClear();
  1945. });
  1946. },
  1947. // 获取订阅通知模板id
  1948. getSubscribeId: function () {
  1949. if (!this.isWechat) {
  1950. return;
  1951. }
  1952. $h.loadFFF();
  1953. app.baseGet($h.U({
  1954. c: 'special',
  1955. a: 'getTemplateIds',
  1956. q: {
  1957. pay_type_num: this.pay_type_num,
  1958. special_id: this.special.id
  1959. }
  1960. }), function (res) {
  1961. $h.loadClear();
  1962. this.templateId = res.data.msg;
  1963. }.bind(this), function () {
  1964. $h.loadClear();
  1965. });
  1966. },
  1967. show: function (special) {
  1968. // if (special.is_light) {
  1969. // window.location.href = "{:url('special/single_details')}?id=" + special.id;
  1970. // } else {
  1971. // special.active = !special.active;
  1972. // }
  1973. special.active = !special.active;
  1974. },
  1975. // 讲师详情
  1976. getLecturer: function () {
  1977. $h.loadFFF();
  1978. app.baseGet($h.U({
  1979. c: 'auth_api',
  1980. a: 'getLecturer',
  1981. q: {
  1982. mer_id: this.special.mer_id
  1983. }
  1984. }), function (res) {
  1985. $h.loadClear();
  1986. this.lecturer = res.data.data;
  1987. }.bind(this), function () {
  1988. $h.loadClear();
  1989. });
  1990. },
  1991. // 获取浏览人数
  1992. getLearningRecords: function () {
  1993. $h.loadFFF();
  1994. app.baseGet($h.U({
  1995. c: 'Special',
  1996. a: 'learningRecords',
  1997. q: {
  1998. id: this.special.id
  1999. }
  2000. }), function (res) {
  2001. $h.loadClear();
  2002. this.record = res.data.data;
  2003. }.bind(this), function () {
  2004. $h.loadClear();
  2005. });
  2006. },
  2007. // 记录浏览人数
  2008. addLearningRecords: function () {
  2009. $h.loadFFF();
  2010. app.baseGet($h.U({
  2011. c: 'Special',
  2012. a: 'addLearningRecords',
  2013. q: {
  2014. id: this.special.id
  2015. }
  2016. }), function (res) {
  2017. $h.loadClear();
  2018. this.getLearningRecords();
  2019. }.bind(this), function () {
  2020. $h.loadClear();
  2021. });
  2022. },
  2023. // 拼团列表
  2024. getPinkIngLists: function () {
  2025. if (!this.special.is_pink) return;
  2026. $h.loadFFF();
  2027. app.baseGet($h.U({
  2028. c: 'Special',
  2029. a: 'pinkIngLists',
  2030. q: {
  2031. id: this.special.id,
  2032. pinkId: 0
  2033. }
  2034. }), function (res) {
  2035. $h.loadClear();
  2036. this.pinkIngList = res.data.data;
  2037. this.CountDown({name: 'pinkIngList', time_name: "stop_time"});
  2038. }.bind(this), function () {
  2039. $h.loadClear();
  2040. });
  2041. },
  2042. // 专题下章节数量
  2043. getNumberCourses: function () {
  2044. $h.loadFFF();
  2045. app.baseGet($h.U({
  2046. c: 'Special',
  2047. a: 'numberCourses',
  2048. q: {
  2049. id: this.special.id
  2050. }
  2051. }), function (res) {
  2052. $h.loadClear();
  2053. this.count = res.data.data;
  2054. }.bind(this), function () {
  2055. $h.loadClear();
  2056. });
  2057. },
  2058. goLive: function () {
  2059. if (!this.qr_password) return $h.showMsg('请输入密码');
  2060. if (this.qr_password != this.studio_pwd) return $h.showMsg('密码不正确');
  2061. document.cookie = this.stream_name + "studio_pwd" + "=" + this.studio_pwd + ";expires=7200" + ";path=/";
  2062. window.location.href = $h.U({
  2063. c: 'live',
  2064. a: 'index',
  2065. q: {stream_name: this.stream_name, record_id: this.RecordId}
  2066. });
  2067. },
  2068. barrage: function () {
  2069. var that = this;
  2070. if (typeof BarrageShowTime == 'string') BarrageShowTime = parseInt(BarrageShowTime);
  2071. BarrageShowTime = BarrageShowTime * 1000;
  2072. app.baseGet($h.U({
  2073. c: 'special',
  2074. a: 'get_barrage_list',
  2075. q: {special_id: special.id}
  2076. }), function (res) {
  2077. that.$set(that, 'Barragelist', res.data.data);
  2078. that.Barragelist = that.Barragelist || [];
  2079. var len = that.Barragelist.length;
  2080. if (!len) return;
  2081. setInterval(function () {
  2082. that.num = that.num + 1;
  2083. that.num = that.num >= len ? 0 : that.num;
  2084. that.num = that.num < 0 ? 0 : that.num;
  2085. that.barrageStatus = !that.barrageStatus;
  2086. app.baseGet($h.U({c: 'special', a: 'set_barrage_index', q: {index: that.num}}));
  2087. }, BarrageShowTime);
  2088. });
  2089. },
  2090. goPink: function (pink_id, uid) {
  2091. if (uid == this.uid && isPink) {
  2092. window.location.href = $h.U({
  2093. c: 'special',
  2094. a: 'pink',
  2095. q: {pink_id: pinkId, special_id: this.special.id, is_help: 0}
  2096. });
  2097. } else {
  2098. window.location.href = $h.U({
  2099. c: 'special',
  2100. a: 'pink',
  2101. q: {pink_id: pink_id > 0 ? pink_id : pinkId, special_id: this.special.id, is_help: 1}
  2102. });
  2103. }
  2104. },
  2105. follow: function () {
  2106. return $h.openImage(wechat_qrcode);
  2107. },
  2108. getPartakePinkUrl: function () {
  2109. return $h.U({c: 'special', a: 'details', q: {id: this.special.id}});
  2110. },
  2111. pay_order: function (data) {
  2112. this.orderId = data.data.result.orderId || '';
  2113. switch (data.data.status) {
  2114. case "PAY_ERROR":
  2115. case 'ORDER_EXIST':
  2116. case 'ORDER_ERROR':
  2117. this.extendOrder(data.msg);
  2118. break;
  2119. case 'WECHAT_PAY':
  2120. this.wechatPay(data.data.result.jsConfig);
  2121. break;
  2122. case 'WECHAT_H5_PAY':
  2123. this.payDialogOpen = false;
  2124. var callbackUrl = callback_url + '?type=1&id=' + this.special.id;
  2125. var mwebUrl = data.data.result.jsConfig.mweb_url + '&redirect_url=' + encodeURIComponent(callbackUrl);
  2126. window.location.href = mwebUrl;
  2127. break;
  2128. case 'SUCCESS':
  2129. this.successOrder(data.msg);
  2130. break;
  2131. case 'ZHIFUBAO_PAY':
  2132. window.location.href = $h.U({
  2133. m: 'wap',
  2134. c: 'alipay',
  2135. a: 'index',
  2136. q: {info: data.data.result, params: 'special'}
  2137. });
  2138. break;
  2139. }
  2140. },
  2141. wechatPay: function (config) {
  2142. var that = this;
  2143. mapleWx($jssdk(), function () {
  2144. this.chooseWXPay(config, function () {
  2145. that.successOrder();
  2146. }, {
  2147. fail: that.extendOrder,
  2148. cancel: that.extendOrder
  2149. });
  2150. });
  2151. },
  2152. successOrder: function (msg) {
  2153. var that = this;
  2154. $h.showMsg({
  2155. title: msg ? msg : '支付成功',
  2156. icon: 'success',
  2157. success: function () {
  2158. switch (parseInt(that.pay_type_num)) {
  2159. case 1:
  2160. window.location.assign($h.U({
  2161. c: 'special',
  2162. a: 'gift_special',
  2163. q: {
  2164. orderId: that.orderId
  2165. }
  2166. }));
  2167. break;
  2168. case 2:
  2169. that.paid = true;
  2170. that.is_pay = true;
  2171. that.payDialogOpen = false;
  2172. that.updateMaterialStatus();
  2173. break;
  2174. case 3:
  2175. window.location.href = $h.U({c: 'special', a: 'pink', q: {orderId: that.orderId}});
  2176. break;
  2177. }
  2178. }
  2179. });
  2180. app.baseGet($h.U({
  2181. c: 'special',
  2182. a: 'special_validity',
  2183. q: {
  2184. id: special.id
  2185. }
  2186. }), function (res) {
  2187. that.special_validity = res.data.data.validity;
  2188. }, function () {
  2189. }, true);
  2190. },
  2191. updateMaterialStatus: function () {
  2192. var that = this;
  2193. that.otherLoading = false;
  2194. that.otherLoaded = false;
  2195. that.where.page = 1;
  2196. that.$set(that, 'otherTaskList', []);
  2197. that.getCourseList();
  2198. },
  2199. extendOrder: function (msg) {
  2200. var that = this;
  2201. if (typeof msg === 'object') {
  2202. if (msg.errMsg === 'chooseWXPay:cancel') {
  2203. msg = '微信支付取消';
  2204. } else {
  2205. msg = '支付失败';
  2206. }
  2207. } else {
  2208. msg = '支付失败';
  2209. }
  2210. $h.pushMsg(msg, function () {
  2211. that.payDialogOpen = false;
  2212. if (that.orderId) {
  2213. app.baseGet($h.U({c: 'special', a: 'del_order', q: {orderId: that.orderId}}));
  2214. }
  2215. });
  2216. },
  2217. setMeal: function (item) {
  2218. var that = this;
  2219. if (that.special.type == 5) {
  2220. location.href = (item.is_light ? "{:url('special/single_details')}" : "{:url('special/details')}") + '?id=' + item.id;
  2221. }
  2222. },
  2223. // 点击专题目录
  2224. play: function (item) {
  2225. var vm = this;
  2226. if (vm.active == 6) {
  2227. window.location.assign($h.U({
  2228. c: 'special',
  2229. a: 'details',
  2230. q: {
  2231. id: item.id
  2232. }
  2233. }));
  2234. } else {
  2235. app.baseGet($h.U({
  2236. c: 'index',
  2237. a: 'user_login',
  2238. }), function () {
  2239. if (!item.is_free || item.is_try || vm.is_pay || (!vm.special.member_pay_type && vm.isMember)) {
  2240. vm.goPlayTsak(item);
  2241. } else {
  2242. layer.confirm('购买后可操作,是否购买?', {
  2243. title: false,
  2244. btn: ['购买', '取消'],
  2245. closeBtn: false,
  2246. shadeClose: true,
  2247. scrollbar: false
  2248. }, function (index) {
  2249. vm.payDialogOpen = true;
  2250. vm.pay_type_num = 2;
  2251. layer.close(index);
  2252. });
  2253. }
  2254. }, function () {
  2255. layer.confirm('登录后可操作,是否登录?', {
  2256. title: false,
  2257. btn: ['登录', '取消'],
  2258. closeBtn: false,
  2259. shadeClose: true,
  2260. scrollbar: false
  2261. }, function (index) {
  2262. vm.loginShow = true;
  2263. layer.close(index);
  2264. });
  2265. }, true);
  2266. }
  2267. },
  2268. // 专题列表
  2269. getCourseList: function () {
  2270. var that = this;
  2271. if (this.otherLoading) return;
  2272. if (this.otherLoaded) return;
  2273. this.otherLoadTitle = '';
  2274. this.otherLoading = true;
  2275. app.baseGet($h.U({c: 'special', a: 'get_course_list', q: this.where}), function (res) {
  2276. var data = res.data.data,
  2277. list = data.list || [],
  2278. taskList = [];
  2279. list.forEach(function (item) {
  2280. item.active = false;
  2281. });
  2282. taskList = $h.SplitArray(list, that.otherTaskList);
  2283. taskList.forEach(function (item, index) {
  2284. item.active = !index;
  2285. });
  2286. that.where.page = data.page;
  2287. that.otherLoaded = list.length < that.where.limit;
  2288. that.otherLoadTitle = that.otherLoaded ? '我也是有底线的' : '上拉加载更多';
  2289. that.otherLoading = false;
  2290. that.$set(that, 'otherTaskList', taskList);
  2291. }, function (res) {
  2292. that.otherLoading = false;
  2293. that.otherLoadTitle = '加载更多';
  2294. });
  2295. },
  2296. // 套餐列表
  2297. getCloumnTask: function () {
  2298. var that = this;
  2299. if (this.columnLoading) return;
  2300. if (this.columnLoaded) return;
  2301. this.columnLoadTitle = '';
  2302. this.columnLoading = true;
  2303. app.baseGet($h.U({c: 'special', a: 'get_cloumn_task', q: this.where2}), function (res) {
  2304. var data = res.data.data;
  2305. var list = data.list || [];
  2306. var taskList = $h.SplitArray(list, that.columnTaskList);
  2307. that.where2.page = data.page;
  2308. that.columnLoaded = list.length < that.where2.limit;
  2309. that.columnLoadTitle = that.columnLoaded ? '我也是有底线的' : '上拉加载更多';
  2310. that.columnLoading = false;
  2311. that.$set(that, 'columnTaskList', taskList);
  2312. }, function (res) {
  2313. that.columnLoading = false;
  2314. that.columnLoadTitle = '加载更多';
  2315. });
  2316. },
  2317. // 直播回放列表
  2318. getLiveTask: function () {
  2319. var that = this;
  2320. if (this.liveLoading) return;
  2321. if (this.liveLoaded) return;
  2322. this.liveLoadTitle = '';
  2323. this.liveLoading = true;
  2324. app.baseGet($h.U({
  2325. c: 'live',
  2326. a: 'get_live_record_list',
  2327. q: {special_id: that.special.id, page: that.where.page, limit: that.where.limit}
  2328. }), function (res) {
  2329. var data = res.data.data.data;
  2330. var list = data || [];
  2331. var taskList = $h.SplitArray(list, that.liveTaskList);
  2332. that.where.page = that.where.page + 1;
  2333. that.liveLoaded = list.length < that.where.limit;
  2334. that.liveLoadTitle = that.liveLoaded ? '我也是有底线的' : '上拉加载更多';
  2335. that.liveLoading = false;
  2336. that.$set(that, 'liveTaskList', taskList);
  2337. }, function (res) {
  2338. that.liveLoading = false;
  2339. that.liveLoadTitle = '加载更多';
  2340. });
  2341. },
  2342. //播放素材
  2343. goPlayTsak: function (item) {
  2344. var that = this;
  2345. if (item.is_light) {
  2346. window.location.assign("{:url('special/single_details')}?id=" + item.id);
  2347. return;
  2348. }
  2349. app.baseGet($h.U({
  2350. c: 'special',
  2351. a: 'get_task_link',
  2352. q: {
  2353. task_id: item.id,
  2354. special_id: item.special_id
  2355. }
  2356. }), function () {
  2357. app.baseGet($h.U({
  2358. c: 'special',
  2359. a: 'play_num',
  2360. q: {
  2361. task_id: item.id,
  2362. special_id: item.special_id
  2363. }
  2364. }), function () {
  2365. window.location.assign($h.U({
  2366. c: 'special',
  2367. a: that.special.type == 1 || item.type == 1 ? 'task_text_info' : 'task_info',
  2368. q: {
  2369. id: item.id,
  2370. specialId: item.special_id,
  2371. viewing_time: item.watch && item.watch.viewing_time || 0
  2372. }
  2373. }));
  2374. });
  2375. });
  2376. },
  2377. //滑动底部加载
  2378. bScrollInit: function () {
  2379. var that = this;
  2380. $h.EventUtil.listenTouchDirection(document, function () {
  2381. if (that.special.type == 5) {
  2382. that.columnLoading == false && that.getCloumnTask();
  2383. } else {
  2384. that.otherLoading == false && that.getCourseList();
  2385. }
  2386. }, false);
  2387. },
  2388. // 点击收藏
  2389. collect: function () {
  2390. var vm = this;
  2391. app.baseGet($h.U({
  2392. c: 'index',
  2393. a: 'user_login',
  2394. }), function () {
  2395. $h.loadFFF();
  2396. app.baseGet($h.U({
  2397. c: 'special',
  2398. a: 'collect',
  2399. q: {
  2400. id: vm.special.id
  2401. }
  2402. }), function (res) {
  2403. $h.loadClear();
  2404. vm.special.collect = !vm.special.collect;
  2405. layer.msg(vm.special.collect ? '收藏成功' : '取消收藏成功');
  2406. }, function () {
  2407. $h.loadClear();
  2408. });
  2409. }, function () {
  2410. layer.confirm('登录后即可操作,是否登录?', {
  2411. title: false,
  2412. btn: ['登录', '取消'],
  2413. closeBtn: false,
  2414. shadeClose: true,
  2415. scrollbar: false
  2416. }, function (index) {
  2417. vm.loginShow = true;
  2418. layer.close(index);
  2419. });
  2420. }, true);
  2421. },
  2422. // 点击客服
  2423. customerService: function () {
  2424. app.baseGet($h.U({
  2425. c: 'public_api',
  2426. a: 'public_data'
  2427. }), function (res) {
  2428. var data = res.data.data;
  2429. if (data.customer_service === '3') {
  2430. if (data.site_service_phone) {
  2431. layer.confirm('是否拨打 <a href="tel:' + data.site_service_phone + '">' + data.site_service_phone + '</a> 进行咨询?', {
  2432. title: false,
  2433. closeBtn: false,
  2434. btn: ['拨打', '取消']
  2435. }, function (index) {
  2436. window.location.assign('tel:' + data.site_service_phone);
  2437. layer.close(index);
  2438. });
  2439. } else {
  2440. layer.msg('抱歉,无法联系客服');
  2441. }
  2442. } else {
  2443. window.location.assign($h.U({
  2444. c: 'service',
  2445. a: 'service_list'
  2446. }));
  2447. }
  2448. });
  2449. },
  2450. //打开支付插件,并检测登录状态,没有登录,打开登录插件
  2451. OpenPay: function (is_pink) {
  2452. var vm = this;
  2453. this.pay_type_num = is_pink;
  2454. app.baseGet($h.U({c: 'index', a: 'user_login'}), function (res) {
  2455. switch (is_pink) {
  2456. case 1:
  2457. if (!this.special.pay_type) {
  2458. return $h.pushMsg('免费的不可以赠送哦');
  2459. }
  2460. if (this.isMember && !this.special.member_pay_type) {
  2461. return $h.pushMsg('会员价免费的不可以赠送哦');
  2462. }
  2463. this.money = this.special.money;
  2464. this.payDialogOpen = true;
  2465. break;
  2466. case 2:
  2467. if (this.isMember) {
  2468. this.money = this.special.member_pay_type ? this.special.member_money : 0;
  2469. } else {
  2470. this.money = this.special.money;
  2471. }
  2472. this.payDialogOpen = true;
  2473. break;
  2474. case 3:
  2475. this.money = this.special.pink_money;
  2476. this.payDialogOpen = true;
  2477. break;
  2478. case 4:
  2479. this.payDialogOpen = false;
  2480. app.baseGet($h.U({
  2481. c: 'special',
  2482. a: 'receive_gift',
  2483. q: {orderId: orderId}
  2484. }), function (res) {
  2485. $h.showMsg({
  2486. title: res.data.msg,
  2487. icon: 'success',
  2488. success: function () {
  2489. window.location.href = $h.U({c: 'special', a: 'grade_list'});
  2490. }
  2491. })
  2492. });
  2493. break;
  2494. case 5:
  2495. // location.hash = '#tash';
  2496. // $('body,html').animate({scrollTop: $(this.$refs.list).offset().top}, 800);
  2497. // this.is_pay = true;
  2498. // this.paid = false;
  2499. // this.active = 1;
  2500. var opt = {
  2501. c: 'special',
  2502. a: 'single_details',
  2503. q: {
  2504. id: 0
  2505. }
  2506. };
  2507. var task = this.otherTaskList[0];
  2508. if (!task) {
  2509. $h.pushMsg('课程信息错误,无法购买。');
  2510. return true;
  2511. }
  2512. if (task.special_task) {
  2513. task = task.special_task[0];
  2514. }
  2515. if (task.is_light) {
  2516. if (task.light_type === 1) {
  2517. opt.a = 'single_text_detail';
  2518. }
  2519. } else {
  2520. opt.a = task.type === 1 ? 'task_text_info' : 'task_info';
  2521. opt.q.specialId = task.special_id;
  2522. opt.q.viewing_time = task.watch && task.watch.viewing_time || 0;
  2523. }
  2524. opt.q.id = task.id;
  2525. window.location.assign($h.U(opt));
  2526. break;
  2527. case 6:
  2528. if (this.liveInfo.studio_pwd && this.special.pay_type == 2) {
  2529. this.password = true;
  2530. return;
  2531. }
  2532. window.location.assign($h.U({
  2533. c: 'live',
  2534. a: 'index',
  2535. q: {
  2536. stream_name: this.stream_name,
  2537. record_id: this.RecordId
  2538. }
  2539. }));
  2540. break;
  2541. }
  2542. }.bind(this), function () {
  2543. vm.loginShow = true;
  2544. });
  2545. },
  2546. ReceiveGift: function () {
  2547. var that = this;
  2548. if (!orderId) return;
  2549. app.baseGet($h.U({c: 'special', a: 'receive_gift', q: {orderId: orderId}}), function (res) {
  2550. $h.showMsg({
  2551. title: res.data.msg,
  2552. icon: 'success',
  2553. success: function () {
  2554. window.location.href = $h.U({c: 'index', a: 'index'});
  2555. }
  2556. })
  2557. });
  2558. },
  2559. //关闭登录
  2560. loginClose: function (val) {
  2561. this.loginShow = false;
  2562. val && this.logComplete();
  2563. },
  2564. //登录完成回调事件
  2565. logComplete: function () {
  2566. var that = this;
  2567. that.isLogin = true;
  2568. that.otherLoaded = false;
  2569. that.where.page = false;
  2570. that.otherTaskList = [];
  2571. that.getCourseList();
  2572. app.baseGet($h.U({c: 'special', a: 'isMember'}), function (res) {
  2573. var isMember = res.data.data.is_member;
  2574. that.isMember = isMember;
  2575. that.now_money = res.data.data.now_money;
  2576. switch (that.pay_type_num) {
  2577. case 1:
  2578. that.money = (isMember && that.special.member_pay_type == 1) ? that.special.member_money : that.special.money;
  2579. break;
  2580. case 2:
  2581. if (isMember) {
  2582. that.money = that.special.member_pay_type ? that.special.member_money : 0;
  2583. } else {
  2584. that.money = that.special.money;
  2585. }
  2586. break;
  2587. case 3:
  2588. that.money = that.special.pink_money;
  2589. break;
  2590. }
  2591. });
  2592. app.baseGet($h.U({
  2593. c: 'special',
  2594. a: 'special_validity',
  2595. q: {
  2596. id: special.id
  2597. }
  2598. }), function (res) {
  2599. that.special_validity = res.data.data.validity;
  2600. }, function () {
  2601. }, true);
  2602. },
  2603. //所有插件回调处理事件
  2604. changeVal: function (opt) {
  2605. if (typeof opt != 'object') opt = {};
  2606. var action = opt.action || '';
  2607. var value = opt.value || '';
  2608. this[action] && this[action](value);
  2609. },
  2610. CountDown: function (opt, that) {
  2611. if (typeof opt != 'object') opt = {};
  2612. var name = opt.name || '', value = null, that = that ? that : this;
  2613. if (name.indexOf('.') === -1)
  2614. value = that[name];
  2615. else {
  2616. var nameArray = name.split('.');
  2617. value = that[nameArray[0]][nameArray[1]];
  2618. }
  2619. var tiem = opt.time || 1000, timeName = opt.time_name || 'datatime',
  2620. strName = {hour: "00", minute: "00", second: "00"},
  2621. outputName = opt.output || 'difftime';
  2622. if (!name) return false;
  2623. if (value === undefined) return false;
  2624. opt.nowTime = function () {
  2625. if (Array.isArray(value)) {
  2626. for (var i = 0; i < value.length; i++) {
  2627. var intDiff = value[i][timeName] - Date.parse(new Date()) / 1000;//获取数据中的时间戳的时间差;
  2628. var days = 0, hour = 0, minute = 0, second = 0;
  2629. if (intDiff > 0) {
  2630. hour = Math.floor(intDiff / (60 * 60)) - (days * 24);
  2631. minute = Math.floor(intDiff / 60) - (hour * 60);
  2632. second = Math.floor(intDiff) - (hour * 60 * 60) - (minute * 60);
  2633. if (hour <= 9) hour = '0' + hour;
  2634. if (minute <= 9) minute = '0' + minute;
  2635. if (second <= 9) second = '0' + second;
  2636. strName = {
  2637. hour: hour,
  2638. minute: minute,
  2639. second: second
  2640. };
  2641. } else {
  2642. strName = {
  2643. hour: "00",
  2644. minute: "00",
  2645. second: "00"
  2646. };
  2647. }
  2648. value[i][outputName] = strName;
  2649. }
  2650. that.$set(that, name, value);
  2651. } else {
  2652. var intDiff = value[timeName] - Date.parse(new Date()) / 1000;
  2653. var days = 0, hour = 0, minute = 0, second = 0;
  2654. if (intDiff > 0) {
  2655. hour = Math.floor(intDiff / (60 * 60)) - (days * 24);
  2656. minute = Math.floor(intDiff / 60) - (hour * 60);
  2657. second = Math.floor(intDiff) - (hour * 60 * 60) - (minute * 60);
  2658. if (hour <= 9) hour = '0' + hour;
  2659. if (minute <= 9) minute = '0' + minute;
  2660. if (second <= 9) second = '0' + second;
  2661. strName = {
  2662. hour: hour,
  2663. minute: minute,
  2664. second: second
  2665. };
  2666. } else {
  2667. strName = {
  2668. hour: "00",
  2669. minute: "00",
  2670. second: "00"
  2671. };
  2672. }
  2673. if (name.indexOf('.') === -1)
  2674. that.$set(that[name], outputName, strName);
  2675. else {
  2676. var nameArray = name.split('.');
  2677. that.$set(that[nameArray[0]][nameArray[1]], outputName, strName);
  2678. }
  2679. }
  2680. };
  2681. opt.nowTime();
  2682. setInterval(opt.nowTime, tiem);
  2683. },
  2684. //播放回放
  2685. playBackRecord: function (item) {
  2686. this.RecordId = item;
  2687. this.OpenPay(6);
  2688. },
  2689. // 关联资料
  2690. specialMaterial: function () {
  2691. app.baseGet($h.U({
  2692. c: 'special',
  2693. a: 'SpecialDataDownload',
  2694. q: {
  2695. special_id: this.special.id
  2696. }
  2697. }), function (res) {
  2698. this.materialList = res.data.data;
  2699. }.bind(this));
  2700. },
  2701. // 获取返佣金额
  2702. rebateAmount: function () {
  2703. var vm = this;
  2704. app.baseGet($h.U({
  2705. c: 'auth_api',
  2706. a: 'rebateAmount',
  2707. p: {
  2708. id: this.special.id
  2709. }
  2710. }), function (res) {
  2711. vm.rebateMoney = parseFloat(res.data.data.brokeragePrice);
  2712. });
  2713. },
  2714. rebateAction: function (value) {
  2715. switch (value) {
  2716. case 'close':
  2717. this.rebateMoney = 0;
  2718. break;
  2719. case 'share':
  2720. this.createSharePoster();
  2721. break;
  2722. }
  2723. }
  2724. },
  2725. });
  2726. })
  2727. </script>
  2728. {/block}