xiaoming_global 5 anni fa
parent
commit
5508826307

+ 16 - 1
src/router/index.js Vedi File

@@ -5,7 +5,6 @@ Vue.use(Router)
5 5
 
6 6
 /* Layout */
7 7
 import Layout from '@/views/layout/Layout'
8
-
9 8
 import role from './modules/role'
10 9
 import article from './modules/article'
11 10
 import member from './modules/member'
@@ -55,6 +54,21 @@ var _constant_router_map = [{
55 54
   component: () => import('@/views/errorPage/401'),
56 55
   hidden: true
57 56
 },
57
+{
58
+  path: '',
59
+  component: Layout,
60
+  redirect: '/home',
61
+  children: [{
62
+    path: '/home',
63
+    component: () => import('@/scrm_pages/home/index'),
64
+    name: 'home',
65
+    meta: {
66
+      title: 'home',
67
+      icon: 'dashboard',
68
+      noCache: true
69
+    }
70
+  }]
71
+},
58 72
 // {
59 73
 //   path: '',
60 74
 //   component: ()=>import('@/scrm_pages/qrcode/qrcode'),
@@ -79,6 +93,7 @@ var _constant_router_map = [{
79 93
 ]
80 94
 
81 95
 var _asy_router_map = [
96
+  
82 97
   member,
83 98
   kefu,
84 99
   article,

+ 2 - 2
src/scrm_pages/kefu/index.vue Vedi File

@@ -1037,7 +1037,7 @@ var kgetPrePageC2CHistroyMsgInfoMap = {};
1037 1037
 }
1038 1038
 .client_list ul .item {
1039 1039
   padding: 17px 12px 17px 62px;
1040
-  min-height: 36px;
1040
+  min-height: 54px;
1041 1041
   cursor: pointer;
1042 1042
   font-size: 12px;
1043 1043
   transition: background-color 0.2s linear;
@@ -1086,7 +1086,7 @@ var kgetPrePageC2CHistroyMsgInfoMap = {};
1086 1086
 }
1087 1087
 .client_list ul .item .session-pic {
1088 1088
   position: absolute;
1089
-  top: 17px;
1089
+  top: 6px;
1090 1090
   left: 13px;
1091 1091
   width: 40px;
1092 1092
   height: 40px;

+ 3 - 5
src/scrm_pages/site/index.vue Vedi File

@@ -61,7 +61,7 @@ export default {
61 61
       codeImg: require("../../assets/home/wei.jpg"),
62 62
       usreOrgID: "",
63 63
       //  url:"http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id,
64
-      url: "http://jk.test.sgjyun.com/#/microHome?orgid=" +  this.$store.getters.xt_user.org_id
64
+       url: "http://jk.test.sgjyun.com/#/microHome?orgid=" +  this.$store.getters.xt_user.org_id
65 65
     };
66 66
   },
67 67
   methods: {
@@ -69,10 +69,8 @@ export default {
69 69
       let qrcode = new QRCode("qrcode", {
70 70
         width: 100,
71 71
         height: 100, // 高度
72
-         text: 'http://microweb.kuyicloud.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id // 二维码内容
73
-        // text:
74
-          // "http://jk.test.sgjyun.com/#/microHome?orgid=" +
75
-          // this.$store.getters.xt_user.org_id // 二维码内容
72
+        // text: 'http://microweb.kuyicloud.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id // 二维码内容
73
+         text:"http://jk.test.sgjyun.com/#/microHome?orgid=" + this.$store.getters.xt_user.org_id // 二维码内容
76 74
         // render: 'canvas' // 设置渲染方式(有两种方式 table和canvas,默认是canvas)
77 75
         // background: '#f0f'
78 76
         // foreground: '#ff0'

+ 51 - 30
src/scrm_pages/site/preview.vue Vedi File

@@ -158,12 +158,12 @@
158 158
                       <div class="tipstwo"><p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p></div>
159 159
                      <el-form-item label="图片链接:" required prop= "piclink">
160 160
                        <el-radio-group v-model="singform.piclink">
161
-                        <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclink(gender.id)" >{{gender.name}}</el-radio>
161
+                        <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclinktwo(gender.id)" >{{gender.name}}</el-radio>
162 162
                      </el-radio-group>
163 163
                      </el-form-item>
164 164
                       <el-form-item label="链接地址:" v-show="showpiclink">
165 165
                           <el-col :span="15">
166
-                             <el-input v-model="singform.linkaddress"></el-input>
166
+                             <el-input v-model="singform.linkaddress" :disabled="true"></el-input>
167 167
                           </el-col>
168 168
                           <el-col :span="4">
169 169
                             <el-button size="medium" @click="GetLinkAddress(singform.linkid);addressVisible = true">设置链接</el-button>
@@ -814,12 +814,12 @@
814 814
                       </el-form-item>
815 815
                       <el-form-item label="图片链接:">
816 816
                          <el-radio-group v-model="editpic.piclink" >
817
-                            <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclink(gender.id)" >{{gender.name}}</el-radio>
817
+                            <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="selectpiclinkfour(gender.id)" >{{gender.name}}</el-radio>
818 818
                          </el-radio-group>
819 819
                       </el-form-item>
820 820
                       <el-form-item label="链接地址:" v-show="showpiclink">
821 821
                           <el-col :span="15">
822
-                             <el-input v-model="editpic.linkaddress"></el-input>
822
+                             <el-input v-model="editpic.linkaddress" :disabled="true"></el-input>
823 823
                           </el-col>
824 824
                           <el-col :span="4">
825 825
                             <el-button size="medium" @click="setlinkVisible = true;getLinkAddressDetail(editpic.linkid)">设置链接</el-button>
@@ -1231,7 +1231,7 @@
1231 1231
                           <el-input  v-model="editmacform.marginaddress" :disabled="true"></el-input>
1232 1232
                          </el-col>
1233 1233
                          <el-col :span="4">
1234
-                           <el-button size="medium" @click="linkVisiblefour=true;getLikeMacAddressById(editmacform.marginaddress);">设置链接</el-button>
1234
+                           <el-button size="medium" @click="linkVisiblefour=true;getLikeMacAddressById(editmacform.linkid);">设置链接</el-button>
1235 1235
                          </el-col>
1236 1236
                     </el-form-item>
1237 1237
                     </el-form>
@@ -1413,8 +1413,8 @@
1413 1413
                             <!-- 轮播图 -->
1414 1414
                              <div v-if="item.mode_type == 1" class="modeone">
1415 1415
                                  <mt-swipe :auto="2000" class="swipertwo">                          
1416
-                                 <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">
1417
-                                   <img :src="it.images" style="width:318px;height:9.4375rem">
1416
+                                 <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">                     
1417
+                                   <img :src="it.images" style="width:318px;height:9.4375rem">                                 
1418 1418
                                  </mt-swipe-item>
1419 1419
                                  </mt-swipe>                  
1420 1420
                              </div>
@@ -2142,8 +2142,9 @@ export default {
2142 2142
         editpic:{
2143 2143
           images:"",
2144 2144
           sort:"",
2145
-          piclink:"",
2145
+          piclink:1,
2146 2146
           modeid:"",
2147
+          linkid:"",
2147 2148
         },
2148 2149
       officeform:{
2149 2150
         title:"",
@@ -2273,6 +2274,7 @@ export default {
2273 2274
           margimage:"",
2274 2275
           marginaddress:"",
2275 2276
           jumpset:1,
2277
+          linkid:"",
2276 2278
        },
2277 2279
         macdataImages:[],
2278 2280
        images:"",
@@ -2614,7 +2616,9 @@ export default {
2614 2616
                 if(response.data.state == 1){
2615 2617
                   this.setlinkVisible = false;
2616 2618
                    var conlinkaddress =  response.data.data.conlinkaddress;
2619
+                   console.log("conlinkaddress",conlinkaddress)
2617 2620
                    this.editpic.linkaddress = conlinkaddress.defineaddress;
2621
+                   this.editpic.linkid = conlinkaddress.id;
2618 2622
                 }
2619 2623
            })
2620 2624
          })
@@ -3520,6 +3524,7 @@ export default {
3520 3524
                 var macnavigation =   response.data.data.macnavigation;
3521 3525
                 this.macdataImages = response.data.data.macnavigation;
3522 3526
                   var model = response.data.data.model;
3527
+                  console.log("model是什么",model)
3523 3528
                  this.macform =  response.data.data.model;
3524 3529
                 console.log("返回查询数据",this.macdataImages)
3525 3530
                }
@@ -3536,13 +3541,11 @@ export default {
3536 3541
          })
3537 3542
       },
3538 3543
       editVisibleByid(id){
3539
-
3540 3544
         editVisibleByid(id).then(response=>{
3541 3545
             if(response.data.state == 1){
3542 3546
               var conrotation = response.data.data.conrotation;
3543 3547
               console.log("hheh",conrotation)
3544
-               this.editpic = response.data.data.conrotation;
3545
-               this.showpiclink = true;
3548
+               this.editpic = conrotation;
3546 3549
             }
3547 3550
         })
3548 3551
       },
@@ -4248,8 +4251,24 @@ export default {
4248 4251
             }
4249 4252
        })
4250 4253
      },
4251
-
4252
-    
4254
+      selectpiclinktwo(id){
4255
+        if(id == 1){
4256
+          this.showpiclink = false;
4257
+          this.singform.linkaddress = "";
4258
+        }
4259
+        if(id ==2){
4260
+        this.showpiclink = true;
4261
+        }
4262
+      },
4263
+     selectpiclinkfour(id){
4264
+        if(id == 1){
4265
+           this.showpiclink = false;
4266
+           this.editpic.linkaddress = "";
4267
+        }
4268
+        if(id == 2){
4269
+          this.showpiclink = true;
4270
+        }
4271
+     },
4253 4272
 
4254 4273
 
4255 4274
      selectpiclink(id){
@@ -4465,7 +4484,7 @@ export default {
4465 4484
       let qrcode = new QRCode('qrcode', {
4466 4485
         width: 100,
4467 4486
         height: 100, // 高度
4468
-        //  text:'http://microweb.kuyicloud.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
4487
+        // text:'http://microweb.kuyicloud.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
4469 4488
           text:'http://jk.test.sgjyun.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
4470 4489
 
4471 4490
       })
@@ -4755,6 +4774,7 @@ export default {
4755 4774
       getLikeMacAddressById(id,this.linkform).then(response=>{
4756 4775
          if(response.data.state ==1){
4757 4776
            var magiclink =   response.data.data.magiclink;
4777
+           console.log("magiclink是什么",magiclink)
4758 4778
            if(magiclink.linktype == 2){
4759 4779
              this.definetwo = true;
4760 4780
            }
@@ -4819,11 +4839,11 @@ export default {
4819 4839
                   //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4820 4840
                 } 
4821 4841
                 if(model.mode_type == 2){
4822
-                     //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4823
-                       this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4842
+                      // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4843
+                      this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4824 4844
                 }
4825 4845
                 if(model.mode_type == 3){
4826
-                    //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4846
+                     // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4827 4847
                       this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4828 4848
                 }
4829 4849
                  if(model.mode_type == 4){
@@ -4832,7 +4852,7 @@ export default {
4832 4852
                 }
4833 4853
                if(model.mode_type == 5){
4834 4854
                       this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/departmentEnvironment?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4835
-                       // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4855
+                      //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/departmentEnvironment?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4836 4856
                 }
4837 4857
                 if(model.mode_type == 6){
4838 4858
                     // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
@@ -4840,7 +4860,7 @@ export default {
4840 4860
                 }
4841 4861
                  if(model.mode_type == 7){
4842 4862
                     // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4843
-                     this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4863
+                    this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4844 4864
                 }
4845 4865
                 if(model.mode_type == 8){
4846 4866
                     // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
@@ -4873,27 +4893,28 @@ export default {
4873 4893
                   //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4874 4894
                 } 
4875 4895
                 if(model.mode_type == 2){
4876
-                      // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4896
+                      //this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4877 4897
                        this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4878 4898
                 }
4879 4899
                 if(model.mode_type == 3){
4880
-                       // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4881
-                        this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4900
+                     //   this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4901
+                       this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4882 4902
                 }
4883 4903
                  if(model.mode_type == 4){
4884
-                      // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4904
+                     //  this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4885 4905
                         this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4886 4906
                 }
4887 4907
                if(model.mode_type == 5){
4888
-                        //this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/departmentEnvironment?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4889
-                      this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4908
+                     //   this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/departmentEnvironment?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4909
+                       this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/departmentEnvironment?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4910
+                    
4890 4911
                 }
4891 4912
                 if(model.mode_type == 6){
4892 4913
                     // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4893 4914
                      this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4894 4915
                 }
4895 4916
                  if(model.mode_type == 7){
4896
-                    // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4917
+                   //  this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4897 4918
                      this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4898 4919
                 }
4899 4920
                 if(model.mode_type == 8){
@@ -4942,7 +4963,7 @@ export default {
4942 4963
        }
4943 4964
 
4944 4965
       if(this.navigationlinkform.navitionlinktype == 1){
4945
-          //  this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
4966
+         //  this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
4946 4967
             this.navigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
4947 4968
       }
4948 4969
       if(this.navigationlinkform.navitionlinktype == 2){
@@ -5019,15 +5040,15 @@ export default {
5019 5040
          this.editnavigationlinkform.navitionlinktype = navigationlinktypes;
5020 5041
 
5021 5042
          if(this.editnavigationlinkform.navitionlinktype == 1){
5022
-            // this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5023
-              this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5043
+           //  this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5044
+             this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5024 5045
          }
5025 5046
          if(this.editnavigationlinkform.navitionlinktype == 2){
5026 5047
             this.editnavigationlinkform.linkaddress = "http://shop.kuyicloud.com/app/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&fxtoken=bdc5659cbd1bd67baa9af215b0d6ae4c&fxorgid=3877&timestamp=1571050598&fxadmin=185&wxref=mp.weixin.qq.com#wechat_redirect";
5027 5048
             // this.editnavigationlinkform.linkaddress = "http://shop.kuyicloud.com/app/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&fxtoken=bdc5659cbd1bd67baa9af215b0d6ae4c&fxorgid=3877&timestamp=1571050598&fxadmin=185&wxref=mp.weixin.qq.com#wechat_redirect";
5028 5049
          }
5029 5050
          if(this.editnavigationlinkform.navitionlinktype == 3){
5030
-           // this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
5051
+          //  this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
5031 5052
             this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
5032 5053
          }
5033 5054