change
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-primary" @tap="searchList">查询</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !index}" :disabled="disabled" @tap="_inArea">进入</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !index}" :disabled="disabled2" @tap="_outArea">退出</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled2" @tap="_outArea">退出</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -151,7 +151,7 @@
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await inArea(this.pkObj)
|
||||
let res = await inArea(this.index)
|
||||
if (res.code === '200') {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
@@ -171,7 +171,7 @@
|
||||
},
|
||||
async _outArea () {
|
||||
this.disabled2 = true
|
||||
if (!this.index) {
|
||||
if (!this.pkId) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user