commentN.nvue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <template>
  2. <view class="es content es-bc-white" style="position:relative;" @touchmove.stop>
  3. <view class="comtentBox es-bc-white es-pb-40 es-br-20 flex" >
  4. <view class="es es-h-60" @tap="closePopup()">
  5. <view class="es es-ac es-view-w-x es-h-60 es-pt-25" >
  6. <image class="es-w-35 es-h-31" src="../../../static/image/hall/pingjia_icon.png"></image>
  7. <text class="es-ml-20 es-fs-30 es-fw-600 es-f1">评论</text>
  8. <text class="es-ml-1 es-fs-30 es-c-99">({{totalNum}})</text>
  9. </view>
  10. <image style="position: absolute;right:30rpx;top:20rpx" class="es-w-40 es-h-40" src="../../../static/images/close40.png"></image>
  11. </view>
  12. <view class="es-view-w-x es-mt-15" >
  13. <view class="es es-ac es-mt-10 es-c" style="border-bottom: 1px #FAFAFA solid;">
  14. <view class="es-on-act nav es-icon-auto es es-ac es-pc x-c es-br-10" :class="sortType==1?'ac':'br'" @tap="tapCommentType(1)">
  15. <image src="../../../static/images/other/course/icon-2.png" class="es-icon-20"></image>
  16. <text class="es-ml-19 es-fs-28 es-c" :class="1?'es-fw-600':''">热度</text>
  17. </view>
  18. <view class="es-on-act nav es-icon-auto es es-ac es-pc es-br-10 es-ml-14" :class="sortType==2?'ac':'br'" @tap="tapCommentType(2)">
  19. <image src="../../../static/images/other/course/icon-2.png" class="es-icon-20"></image>
  20. <text class="es-ml-19 es-fs-28 es-c" :class="0?'es-fw-600':''">时间</text>
  21. </view>
  22. </view>
  23. <list loadmoreoffset="100" @loadmore="loadmore" :style="{'height':listHei+'px'}">
  24. <refresh @pullingdown='onpullingdown' @refresh="onrefresh" :display=" refreshing ? 'show' : 'hide' " class="refresh x-c ">
  25. <loading-indicator style="width: 22px;height: 22px;color:#999;"></loading-indicator>
  26. <text class="es-fs-32 es-ml-8">{{refreshText}}</text>
  27. </refresh>
  28. <cell v-for="(item, index) in dataList" :key="index">
  29. <view class="es es-mt-30" >
  30. <image class="es-icon-80 es-br" :src="isEmpty(item.avatar)?defHeadImg:item.avatar"></image>
  31. <view class="es-f1 es-ml-21" style="display:flex;flex:1;">
  32. <text class="es-fs-30 es-fw">{{ isEmpty(item.nickName)?"暂无昵称":item.nickName }}</text>
  33. <text class="es-c-99 es-fs-26 es-mt-4">{{ formatDate(item.createTime) }}</text>
  34. <text class="es-fs-28 es-fw-500 es-pt-24 es-pb-25">{{item.content}}</text>
  35. <view class="es es-c-99 es-pb-10 ">
  36. <view class="es es-ac" @tap="doLike(item,index)">
  37. <image class="es-icon-28" :src="item.liked?'../../../static/image/hall/dianzan_on_icon.png':'../../../static/image/hall/dianzan_icon.png'"></image>
  38. <text class="es-ml-11 es-fs-26">{{item.likes}}</text>
  39. </view>
  40. <view class="es es-ac es-ml-23" @tap="doReply(item)">
  41. <image class="es-icon-28" src="../../../static/image/hall/pingjia_icon.png"></image>
  42. <text class="es-ml-11 es-fs-26">{{item.replyCount}}</text>
  43. </view>
  44. <view class="es-f1"></view>
  45. <view class="es es-ac es-pc es-icon-33" style="position:absolute;right:20rpx;" v-if="isMySend(item)" @tap="delComment(item,0)">
  46. <image src="../../../static/image/hall/more_icon16.png" class="es-w-32 es-h-32"></image>
  47. </view>
  48. </view>
  49. <view v-if="item.replyList && item.replyList.length>0" class="es-br-20 es-pt-10 es-pb-10 es-view-w-x es-mt-25" style="background-color: #F6F9F8;">
  50. <view class="es es-pt-20 es-pb-20" :class="idx<item.replyList.length-1?'comment-reply-item':''" v-for="(cItem,idx) in item.replyList" :key="idx">
  51. <image class="es-icon-60 es-br" :src="isEmpty(cItem.avatar)?defHeadImg:cItem.avatar"></image>
  52. <view class="es-f1 es-ml-11 flex">
  53. <text class="es-fs-30 es-fw-600">{{cItem.nickName}}</text>
  54. <text class="es-fs-26 es-c-99 es-mt-10 es-mb-10">{{ formatDate(cItem.createTime) }}</text>
  55. <text class="es-fs-28 es-fw-500 es-pt-14 es-pb-14">{{cItem.content}}</text>
  56. <view class="es es-c-99 es-pb-10 ">
  57. <view class="es es-ac" @tap="doReplyLike(cItem,idx)">
  58. <image class="es-icon-28" :src="item.liked?'../../../static/image/hall/dianzan_on_icon.png':'../../../static/image/hall/dianzan_icon.png'"></image>
  59. <text class="es-ml-11 es-fs-26">{{cItem.likes}}</text>
  60. </view>
  61. <view class="es-f1" style="background-color: red;"></view>
  62. <view class="es es-ac es-pc es-icon-33" style="position:absolute;right:20rpx;" v-if="isMySend(cItem)" @tap="delComment(cItem,1)">
  63. <image src="../../../static/image/hall/more_icon16.png" class="es-w-32 es-h-32"></image>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view @tap="replayClick(item,index)" v-if="item.showReplyBtn" class="es es-ac es-mt-20 es-pb-20">
  70. <view class="es-f1"></view>
  71. <text class="es es-ac es-fs-24 es es-ac es-pc es-pt-10 es-pb-10 es-c-99">
  72. ——展开更多回复
  73. </text>
  74. </view>
  75. </view>
  76. </view>
  77. </cell>
  78. <cell v-if="showLoadMore || dataList.length > 4">
  79. <view class="loading-more">
  80. <text class="loading-more-text">{{loadMoreText}}</text>
  81. </view>
  82. </cell>
  83. <cell>
  84. <view v-if="totalNum==0 && reqDataCode!=0" class="y-f" style="height: 300px;padding-top: 200rpx;" >
  85. <image @tap="refreshPage()" class="es-w-124 es-h-80" style="width:187rpx;height:120rpx;" src="../../../static/image/nodata.png"></image>
  86. <text @tap="refreshPage()" class="es-c-33">{{reqDataCode==1?'暂无数据':'请求超时'}}</text>
  87. </view>
  88. </cell>
  89. </list>
  90. </view>
  91. </view>
  92. <view :style="'height:'+(KeyHight)+'px'" style="background-color: red;" v-if="KeyHight>0"></view>
  93. <view class="es-h-120 es-auto-bottom" v-else></view>
  94. <cover-view class="fix-bottom es-b-t" >
  95. <view class="es-h-120 es-view-w-x es es-ac flex" >
  96. <view class="es-f1 es-br flex ac es-h-70 es-pl-20 es-pr-20 es-pt-10" >
  97. <input style="width:100%;font-size: 28rpx;" ref="txtPing" v-model="pingContent" :focus="isInputFocus"
  98. @blur="onblur" :placeholder="placeholder" placeholder-class="es-c" />
  99. </view>
  100. <text class="es-w-120 es-h-60 es-fs-30 es-fw-600 es-ml-20 es-c " style="text-align: center;line-height: 60rpx;" :adjust-position="false"
  101. :always-system="true" @tap="doSend">发布</text>
  102. </view>
  103. <view class="es-auto-bottom" v-if="!KeyHight"></view>
  104. </cover-view>
  105. </view>
  106. </template>
  107. <script>
  108. // import { getCourseById,getCommentList,addComment,updateComment,commentDoLike,deleteComment } from '@/api/course'
  109. import { getComments,getReplies,addComment,doLikeComment,deleteComment } from '@/api/shortvideo'
  110. import { isLogin,isEmpty } from '@/utils/common'
  111. import { showLoginPage } from '@/utils/login'
  112. import dayjs from 'dayjs';
  113. export default {
  114. data() {
  115. return {
  116. pingContent: '',
  117. KeyHight:0,
  118. cateId:5,
  119. courseId:0,
  120. totalNum:0,
  121. courseData:{},
  122. pageHei:400,
  123. downOption: {
  124. auto: false ,// 不自动加载 (mixin已处理第一个tab触发downCallback)
  125. use:true
  126. },
  127. upOption: {
  128. use:true,
  129. auto: false, // 不自动加载
  130. page: {
  131. num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  132. size: 10 // 每页数据的数量
  133. },
  134. empty:{
  135. tip: '~ 暂无数据 ~', // 提示
  136. btnText: '去看看'
  137. },
  138. noMoreSize: 4, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
  139. },
  140. pingType:1,//1:评论 2:回复
  141. dataList: [], //列表数据
  142. replyParentId:null,
  143. txtPing:null,
  144. sortType:1,
  145. isInputFocus:false,
  146. showBoottom:true,
  147. placeholder:"发布一条友善的评论",
  148. defHeadImg:"../../static/image/course/defHead.png",
  149. myUserInfo:{userId:0},
  150. delCommentId:null,
  151. mescroll:null,
  152. adpid: '',
  153. loadMoreText:"加载中...",
  154. showLoadMore:false,
  155. isLastPage:false,
  156. refreshing: false,
  157. refreshText: '↓ 下拉刷新',
  158. pageNum:1,
  159. listHei:0,
  160. rpyPageNum:1,
  161. replyContent:"",
  162. rPlaceholder:"",
  163. reqDataCode:0, //1:正常加载 -1 请求超时
  164. subNVueName: ''
  165. }
  166. },
  167. mounted() {
  168. try {
  169. console.log("qxj comment mounted");
  170. let that=this;
  171. uni.$on('videoComment', (data) => {
  172. that.subNVueName = data.subNVueName
  173. that.totalNum=data.smsNum;
  174. this.placeholder = "发布一条友善的评论";
  175. if(that.videoId && that.videoId==data.videoId && that.reqDataCode==1){
  176. return;
  177. }
  178. that.dataList = [];
  179. that.videoId=data.videoId;
  180. that.reqDataCode=0;
  181. that.initData();
  182. });
  183. const res = uni.getSystemInfoSync();
  184. this.listHei=uni.upx2px(1150 - 240);
  185. // let tempHei=res.windowHeight*0.65;
  186. // console.log("qxj tempHei:"+tempHei);
  187. // this.pageHei=tempHei+"px";
  188. this.txtPing = this.$refs["txtPing"];
  189. uni.onKeyboardHeightChange(this.boardHeightChange);
  190. if(isLogin()){
  191. let useInfo=uni.getStorageSync('userInfo');
  192. if(!!useInfo && useInfo!=null){
  193. this.myUserInfo=JSON.parse(useInfo);
  194. }
  195. }
  196. } catch (e) {
  197. }
  198. },
  199. methods: {
  200. initData(){
  201. let that=this;
  202. setTimeout(function() {
  203. that.refreshPage();
  204. }, 300);
  205. },
  206. onpullingdown(e) {
  207. console.log("qxj onpullingdown");
  208. if (this.refreshing) return;
  209. if (Math.abs(e.pullingDistance) > Math.abs(e.viewHeight)) {
  210. this.refreshText = '下拉更新'
  211. } else {
  212. this.refreshText = '释放更新'
  213. }
  214. },
  215. onrefresh(e) {
  216. console.log('onRefreshing...');
  217. this.refreshing = true;
  218. this.pageNum=1;
  219. this.upCallback();
  220. if (this.refreshing) return;
  221. },
  222. loadmore(){
  223. if(this.isLastPage){
  224. return;
  225. }
  226. console.log("loadmore");
  227. this.pageNum++;
  228. this.showLoadMore = true;
  229. setTimeout(() => {
  230. this.upCallback();
  231. }, 300);
  232. },
  233. /*下拉刷新的回调 */
  234. upCallback() {
  235. /*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
  236. const params={"videoId":this.videoId,orderBy:this.sortType==2?'likes':'date'};
  237. uni.showLoading({title:""});
  238. getComments(params,this.pageNum).then(res => {
  239. uni.hideLoading();
  240. if(res.code==200){
  241. setTimeout(()=>{
  242. if(this.pageNum == 1) this.dataList = []; //如果是第一页需手动制空列表
  243. let dataList=res.data.list;
  244. dataList.forEach((item, index) => {
  245. if(item.replyCount>0){
  246. item.showReplyBtn=true;
  247. item.isLastReplyPage=false;
  248. }else{
  249. item.showReplyBtn=false;
  250. item.isLastReplyPage=true;
  251. }
  252. item.rpyPageNum=1;
  253. });
  254. this.dataList=this.dataList.concat(dataList); //追加新数据
  255. this.reqDataCode=1;
  256. this.refreshing = false;
  257. this.isLastPage=res.data.isLastPage;
  258. if(this.isLastPage){
  259. this.refreshText = '加载完成'
  260. }
  261. if(res.data.isLastPage){
  262. this.loadMoreText = "没有更多数据了!"
  263. this.showLoadMore=false;
  264. }else{
  265. this.loadMoreText = "加载中..."
  266. }
  267. },200);
  268. }else{
  269. this.refreshing = false;
  270. this.refreshText = '加载完成'
  271. this.reqDataCode=-1;
  272. }
  273. },
  274. rej => {}
  275. ).catch(()=>{
  276. //联网失败, 结束加载
  277. this.refreshing = false;
  278. this.refreshText = '加载完成',
  279. this.reqDataCode=-1;
  280. });
  281. },
  282. closePopup() {
  283. const subNVue = uni.getSubNVueById(this.subNVueName);
  284. if (subNVue) {
  285. subNVue.hide('slide-out-bottom');
  286. } else {
  287. console.log('subNVue is already hidden.');
  288. }
  289. },
  290. refreshPage(){
  291. this.pageNum=1;
  292. this.upCallback();
  293. },
  294. tapCommentType(type){
  295. this.sortType=type;
  296. this.refreshPage();
  297. },
  298. isMySend(item){
  299. if(this.myUserInfo!=null && this.myUserInfo.userId==item.userId){
  300. return true;
  301. }
  302. return false;
  303. },
  304. doSend(){
  305. if(this.isEmpty(this.pingContent)){
  306. uni.showToast({title: '评论内容不能为空',icon: 'none'});
  307. return;
  308. }
  309. if(!isLogin()){
  310. showLoginPage();
  311. return;
  312. }
  313. let params={"videoId":this.videoId,"content":this.pingContent};
  314. if(this.pingType==2){
  315. params["parentId"]=this.replyParentId;
  316. }
  317. let that=this;
  318. uni.showLoading({title:""});
  319. addComment(params).then(res => {
  320. uni.hideLoading();
  321. if(res.code==200){
  322. if(this.pingType==1){
  323. uni.showToast({title: '添加评论成功',icon: 'none',position:'bottom'});
  324. this.totalNum++
  325. this.sendNotify(this.totalNum);
  326. }else{
  327. uni.showToast({title: '添加回复成功',icon: 'none',position:'bottom'});
  328. }
  329. }else{
  330. uni.showToast({title: res.msg,icon: 'none'});
  331. }
  332. this.placeholder="发布一条友善的评论";
  333. this.pingType=1;
  334. this.pingContent='';
  335. setTimeout(function(){
  336. that.refreshPage();
  337. },1000)
  338. },
  339. rej => {}
  340. );
  341. },
  342. doReply(item){
  343. this.replyParentId=item.commentId;
  344. this.pingType=2;
  345. let placeHolder=this.isEmpty(item.nickName)?"回复":"回复"+item.nickName;
  346. this.placeholder=placeHolder;
  347. this.pingContent='';
  348. //this.isInputFocus=true;
  349. this.$nextTick(()=>{
  350. this.$refs.txtPing.focus();
  351. });
  352. },
  353. replayClick(item,index){
  354. const params={"videoId":this.videoId,"parentId":item.commentId};
  355. uni.showLoading({title:""});
  356. getReplies(params,item.rpyPageNum).then(res => {
  357. uni.hideLoading();
  358. console.log("qxj res:"+JSON.stringify(res));
  359. if(res.code==200){
  360. setTimeout(()=>{
  361. if(item.rpyPageNum == 1) item.replyList = []; //如果是第一页需手动制空列表
  362. item.replyList=item.replyList.concat(res.data.list); //追加新数据
  363. if(res.data.isLastPage){
  364. item.showReplyBtn=false;
  365. item.isLastReplyPage=true;
  366. }else{
  367. item.rpyPageNum+=1;
  368. item.showReplyBtn=true;
  369. item.isLastReplyPage=false;
  370. }
  371. //this.dataList[index]=item;
  372. // this.$forceUpdate();
  373. },200);
  374. }else{
  375. this.refreshing = false;
  376. this.refreshText = '加载完成'
  377. this.reqDataCode=-1;
  378. }
  379. },
  380. rej => {}
  381. ).catch(()=>{
  382. //联网失败, 结束加载
  383. this.refreshing = false;
  384. this.refreshText = '加载完成',
  385. this.reqDataCode=-1;
  386. });
  387. },
  388. onblur(){
  389. console.log("qxj onblur");
  390. },
  391. doLike(item,index){
  392. if(!isLogin()){
  393. showLoginPage();
  394. return;
  395. }
  396. const params={"commentId":item.commentId};
  397. uni.showLoading({title:""});
  398. let that=this;
  399. doLikeComment(params).then(res => {
  400. uni.hideLoading();
  401. if(res.code==200){
  402. if(item.liked==0){
  403. item.likes+=1;
  404. item.liked=1;
  405. }else{
  406. item.likes-=1;
  407. item.liked=0;
  408. }
  409. this.dataList[index]=item;
  410. this.$forceUpdate();
  411. uni.showToast({title: '操作成功',icon: 'none'});
  412. }else{
  413. uni.showToast({title: res.msg,icon: 'none'});
  414. }
  415. },
  416. rej => {}
  417. );
  418. },
  419. doReplyLike(item,index){
  420. if(!isLogin()){
  421. showLoginPage();
  422. return;
  423. }
  424. const params={"commentId":item.commentId};
  425. uni.showLoading({title:""});
  426. let that=this;
  427. doLikeComment(params).then(res => {
  428. uni.hideLoading();
  429. if(res.code==200){
  430. if(item.liked==0){
  431. item.likes+=1;
  432. item.liked=1;
  433. }else{
  434. item.likes-=1;
  435. item.liked=0;
  436. }
  437. // this.dataList[index]=item;
  438. // this.$forceUpdate();
  439. uni.showToast({title: '操作成功',icon: 'none'});
  440. }else{
  441. uni.showToast({title: res.msg,icon: 'none'});
  442. }
  443. },
  444. rej => {}
  445. );
  446. },
  447. delComment(item,type){
  448. if(!isLogin()){
  449. showLoginPage();
  450. return;
  451. }
  452. let that = this;
  453. uni.showModal({
  454. title: '系统提示',
  455. content: '确定删除吗',
  456. success: function (res) {
  457. if (res.confirm) {
  458. console.log("qxj confirm");
  459. that.delCommentAct(item,type);
  460. } else if (res.cancel) {
  461. console.log("qxj cancel");
  462. }
  463. }
  464. });
  465. },
  466. delCommentAct(item,type){
  467. this.delCommentId=item.commentId;
  468. let params={"commentId":this.delCommentId,"videoId":this.videoId};
  469. if(type==1){
  470. params["parentId"]=item.parentId;
  471. }
  472. this.delCommentRequest(params);
  473. },
  474. delCommentRequest(params){
  475. let that=this;
  476. uni.showLoading({title:""});
  477. deleteComment(params).then(res => {
  478. uni.hideLoading();
  479. if(res.code==200){
  480. uni.showToast({title: '操作成功',icon: 'none'});
  481. this.totalNum = this.totalNum-1
  482. this.sendNotify(this.totalNum);
  483. setTimeout(function(){
  484. that.refreshPage();
  485. },1000)
  486. }else{
  487. uni.showToast({title: res.msg,icon: 'none'});
  488. }
  489. },
  490. rej => {}
  491. );
  492. },
  493. sendNotify(smsNum){
  494. uni.$emit('refreshVideoComment', {
  495. videoId: this.videoId,
  496. smsNum:smsNum
  497. });
  498. },
  499. boardHeightChange:function(res){
  500. console.log('changeHeight', res.height);
  501. if(res.height==0){
  502. this.placeholder="发布一条友善的评论";
  503. //this.pingContent='';
  504. this.isInputFocus=false;
  505. }else{
  506. this.isInputFocus=true;
  507. }
  508. this.KeyHight = res.height+10;
  509. },
  510. isEmpty(obj) {
  511. if (typeof obj == "undefined" || obj == null || obj == "") {
  512. return true;
  513. } else {
  514. return false;
  515. }
  516. },
  517. formatDate(dateStr) {
  518. let formatStr = "";
  519. let formatDate;
  520. if(dateStr==null){
  521. return formatStr;
  522. }
  523. let date = dayjs(dateStr,'YYYY-MM-DD HH:mm:ss');
  524. let today = dayjs();
  525. if (date.year() != today.year()) {
  526. formatDate = date.format('YYYY-MM-DD HH:mm');
  527. }
  528. else if (date.month() === today.month()) {
  529. switch (date.date() - today.date()) {
  530. case 0:
  531. formatDate = date.format('今天 HH:mm');
  532. break;
  533. case -1:
  534. formatDate = date.format('昨天 HH:mm');
  535. break;
  536. case 1:
  537. formatDate = date.format('明天 HH:mm');
  538. break;
  539. default:
  540. formatDate = date.format('MM-DD HH:mm');
  541. break;
  542. }
  543. }
  544. else if (date.month() - today.month() === 0 && date.date() === 1) {
  545. formatDate = date.format('明天 HH:mm');
  546. }
  547. else {
  548. formatDate = date.format('MM-DD HH:mm');
  549. }
  550. return formatDate;
  551. }
  552. },
  553. onShow() {
  554. console.log("qxj videoComment onShow");
  555. },
  556. onUnload: function() {
  557. uni.offKeyboardHeightChange(this.boardHeightChange);
  558. uni.$off("videoComment");
  559. },
  560. destroyed() {
  561. // 注销全局配置监听
  562. console.log("qxj videoComment destroyed");
  563. uni.$off("videoComment");
  564. },
  565. onHide() {
  566. console.log("qxj videoComment onHide");
  567. },
  568. onClose() {
  569. console.log("qxj videoComment onClose");
  570. },
  571. beforeDestroy() {
  572. console.log("qxj videoComment beforeDestroy");
  573. uni.$off('videoComment');
  574. }
  575. }
  576. </script>
  577. <style>
  578. page {
  579. background-color: white;
  580. }
  581. .fl-row{
  582. display: flex;
  583. flex-direction: row;
  584. }
  585. .comtentBox{
  586. background-color:#171a1d;
  587. box-sizing: border-box;
  588. }
  589. .banner {
  590. height: 430rpx;
  591. }
  592. .es-icon-course-bg {
  593. background-image: url(../../../static/images/other/course/bg.png);
  594. }
  595. .es-icon-course-icon-1 {
  596. background-image: url(../../../static/images/other/course/icon-1.png);
  597. }
  598. .es-icon-course-icon-2 {
  599. background-image: url(../../../static/images/other/course/icon-2.png);
  600. }
  601. .es-icon-course-icon-3 {
  602. background-image: url(../../../static/images/other/course/icon-3.png);
  603. }
  604. .es-icon-course-close {
  605. background-image: url(../../../static/images/other/course/close.png);
  606. }
  607. .es-icon-course-info {
  608. background-image: url(../../../static/images/other/course/info.png);
  609. }
  610. .es-icon-course-bg2 {
  611. background-image: url(../../../static/images/other/course/bg2.png);
  612. }
  613. .es-icon-course-bg3 {
  614. background-image: url(../../../static/images/other/course/bg3.png);
  615. }
  616. .es-icon-course-comment {
  617. background-image: url(../../../static/images/other/course/comment.png);
  618. }
  619. .es-icon-course-comment2 {
  620. background-image: url(../../../static/images/other/course/comment2.png);
  621. }
  622. .es-icon-course-nav-bg,
  623. .nav {
  624. background-image: url(../../../static/images/other/course/nav-bg.png);
  625. }
  626. .es-icon-course-nav-bg-ac,.ac {
  627. background-color: #ffd8c4;
  628. }
  629. .es-icon-course-point {
  630. background-image: url(../../../static/images/other/course/point.png);
  631. }
  632. .es-icon-course-share {
  633. background-image: url(../../../static/images/other/course/share.png);
  634. }
  635. .es-icon-course-like2 {
  636. background-image: url(../../../static/images/other/course/like2.png);
  637. }
  638. .es-icon-course-like2-ac {
  639. background-image: url(../../../static/images/other/course/like2-ac.png);
  640. }
  641. .item {
  642. width: calc(33.33% - 14rpx);
  643. }
  644. .nav {
  645. width: 216rpx;
  646. height: 60rpx;
  647. }
  648. .comment-reply-item {
  649. border-bottom: 1px #fff solid;
  650. }
  651. .br{
  652. border: 1px solid #FF5C03;
  653. }
  654. .fix-bottom{
  655. position: fixed;
  656. left: 0;
  657. right: 0;
  658. bottom: 0;
  659. /* width: 100%; */
  660. z-index: 999;
  661. background-color: white;
  662. }
  663. .refresh {
  664. display: flex;
  665. flex-direction: row;
  666. justify-content: center;
  667. height: 50px;
  668. }
  669. .loading-more {
  670. align-items: center;
  671. justify-content: center;
  672. padding-top: 14px;
  673. padding-bottom: 14px;
  674. text-align: center;
  675. }
  676. .loading-more-text {
  677. font-size: 28rpx;
  678. color: #999;
  679. }
  680. </style>