Browse Source

按钮节流

caojunjie 4 years ago
parent
commit
bd21551d6f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pages/home/scancode/index.vue
  2. 1 1
      pages/home/scancode/scancodeout.vue

+ 1 - 1
pages/home/scancode/index.vue

@@ -12,7 +12,7 @@
 				</view>
 				</view>
 				<view class="lnput" v-if="show==false">
 				<view class="lnput" v-if="show==false">
 					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true" />
 					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true" />
-					<u-button type="primary" size="medium" @click="manualentry" >确认录入</u-button>
+					<u-button type="primary" size="medium" @click="manualentry" throttle-time="2000">确认录入</u-button>
 				</view>
 				</view>
 				<view class="" v-else>
 				<view class="" v-else>
 					<view>{{tips}}:{{number}}</view>
 					<view>{{tips}}:{{number}}</view>

+ 1 - 1
pages/home/scancode/scancodeout.vue

@@ -12,7 +12,7 @@
 				</view>
 				</view>
 				<view class="lnput" v-if="show==false">
 				<view class="lnput" v-if="show==false">
 					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true" />
 					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true" />
-					<u-button type="primary" size="medium" @click="manualentry">确认录入</u-button>
+					<u-button type="primary" size="medium" @click="manualentry" throttle-time="2000">确认录入</u-button>
 				</view>
 				</view>
 				<view class="" v-else>
 				<view class="" v-else>
 					<view>{{tips}}:{{number}}</view>
 					<view>{{tips}}:{{number}}</view>