修改
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="toBind()">绑定</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val2}" :disabled="disabled" @tap="toUnbind()">解绑</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !(val1 || val2)}" :disabled="disabled" @tap="toUnbind()">解绑</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -73,7 +73,7 @@
|
||||
},
|
||||
toUnbind () {
|
||||
this.disabled = true
|
||||
if (!this.val2) {
|
||||
if (!(this.val1 || this.val2)) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user