shish 1 rok temu
rodzic
commit
95bd6365e7

+ 8 - 8
ghsApp/src/admin/billing/toPay.vue

@@ -18,7 +18,7 @@
           <view style="text-align:center;margin:10upx auto 10upx auto;">
             <view class="balance" style="margin-bottom:25upx;" v-if="goPay == 0">扫客户付款码</view>
             <view class="balance" style="margin-bottom:25upx;" v-if="goPay == 1">请求中</view>
-            <view style="text-algin:center;">
+            <view style="text-align:center;">
               <image style="width:40upx;height:40upx;margin:0 auto;" :src="`${constant.imgUrl}/icon/loading.gif`" v-if="goPay == 1" mode="scaleToFill" />
             </view>
             <view style="margin-top:20upx;">
@@ -74,6 +74,11 @@ export default {
   },
   mounted() {
   },
+	onUnload() {
+    if(this.T){
+      clearInterval(this.T)
+    }
+	},
   onLoad(option) {
     this.orderId = option.orderId
     this.actPrice = option.actPrice
@@ -167,14 +172,9 @@ export default {
                         that.payFinish()
                     },1200)
                 }else{
-                    that.T = setInterval(function(){
-                        that.checkPay()
-                    }, 1000);      
+                  that.$msg(res.msg)
+                  that.goPay = 0
                 }
-            }else{
-                that.T = setInterval(function(){
-                    that.checkPay()
-                }, 1000);
             }
         })
     },

+ 1 - 1
ghsApp/src/admin/changePrice/components/changeStockItem2.vue

@@ -26,7 +26,7 @@
 					<view class="open-bx" >
 						<text style="color:#333333;">¥{{ parseFloat(info.skPrice) }}</text>
 						<view class="hd-price-area">
-							<input class="change-input" @click.stop @blur="saveStock" placeholder-style="color:#CCCCCC" v-model="modifyStock" type="number" placeholder="填写数量" @focus="clear()" />
+							<input class="change-input" @click.stop @blur="saveStock" placeholder-style="color:#CCCCCC" v-model="modifyStock" type="digit" placeholder="填写数量" @focus="clear()" />
 						</view>
 						<text v-if="info.frontHide == 1" class="front-hide-color">隐</text>
 					</view>