Explorar o código

获得的获取抽奖码类型为2时也改变按钮

DELL %!s(int64=3) %!d(string=hai) anos
pai
achega
37e3ce29e1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packageOperate/activity/index.vue

+ 2 - 2
packageOperate/activity/index.vue

@@ -149,10 +149,10 @@
 
 		<view class="footer-fixed">
 			<view class="flex btn">
-				<button v-if="info.codeType == 2" type="default" @click="exChange"
+				<button v-if="info.codeType == 2 && info.codeList.length < 1" type="default" @click="exChange"
 					open-type="share">分享给好友,参与抽奖</button>
 				<button v-if="info.codeType == 1 && info.codeList.length < 1" type="default" @click="exChangeCode">立即参与抽奖</button>
-				<button v-if="info.codeType == 1 && info.codeList.length >= 1" type="default" @click="exChange"
+				<button v-if="info.codeType == 1 && info.codeList.length >= 1 || info.codeType == 2 && info.codeList.length >= 1" type="default" @click="exChange"
 					open-type="share">分享给好友,提升中奖概率</button>
 <!-- 				<u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond
 					@change="onChange">