Browse Source

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

wangfei 6 years ago
parent
commit
15b5751d33

+ 3
- 3
src/pages/user/fiveA/index.vue View File

28
           <h5>{{item.Consult}}</h5>
28
           <h5>{{item.Consult}}</h5>
29
           <div class="newsList flex-h">
29
           <div class="newsList flex-h">
30
             <ul class="flex-item">
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
                 <newsItem :data="newinfo" @jump='jump'></newsItem>
32
                 <newsItem :data="newinfo" @jump='jump'></newsItem>
33
-              </router-link>
33
+              </li>
34
             </ul>
34
             </ul>
35
           </div>
35
           </div>
36
         </div>
36
         </div>
126
       if (item.ForwardType === 'url') {
126
       if (item.ForwardType === 'url') {
127
         window.location.href = item.ForwardUrl
127
         window.location.href = item.ForwardUrl
128
       } else if (item.ForwardType === 'course') {
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
       } else {
130
       } else {
131
         window.location.href = item.InfoUrl
131
         window.location.href = item.InfoUrl
132
       }
132
       }

+ 1
- 1
src/pages/user/mainPage/indexPage/index.vue View File

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

+ 7
- 1
src/pages/user/majorProjects/index.vue View File

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

+ 13
- 5
src/pages/user/receiveChannel/index.vue View File

1
 <template>
1
 <template>
2
   <div class="mainPage" v-if="show">
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
       <i class="iconfont icon-gantanhao"></i>
5
       <i class="iconfont icon-gantanhao"></i>
6
       <span>仅剩{{data.TotalCount - data.SentCount}}张券可以领取!</span>
6
       <span>仅剩{{data.TotalCount - data.SentCount}}张券可以领取!</span>
7
     </div>
7
     </div>
44
       <div class="submit" v-if="button && data.TotalCount - data.SentCount > 0" @click="receive">确认领取</div>
44
       <div class="submit" v-if="button && data.TotalCount - data.SentCount > 0" @click="receive">确认领取</div>
45
       <div class="submit grays" v-if="button && data.TotalCount - data.SentCount <= 0">优惠券已领完</div>
45
       <div class="submit grays" v-if="button && data.TotalCount - data.SentCount <= 0">优惠券已领完</div>
46
       <div class="submit" v-if="!button">点击右上角分享给客户</div>
46
       <div class="submit" v-if="!button">点击右上角分享给客户</div>
47
-    </div> -->
47
+    </div>
48
   </div>
48
   </div>
49
 </template>
49
 </template>
50
 
50
 
100
       if (this.$route.query.type === 'card') {
100
       if (this.$route.query.type === 'card') {
101
         this.getCardShare({ id: this.$route.query.id }).then(() => {
101
         this.getCardShare({ id: this.$route.query.id }).then(() => {
102
           this.data = this.cardShare.Card
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
           if (!this.data.VideoUrl) {
108
           if (!this.data.VideoUrl) {
105
             this.video = false
109
             this.video = false
106
           }
110
           }
110
       } else {
114
       } else {
111
         this.getCouponShare({ id: this.$route.query.id }).then(() => {
115
         this.getCouponShare({ id: this.$route.query.id }).then(() => {
112
           this.data = this.couponShare.coupon
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
           if (!this.data.VideoUrl) {
122
           if (!this.data.VideoUrl) {
115
             this.video = false
123
             this.video = false
116
           }
124
           }