|
@@ -42,8 +42,8 @@
|
42
|
42
|
</view>
|
43
|
43
|
</view>
|
44
|
44
|
</view>
|
45
|
|
- <text @tap="ToPostActivityVote" v-if="!ShowVoteRes">提交</text>
|
46
|
|
- <button open-type="getPhoneNumber" class="GetPhoneBtn" v-if="!DataLock && ShowGetPhoneBtn && !ShowVoteRes" @getphonenumber="GetPhoneNumber">授权手机号</button>
|
|
45
|
+ <text @tap="ToPostActivityVote" v-if="!ShowVoteRes && ActivityStatus">提交</text>
|
|
46
|
+ <button open-type="getPhoneNumber" class="GetPhoneBtn" v-if="!DataLock && ShowGetPhoneBtn && !ShowVoteRes && ActivityStatus" @getphonenumber="GetPhoneNumber">授权手机号</button>
|
47
|
47
|
<view class="ResList" v-if="ShowVoteRes">
|
48
|
48
|
<view v-for="(item, index) in VoteResList" :key="index">
|
49
|
49
|
<view class="Text flex-h">
|
|
@@ -71,9 +71,10 @@
|
71
|
71
|
<image class="centerLabel" mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/fenxiang.png"></image>
|
72
|
72
|
</view>
|
73
|
73
|
<button open-type="share" class="ShareBottomBtn" :class="{'active': IsEnroll}">分享</button>
|
74
|
|
- <image mode="heightFix" v-if="IsEnroll && !HasEnroll" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/lijibaomingbtn.png" @tap="ToJoin"></image>
|
75
|
|
- <button open-type="getPhoneNumber" class="GetPhoneBottomBtn" v-if="!DataLock && ShowGetPhoneBtn && IsEnroll && !HasEnroll" @getphonenumber="GetPhoneNumber">授权手机号</button>
|
76
|
|
- <text v-if="IsEnroll && HasEnroll">已报名</text>
|
|
74
|
+ <image mode="heightFix" v-if="IsEnroll && !HasEnroll && ActivityStatus" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/lijibaomingbtn.png" @tap="ToJoin"></image>
|
|
75
|
+ <button open-type="getPhoneNumber" class="GetPhoneBottomBtn" v-if="!DataLock && ShowGetPhoneBtn && IsEnroll && !HasEnroll && ActivityStatus" @getphonenumber="GetPhoneNumber">授权手机号</button>
|
|
76
|
+ <text v-if="IsEnroll && HasEnroll && ActivityStatus">已报名</text>
|
|
77
|
+ <text v-if="!ActivityStatus">已过期</text>
|
77
|
78
|
</view>
|
78
|
79
|
|
79
|
80
|
<!-- 授权头像获取弹窗 -->
|
|
@@ -92,6 +93,7 @@ export default {
|
92
|
93
|
name: 'HuoDongXiangQing',
|
93
|
94
|
data () {
|
94
|
95
|
return {
|
|
96
|
+ ActivityStatus: false,
|
95
|
97
|
HasEnroll: false,
|
96
|
98
|
ShowVoteRes: false,
|
97
|
99
|
VoteResList: [],
|
|
@@ -144,6 +146,7 @@ export default {
|
144
|
146
|
this.GetActivityDetail({ urlData: { id: this.CurrnetId } }).then((res) => {
|
145
|
147
|
this.ActivityInfo = res.data.data
|
146
|
148
|
this.IsEnroll = this.ActivityInfo.isEnroll
|
|
149
|
+ this.ActivityStatus = this.ActivityInfo.status - 0 !== 2
|
147
|
150
|
if (this.IsEnroll) {
|
148
|
151
|
this.HasEnroll = this.ActivityInfo.isSelfEnrolled
|
149
|
152
|
}
|