Blame view

src/components/SingleMobileScreenInsightOne.vue 20.4 KB
de0f96bc5   Gurvinder Singh   new files
1
2
  <template>
    <main class="landing-page">
de0f96bc5   Gurvinder Singh   new files
3
      <div class="container-fluid episode-intro">
c65b51996   Digvijay Singh   new ui changes
4
        <nav class="navbar navbar-expand-sm spotLight-nav">
56f4b7548   Digvijay Singh   landing page url ...
5
          <a class="navbar-brand" href="javascript:void(0);"
c65b51996   Digvijay Singh   new ui changes
6
7
8
9
10
11
12
13
14
15
16
            ><img src="../assets/images/logo.png"
          /></a>
          <button
            class="navbar-toggler"
            type="button"
            data-toggle="collapse"
            data-target="#navbarsExample03"
            aria-controls="navbarsExample03"
            aria-expanded="false"
            aria-label="Toggle navigation"
          >
de0f96bc5   Gurvinder Singh   new files
17
18
19
20
21
            <span class="navbar-toggler-icon"></span>
            <span class="navbar-toggler-icon"></span>
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="user-profile-photo insights-profile">
56f4b7548   Digvijay Singh   landing page url ...
22
            <a href="javascript:void(0);"><img src="../assets/images/user.png" /></a>
de0f96bc5   Gurvinder Singh   new files
23
24
25
          </div>
        </nav>
        <!-- menu wrapper -->
c65b51996   Digvijay Singh   new ui changes
26
27
        <div class="intro-startup">
         
d0186c77a   Digvijay Singh   changes in ui
28
   <!-- chat box -->
c65b51996   Digvijay Singh   new ui changes
29
30
31
32
33
34
35
36
37
38
39
40
          <div class="bounce-board-wrp" id="cht_box_close">
            <div class="inner-wrp-bc">
              <div class="bc-top-head">
                <span class="bc-head">
                  <img src="../assets/images/bounce-icon.svg" /> Bounce Board
                </span>
                <div class="action-sort">
                  <span class="sort-by">SORT BY</span>
                  <div class="btn-group">
                    <button
                      type="button"
                      class="bc-sort-list dropdown-toggle"
c65b51996   Digvijay Singh   new ui changes
41
42
43
44
45
46
47
                      data-toggle="dropdown"
                      aria-haspopup="true"
                      aria-expanded="false"
                    >
                      BEST
                    </button>
                    <div class="dropdown-menu short_by">
d0186c77a   Digvijay Singh   changes in ui
48
49
50
51
52
53
54
55
56
                      <a class="dropdown-item" href="javasript:void(0);"
                        >BEST 1</a
                      >
                      <a class="dropdown-item" href="javasript:void(0);"
                        >BEST 2</a
                      >
                      <a class="dropdown-item" href="javasript:void(0);"
                        >BEST 3</a
                      >
c65b51996   Digvijay Singh   new ui changes
57
58
59
60
61
62
63
64
65
66
67
68
69
                    </div>
                  </div>
                  <a
                    href="javasript:void(0);"
                    @click="chtbox_close"
                    class="close_chat_bx"
                    ><img src="../assets/images/close.png" alt="close" /></a
                  ><!-- close -->
                </div>
                <!-- action sort -->
              </div>
              <!-- top head -->
              <div class="bounce-board-body">
d0186c77a   Digvijay Singh   changes in ui
70
                
c65b51996   Digvijay Singh   new ui changes
71
72
                <!-- all user comments -->
                <ul class="bounced-user-comments">
d0186c77a   Digvijay Singh   changes in ui
73
                  <li class="bc_border" v-for="(cmnt, j) in commentList" :key="j">
c65b51996   Digvijay Singh   new ui changes
74
75
76
77
78
                    <div class="bc_brd_l"></div>
                    <!-- border -->
                    <div class="parent-full-width">
                      <div class="full-width">
                        <div class="b-user-head">
d0186c77a   Digvijay Singh   changes in ui
79
80
                          <img :src="cmnt.user.profilePic" />
                          <span class="head-content">{{ cmnt.user.name }} </span>
c65b51996   Digvijay Singh   new ui changes
81
82
83
                          <ul>
                            <li>
                              <span></span
d0186c77a   Digvijay Singh   changes in ui
84
85
86
                              ><img src="../assets/images/u-info-icon.png" />{{
                                cmnt.user.karmaPoints
                              }}pts
c65b51996   Digvijay Singh   new ui changes
87
                            </li>
d0186c77a   Digvijay Singh   changes in ui
88
                            <li><span></span>{{dateGenerator(cmnt.createdAt)}}days ago</li>
c65b51996   Digvijay Singh   new ui changes
89
90
91
92
                          </ul>
                        </div>
                        <!-- header -->
                        <p>
d0186c77a   Digvijay Singh   changes in ui
93
                          {{ cmnt.comment }}
c65b51996   Digvijay Singh   new ui changes
94
95
96
97
98
99
                        </p>
                        <div class="joined_wrapper">
                          <ul class="joined-info info_bc_spc">
                            <li>
                              <img src="../assets/images/purple-heart.png" />
                            </li>
d0186c77a   Digvijay Singh   changes in ui
100
                            <li><a href="javasript:void(0);"> 0</a></li>
c65b51996   Digvijay Singh   new ui changes
101
102
103
                            <li class="comment-spc">
                              <img src="../assets/images/purple-comment.png" />
                            </li>
d0186c77a   Digvijay Singh   changes in ui
104
                            <li><a href="javasript:void(0);"> {{cmnt.children.length}}</a></li>
c65b51996   Digvijay Singh   new ui changes
105
                          </ul>
d0186c77a   Digvijay Singh   changes in ui
106
107
108
109
110
111
112
                          <div class="add_rply" v-if="!cmnt.childInput">
                            <input
                              type="text"
                              @click="eachRply(cmnt)"
                              class="add_Rply_C"
                              placeholder="Add your reply"
                            />
c65b51996   Digvijay Singh   new ui changes
113
114
115
116
117
118
119
                          </div>
                          <!-- rly form -->
                        </div>
                        <!-- joined wrapper -->
                      </div>
                      <!-- full width -->
                    </div>
d0186c77a   Digvijay Singh   changes in ui
120
121
122
123
124
125
126
127
128
129
130
131
132
133
                    <div class="comments-footer each-ft" v-if="cmnt.childInput">
                      <textarea v-model="comment"></textarea>
                      <div class="comments-footer-wrp">
                        <a
                          @click="createChildComment(cmnt)"
                          href="javasript:void(0);"
                          class="add_comments_chat reply-Wdth"
                          >Reply</a
                        >
                        <a href="javasript:void(0);" class="discard_bt"
                          @click="discardRply(cmnt)"><img src="../assets/images/discard.svg"
                        /></a>
                      </div>
                    </div>
c65b51996   Digvijay Singh   new ui changes
134
                    <!-- parent -->
d0186c77a   Digvijay Singh   changes in ui
135
                    <div class="child-full-width" v-for="(childCmnt, i) in cmnt.children" :key="i">
c65b51996   Digvijay Singh   new ui changes
136
137
                      <div class="full-width">
                        <div class="b-user-head">
d0186c77a   Digvijay Singh   changes in ui
138
139
                          <img :src="childCmnt.user.profilePic" />
                          <span class="head-content">{{childCmnt.user.name }} </span>
c65b51996   Digvijay Singh   new ui changes
140
141
142
                          <ul>
                            <li>
                              <span></span
d0186c77a   Digvijay Singh   changes in ui
143
                              ><img src="../assets/images/u-info-icon.png" />{{childCmnt.user.karmaPoints}}pts
c65b51996   Digvijay Singh   new ui changes
144
                            </li>
d0186c77a   Digvijay Singh   changes in ui
145
                            <li><span></span>{{dateGenerator(childCmnt.createdAt)}}days ago</li>
c65b51996   Digvijay Singh   new ui changes
146
147
148
                          </ul>
                        </div>
                        <p>
d0186c77a   Digvijay Singh   changes in ui
149
                          {{childCmnt.comment}}
c65b51996   Digvijay Singh   new ui changes
150
151
152
153
154
155
                        </p>
                        <div class="joined_wrapper">
                          <ul class="joined-info info_bc_spc">
                            <li>
                              <img src="../assets/images/purple-heart.png" />
                            </li>
d0186c77a   Digvijay Singh   changes in ui
156
157
                            <li><a href="javasript:void(0);"> {{childCmnt.likes.length}}</a></li>
                            
c65b51996   Digvijay Singh   new ui changes
158
                          </ul>
d0186c77a   Digvijay Singh   changes in ui
159
                          
c65b51996   Digvijay Singh   new ui changes
160
161
                        </div>
                      </div>
d0186c77a   Digvijay Singh   changes in ui
162
163
                    </div>
                    <!-- eree -->
c65b51996   Digvijay Singh   new ui changes
164
                    
d0186c77a   Digvijay Singh   changes in ui
165
                    <!-- comments footer -->
c65b51996   Digvijay Singh   new ui changes
166
167
168
169
                  </li>
                </ul>
              </div>
              <!-- bounce board body -->
d0186c77a   Digvijay Singh   changes in ui
170
171
              <div class="comments-footer" v-if="parentInput">
                <textarea v-model="comment"></textarea>
c65b51996   Digvijay Singh   new ui changes
172
                <div class="comments-footer-wrp">
d0186c77a   Digvijay Singh   changes in ui
173
174
175
176
                  <a
                    href="javasript:void(0);"
                    class="add_comments_chat"
                    @click="createComment"
c65b51996   Digvijay Singh   new ui changes
177
178
179
180
181
182
183
184
185
186
187
188
                    ><img src="../assets/images/add-comment.svg" /> Comment</a
                  >
                </div>
              </div>
              <!-- comments footer -->
            </div>
          </div>
          <!-- bounceboard wrp -->
          <!-- chat box -->
  
  
          <div class="single-mobileInsight">
d0186c77a   Digvijay Singh   changes in ui
189
190
            <div class="top-area-blank"></div>
            <img :src="currentSlideData.payload.metaData.mobileImage" class="m-screen" />
c65b51996   Digvijay Singh   new ui changes
191
            <div class="single-left-Insight-comments">
d0186c77a   Digvijay Singh   changes in ui
192
193
              <div class="author-thoughts">
                
c65b51996   Digvijay Singh   new ui changes
194
              <img
d0186c77a   Digvijay Singh   changes in ui
195
196
                src="../assets/images/thoughts-upper.svg"
                class="upper-th"
c65b51996   Digvijay Singh   new ui changes
197
              />
d0186c77a   Digvijay Singh   changes in ui
198
199
200
201
202
                <img
                :src="currentSlideData.payload.metaData.authorImage"
                class="dynamic-thoughts"
              /> 
                </div><!-- user thoughts -->
de0f96bc5   Gurvinder Singh   new files
203
              <div class="single-author-li-comments">
c65b51996   Digvijay Singh   new ui changes
204
205
                <div class="a-intro-comments custom-c-style">
                  <p>
d0186c77a   Digvijay Singh   changes in ui
206
                   {{currentSlideData.payload.comments[0].comment}}
c65b51996   Digvijay Singh   new ui changes
207
208
209
210
                  </p>
                  <ul class="rly-comment-set">
                    <li>
                      <img src="../assets/images/color-heart.svg" />
d0186c77a   Digvijay Singh   changes in ui
211
                      <a href="javascript:void(0);">0</a>
c65b51996   Digvijay Singh   new ui changes
212
213
214
                    </li>
                    <li>
                      <img src="../assets/images/rply.svg" />
d0186c77a   Digvijay Singh   changes in ui
215
                      <a href="javascript:void(0);" @click="open_ct_box">Reply</a>
c65b51996   Digvijay Singh   new ui changes
216
217
                    </li>
                  </ul>
de0f96bc5   Gurvinder Singh   new files
218
                </div>
c65b51996   Digvijay Singh   new ui changes
219
220
221
222
223
224
                <!-- comments box -->
              </div>
              <!-- single author comments -->
              <div class="single-author-li-comments">
                <div class="a-intro-comments custom-c-style">
                  <p>
d0186c77a   Digvijay Singh   changes in ui
225
                   {{currentSlideData.payload.comments[1].comment}}
c65b51996   Digvijay Singh   new ui changes
226
227
228
229
                  </p>
                  <ul class="rly-comment-set">
                    <li>
                      <img src="../assets/images/color-heart.svg" />
d0186c77a   Digvijay Singh   changes in ui
230
                      <a href="javascript:void(0);">0</a>
c65b51996   Digvijay Singh   new ui changes
231
232
233
                    </li>
                    <li>
                      <img src="../assets/images/rply.svg" />
d0186c77a   Digvijay Singh   changes in ui
234
                      <a href="javascript:void(0);" @click="open_ct_box">Reply</a>
c65b51996   Digvijay Singh   new ui changes
235
236
237
238
239
240
                    </li>
                  </ul>
                </div>
                <!-- comments box -->
              </div>
              <!-- single author comments -->
de0f96bc5   Gurvinder Singh   new files
241
            </div>
c65b51996   Digvijay Singh   new ui changes
242
243
244
245
246
247
            <!-- single mobile Left insight  -->
            <div class="c-product-insight-wrp">
              <div class="single-author-li-comments">
                <div class="a-intro-comments custom-selected-style">
                  <img src="../assets/images/rect.svg" class="rect" />
                  <div class="top-wrp">
d0186c77a   Digvijay Singh   changes in ui
248
                    {{currentSlideData.payload.insight.tag}} Insight
56f4b7548   Digvijay Singh   landing page url ...
249
                    <a href="javascript:void(0);"><img src="../assets/images/link-red.svg" /></a>
c65b51996   Digvijay Singh   new ui changes
250
                  </div>
d0186c77a   Digvijay Singh   changes in ui
251
                  <!-- <div class="top-head">
c65b51996   Digvijay Singh   new ui changes
252
253
254
255
256
257
258
259
260
261
262
                    Decide on using multiple call to action vs single call to
                    action depending on the stage of the user journey
                  </div>
                  <p>
                    Marketing 101 teaches us to use one single, call to action
                    (CTA) at the top of the funnel before the uer has shown
                    interest in the product. <br /><br />
                    When the user is already onboarded and is in the
                    <strong> engage stage </strong>, it may be better to use a
                    single CTA for each use case in order to
                    <strong> avoid ambiguity.</strong>
d0186c77a   Digvijay Singh   changes in ui
263
264
265
                  </p> -->
                   <div class="top-head">{{currentSlideData.payload.insight.title}}</div>
                 <p>{{currentSlideData.payload.insight.description}}
c65b51996   Digvijay Singh   new ui changes
266
                  <div class="footer">
56f4b7548   Digvijay Singh   landing page url ...
267
268
                    <a href="javascript:void(0);" class="cit-16">{{currentSlideData.payload.insight.citations.length}} Citations</a>
                    <a href="javascript:void(0);" class="ft-share"
c65b51996   Digvijay Singh   new ui changes
269
270
271
272
273
                      ><img src="../assets/images/reply-red.svg" /> Share from
                      library</a
                    >
                  </div>
                  <!-- footer -->
de0f96bc5   Gurvinder Singh   new files
274
                </div>
c65b51996   Digvijay Singh   new ui changes
275
276
277
278
279
280
281
                <!-- comments box -->
              </div>
              <!-- single author comments -->
            </div>
            <!-- single mobile Right insight  -->
          </div>
          <!-- Single Mobile Insight -->
d0186c77a   Digvijay Singh   changes in ui
282
         <!-- single author comments -->
c65b51996   Digvijay Singh   new ui changes
283
284
285
          <div class="footer-nav">
            <div class="footer-top white-bg">
              <div class="row">
d0186c77a   Digvijay Singh   changes in ui
286
                <div class="col-6 col-sm-6 col-md-6 col-lg-6 c_hide">
c65b51996   Digvijay Singh   new ui changes
287
                  <div class="row h-100p">
c65b51996   Digvijay Singh   new ui changes
288
                    <div
d0186c77a   Digvijay Singh   changes in ui
289
                      class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 bord-r"
c65b51996   Digvijay Singh   new ui changes
290
                    >
d0186c77a   Digvijay Singh   changes in ui
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
                      <div class="ft-comments-group testi-photos-ct">
                        <div class="c-with-photos">
                          <span class="count-comments"
                            >{{ commentList.length - 1 }}+ Comments</span
                          ><!-- count commets -->
                          <ul class="comments-photos">
                            <li><img src="../assets/images/c-photo-1.png" /></li>
                            <li><img src="../assets/images/c-photo-2.png" /></li>
                            <li><img src="../assets/images/c-photo-3.png" /></li>
                          </ul>
                          <!-- comment photos -->
                        </div>
                        <div class="comments-detail all-c-space">
                          <span
                            >{{ commentList[commentList.length - 1].user.name }}
                            <a href="javascript:void(0);" @click="open_ct_box"
                              >View All</a
                            ></span
                          >
                          <p>
                            <!-- I wonder what the difference between “Dunzo Assistant”
                            and “Pickup and Drop... -->
                            {{ commentList[commentList.length - 1].comment }}
                          </p>
c65b51996   Digvijay Singh   new ui changes
315
                        </div>
d0186c77a   Digvijay Singh   changes in ui
316
                        <!-- comments detail -->
c65b51996   Digvijay Singh   new ui changes
317
318
319
320
321
                      </div>
                      <!-- comments Group -->
                    </div>
                  </div>
                </div>
d0186c77a   Digvijay Singh   changes in ui
322
                <div class="col-4 col-sm-4 col-md-4 col-lg-4 c_hide">
c65b51996   Digvijay Singh   new ui changes
323
324
325
                  <div class="comment-frm no-c-frm">
                    <div class="row">
                      <div class="col-8 col-sm-8 col-md-8 col-lg-10 col-xl-10">
d0186c77a   Digvijay Singh   changes in ui
326
                        <div class="form-group frm-wdth addfrm-spc">
c65b51996   Digvijay Singh   new ui changes
327
328
329
                          <input
                            type="text"
                            class="form-control"
145dd9bde   Digvijay Singh   ui fixes
330
                            placeholder="Something on your mind?"
c65b51996   Digvijay Singh   new ui changes
331
                            id="open_ct_box"
d0186c77a   Digvijay Singh   changes in ui
332
                            v-model="comment"
c65b51996   Digvijay Singh   new ui changes
333
334
335
336
                          />
                        </div>
                      </div>
                      <div class="col-2 col-sm-4 col-md-4 col-lg-4 col-xl-2">
d0186c77a   Digvijay Singh   changes in ui
337
338
339
340
                        <a
                          href="javascript:void(0);"
                          @click="createComment"
                          class="add-comment"
c65b51996   Digvijay Singh   new ui changes
341
342
343
344
345
346
347
348
                          ><img src="../assets/images/add-comment.svg" />
                          Comment</a
                        >
                      </div>
                    </div>
                    <!-- comment from -->
                  </div>
                </div>
d0186c77a   Digvijay Singh   changes in ui
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
                <div class="col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2">
                  <ul class="top-intro-bt">
                    <li>
                      <a href="javascript:void(0);" @click="goBack"
                        ><img src="../assets/images/skip-prev.svg" /> Prev</a
                      >
                    </li>
                    <li>
                      <a href="javascript:void(0);" @click="goNext"
                        ><img src="../assets/images/skip-next.svg" /> Skip to next
                        slide</a
                      >
                    </li>
                  </ul>
                </div>
                <!-- buttons list -->
c65b51996   Digvijay Singh   new ui changes
365
366
367
368
369
370
371
372
373
374
375
376
377
              </div>
            </div>
            <!-- footer top -->
            <div class="footer-bottom">
              <ul>
                <li class="active"></li>
                <li></li>
              </ul>
            </div>
            <!-- footer top -->
          </div>
          <!-- footer -->
        </div>
de0f96bc5   Gurvinder Singh   new files
378
379
380
381
382
383
384
385
386
        <!-- body wrapper -->
      </div>
      <!-- main wrapper -->
    </main>
  </template>
  
  <script>
  import Vue from "vue";
  import router from "../router";
d0186c77a   Digvijay Singh   changes in ui
387
388
  import axios from "axios";
  import moment from 'moment';
de0f96bc5   Gurvinder Singh   new files
389
390
391
392
  export default {
    name: "SingleMobileScreenInsightOne",
  
    data() {
c65b51996   Digvijay Singh   new ui changes
393
394
395
396
      return {
        allSlide: [],
        currentSlideIndex: null,
        currentSlideData: null,
d0186c77a   Digvijay Singh   changes in ui
397
398
399
400
401
        //
        usertoken: null,
        commentList: [],
        comment: null,
        parentInput: true,
c65b51996   Digvijay Singh   new ui changes
402
403
404
      };
    },
    mounted() {
d0186c77a   Digvijay Singh   changes in ui
405
     var allSlideData = localStorage.getItem(
c65b51996   Digvijay Singh   new ui changes
406
407
408
409
410
411
        "spotlight_slide" + this.$route.params.caseStudyId
      );
      if (allSlideData) {
        this.allSlide = JSON.parse(allSlideData);
        this.getCurrentSlideData();
      }
d0186c77a   Digvijay Singh   changes in ui
412
413
414
415
416
417
      var userdata = localStorage.getItem("spotlight_usertoken");
      if (userdata) {
        userdata = JSON.parse(userdata);
        this.usertoken = userdata.token;
        this.getComment();
      }
de0f96bc5   Gurvinder Singh   new files
418
    },
de0f96bc5   Gurvinder Singh   new files
419
    methods: {
c65b51996   Digvijay Singh   new ui changes
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
      getCurrentSlideData() {
        var i = this.allSlide.findIndex(
          (slide_) => slide_.slideId == this.$route.params.slideId
        );
        this.currentSlideIndex = i;
        this.currentSlideData = this.allSlide[i];
        console.log("currentSlideData", this.currentSlideData);
      },
      goNext() {
        this.currentSlideIndex++;
        this.$router.push({
          name: this.allSlide[this.currentSlideIndex].ur,
          params: {
            caseStudyId: this.allSlide[this.currentSlideIndex].caseStudyId,
            slideId: this.allSlide[this.currentSlideIndex].slideId,
          },
        });
      },
      goBack() {
        this.currentSlideIndex--;
        this.$router.push({
          name: this.allSlide[this.currentSlideIndex].ur,
          params: {
            caseStudyId: this.allSlide[this.currentSlideIndex].caseStudyId,
            slideId: this.allSlide[this.currentSlideIndex].slideId,
          },
        });
      },
d0186c77a   Digvijay Singh   changes in ui
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
      createComment() {
        console.log("===", this.comment);
        var obj = {
          caseStudyId: this.currentSlideData.caseStudyId,
          slideId: this.currentSlideData.slideId,
          comment: this.comment,
         
        };
        axios
          .post("/bounceBoard/comment", obj, {
            headers: {
              Authorization: "Bearer " + this.usertoken,
            },
          })
          .then((response) => {
            this.comment = null;
            this.getComment();
            console.log(response);
          })
          .catch((error) => {
            if (error.response) {
              this.$toaster.error(error.response.data.message);
            }
          });
      },
    createChildComment(cmnt) {
        console.log(cmnt,"===", this.comment);
        var obj = {
          caseStudyId: this.currentSlideData.caseStudyId,
          slideId: this.currentSlideData.slideId,
          comment: this.comment,
          parentId: cmnt._id,
         
        };
        axios
          .post("/bounceBoard/comment", obj, {
            headers: {
              Authorization: "Bearer " + this.usertoken,
            },
          })
          .then((response) => {
            this.comment = null;
            this.discardRply(cmnt);
            this.getComment();
            console.log(response);
          })
          .catch((error) => {
            if (error.response) {
              this.$toaster.error(error.response.data.message);
            }
          });
      },
      getComment() {
        axios
          .get(
            `/bounceBoard/comments?slideId=${this.currentSlideData.slideId}&caseStudyId=${this.currentSlideData.caseStudyId}`,
            {
              headers: {
                Authorization: "Bearer " + this.usertoken,
              },
            }
          )
          .then((response) => {
            console.log(response.data);
            var comments = [];
           var keys = Object.keys(response.data.data)
            response.data.data
            keys.forEach((key_) => {
              comments.push(response.data.data[key_])
            });
            comments.forEach((coment_)=>{
              coment_.childInput = false;
            });
            console.log("comments",comments)
            this.commentList = comments;
          })
          .catch((error) => console.log(error));
      },
      dateGenerator(curreDate){
         var todayDate = moment(new Date(), "DD.MM.YYYY");
          var endDate = moment(new Date(curreDate), "DD.MM.YYYY");
          var result = todayDate.diff(endDate, 'days');
          return result;
      },
de0f96bc5   Gurvinder Singh   new files
532
      goToLogin() {
56f4b7548   Digvijay Singh   landing page url ...
533
        this.$router.push("/login");
de0f96bc5   Gurvinder Singh   new files
534
535
      },
      goToSignUp() {
56f4b7548   Digvijay Singh   landing page url ...
536
        this.$router.push("/");
de0f96bc5   Gurvinder Singh   new files
537
      },
c65b51996   Digvijay Singh   new ui changes
538
539
540
541
542
543
544
545
546
547
      chtbox_close() {
        $("#cht_box_close").removeClass("cht_close");
        $("#open_ct_box, .c_hide").show();
        $(".footer-top").addClass("white-bg");
      },
      open_ct_box() {
        $("#cht_box_close").addClass("cht_close");
        $("#open_ct_box, .c_hide").hide();
        $(".footer-top").removeClass("white-bg");
      },
d0186c77a   Digvijay Singh   changes in ui
548
549
550
551
552
553
554
555
556
      eachRply(cmnt) {
        cmnt.childInput = true;
        this.parentInput = false;
      },
      discardRply(cmnt) {
        cmnt.childInput = false;
        this.parentInput = true;
  
      },
de0f96bc5   Gurvinder Singh   new files
557
558
    },
  };
d0186c77a   Digvijay Singh   changes in ui
559
  //
de0f96bc5   Gurvinder Singh   new files
560
  </script>