Explorar el Código

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/wechat into dev

wangfei hace 6 años
padre
commit
15b5751d33

+ 3
- 3
src/pages/user/fiveA/index.vue Ver fichero

@@ -28,9 +28,9 @@
28 28
           <h5>{{item.Consult}}</h5>
29 29
           <div class="newsList flex-h">
30 30
             <ul class="flex-item">
31
-              <router-link tag="li" :to="{name:'',query:{}}" v-for="(newinfo,nindex) in item.News" :key="nindex">
31
+              <li tag="li" @click="jump(newinfo)" v-for="(newinfo,nindex) in item.News" :key="nindex">
32 32
                 <newsItem :data="newinfo" @jump='jump'></newsItem>
33
-              </router-link>
33
+              </li>
34 34
             </ul>
35 35
           </div>
36 36
         </div>
@@ -126,7 +126,7 @@ export default {
126 126
       if (item.ForwardType === 'url') {
127 127
         window.location.href = item.ForwardUrl
128 128
       } else if (item.ForwardType === 'course') {
129
-        this.$router.push({ name: 'majorProjectsDetail', query: { id: item.ForwardResourceId } }) // 此处去课程详情
129
+        this.$router.push({ name: 'majorProjectsDetail', query: { id: item.ForwardResourceId || item.ForwardCourseId } }) // 此处去课程详情
130 130
       } else {
131 131
         window.location.href = item.InfoUrl
132 132
       }

+ 1
- 1
src/pages/user/mainPage/indexPage/index.vue Ver fichero

@@ -84,8 +84,8 @@ export default {
84 84
       locationId: '',
85 85
       swiperOption: {
86 86
         observer: true,
87
-        speed: 1000,
88 87
         loop: true,
88
+        speed: 1000,
89 89
         autoplay: {
90 90
           disableOnInteraction: false,
91 91
         }

+ 7
- 1
src/pages/user/majorProjects/index.vue Ver fichero

@@ -151,6 +151,9 @@ export default {
151 151
     ]),
152 152
     returnTag (arr) {
153 153
       var aArr = []
154
+      if (!arr) {
155
+        arr = []
156
+      }
154 157
       for (var n = 0; n < arr.length; n++) {
155 158
         aArr.push(arr[n].TagName)
156 159
       }
@@ -167,7 +170,7 @@ export default {
167 170
       this.getProjectInfo({ id: this.$route.query.id }).then((res) => {
168 171
         // console.log(JSON.stringify(res))
169 172
         // this.initList
170
-        if (res.Courses === null) {
173
+        if (!res.Courses) {
171 174
           res.Courses = []
172 175
         }
173 176
         var aArr = []
@@ -192,6 +195,9 @@ export default {
192 195
     },
193 196
     calcArr () {
194 197
       let arr = []
198
+      if (!this.initList){
199
+        this.initList = []
200
+      }
195 201
       for (var n = 0; n < this.initList.length; n++) {
196 202
         arr.push(new Date(this.initList[n].startDate).getMonth())
197 203
       }

+ 13
- 5
src/pages/user/receiveChannel/index.vue Ver fichero

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="mainPage" v-if="show">
3
-    <video :src="data.VideoUrl" height="100%" width="100%" preload="auto" ></video>
4
-    <!-- <div class="residue">
3
+    <!-- <video :src="data.VideoUrl" height="100%" width="100%" preload="auto" ></video> -->
4
+    <div class="residue">
5 5
       <i class="iconfont icon-gantanhao"></i>
6 6
       <span>仅剩{{data.TotalCount - data.SentCount}}张券可以领取!</span>
7 7
     </div>
@@ -44,7 +44,7 @@
44 44
       <div class="submit" v-if="button && data.TotalCount - data.SentCount > 0" @click="receive">确认领取</div>
45 45
       <div class="submit grays" v-if="button && data.TotalCount - data.SentCount <= 0">优惠券已领完</div>
46 46
       <div class="submit" v-if="!button">点击右上角分享给客户</div>
47
-    </div> -->
47
+    </div>
48 48
   </div>
49 49
 </template>
50 50
 
@@ -100,7 +100,11 @@ export default {
100 100
       if (this.$route.query.type === 'card') {
101 101
         this.getCardShare({ id: this.$route.query.id }).then(() => {
102 102
           this.data = this.cardShare.Card
103
-          this.data.address = this.caseList.filter(x => x.CaseId === this.data.CaseId)[0].CaseAddress
103
+          let arr = this.caseList.filter(x => x.CaseId === this.data.CaseId)
104
+          if (arr.length <= 0) {
105
+            arr.push({ CaseAddress: '' })
106
+          }
107
+          this.data.address = arr[0].CaseAddress
104 108
           if (!this.data.VideoUrl) {
105 109
             this.video = false
106 110
           }
@@ -110,7 +114,11 @@ export default {
110 114
       } else {
111 115
         this.getCouponShare({ id: this.$route.query.id }).then(() => {
112 116
           this.data = this.couponShare.coupon
113
-          this.data.address = this.caseList.filter(x => x.CaseId === this.data.CaseId)[0].CaseAddress
117
+          let arr = this.caseList.filter(x => x.CaseId === this.data.CaseId)
118
+          if (arr.length <= 0) {
119
+            arr.push({ CaseAddress: '' })
120
+          }
121
+          this.data.address = arr[0].CaseAddress
114 122
           if (!this.data.VideoUrl) {
115 123
             this.video = false
116 124
           }