1002884655 4 år sedan
förälder
incheckning
0f43d17dbd

+ 8
- 3
src/pages/HuiShengHuo/ActivityList/ActivityDetail/index.vue Visa fil

@@ -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
       })

+ 10
- 0
src/pages/HuiShengHuo/ActivityList/ActivityDetail/page.scss Visa fil

@@ -179,6 +179,16 @@
179 179
     background: #fff;
180 180
     position: relative;
181 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 192
     > view {
183 193
       height: 90px;
184 194
       position: relative;