浏览代码

留言板bug 支付中心bug

yangc 7 年之前
父节点
当前提交
d155739f17

+ 4 - 4
components/default/MessageBoard.vue

@@ -77,7 +77,7 @@
               <div class="msg-content">
                 <label>手机:</label>
                 <input type="text" name="userTel" v-model="messageBoard.userTel"  autocomplete="off" @keyup="checkMobile"/>
-                <span v-if="!isMobile"><i class="glyphicon glyphicon-info-sign x-icon-left"></i>请输入正确的号码</span>
+                <span v-if="!isMobileValid"><i class="glyphicon glyphicon-info-sign x-icon-left"></i>请输入正确的号码</span>
               </div>
             </div>
             <div class="msg-message" v-if="!user.userUU">
@@ -140,7 +140,7 @@
         isOpen: true,
         isLogin: false,
         txtVal: 0,
-        isMobile: true,
+        isMobileValid: true,
         isEmail: true,
         messageBoard: {},
         dialogImageUrl: ['', '', '', '', '']
@@ -196,7 +196,7 @@
       },
       // 判断手机号
       checkMobile () {
-        this.isMobile = (/^[\d]{8,11}$/).test(this.messageBoard.userTel)
+        this.isMobileValid = (/^[\d]{8,11}$/).test(this.messageBoard.userTel)
       },
       // 判断邮箱
       checkEmail () {
@@ -213,7 +213,7 @@
           } else if (!this.messageBoard.userTel && !this.messageBoard.email) {
             this.$message.info('请填写任意一种联系方式')
           } else {
-            if (this.isMobile === false) {
+            if (this.isMobileValid === false) {
               this.$message.info('请输入正确的手机号码')
             } else if (this.isEmail === false) {
               this.$message.info('请输入正确的邮箱')

+ 1 - 0
components/default/RightBar.vue

@@ -72,6 +72,7 @@
       </ul>
     </div>
     <el-dialog class="dialog"
+               v-if="dialogVisible"
       :visible.sync="dialogVisible"
       size="tiny">
       <message-board @pageEvent="listenPage" @openBoardEvent="listenOpen"/>

+ 5 - 1
pages/mobile/center/user/payCenter.vue

@@ -347,7 +347,11 @@
         // 00:00:00
         this.filterParams[type] = new Date(this.filterParams[type]).getTime() - 8 * 60 * 60 * 1000
         if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate > this.filterParams.toDate) {
-          this.setRemindText('起始时间不能大于结束时间')
+          if (type === 'fromDate') {
+            this.setRemindText('起始时间不能大于结束时间')
+          } else {
+            this.setRemindText('结束时间不能小于起始时间')
+          }
           this.filterParams[type] = null
         } else {
           if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate === this.filterParams.toDate) {

+ 9 - 3
pages/mobile/center/vendor/payCenter.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="mobile-pay-center vendor-pay mobile-fix-content mobile-centerfix-content" id="mobileFixContent" @click="setShowSelect('all', false)">
+  <div class="mobile-pay-center vendor-pay mobile-fix-content mobile-centerfix-content" :class="{'vendor-pay-record': switchType === 'record'}" id="mobileFixContent" @click="setShowSelect('all', false)">
     <div class="mp-head">
       <span class="inline-block" :class="{'active': switchType === 'record'}" @click="setSwitchType('record')">交易记录</span>
       <span class="inline-block" :class="{'active': switchType === 'account'}" @click="setSwitchType('account')">收款账户</span>
@@ -406,7 +406,11 @@
       setDate (type) {
         this.filterParams[type] = new Date(this.filterParams[type]).getTime() - 8 * 60 * 60 * 1000
         if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate > this.filterParams.toDate) {
-          this.setRemindText('起始时间不能大于结束时间')
+          if (type === 'fromDate') {
+            this.setRemindText('起始时间不能大于结束时间')
+          } else {
+            this.setRemindText('结束时间不能小于起始时间')
+          }
           this.filterParams[type] = null
         } else {
           if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate === this.filterParams.toDate) {
@@ -708,10 +712,12 @@
     }
   }
   .vendor-pay {
-    bottom: 2.23rem !important;
     .mobile-modal .mobile-modal-wrapper {
       left: .2rem !important;
       right: .2rem !important;
     }
   }
+  .vendor-pay-record {
+    bottom: 2.23rem !important;
+  }
 </style>