Browse Source

bug修改

twt 9 months ago
parent
commit
5074b5af85
1 changed files with 6 additions and 5 deletions
  1. 6 5
      pages/addjk/eadit.vue

+ 6 - 5
pages/addjk/eadit.vue

@@ -130,7 +130,7 @@
 				  <view class="lineRight">
 					  <input type="digit" :disabled="isExistGroup" @blur="blurgroupTime" v-model="groupTime" placeholder="可输入0.5至72小时" class="linecInput" placeholder-class="inputPlace">
 				  </view>
-				  <viwe class="lineRight">小时</viwe>
+				  <view class="lineRight">小时</view>
 				</view>
 				<view class="line" >
 				  <view class="lineLeft">
@@ -139,7 +139,7 @@
 				  <view class="lineRight">
 					  <input type="digit" :disabled="isExistGroup" @blur="blurgroupMoney" v-model="groupMoney" placeholder="需小于支付金额" class="linecInput" placeholder-class="inputPlace">
 				  </view>
-				  <viwe class="lineRight">元</viwe>
+				  <view class="lineRight">元</view>
 				</view>
 				<view class="line line3">
 					<view class="lineLeft2">
@@ -464,7 +464,7 @@
 					this.packageDetailList=res.data.couponList
 					this.couponPackageData={
 						name:jkdata.couponPackageName,
-						id:jkdata.couponPackageId
+						id:jkdata.couponPackageId||''
 					}
 					//console.log(this.imgListArr)
 					uni.setStorage({
@@ -556,7 +556,8 @@
 			  }
 		  },
 		  blurgroupMoney(){
-			  if(this.groupMoney>this.money||this.groupMoney==this.money){
+			 
+			  if(Number(this.groupMoney)>Number(this.money)||this.groupMoney==this.money){
 			  	uni.showToast({
 			  		 title: '拼团价格需小于支付金额',
 			  		 icon:'none',
@@ -666,7 +667,7 @@
 						 duration: 2000
 					});
 					return false;
-				}else if(this.groupMoney>this.money||this.groupMoney==this.money){
+				}else if(Number(this.groupMoney)>Number(this.money)||this.groupMoney==this.money){
 					uni.showToast({
 						 title: '拼团价格需小于支付金额',
 						 icon:'none',