| 
					
				 | 
			
			
				@@ -1,26 +1,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <view class="uni-numbox"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <!-- <view @click="_calcValue('minus')" class="uni-numbox__minus uni-numbox-btns" :style="{ background }"> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <!-- <text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue <= min || disabled }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				:style="{ color }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</text> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <!-- <text 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      class="cicon-move-round" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      :class="{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'uni-numbox--disabled': inputValue <= min || disabled, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'groupon-btn': activity === 'groupon', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'seckill-btn': activity === 'seckill', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      @click="_calcValue('minus')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    ></text> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <v-btn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       icon="mdi-minus"  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       size="x-small"  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :disabled="inputValue <= min || disabled"  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       @click="_calcValue('minus')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ></v-btn> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <!-- </view> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :disabled="disabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       @focus="_onFocus" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -30,18 +15,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       v-model="inputValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :style="{ color }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <!-- <view @click="_calcValue('plus')" class="uni-numbox__plus uni-numbox-btns"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue >= max || disabled }">+</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		</view> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <!-- <text 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      class="cicon-add-round" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      :class="{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'uni-numbox--disabled': inputValue >= max || disabled, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'groupon-btn': activity === 'groupon', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'seckill-btn': activity === 'seckill', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      @click="_calcValue('plus')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    ></text> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <v-btn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       icon="mdi-plus"  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       size="x-small"  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -182,11 +155,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return scale; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       _onBlur(event) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // let value = event.detail.value; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // if (!value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //   // this.inputValue = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //   return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let value = this.inputValue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$emit('blur', value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         value = +value; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -207,52 +175,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang="scss" scoped> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .uni-numbox .uni-numbox--disabled { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    color: #c0c0c0 !important; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /* #ifdef H5 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    cursor: not-allowed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /* #endif */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .uni-numbox { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /* #ifndef APP-NVUE */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    display: flex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /* #endif */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    align-items: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .uni-numbox__value { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    width: 70px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    text-align: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // font-size: 30rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .cicon-move-round { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    font-size: 44rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    color: var(--ui-BG-Main); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .cicon-add-round { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    font-size: 44rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    color: var(--ui-BG-Main); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .groupon-btn { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    color: #ff6000; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .seckill-btn { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    color: #ff5854; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  input::-webkit-outer-spin-button, input::-webkit-inner-spin-button{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    -webkit-appearance: none !important; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    margin: 0;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .inputItem { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    width: 70px;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    border: 1px solid #eee;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    padding: 2px 5px;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    text-align: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+input::-webkit-outer-spin-button, input::-webkit-inner-spin-button{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  -webkit-appearance: none !important; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  margin: 0;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.inputItem { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  width: 70px;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  border: 1px solid #eee;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  padding: 2px 5px;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  text-align: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </style> 
			 |