|
@@ -64,7 +64,7 @@
|
64
|
64
|
<span>优惠券体验</span>
|
65
|
65
|
</div>
|
66
|
66
|
</div>
|
67
|
|
- <a @click="toBuy">去购买</a>
|
|
67
|
+ <a @click="toBuy" :class="{gray:gray}">去购买</a>
|
68
|
68
|
</div>
|
69
|
69
|
</div>
|
70
|
70
|
</template>
|
|
@@ -83,6 +83,7 @@ export default {
|
83
|
83
|
data () {
|
84
|
84
|
return {
|
85
|
85
|
logo,
|
|
86
|
+ gray: false,
|
86
|
87
|
swiperOption: {
|
87
|
88
|
observer: true,
|
88
|
89
|
autoplay: {
|
|
@@ -120,6 +121,11 @@ export default {
|
120
|
121
|
arr = []
|
121
|
122
|
}
|
122
|
123
|
this.courseTimeList = arr.sort(function (a, b) { return new Date(a.BeginDate).getTime() > new Date(b.BeginDate).getTime() ? 1 : -1 })
|
|
124
|
+ let nowDate = Date.now()
|
|
125
|
+ let endData = new Date(this.courseDetail.EndDate).getTime()
|
|
126
|
+ if (nowDate > endData) {
|
|
127
|
+ this.gray = true
|
|
128
|
+ }
|
123
|
129
|
// console.log(JSON.stringify(res))
|
124
|
130
|
wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
|
125
|
131
|
title: '城的空间',
|