|
@@ -7,14 +7,14 @@
|
7
|
7
|
<div class="countdown" :class="{'on':status < 3,'off':status == 3}" v-html="countdown"></div>
|
8
|
8
|
<div class="userInfo">
|
9
|
9
|
<div class="avatars">
|
10
|
|
- <img class="cover" :src="userInfo.HeadImg">
|
|
10
|
+ <img class="cover" :src="recordUser.HeadImg">
|
11
|
11
|
</div>
|
12
|
12
|
<div class="info">
|
13
|
|
- <p> {{userInfo.Name}}</p>
|
|
13
|
+ <p> {{recordUser.Name}}</p>
|
14
|
14
|
<p>
|
15
|
15
|
已有
|
16
|
16
|
<span class="marked">{{list.length}}</span> 位好友帮TA砍价了,共砍掉
|
17
|
|
- <span class="marked">¥{{list.length*29.6}}</span> 元
|
|
17
|
+ <span class="marked">¥{{(list.length*29.6).toFixed(1)}}</span> 元
|
18
|
18
|
</p>
|
19
|
19
|
</div>
|
20
|
20
|
</div>
|
|
@@ -25,19 +25,18 @@
|
25
|
25
|
<span>0</span>
|
26
|
26
|
<span>元</span>
|
27
|
27
|
</div>
|
28
|
|
- <div>获得一次免费拍照机会~</div>
|
29
|
|
- <div>请及时前往江北新区.白马路10号.银城颐居.</div>
|
30
|
|
- <div>悦见山营销中心领取</div>
|
|
28
|
+ <div>获得价值1888元的悦见山感恩馈赠福利一份</div>
|
|
29
|
+ <div>请及时前往江北新区.白马路10号.银城颐居.悦见山营销中心领取</div>
|
31
|
30
|
</div>
|
32
|
31
|
</div>
|
33
|
32
|
<div class="active" v-if="status<4">
|
34
|
33
|
<h2>悦见山全家福拍摄助力砍价活动</h2>
|
35
|
34
|
<div class="price">
|
36
|
|
- <span :class="{'off':status == 3}">砍后价:¥{{888-list.length*29.6}}</span>
|
|
35
|
+ <span :class="{'off':status == 3}">砍后价:¥{{(888-list.length*29.6).toFixed(1)}}</span>
|
37
|
36
|
<span>最多砍至0元</span>
|
38
|
37
|
</div>
|
39
|
38
|
<div class="desc">
|
40
|
|
- <span>原价2888元, 悦见山亲情价¥888</span>
|
|
39
|
+ <span>原价1888元, 悦见山亲情价¥888</span>
|
41
|
40
|
<span>仅剩{{game.note.LeftNum}}个名额</span>
|
42
|
41
|
</div>
|
43
|
42
|
</div>
|
|
@@ -48,11 +47,11 @@
|
48
|
47
|
</div>
|
49
|
48
|
<div class="item" v-for="(item,index) in list" :key="index">
|
50
|
49
|
<div class="avatars">
|
51
|
|
- <img class="cover" :src="paihang" alt>
|
|
50
|
+ <img class="cover" :src="item.HeadImg" alt>
|
52
|
51
|
</div>
|
53
|
52
|
<div class="info">
|
54
|
|
- <p>Lina豆豆</p>
|
55
|
|
- <span>2018-9-0</span>
|
|
53
|
+ <p>{{item.CustomerName}}</p>
|
|
54
|
+ <span>{{toolClass.dateFormat(item.CreateDate,'yyyy-MM-dd')}}</span>
|
56
|
55
|
</div>
|
57
|
56
|
<div class="price">
|
58
|
57
|
<span>已砍:</span>
|
|
@@ -61,8 +60,7 @@
|
61
|
60
|
</div>
|
62
|
61
|
</div>
|
63
|
62
|
</div>
|
64
|
|
- <!-- <div class="dailog" v-if="showDailog" @click="showDailog = false"> -->
|
65
|
|
- <div class="dailog" v-if="showDailog">
|
|
63
|
+ <div class="dailog" v-if="showDailog" @click="showDailog = false">
|
66
|
64
|
<div class="dailog-box" @click.stop="1+1">
|
67
|
65
|
<img :src="popBg">
|
68
|
66
|
<div class="log1">
|
|
@@ -72,7 +70,7 @@
|
72
|
70
|
<span>元</span>
|
73
|
71
|
</div>
|
74
|
72
|
<div @click="toLuckDraw()">
|
75
|
|
- 您有一份福利待领取!去领取
|
|
73
|
+ 您有一次抽奖机会,立即前往
|
76
|
74
|
<i class="iconfont icon-you"></i>
|
77
|
75
|
</div>
|
78
|
76
|
<img class="present" :src="presentClose">
|
|
@@ -83,7 +81,7 @@
|
83
|
81
|
<div class="other-end" v-if="status == 5">
|
84
|
82
|
<div class="box">
|
85
|
83
|
<p>您的好友已砍价至0元,</p>
|
86
|
|
- <p>获得免费拍照机会!</p>
|
|
84
|
+ <p>感谢您的参与</p>
|
87
|
85
|
<div @click="$router.push({name:'supportMain'})">我也要报名</div>
|
88
|
86
|
</div>
|
89
|
87
|
</div>
|
|
@@ -125,7 +123,8 @@ export default {
|
125
|
123
|
showDailog: false,
|
126
|
124
|
showPage: false,
|
127
|
125
|
seconds: 0,
|
128
|
|
- time: 0
|
|
126
|
+ time: 0,
|
|
127
|
+ recordid: ''
|
129
|
128
|
}
|
130
|
129
|
},
|
131
|
130
|
computed: {
|
|
@@ -133,7 +132,8 @@ export default {
|
133
|
132
|
userInfo: item => item.userInfo,
|
134
|
133
|
game: item => item.game,
|
135
|
134
|
recordInfo: item => item.recordInfo,
|
136
|
|
- list: item => item.supports
|
|
135
|
+ list: item => item.supports,
|
|
136
|
+ recordUser: item => item.recordUser
|
137
|
137
|
}),
|
138
|
138
|
countdown () {
|
139
|
139
|
if (this.status != 3 && this.time >= 0) {
|
|
@@ -141,35 +141,35 @@ export default {
|
141
|
141
|
let minutes = 59 - new Date().getMinutes()
|
142
|
142
|
let seconds = 59 - new Date().getSeconds()
|
143
|
143
|
return `<span style='color:#fff;'>砍价倒计时</span>
|
144
|
|
- <span style='padding: 0 0.03rem;background: #5e5e5e;color: #fff;border-radius:4px;'>${hour > 9 ? hour : '0' + hour}</span>
|
|
144
|
+ <span style='padding: 0.02rem 0.03rem 0;background: #5e5e5e;color: #fff;border-radius:4px;'>${hour > 9 ? hour : '0' + hour}</span>
|
145
|
145
|
<span style='color:#fff;'>:</span>
|
146
|
|
- <span style='padding: 0 0.03rem;background: #5e5e5e;color: #fff;border-radius:4px;'>${minutes > 9 ? minutes : '0' + minutes}</span>
|
|
146
|
+ <span style='padding: 0.02rem 0.03rem 0;background: #5e5e5e;color: #fff;border-radius:4px;'>${minutes > 9 ? minutes : '0' + minutes}</span>
|
147
|
147
|
<span style='color:#fff;'>:</span>
|
148
|
|
- <span style='padding: 0 0.03rem;background: rgba(255, 66, 28, 1);color: #fff;border-radius:4px;'>${seconds > 9 ? seconds : '0' + seconds}</span>`
|
|
148
|
+ <span style='padding: 0.02rem 0.03rem 0;background: rgba(255, 66, 28, 1);color: #fff;border-radius:4px;'>${seconds > 9 ? seconds : '0' + seconds}</span>`
|
149
|
149
|
} else {
|
150
|
150
|
let hour = '00'
|
151
|
151
|
let minutes = '00'
|
152
|
152
|
let seconds = '00'
|
153
|
153
|
return `<span style='color:#fff;'>活动已结束</span>
|
154
|
|
- <span style='padding: 0 0.03rem;background: #5e5e5e;color: #fff;border-radius:4px;'>${hour}</span>
|
|
154
|
+ <span style='padding: 0.02rem 0.03rem 0;background: #5e5e5e;color: #fff;border-radius:4px;'>${hour}</span>
|
155
|
155
|
<span style='color:#fff;'>:</span>
|
156
|
|
- <span style='padding: 0 0.03rem;background: #5e5e5e;color: #fff;border-radius:4px;'>${minutes}</span>
|
|
156
|
+ <span style='padding: 0.02rem 0.03rem 0;background: #5e5e5e;color: #fff;border-radius:4px;'>${minutes}</span>
|
157
|
157
|
<span style='color:#fff;'>:</span>
|
158
|
|
- <span style='padding: 0 0.03rem;background: rgba(255, 66, 28, 1);color: #fff;border-radius:4px;'>${seconds}</span>`
|
|
158
|
+ <span style='padding: 0.02rem 0.03rem 0;background: rgba(255, 66, 28, 1);color: #fff;border-radius:4px;'>${seconds}</span>`
|
159
|
159
|
}
|
160
|
160
|
}
|
161
|
161
|
},
|
162
|
162
|
created () {
|
163
|
163
|
this.getGame().then(() => {
|
164
|
|
- if (!this.$route.query.recordid) {
|
165
|
|
- this.getRecord(this.game.record.RecordId).then(() => {
|
166
|
|
- this.checkStatus()
|
167
|
|
- // this.share(this.game.record.RecordId)
|
|
164
|
+ if (this.$route.params.recordid == 0) {
|
|
165
|
+ this.recordid = this.game.record.RecordId
|
|
166
|
+ this.getRecord(this.recordid).then(() => {
|
|
167
|
+ this.share(this.recordid)
|
168
|
168
|
})
|
169
|
169
|
} else {
|
170
|
|
- this.getRecord(this.game.record.RecordId).then(() => {
|
171
|
|
- // this.share(this.$route.query.recordid)
|
172
|
|
- this.checkStatus()
|
|
170
|
+ this.recordid = this.$route.params.recordid
|
|
171
|
+ this.getRecord(this.recordid).then(() => {
|
|
172
|
+ this.share(this.recordid)
|
173
|
173
|
})
|
174
|
174
|
}
|
175
|
175
|
})
|
|
@@ -180,7 +180,7 @@ export default {
|
180
|
180
|
methods: {
|
181
|
181
|
...mapIndexActions(['getGame', 'getRecord', 'setSupport']),
|
182
|
182
|
checkStatus () {
|
183
|
|
- if (this.$route.query.other === 'other') {
|
|
183
|
+ if (this.$route.params.other === 'other') {
|
184
|
184
|
this.status = 2
|
185
|
185
|
this.btnText = '立即助力TA'
|
186
|
186
|
if (this.list.length >= this.game.game.UserNum) {
|
|
@@ -196,34 +196,39 @@ export default {
|
196
|
196
|
if (now > end) {
|
197
|
197
|
this.status = 3
|
198
|
198
|
this.btnText = '立即助力TA'
|
199
|
|
- } else if (this.game.note.LeftNum <= 0 && !this.$route.query.other) {
|
|
199
|
+ } else if (this.game.note.LeftNum <= 0 && this.$route.params.other != 'other') {
|
200
|
200
|
this.status = 6
|
201
|
201
|
}
|
202
|
202
|
this.showPage = true
|
203
|
203
|
},
|
204
|
204
|
share (recordid) {
|
|
205
|
+ let link = `${window.location.origin}${window.location.pathname}#/supportDetail/other/${recordid}`
|
205
|
206
|
wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
|
206
|
207
|
title: '城的空间',
|
207
|
208
|
desc: '城的空间',
|
208
|
|
- link: `${window.location.origin}${window.location.pathname}#/supportDetail?other=other&recordid=${recordid}`,
|
|
209
|
+ link: link,
|
209
|
210
|
thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/indexlogo.jpg?x-oss-process=style/wxicon`
|
|
211
|
+ }).then(() => {
|
|
212
|
+ setTimeout(() => {
|
|
213
|
+ this.checkStatus()
|
|
214
|
+ }, 200)
|
210
|
215
|
})
|
211
|
216
|
},
|
212
|
217
|
support () {
|
213
|
218
|
if (this.status === 1) {
|
214
|
219
|
this.$toast('微信右上角分享,让好友帮你助力哦!')
|
215
|
220
|
} else if (this.status === 2) {
|
216
|
|
- this.setSupport({ customerid: this.userInfo.CustomerId, recordid: this.$route.query.recordid }).then(() => {
|
217
|
|
- this.showDailog = true
|
218
|
|
- }).catch(() => {
|
219
|
|
- this.showDailog = true
|
|
221
|
+ this.setSupport({ customerid: this.userInfo.CustomerId, recordid: this.$route.params.recordid }).then(() => {
|
|
222
|
+ this.getRecord(this.recordid).then(() => {
|
|
223
|
+ this.showDailog = true
|
|
224
|
+ })
|
220
|
225
|
})
|
221
|
226
|
} else if (this.status === 3) {
|
222
|
227
|
this.$toast('活动已结束')
|
223
|
228
|
}
|
224
|
229
|
},
|
225
|
230
|
toLuckDraw () {
|
226
|
|
-
|
|
231
|
+ window.location.href = 'http://dev.jinchengjiaye.com/game/luckdraw/#/?lotteryId=2557197b-3a49-4067-b52c-97fdd2c93edc'
|
227
|
232
|
}
|
228
|
233
|
}
|
229
|
234
|
}
|
|
@@ -379,6 +384,7 @@ export default {
|
379
|
384
|
.top {
|
380
|
385
|
img {
|
381
|
386
|
width: 100%;
|
|
387
|
+ height: 2.5rem;
|
382
|
388
|
}
|
383
|
389
|
.top-div {
|
384
|
390
|
padding: 0.1rem 0.18rem;
|
|
@@ -439,7 +445,7 @@ export default {
|
439
|
445
|
background: rgba(252, 98, 67, 1);
|
440
|
446
|
border-radius: 2px;
|
441
|
447
|
color: #fff;
|
442
|
|
- padding: 0.02rem 0.08rem;
|
|
448
|
+ padding: 0.04rem 0.08rem 0.02rem;
|
443
|
449
|
margin-right: 0.2rem;
|
444
|
450
|
font-size: 0.13rem;
|
445
|
451
|
}
|