Explorar o código

找车位页面优化

zaijin %!s(int64=2) %!d(string=hai) anos
pai
achega
7945aba51c
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      pages/parkingLists/parkingLists.vue

+ 5 - 2
pages/parkingLists/parkingLists.vue

@@ -39,9 +39,12 @@
 								<template v-if="tabObj.current === 1">
 									<view class="abli-header-surplus-right" @click.stop="createMonth(item)">办理包月</view>
 								</template>
+								<template v-else-if="item.monthAmount">
+									<view class="abli-header-surplus-right" @click.stop="createMonth(item)">办理包月</view>
+								</template>
 								<template v-else>
-									<view class="abli-header-surplus-right" :class="{ disabled: !item.monthAmount }"
-										@click.stop="createMonth(item)">办理包月</view>
+									<view class="abli-header-surplus-right" :class="{ disabled: !item.monthAmount }">
+										办理包月</view>
 								</template>
 							</view>
 						</view>