y595705120 5 днів тому
батько
коміт
290c14f9a5
1 змінених файлів з 5 додано та 4 видалено
  1. 5 4
      src/containers/center/market/index.vue

+ 5 - 4
src/containers/center/market/index.vue

@@ -154,12 +154,12 @@
           </el-input>
         </el-form-item>
 
-        <el-form-item label="支付类型" prop="payType">
+<!--        <el-form-item label="支付类型" prop="payType">
           <div style="text-align: left;margin-left: 20px;">
             <el-button :type="buyForm.payType === 'wx' ? 'primary' : 'default'" style="margin-right: 30px;" @click="buyForm.payType='wx';onPayTypeChange()">微信</el-button>
             <el-button :type="buyForm.payType === 'ali' ? 'primary' : 'default'" @click="buyForm.payType='ali';onPayTypeChange()">支付宝</el-button>
           </div>
-        </el-form-item>
+        </el-form-item> -->
 
         <el-row>
           <h2 class="tc"> 本课程费用: <strong style="color: red;"> {{buyForm.fee/100}} 元 </strong> </h2>
@@ -413,10 +413,10 @@
         this.timer = window.setInterval(() => {
           this.tickCount++;
           this.tickTimer();
-        }, 2000);
+        }, 3000);
       },
       tickTimer() {
-        if (this.tickCount > 150) {
+        if (this.tickCount > 100) {
           if (this.timer) window.clearInterval(this.timer);
           this.$message.warning("支付超时,请重新支付");
           this.buyCourseDialog = false;
@@ -435,6 +435,7 @@
       generatePayQrcode() {
         let payType = this.buyForm.payType;
         let apiName = payType === 'wx' ? "weixin.DoWxpay" : "weixin.DoaliPay";
+
         let param = {
           courseId: this.buyForm.course_id,
           rzCode: this.buyForm.rzCode