소스 검색

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

wangfei 6 년 전
부모
커밋
f8a7cfe9d0

+ 1
- 1
src/pages/user/App.vue 파일 보기

@@ -38,7 +38,7 @@ export default {
38 38
     //   title: '城的空间',
39 39
     //   desc: '城的空间',
40 40
     //   link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
41
-    //   thu_image: `${window.location.origin}${window.location.pathname}${logo}`
41
+    //   thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg`
42 42
     // })
43 43
   },
44 44
   methods: {

+ 1
- 1
src/pages/user/mainPage/coffeeIndex/index.vue 파일 보기

@@ -482,7 +482,7 @@ export default {
482 482
           title: '城的空间',
483 483
           desc: '城的空间',
484 484
           link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
485
-          thu_image: `${window.location.origin}${window.location.pathname}${logo}`
485
+          thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg`
486 486
         }).then(() => {
487 487
           wx.getLocation({
488 488
             type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'

+ 1
- 1
src/pages/user/majorProjectsDetail/index.vue 파일 보기

@@ -186,7 +186,7 @@ export default {
186 186
         title: '城的空间',
187 187
         desc: '城的空间',
188 188
         link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
189
-        thu_image: `${window.location.origin}${window.location.pathname}${logo}`
189
+        thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg`
190 190
       }).then(() => {
191 191
         let result = this.courseDetail.CaseInfo.Coordinate.split(",")
192 192
         let latitude = parseFloat(result[0])

+ 5
- 5
src/pages/user/placeOrderForCourse/index.vue 파일 보기

@@ -162,14 +162,14 @@ export default {
162 162
   created () {
163 163
     this.getCouponList().then((res) => {
164 164
       this.getCourseDetailInfo({ id: this.$route.query.id }).then((result) => {
165
-        var arr = result.CourseDetail
166
-        console.log(arr)
165
+        var arr = result.CourseDetail, caseid = result.CaseId
166
+        // console.log(arr)
167 167
         this.courseTimeList = arr.sort(function (a, b) { return new Date(a.BeginDate).getTime() > new Date(b.BeginDate).getTime() ? 1 : -1 })
168 168
         var id = this.$route.query.id, arr = [], nowDate = Date.now()
169 169
         for (var n = 0; n < res.length; n++) {
170
-          console.log(res[n])
170
+          // console.log(res[n])
171 171
           if (res[n].Coupon.CouponType === 'course' && res[n].Status === 1) {
172
-            if (res[n].Coupon.IsAll) {
172
+            if (res[n].Coupon.IsAll && res[n].CaseId === caseid) {
173 173
               this.couponList.push({
174 174
                 title: res[n].Coupon.CouponName,
175 175
                 desc: res[n].Coupon.Share.UseInstruction,
@@ -182,7 +182,7 @@ export default {
182 182
               })
183 183
             } else {
184 184
               for (var a = 0; a < res[n].Coupon.Targets.length; a++) {
185
-                if (res[n].Coupon.Targets[a].TargetId === id && nowDate < new Date(res[n].EndDate).getTime()) {
185
+                if (res[n].Coupon.Targets[a].TargetId === id && nowDate < new Date(res[n].EndDate).getTime() && res[n].CaseId === caseid) {
186 186
                   this.couponList.push({
187 187
                     title: res[n].Coupon.CouponName,
188 188
                     desc: res[n].Coupon.Share.UseInstruction,