1002884655 4 anni fa
parent
commit
0f43d17dbd

+ 8
- 3
src/pages/HuiShengHuo/ActivityList/ActivityDetail/index.vue Vedi File

68
         <image class="centerLabel" mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/fenxiang.png"></image>
68
         <image class="centerLabel" mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/fenxiang.png"></image>
69
       </view>
69
       </view>
70
       <button open-type="share" class="ShareBottomBtn" :class="{'active': IsEnroll}">分享</button>
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
     </view>
74
     </view>
74
 
75
 
75
     <!-- 授权头像获取弹窗 -->
76
     <!-- 授权头像获取弹窗 -->
88
   name: 'HuoDongXiangQing',
89
   name: 'HuoDongXiangQing',
89
   data () {
90
   data () {
90
     return {
91
     return {
92
+      HasEnroll: false,
91
       ShowVoteRes: false,
93
       ShowVoteRes: false,
92
       VoteResList: [],
94
       VoteResList: [],
93
       ShowGetPhoneBtn: false,
95
       ShowGetPhoneBtn: false,
139
       this.GetActivityDetail({ urlData: { id: this.CurrnetId } }).then((res) => {
141
       this.GetActivityDetail({ urlData: { id: this.CurrnetId } }).then((res) => {
140
         this.ActivityInfo = res.data.data
142
         this.ActivityInfo = res.data.data
141
         this.IsEnroll = this.ActivityInfo.isEnroll
143
         this.IsEnroll = this.ActivityInfo.isEnroll
144
+        if (this.IsEnroll) {
145
+          this.HasEnroll = this.ActivityInfo.isSelfEnrolled
146
+        }
142
         if (this.ActivityInfo.isVote) {
147
         if (this.ActivityInfo.isVote) {
143
           this.VoteList = this.ActivityInfo.voteItemList.slice(0)
148
           this.VoteList = this.ActivityInfo.voteItemList.slice(0)
144
           this.CreateVoteResList()
149
           this.CreateVoteResList()
145
-          this.ShowVoteRes = !!this.ActivityInfo.isSelfVoted 
150
+          this.ShowVoteRes = !!this.ActivityInfo.isSelfVoted
146
         }
151
         }
147
         this.IsVote = this.ActivityInfo.isVote
152
         this.IsVote = this.ActivityInfo.isVote
148
       })
153
       })

+ 10
- 0
src/pages/HuiShengHuo/ActivityList/ActivityDetail/page.scss Vedi File

179
     background: #fff;
179
     background: #fff;
180
     position: relative;
180
     position: relative;
181
     overflow: hidden;
181
     overflow: hidden;
182
+    > text {
183
+      line-height: 90px;
184
+      width: 380px;
185
+      display: block;
186
+      text-align: center;
187
+      font-size: 36px;
188
+      font-weight: bold;
189
+      background: #ccc;
190
+      color: #333;
191
+    }
182
     > view {
192
     > view {
183
       height: 90px;
193
       height: 90px;
184
       position: relative;
194
       position: relative;