交互
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2 || !val3}" :disabled="disabled" @tap="_doSubVolumeBindingWeight">绑定重量</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || (!val2 && !val3)}" :disabled="disabled" @tap="_doSubVolumeBindingWeight">绑定重量</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -62,7 +62,7 @@
|
||||
methods: {
|
||||
async _doSubVolumeBindingWeight () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.val3) {
|
||||
if (!this.val1 || (!this.val2 && !this.val3)) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user