yuantianjiao 6 лет назад
Родитель
Сommit
5b4013b615

+ 8
- 3
src/pages/user/lessonDetail/index.vue Просмотреть файл

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="mainPage" v-if="showPage">
3 3
     <div class="title">课程详情</div>
4
-    <div class="content" :class="{'opacity' : courseOrderDetail.IsDone === 1 || (courseOrderDetail.IsDone === 0 && now > time(item.EndDate)), 'gray': courseOrderDetail.IsDone === 1 || (courseOrderDetail.IsDone === 0 && now > time(item.EndDate))}">
4
+    <div class="content" :class="{'opacity' : courseOrderDetail.IsDone === 1 || (courseOrderDetail.IsDone === 0 && now > time(courseOrderDetail.EndDate)), 'gray': courseOrderDetail.IsDone === 1 || (courseOrderDetail.IsDone === 0 && now > time(courseOrderDetail.EndDate))}">
5 5
       <div class="list-item flex-h">
6 6
         <span>订单编号</span>
7 7
         <span class="flex-item" style="font-size:.11rem;">{{courseOrderDetail.OrdersNo !== undefined ? courseOrderDetail.OrdersNo : ''}}</span>
@@ -51,7 +51,7 @@
51 51
     </div>
52 52
     <div class="useType">
53 53
       <img :src="used" alt="已使用" v-if="courseOrderDetail.IsDone === 1" width="100%" height="100%">
54
-      <img :src="failure" alt="已失效" v-if="courseOrderDetail.IsDone === 0 && now > time(item.EndDate)" width="100%" height="100%">
54
+      <img :src="failure" alt="已失效" v-if="courseOrderDetail.IsDone === 0 && now > time(courseOrderDetail.EndDate)" width="100%" height="100%">
55 55
     </div>
56 56
   </div>
57 57
 </template>
@@ -70,10 +70,12 @@ export default {
70 70
       used,
71 71
       failure,
72 72
       showQrCode: false,
73
-      showPage: false
73
+      showPage: false,
74
+      now: ''
74 75
     }
75 76
   },
76 77
   created () {
78
+    this.now = Date.now()
77 79
     this.getCourseLocationList().then(() => {
78 80
       this.getCaseList().then(() => {
79 81
         this.getCourseOrderDetail({
@@ -117,6 +119,9 @@ export default {
117 119
         }
118 120
       }
119 121
     },
122
+    time (time) {
123
+      return new Date(time).getTime()
124
+    }
120 125
   },
121 126
   components: {
122 127
     qrCode,

+ 1
- 1
src/pages/user/mainPage/coffeeIndex/index.vue Просмотреть файл

@@ -496,7 +496,7 @@ export default {
496 496
           title: '城的空间',
497 497
           desc: '城的空间',
498 498
           link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
499
-          thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg?x-oss-process=style/wxicon`
499
+          thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/indexlogo.jpg?x-oss-process=style/wxicon`
500 500
         }).then(() => {
501 501
           wx.getLocation({
502 502
             type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'

+ 1
- 1
src/pages/user/majorProjectsDetail/index.vue Просмотреть файл

@@ -192,7 +192,7 @@ export default {
192 192
         title: '城的空间',
193 193
         desc: '城的空间',
194 194
         link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
195
-        thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg?x-oss-process=style/wxicon`
195
+        thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/indexlogo.jpg?x-oss-process=style/wxicon`
196 196
       }).then(() => {
197 197
         let result = this.courseDetail.CaseInfo.Coordinate.split(",")
198 198
         let latitude = parseFloat(result[0])

+ 1
- 1
src/util/ajax.js Просмотреть файл

@@ -10,7 +10,7 @@ const token = function (headers) {
10 10
     localStorage.setItem('JWT', headers.authorization)
11 11
     JWT = headers.authorization
12 12
   }
13
-  const token = JWT ? JWT : localStorage.getItem('JWT')
13
+  const token = JWT ? JWT : localStorage.getItem('JWT') // eslint-disable-line
14 14
 
15 15
   return !token ? '' : token
16 16
 }