|
@@ -68,8 +68,9 @@
|
68
|
68
|
<image class="centerLabel" mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/fenxiang.png"></image>
|
69
|
69
|
</view>
|
70
|
70
|
<button open-type="share" class="ShareBottomBtn" :class="{'active': IsEnroll}">分享</button>
|
71
|
|
- <image mode="heightFix" v-if="IsEnroll" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/lijibaomingbtn.png" @tap="ToJoin"></image>
|
72
|
|
- <button open-type="getPhoneNumber" class="GetPhoneBottomBtn" v-if="!DataLock && ShowGetPhoneBtn && IsEnroll" @getphonenumber="GetPhoneNumber">授权手机号</button>
|
|
71
|
+ <image mode="heightFix" v-if="IsEnroll && !HasEnroll" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/lijibaomingbtn.png" @tap="ToJoin"></image>
|
|
72
|
+ <button open-type="getPhoneNumber" class="GetPhoneBottomBtn" v-if="!DataLock && ShowGetPhoneBtn && IsEnroll && !HasEnroll" @getphonenumber="GetPhoneNumber">授权手机号</button>
|
|
73
|
+ <text v-if="IsEnroll && HasEnroll">已报名</text>
|
73
|
74
|
</view>
|
74
|
75
|
|
75
|
76
|
<!-- 授权头像获取弹窗 -->
|
|
@@ -88,6 +89,7 @@ export default {
|
88
|
89
|
name: 'HuoDongXiangQing',
|
89
|
90
|
data () {
|
90
|
91
|
return {
|
|
92
|
+ HasEnroll: false,
|
91
|
93
|
ShowVoteRes: false,
|
92
|
94
|
VoteResList: [],
|
93
|
95
|
ShowGetPhoneBtn: false,
|
|
@@ -139,10 +141,13 @@ export default {
|
139
|
141
|
this.GetActivityDetail({ urlData: { id: this.CurrnetId } }).then((res) => {
|
140
|
142
|
this.ActivityInfo = res.data.data
|
141
|
143
|
this.IsEnroll = this.ActivityInfo.isEnroll
|
|
144
|
+ if (this.IsEnroll) {
|
|
145
|
+ this.HasEnroll = this.ActivityInfo.isSelfEnrolled
|
|
146
|
+ }
|
142
|
147
|
if (this.ActivityInfo.isVote) {
|
143
|
148
|
this.VoteList = this.ActivityInfo.voteItemList.slice(0)
|
144
|
149
|
this.CreateVoteResList()
|
145
|
|
- this.ShowVoteRes = !!this.ActivityInfo.isSelfVoted
|
|
150
|
+ this.ShowVoteRes = !!this.ActivityInfo.isSelfVoted
|
146
|
151
|
}
|
147
|
152
|
this.IsVote = this.ActivityInfo.isVote
|
148
|
153
|
})
|