Commit 4490fe7f65fabb2333806600a5cea23de29689bd

Authored by Digvijay Singh
1 parent 3986e5ad71
Exists in admin

base url changed

Showing 2 changed files with 94 additions and 23 deletions   Show diff stats
src/components/Profile.vue
1 1 <template>
2 2 <main class="landing-page">
  3 +
  4 +
  5 + <!-- profile -->
  6 + <div class="popup-wrp" style="display: none">
  7 + <div class="overlay" @click="hideDialog"></div>
  8 + <div class="popup-set" id="add-profile" style="display: none;width:700px">
  9 +
  10 + <!-- header -->
  11 + <div class="popup-body">
  12 + <form class="popup-forms">
  13 + <div class="row">
  14 + <!-- input -->
  15 + <img :src="templateImage" />
  16 + <!-- input -->
  17 +
  18 +
  19 +
  20 + <!-- input -->
  21 +
  22 + <!-- input -->
  23 + <!-- <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
  24 + <div class="form-group floating-label">
  25 + <select class="form-group">
  26 + <option @click="addSocialLink">Add another</option>
  27 + </select>
  28 + <span class="select-arrow"
  29 + ><img src="../assets/images/chevron-down.svg"
  30 + /></span>
  31 + </div>
  32 + </div> -->
  33 + <!-- input -->
  34 + </div>
  35 +
  36 + </form>
  37 + </div>
  38 + <div class="clearfix"></div>
  39 + </div>
  40 + <!-- add profile -->
  41 + </div>
  42 + <!-- profile -->
3 43 <!-- profile -->
4 44 <div class="container-fluid inner-wrp" style="background: transparent">
5 45 <nav class="navbar navbar-expand-sm spotLight-nav">
... ... @@ -291,25 +331,7 @@
291 331 </div>
292 332 </div>
293 333  
294   - <!-- 1st row -->
295   - <div class="row">
296   - <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
297   - <div class="form-group floating-label">
298   - <label for="lname" class="lname">Slides Name</label>
299   - <select
300   - class="form-control"
301   - v-model="slideId"
302   - v-on:change="slideSelected(slideId)"
303   - >
304   - <option value="null">Select Slide</option>
305   - <option v-for="(template, i) in templateList" :key="i" :value="i">
306   - {{ template._id }}
307   - </option>
308   - </select>
309   - </div>
310   - </div>
311   - </div>
312   - <!-- 1st row -->
  334 +
313 335  
314 336 <!-- case study slides-->
315 337 <div
... ... @@ -328,6 +350,12 @@
328 350 >
329 351 Remove</a
330 352 >
  353 + <a
  354 + style="cursor: pointer; color: blue; font-size: 0.8rem"
  355 + @click="addProfileDialog(slide)"
  356 + >
  357 + View</a
  358 + >
331 359 </p>
332 360 </li>
333 361 <li class="nav-item active" v-if="slide.insight">
... ... @@ -412,6 +440,27 @@
412 440  
413 441 </div>
414 442  
  443 +
  444 + <!-- 1st row -->
  445 + <div class="row">
  446 + <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
  447 + <div class="form-group floating-label">
  448 + <label for="lname" class="lname">Slides Name</label>
  449 + <select
  450 + class="form-control"
  451 + v-model="slideId"
  452 + v-on:change="slideSelected(slideId)"
  453 + >
  454 + <option value="null">Select Slide</option>
  455 + <option v-for="(template, i) in templateList" :key="i" :value="i">
  456 + {{ template.name }}
  457 + </option>
  458 + </select>
  459 + </div>
  460 + </div>
  461 + </div>
  462 + <!-- 1st row -->
  463 +
415 464 <!-- 1st row end -->
416 465 <!-- case study ends -->
417 466 <div class="clearfix"></div>
... ... @@ -450,6 +499,7 @@ export default {
450 499 data() {
451 500 return {
452 501 loggedinFlag: false,
  502 + templateImage:null,
453 503 caseId: null,
454 504 editMode: false,
455 505 userData: null,
... ... @@ -593,12 +643,12 @@ export default {
593 643 .then((response) => {
594 644 if (type == "logo") {
595 645  
596   - setTimeout(() => this.caseStudy.caseStudyDetails.intro.logoURL = response.data.data, 10);
  646 + setTimeout(() => this.caseStudy.caseStudyDetails.intro.logoURL = response.data.data, 99);
597 647 } else if (type == "outdor") {
598 648 this.caseStudy.caseStudyDetails.outro.authorImage = [];
599 649 setTimeout(() => this.caseStudy.caseStudyDetails.outro.authorImage.push(
600 650 response.data.data
601   - ), 10);
  651 + ), 99);
602 652  
603 653 }
604 654  
... ... @@ -877,6 +927,26 @@ export default {
877 927 this.$router.push(url);
878 928 },
879 929  
  930 + addProfileDialog(slide) {
  931 + console.log("slide",slide)
  932 + this.templateImage = slide.templateImage;
  933 + $(".inner-wrp").addClass("body-blur");
  934 + $("#add-social-links").hide();
  935 + $(".popup-wrp, #add-profile").show();
  936 + },
  937 +
  938 + closeDialog() {
  939 + this.templateImage = null;
  940 + $(".popup-wrp").hide();
  941 + $(".inner-wrp").removeClass("body-blur");
  942 + // this.saveProfile();
  943 + },
  944 + hideDialog() {
  945 + this.templateImage = null;
  946 + $(".popup-wrp").hide();
  947 + $(".inner-wrp").removeClass("body-blur");
  948 + },
  949 +
880 950 async getMeatda(tempId) {
881 951 var obj = [
882 952 {
... ...
... ... @@ -36,9 +36,10 @@ Vue.use(Auth0Plugin, {
36 36 });
37 37  
38 38 Vue.config.productionTip = false
39   -
  39 +// https://api.productgrowth.org/pg
  40 +// http://174.138.121.70:3006/pg
40 41 Vue.prototype.moment = moment
41   -axios.defaults.baseURL = 'http://174.138.121.70:3006/pg'
  42 +axios.defaults.baseURL = 'https://api.productgrowth.org/pg'
42 43  
43 44 /* eslint-disable no-new */
44 45 new Vue({
... ...