xiaoming_global пре 5 година
родитељ
комит
e800d478fb

+ 1 - 8
src/api/site/site.js Прегледај датотеку

@@ -682,6 +682,7 @@ export function getMacImages(id,data){
682 682
 }
683 683
 
684 684
 export function SaveActivit(id,data){
685
+    console.log("我和我的祖国",data)
685 686
   return request({
686 687
       url:"/api/site/saveactivit?id="+id,
687 688
       method:"Post",
@@ -1349,11 +1350,3 @@ export function AddRotationVisibleForm(id,data){
1349 1350
     })
1350 1351
 }
1351 1352
 
1352
-export function AddMagiclinkDataTwo(id,data){
1353
-    console.log("data是什么",data)
1354
-   return request({
1355
-       url:"/api/site/addmagiclinkdatatwo?id="+id,
1356
-       method:"Post",
1357
-       data:data,
1358
-   })
1359
-}

+ 1 - 0
src/scrm_pages/kefu/index.vue Прегледај датотеку

@@ -960,6 +960,7 @@ var kgetPrePageC2CHistroyMsgInfoMap = {};
960 960
   height: 100%;
961 961
   overflow: hidden;
962 962
   overflow-y: auto;
963
+  /* border: solid 1px red; */
963 964
 }
964 965
 .customer_plate .aside .customer_search {
965 966
   margin: 0 10px;

+ 65 - 76
src/scrm_pages/site/components/new-feature.vue Прегледај датотеку

@@ -23,31 +23,31 @@
23 23
           <li @click="four = true">
24 24
             <span>
25 25
                 <img :src="new4" alt="" style="width:40px;height:40px">
26
-                <p>名医介绍</p>  
26
+                <p>医护团队</p>  
27 27
               </span>  
28 28
           </li>
29 29
           <li @click="five = true">
30 30
             <span>
31 31
                 <img :src="new5" alt="" style="width:40px;height:40px">
32
-                <p class="title">科室环境</p>  
32
+                <p>医院环境</p>  
33 33
               </span>  
34 34
           </li>
35 35
           <li @click="six = true">
36 36
             <span>
37 37
                 <img :src="new6" alt="" style="width:40px;height:40px">
38
-                <p class="title">文章列表</p>  
38
+                <p>医院动态</p>  
39 39
               </span>  
40 40
           </li>
41 41
           <li @click="seven = true">
42 42
             <span>
43 43
                 <img :src="new7" alt="" style="width:40px;height:40px">
44
-                <p class="title">活动列表</p>  
44
+                <p>医院活动</p>  
45 45
               </span>  
46 46
           </li>
47 47
           <li @click="eight = true" >
48 48
             <span>
49 49
                 <img :src="new8" alt="" style="width:40px;height:40px">
50
-                <p class="title">魔方导航</p>  
50
+                <p>魔方导航</p>  
51 51
               </span>  
52 52
           </li>
53 53
       </ul>
@@ -561,7 +561,7 @@
561 561
         <el-input v-model="articeform.sort" type="number"></el-input>
562 562
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
563 563
       </el-form-item>
564
-      <el-form-item label="文章分类: ">
564
+      <!-- <el-form-item label="文章分类: ">
565 565
         <el-select v-model="articeform.category"  style="width:49%;float:left;">
566 566
             <el-option
567 567
                v-for="item in articeType"
@@ -578,7 +578,7 @@
578 578
          :value="item.id">         
579 579
          </el-option>
580 580
         </el-select>
581
-      </el-form-item>
581
+      </el-form-item> -->
582 582
       <el-form-item label="首页展示条数: " required prop="number">
583 583
         <el-input v-model="articeform.number"></el-input>
584 584
         <p class="tips">请输入1-9的整数,最大数量为9</p>
@@ -780,7 +780,7 @@
780 780
 </el-dialog> 
781 781
 
782 782
 <el-dialog
783
-  title="设置链接地址6"
783
+  title="设置链接地址"
784 784
   :visible.sync="magicVisible"
785 785
   width="30%"
786 786
   center>
@@ -809,7 +809,7 @@
809 809
   </el-form>
810 810
   <span slot="footer" class="dialog-footer">
811 811
     <el-button @click="magicVisible = false">取 消</el-button>
812
-    <el-button type="primary" @click="AddMagiclinkDataTwo('maclinkform');">确 定</el-button>
812
+    <el-button type="primary" @click="AddMagiclinkData('maclinkform');">确 定</el-button>
813 813
   </span>
814 814
 </el-dialog>
815 815
 
@@ -880,7 +880,7 @@
880 880
    getQueryDoCHead,editDoctor,saveDocInfo,deleteDoctor,AddImageslink,getEditImages,AddMagicNavi,getMagicImages,AddMarginChart,
881 881
    deleteRotations,editRotationImages,updateRotionImages,addActiveform,deleteMargin,getEditImagesDetail,UpdateEditMacgin,getArticleType
882 882
    ,AddArticeList,getEnImages,EditEnvirImages,AddtwoImages,deleteOfficeById,GetArticleById,GetAllActivity,AddLinkAddress,AddMagiclinkData,
883
-   getMacLinkAddress,getCountImages,getAllModelTitle, GetMagicLinkAddressByID,GetRotationVisibleByLinkId,AddRotationVisibleForm,AddMagiclinkDataTwo} from '@/api/site/site'  
883
+   getMacLinkAddress,getCountImages,getAllModelTitle, GetMagicLinkAddressByID,GetRotationVisibleByLinkId,AddRotationVisibleForm} from '@/api/site/site'  
884 884
    import { getToken } from '@/api/qiniu'
885 885
    import { getFileExtension} from '@/utils/tools'
886 886
    import { isIP, isIPv4 } from 'net';
@@ -1974,12 +1974,10 @@ export default {
1974 1974
          this.definetwo = false;
1975 1975
          this.definethree = false;
1976 1976
          this.definefour = false;
1977
-         this.maclinkform.instationlink = '';
1978
-         this.maclinkform.phone = '';
1979
-         this.maclinkform.outstationlink = '';
1980
-        
1977
+         this.maclinkform.instationlink = 0;
1978
+         this.maclinkform.phone = "";
1979
+         this.maclinkform.outstationlink = "";       
1981 1980
        }
1982
-
1983 1981
        if(id==2){
1984 1982
           this.definetwo = true;
1985 1983
           this.definethree = false;
@@ -1992,7 +1990,7 @@ export default {
1992 1990
          this.definethree = true;
1993 1991
          this.definetwo = false;
1994 1992
          this.definefour = false;
1995
-         this.maclinkform.instationlink = ""
1993
+         this.maclinkform.instationlink = 0
1996 1994
          this.maclinkform.outstationlink = "";
1997 1995
        }
1998 1996
 
@@ -2000,7 +1998,7 @@ export default {
2000 1998
          this.definefour = true;
2001 1999
          this.definetwo = false;
2002 2000
          this.definethree = false;
2003
-         this.maclinkform.instationlink = "";
2001
+         this.maclinkform.instationlink = 0;
2004 2002
          this.maclinkform.phone = "";
2005 2003
        }
2006 2004
      },
@@ -2278,71 +2276,62 @@ export default {
2278 2276
          
2279 2277
         }
2280 2278
      },
2281
-     AddMagiclinkDataTwo(formName){
2282
-         if(this.maclinkform.instationlink == ""){
2283
-                this.maclinkform.instationlink = 0;
2284
-         }
2279
+     AddMagiclinkData(formName){ 
2280
+         var instationlink =  this.maclinkform.instationlink;
2281
+         var instationlinks = parseInt(instationlink);
2282
+         this.maclinkform.instationlink = instationlinks;
2285 2283
         this.$refs[formName].validate((valid)=>{
2286 2284
           if(valid){
2287
-            AddMagiclinkDataTwo(this.maclinkform).then(response=>{
2288
-              if(response.data.state == 1){
2289
-                console.log("hhehheehehehheh")
2290
-                 this.magicVisible = false;
2291
-              }
2285
+            AddMagiclinkData(this.maclinkform).then(response=>{
2286
+                if(response.data.state == 1){
2287
+                  var magiclink =  response.data.data.magiclink;
2288
+                   console.log("链接返回数据",magiclink)
2289
+                  var model =  response.data.data.model;
2290
+                  console.log("model是什么",model)
2291
+               if(model.mode_type == 1){
2292
+                    this.editmacform.marginaddress = "javascript:;";
2293
+                } 
2294
+                if(model.mode_type == 2){
2295
+                      this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2296
+                     
2297
+                }
2298
+                if(model.mode_type == 3){
2299
+                       this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2300
+                }
2301
+                 if(model.mode_type == 4){
2302
+                       this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2303
+                }
2304
+               if(model.mode_type == 5){
2305
+                    this.editmacform.marginaddress = "javascript:;";
2306
+                }
2307
+                if(model.mode_type == 6){
2308
+                    this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2309
+                }
2310
+                 if(model.mode_type == 7){
2311
+                    this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2312
+                }
2313
+                if(model.mode_type == 8){
2314
+                  this.editmacform.marginaddress = "javascript:;";
2315
+                }
2316
+
2317
+                  if(magiclink.linktype ==3 && magiclink.phone != ""){
2318
+                     this.editmacform.marginaddress =  magiclink.phone;
2319
+                  }
2320
+
2321
+                  if(magiclink.linktype == 4 && magiclink.outstationlink != ""){
2322
+                     this.editmacform.marginaddress =  magiclink.outstationlink;
2323
+                  }
2324
+                 this.editmarginform.linkid =  magiclink.id
2325
+                  this.maclinkform.instationlink = "";
2326
+                  this.maclinkform.phone = "";
2327
+                  this.maclinkform.outstationlink = "";
2328
+                   this.magicVisible = false;
2329
+                 
2330
+                }
2292 2331
             })
2293 2332
           }
2294 2333
         })
2295 2334
      },
2296
-
2297
-    //  AddMagiclinkData(formName){ 
2298
-    //     this.$refs[formName].validate((valid)=>{
2299
-    //       if(valid){
2300
-    //        if(this.maclinkform.instationlink == ""){
2301
-    //         this.maclinkform.instationlink = 0;
2302
-    //      }
2303
-    //      var instationlink =  this.maclinkform.instationlink;
2304
-    //      var instationlinks = parseInt(instationlink);
2305
-    //      this.maclinkform.instationlink = instationlinks;
2306
-    //         AddMagiclinkData(this.maclinkform).then(response=>{
2307
-    //             if(response.data.state == 1){
2308
-    //                 this.magicVisible = false;
2309
-    //               var magiclink =  response.data.data.magiclink;
2310
-    //                console.log("链接返回数据",magiclink)
2311
-    //               var model =  response.data.data.model;
2312
-    //               console.log("model是什么",model)
2313
-    //            if(model.mode_type == 1){
2314
-    //                 this.editmacform.marginaddress = "javascript:;";
2315
-    //             } 
2316
-    //             if(model.mode_type == 2){
2317
-    //                   this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2318
-    //             }
2319
-    //             if(model.mode_type == 3){
2320
-    //                    this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2321
-    //             }
2322
-    //              if(model.mode_type == 4){
2323
-    //                    this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2324
-    //             }
2325
-    //            if(model.mode_type == 5){
2326
-    //                 this.editmacform.marginaddress = "javascript:;";
2327
-    //             }
2328
-    //             if(model.mode_type == 6){
2329
-    //                 this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2330
-    //             }
2331
-    //              if(model.mode_type == 7){
2332
-    //                 this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
2333
-    //             }
2334
-    //             if(model.mode_type == 8){
2335
-    //               this.editmacform.marginaddress = "javascript:;";
2336
-    //             }
2337
-    //              this.editmarginform.linkid =  magiclink.id
2338
-    //               this.maclinkform.instationlink = "";
2339
-    //               this.maclinkform.phone = "";
2340
-    //               this.maclinkform.outstationlink = "";
2341
-    //             }
2342
-    //         })
2343
-    //       }
2344
-    //     })
2345
-    //  },
2346 2335
      getMacLinkAddress(){
2347 2336
        getMacLinkAddress().then(response=>{
2348 2337
           if(response.data.state ==1){

+ 7 - 8
src/scrm_pages/site/index.vue Прегледај датотеку

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

+ 121 - 72
src/scrm_pages/site/preview.vue Прегледај датотеку

@@ -620,33 +620,17 @@
620 620
                        :visible.sync="ArticleVisible"
621 621
                         width="30%"
622 622
                         center>
623
-                       <el-form ref="articeform" :model="articeform" label-width="110px">
624
-                         <el-form-item label="文章标题:">
623
+                       <el-form ref="articeform" :model="articeform" label-width="110px" :rules="rules">
624
+                         <el-form-item label="文章标题:" required prop="title">
625 625
                            <el-input v-model="articeform.title"></el-input>
626 626
                          </el-form-item>
627
-                         <el-form-item label="排序值:">
627
+                         <el-form-item label="排序值:" required prop="sort">
628 628
                             <el-input v-model="articeform.sort" type="number"></el-input>
629
+                             <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
629 630
                          </el-form-item>
630
-                         <el-form-item label="文章分类:">
631
-                           <el-select v-model="articeform.category"  style="width:49%;float:left;">
632
-                             <el-option
633
-                               v-for="item in articeType"
634
-                               :key="item.id"
635
-                               :label="item.name"
636
-                               :value="item.id">
637
-                            </el-option>
638
-                        </el-select>
639
-                        <el-select v-model="articeform.categoryone" style="width:49%;float:right;">
640
-                           <el-option
641
-                              v-for="item in articeTypelist"
642
-                              :key="item.id"
643
-                              :label="item.name"
644
-                              :value="item.id">
645
-                          </el-option>
646
-                         </el-select>
647
-                       </el-form-item>
648
-                       <el-form-item label="展示条数:">
631
+                       <el-form-item label="首页展示条数:" required prop="number">
649 632
                          <el-input v-model="articeform.number"></el-input>
633
+                         <p class="tips">请输入1-9的整数,最大数量为9</p>
650 634
                        </el-form-item>
651 635
                        </el-form>
652 636
                        <span slot="footer" class="dialog-footer">
@@ -658,16 +642,16 @@
658 642
                      <el-dialog
659 643
                        title="编辑活动列表"
660 644
                        :visible.sync="activityVisible"
661
-                        width="30%"
645
+                        width="32%"
662 646
                         center>
663
-                       <el-form label-width="100px" model="activitform" ref="activitform">
664
-                          <el-form-item label="模块标题:">
647
+                       <el-form label-width="110px" :model="activitform" ref="activitform" :rules="rules">
648
+                          <el-form-item label="模块标题:" required prop="title">
665 649
                              <el-input v-model="activitform.title"></el-input>
666 650
                           </el-form-item>
667
-                          <el-form-item label="排序:">
651
+                          <el-form-item label="排序:" required prop="sort">
668 652
                             <el-input v-model="activitform.sort"></el-input>
669 653
                           </el-form-item>
670
-                          <el-form-item label="首页展示条数:">
654
+                          <el-form-item label="首页展示条数:" required prop="number">
671 655
                             <el-input v-model="activitform.number"></el-input>
672 656
                           </el-form-item>
673 657
                        </el-form>
@@ -1480,10 +1464,15 @@
1480 1464
                                       <div class="img">
1481 1465
                                          <img :src="it.imgs" style="width:100%;height:100%" alt />
1482 1466
                                       </div>
1483
-                                         <div class="detail">
1467
+                                         <div class="detail" v-if="it.title != ''">
1484 1468
                                           <p class="detailTitle">{{it.title}}</p>
1485 1469
                                      <!-- <p class="detailMessage"></p> -->
1486
-                                           </div>
1470
+                                          </div>
1471
+                                             <div class="detail" v-else-if="it.title ==''">
1472
+                                               <div class="noImg">
1473
+                                                 <img src="../../../static/images/none2.png" alt />
1474
+                                               </div>
1475
+                                             </div>
1487 1476
                                      </div>
1488 1477
                                 </div>
1489 1478
                               </div>
@@ -1501,8 +1490,11 @@
1501 1490
                                         </div>
1502 1491
                                        </div>
1503 1492
                                    <div class="commonBox">
1504
-                                     <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
1505
-                                     </div>
1493
+                                     <div class="commonMessage" v-html="item.Hospitals.introduction" v-if="item.Hospitals.introduction != ''"></div>
1494
+                                      <div class="noImg"  v-else-if="item.Hospitals.introduction == ''">
1495
+                                          <img src="../../../static/images/none2.png" alt/>
1496
+                                      </div>
1497
+                                   </div>
1506 1498
                                   </div>
1507 1499
 
1508 1500
                                      <!-- 科室介绍 -->
@@ -1519,7 +1511,10 @@
1519 1511
                                              </div>
1520 1512
                                               <div class="commonBox">
1521 1513
          
1522
-                                              <div class="commonMessage" v-html="item.Offices.introduction"></div>
1514
+                                                <div class="commonMessage" v-html="item.Offices.introduction" v-if="item.Offices.introduction!=''"></div>
1515
+                                                 <div class="noImg"  v-else-if="item.Offices.introduction == ''">
1516
+                                                     <img src="../../../static/images/none2.png" alt/>
1517
+                                                 </div>
1523 1518
                                              </div>
1524 1519
                                             </div>
1525 1520
 
@@ -1540,10 +1535,15 @@
1540 1535
                                                   <div class="img">
1541 1536
                                                    <img :src="doc.dochead" style="width:100%;height:100%" alt />
1542 1537
                                                  </div>
1543
-                                                <div class="detail">
1538
+                                                <div class="detail" v-if="doc.docintroduction != ''">
1544 1539
                                                  <p class="detailTitle">{{doc.doc_name}}</p>
1545
-                                               <p class="detailMessage" v-html="doc.docintroduction"></p>
1546
-                                           </div>
1540
+                                                <p class="detailMessage" v-html="doc.docintroduction"></p>
1541
+                                               </div>
1542
+                                                <div class="detail" v-else-if="doc.docintroduction == ''">
1543
+                                                    <div class="noImg">
1544
+                                                      <img src="../../../static/images/none2.png" alt />
1545
+                                                      </div>
1546
+                                                 </div>
1547 1547
                                           </div>    
1548 1548
                                          </div>
1549 1549
                                        </div>
@@ -1582,9 +1582,14 @@
1582 1582
                                                <div class="img">
1583 1583
                                                  <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
1584 1584
                                                       </div>
1585
-                                                <div class="detail">
1585
+                                                <div class="detail" v-if="it.title !=''">
1586 1586
                                                 <p class="detailTitle">{{it.title}}</p>
1587 1587
                                                 </div>
1588
+                                                 <div class="detail" v-else-if="it.title == ''">
1589
+                                                    <div class="noImg">
1590
+                                                      <img src="../../../static/images/none2.png" alt />
1591
+                                                      </div>
1592
+                                                 </div>
1588 1593
                                                 </div>
1589 1594
                                                </div>
1590 1595
                                               </div>
@@ -1604,7 +1609,7 @@
1604 1609
                                      <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span></div>
1605 1610
                                   </div>
1606 1611
                                   <div  v-if="item.mode_type == 3">
1607
-                                    <div class="oldmodeone" v-for="it in Connectways" :key="it.id">
1612
+                                    <div v-for="it in Connectways" :key="it.id">
1608 1613
                                        <span>{{it.title}}:&nbsp;&nbsp;{{it.content}}</span><br>
1609 1614
                                       </div>
1610 1615
                                    </div>
@@ -1793,7 +1798,7 @@
1793 1798
                  <div class="macgic">
1794 1799
                    <div class="macgicone" v-for="item in this.navigationdatatwo" :key="item.id">
1795 1800
                      <div class="macgicfive">
1796
-                         <img :src="item.navimages" style="width:30px; height:30px">
1801
+                         <img :src="item.nonavimages" style="width:30px; height:30px">
1797 1802
                      </div>
1798 1803
                      <div class="macgicsix">
1799 1804
                          {{item.navtitle}}
@@ -1941,7 +1946,7 @@ import { copyFile } from 'fs';
1941 1946
 import { truncateSync } from 'fs';
1942 1947
 import { isAbsolute } from 'path';
1943 1948
 import { stringify } from 'querystring';
1944
-import {checkNumber,uParseTime} from "@/utils/tools";
1949
+import {checkNumber,uParseTime,checkSort} from "@/utils/tools";
1945 1950
 export default {
1946 1951
   name: "preview",
1947 1952
   components: {
@@ -1960,6 +1965,15 @@ export default {
1960 1965
                callback();
1961 1966
              }
1962 1967
       };
1968
+     
1969
+     
1970
+     var checkSortRule = (rule,value,callback)=>{
1971
+       if(!checkSort(value)){
1972
+          callback(new Error('请输入1-9的整数'));
1973
+       }else{
1974
+         callback();
1975
+       }
1976
+     } 
1963 1977
 
1964 1978
     return {
1965 1979
        radio:3,
@@ -2389,6 +2403,7 @@ export default {
2389 2403
          piclink:[{required:true,message:"请选择图片链接"}],
2390 2404
          doc_name:[{required:true,message:"请编辑医生姓名"}],
2391 2405
          defineaddress:[{required:true,message:"请填写站外地址"}],
2406
+         number:[{required:true,message:"请填写活动条数"},{validator:checkSortRule}],      
2392 2407
       },
2393 2408
         keData: { token: '' ,key: ''},
2394 2409
         navigationdata:[],
@@ -3424,7 +3439,6 @@ export default {
3424 3439
          },
3425 3440
 
3426 3441
       editModelByID(id,modetype,index){
3427
-        
3428 3442
          if(modetype == 1){
3429 3443
            this.adddialogVisible = true;
3430 3444
            geteditRotationImages(id,this.addform).then(response=>{
@@ -3492,10 +3506,13 @@ export default {
3492 3506
 
3493 3507
         if(modetype == 6){
3494 3508
             this.ArticleVisible = true;
3509
+            console.log("id是说的",id)
3495 3510
             editGetArticlistDetail(id).then(response=>{
3496 3511
                 if(response.data.state == 1){
3497 3512
                   var articlelist =  response.data.data.articlelist;
3498 3513
                   this.articeform =  response.data.data.articlelist;
3514
+                  console.log("articlelist",articlelist)
3515
+
3499 3516
                 }
3500 3517
             })
3501 3518
         }
@@ -4463,8 +4480,8 @@ export default {
4463 4480
       let qrcode = new QRCode('qrcode', {
4464 4481
         width: 100,
4465 4482
         height: 100, // 高度
4466
-        // text:'http://microweb.kuyicloud.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
4467
-         text:'http://jk.test.sgjyun.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
4483
+         text:'http://microweb.kuyicloud.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
4484
+        //  text:'http://jk.test.sgjyun.com/#/microHome?orgid='+this.$store.getters.xt_user.org_id, // 二维码内容
4468 4485
 
4469 4486
       })
4470 4487
       console.log(qrcode)
@@ -4753,8 +4770,18 @@ export default {
4753 4770
       getLikeMacAddressById(id,this.linkform).then(response=>{
4754 4771
          if(response.data.state ==1){
4755 4772
            var magiclink =   response.data.data.magiclink;
4756
-           this.linkformfive =   response.data.data.magiclink;
4773
+           if(magiclink.linktype == 2){
4774
+             this.definetwo = true;
4775
+           }
4776
+           if(magiclink.linktype ==3){
4777
+             this.definethree = true;
4778
+           }
4779
+           if(magiclink.linktype == 4){
4780
+             this.definefour = true;
4781
+           }
4782
+           this.linkformfive =  magiclink;
4757 4783
            console.log("中秋快乐",magiclink)
4784
+
4758 4785
          }
4759 4786
       })
4760 4787
     },
@@ -4807,27 +4834,28 @@ export default {
4807 4834
                   //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4808 4835
                 } 
4809 4836
                 if(model.mode_type == 2){
4810
-                      // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4811
-                      this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4837
+                       this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4838
+                      // this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4812 4839
                 }
4813 4840
                 if(model.mode_type == 3){
4814
-                      //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4815
-                       this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4841
+                      this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4842
+                      //  this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4816 4843
                 }
4817 4844
                  if(model.mode_type == 4){
4818
-                      //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4819
-                       this.editmacform.marginaddress = "http:/jk.test.sgjyun.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4845
+                      this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4846
+                      //  this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4820 4847
                 }
4821 4848
                if(model.mode_type == 5){
4822
-                      //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4849
+                      // this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/departmentEnvironment?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4850
+                        this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4823 4851
                 }
4824 4852
                 if(model.mode_type == 6){
4825
-                    // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4826
-                    this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4853
+                     this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4854
+                    // this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4827 4855
                 }
4828 4856
                  if(model.mode_type == 7){
4829
-                    // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4830
-                    this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4857
+                     this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4858
+                    // this.editmacform.marginaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4831 4859
                 }
4832 4860
                 if(model.mode_type == 8){
4833 4861
                     // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
@@ -4860,27 +4888,28 @@ export default {
4860 4888
                   //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4861 4889
                 } 
4862 4890
                 if(model.mode_type == 2){
4863
-                      // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4864
-                      this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4891
+                       this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4892
+                      // this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4865 4893
                 }
4866 4894
                 if(model.mode_type == 3){
4867
-                      //  this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4868
-                       this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4895
+                        this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4896
+                      //  this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4869 4897
                 }
4870 4898
                  if(model.mode_type == 4){
4871
-                      //  this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4872
-                       this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4899
+                       this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4900
+                      //  this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4873 4901
                 }
4874 4902
                if(model.mode_type == 5){
4903
+                        this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/departmentEnvironment?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4875 4904
                       //  this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4876 4905
                 }
4877 4906
                 if(model.mode_type == 6){
4878
-                    // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4879
-                    this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4907
+                     this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4908
+                    // this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4880 4909
                 }
4881 4910
                  if(model.mode_type == 7){
4882
-                    // this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4883
-                    this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4911
+                     this.macgicform.linkaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4912
+                    // this.macgicform.linkaddress = "http://jk.test.sgjyun.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
4884 4913
                 }
4885 4914
                 if(model.mode_type == 8){
4886 4915
                     // this.editmacform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
@@ -4928,15 +4957,15 @@ export default {
4928 4957
        }
4929 4958
 
4930 4959
       if(this.navigationlinkform.navitionlinktype == 1){
4931
-          //  this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
4932
-           this.navigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
4960
+            this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
4961
+          //  this.navigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
4933 4962
       }
4934 4963
       if(this.navigationlinkform.navitionlinktype == 2){
4935 4964
           this.navigationlinkform.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";
4936 4965
       }
4937 4966
       if(this.navigationlinkform.navitionlinktype == 3){
4938
-        //  this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/contactus?orgid="+this.$store.getters.xt_user.org_id;
4939
-         this.navigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/contactus?orgid="+this.$store.getters.xt_user.org_id;
4967
+          this.navigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/contactus?orgid="+this.$store.getters.xt_user.org_id;
4968
+        //  this.navigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/contactus?orgid="+this.$store.getters.xt_user.org_id;
4940 4969
       }
4941 4970
      this.$refs[formName].validate((valid)=>{
4942 4971
        if(valid){
@@ -5005,16 +5034,16 @@ export default {
5005 5034
          this.editnavigationlinkform.navitionlinktype = navigationlinktypes;
5006 5035
 
5007 5036
          if(this.editnavigationlinkform.navitionlinktype == 1){
5008
-            // this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5009
-             this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5037
+             this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5038
+            //  this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#/microHome?orgid="+this.$store.getters.xt_user.org_id;
5010 5039
          }
5011 5040
          if(this.editnavigationlinkform.navitionlinktype == 2){
5012 5041
             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";
5013 5042
             // 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";
5014 5043
          }
5015 5044
          if(this.editnavigationlinkform.navitionlinktype == 3){
5016
-          //  this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
5017
-           this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
5045
+            this.editnavigationlinkform.linkaddress = "http://microweb.kuyicloud.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
5046
+          //  this.editnavigationlinkform.linkaddress = "http://jk.test.sgjyun.com/#//contact?orgid="+this.$store.getters.xt_user.org_id;
5018 5047
          }
5019 5048
 
5020 5049
         
@@ -5266,6 +5295,7 @@ export default {
5266 5295
     this.GetAllActivity();
5267 5296
     this.GetNavigationData();
5268 5297
     this.getAllModelTitle();
5298
+    // this.getData();
5269 5299
     },
5270 5300
     // updated(){
5271 5301
     //    let obj = document.getElementById('content');
@@ -6800,6 +6830,16 @@ export default {
6800 6830
       -webkit-box-orient: vertical;
6801 6831
       // border: solid 1px red;
6802 6832
     }
6833
+     .noImg {
6834
+      width: 6.25rem;
6835
+      height: 6.25rem;
6836
+      margin: 0 auto;
6837
+      img {
6838
+        width: 6.25rem;
6839
+        height: 6.25rem;
6840
+      }
6841
+    }
6842
+
6803 6843
   }
6804 6844
   // border: solid 1px red;
6805 6845
 }
@@ -6817,6 +6857,15 @@ export default {
6817 6857
     padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
6818 6858
     overflow: hidden;
6819 6859
     text-overflow: ellipsis;
6860
+     .noImg {
6861
+      width: 6.25rem;
6862
+      height: 6.25rem;
6863
+      margin: 0 auto;
6864
+      img {
6865
+        width: 6.25rem;
6866
+        height: 6.25rem;
6867
+      }
6868
+    }
6820 6869
   }
6821 6870
   .commonImg {
6822 6871
     width: 18.4375rem;

BIN
static/images/none2.png Прегледај датотеку