Browse Source

代码更新

xiaoming_global 5 years ago
parent
commit
ab7663b1e0
3 changed files with 54 additions and 14 deletions
  1. 35 12
      src/router/index.js
  2. 6 2
      src/scrm_pages/micro/micro.vue
  3. 13 0
      src/scrm_pages/rotation/rotation.vue

+ 35 - 12
src/router/index.js View File

71
 //   }]
71
 //   }]
72
 // },
72
 // },
73
 {
73
 {
74
-  path: '',
74
+  path: '/qrcode',
75
   component: ()=>import('@/scrm_pages/micro/micro'),
75
   component: ()=>import('@/scrm_pages/micro/micro'),
76
-  redirect: '/qrcode',
77
-  children: [{
78
-    path: '/qrcode',
79
-    component: () => import('@/scrm_pages/micro/micro'),
80
-    name: 'qrcode',
81
-    meta: {
82
-      title: 'qrcode',
83
-      icon: 'dashboard',
84
-      noCache: true
85
-    }
86
-  }]
76
+  // children: [{
77
+
78
+  //   path: '/qrcode',
79
+  //   component: () => import('@/scrm_pages/micro/micro'),
80
+  //   name: 'qrcode',
81
+  //   meta: {
82
+  //     title: 'qrcode',
83
+  //     icon: 'dashboard',
84
+  //     noCache: true
85
+  //   }
86
+  // },]
87
+},
88
+
89
+{
90
+  path: '/rotation',
91
+  component: () => import('@/scrm_pages/rotation/rotation'),
92
+  name: 'rotation',
93
+
87
 },
94
 },
95
+// {
96
+//    path:'qrcode/rotation',
97
+//    component:()=>import('@/scrm_pages/rotation/rotation'),
98
+//    redirct: '/rotation',
99
+//    children: [{
100
+//      path: '/rotation',
101
+//      component: () => import('@/scrm_pages/rotation/rotation'),
102
+//      name: 'rotation',
103
+//      meta: {
104
+//        title:'rotation',
105
+//        icon: 'dashboard',
106
+//        noCache: true
107
+//      }
108
+//    }]
109
+
110
+// },
88
 {
111
 {
89
   path: '/activity/preview',
112
   path: '/activity/preview',
90
   component: () => import('@/scrm_pages/marketing_tool/activity_preview'),
113
   component: () => import('@/scrm_pages/marketing_tool/activity_preview'),

+ 6 - 2
src/scrm_pages/micro/micro.vue View File

6
                  <div class="swiper-slide">      
6
                  <div class="swiper-slide">      
7
                    <div v-for="item in this.patientModels" :key="item.id" v-show="modelshow">                    
7
                    <div v-for="item in this.patientModels" :key="item.id" v-show="modelshow">                    
8
                       <!-- 轮播图 -->
8
                       <!-- 轮播图 -->
9
-                       <div class="modeone" v-if="item.mode_type == 1">
9
+                       <div class="modeone" v-if="item.mode_type == 1" @click="rotationlink()">
10
                           <mt-swipe :auto="2000" class="swipertwo">
10
                           <mt-swipe :auto="2000" class="swipertwo">
11
                           <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">
11
                           <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">
12
                              <img :src="it.images" style="width:100%;height:230px">
12
                              <img :src="it.images" style="width:100%;height:230px">
63
                             <div class="logo"><img src="static\images\u216.png"></div>
63
                             <div class="logo"><img src="static\images\u216.png"></div>
64
                             <div class="swiperimages">
64
                             <div class="swiperimages">
65
                                <div class="swiper-container swiperthree" >
65
                                <div class="swiper-container swiperthree" >
66
-                                 <div class="swiper-wrapper" id="wrappert" >
66
+                                 <div class="swiper-wrapper" id="wrappert">
67
                                     <div class="swiper-slide"  v-for="itms in item.Enviroimages" :key="itms.id">
67
                                     <div class="swiper-slide"  v-for="itms in item.Enviroimages" :key="itms.id">
68
                                       <img :src="itms.enviroimages" style="width:150px;height:140px;border-radius:5px"/>
68
                                       <img :src="itms.enviroimages" style="width:150px;height:140px;border-radius:5px"/>
69
                                      </div>
69
                                      </div>
722
                   console.log("activitys",activitys)
722
                   console.log("activitys",activitys)
723
                 }
723
                 }
724
              })
724
              })
725
+           },
726
+
727
+           rotationlink(){
728
+             this.$router.push({path:'/#/rotation'})
725
            }
729
            }
726
         },
730
         },
727
       destroyed(){
731
       destroyed(){

+ 13 - 0
src/scrm_pages/rotation/rotation.vue View File

1
+<template>
2
+
3
+</template>
4
+
5
+<script>
6
+    export default {
7
+        name: "rotation"
8
+    }
9
+</script>
10
+
11
+<style scoped>
12
+
13
+</style>