Browse Source

for debug

stanley-king 4 years ago
parent
commit
fc6fd2e09c

+ 2 - 2
config.js

@@ -1,7 +1,7 @@
 // let api = "https://passport.lrlz.com/mobile/index.php";
 // let api = "http://www.xyzshops.cn/mobile/index.php";
-// let api = "http://192.168.1.200/mobile/index.php";
-let api = "https://www.xyzshops.cn/mobile/index.php";
+let api = "http://192.168.1.200/mobile/index.php";
+// let api = "https://www.xyzshops.cn/mobile/index.php";
 // let api = "http://www.xyzshops.cn/mobile/index.php";
 
 

+ 3 - 3
pages/postageDetail/postageDetail.js

@@ -31,11 +31,11 @@ Page({
       return
     }
     else if(card_type ==='petrochina' && !this.checkPetrochina(card_no)){ //中国石油
-      app.showToast('请输入正确的手机号码')
+      app.showToast('请输入以9开头的16位中石油加油卡号')
       return
     }
     else if(card_type ==='sinopec' && !this.checkSinopec(card_no)){ //中国石化
-      app.showToast('请输入正确的手机号码')
+      app.showToast('请输入以1开头的19位中石化加油卡号')
       return
     }
 
@@ -93,7 +93,7 @@ Page({
   }
     return true
  },
- checkSinopec(phone)
+  checkSinopec(card_no)
  { 
     if(!(/^[1][0-9]{18}$/.test(card_no))){
     return false;

+ 2 - 2
pages/postageDetail/postageDetail.wxml

@@ -32,8 +32,8 @@
   <view wx:if="{{card_type!=='phone'}}">
     <view class="form-control form-control-flex">
       <text class="form-label" space="emsp" decode="true">卡  号</text>:
-      <input wx:if="{{card_type === 'sinopec'}}" class="input-control" type="number" name="card_no" value="{{card_no || '请输入以1开头的19位中石化加油卡号'}}"/>
-      <input wx:if="{{card_type === 'petrochina'}}" class="input-control" type="number" name="card_no" value="{{card_no || '请输入以9开头的16位中石油加油卡号' }}"/>
+      <input wx:if="{{card_type === 'sinopec'}}" class="input-control" type="number" name="card_no" value="{{card_no}}"/>
+      <input wx:if="{{card_type === 'petrochina'}}" class="input-control" type="number" name="card_no" value="{{card_no}}"/>
     </view>
     <view class="form-control form-control-flex">
       <text class="form-label">确认卡号</text>:

+ 1 - 0
pages/postageDetail/postageDetail.wxss

@@ -195,6 +195,7 @@
   /* font-size: 26rpx; */
   padding: 25rpx;
   background-color: #fff;
+  flex:1;
 }
 
 .form-label{