浏览代码

调整支付逻辑

赵启卫 2 年之前
父节点
当前提交
564ddb286d
共有 2 个文件被更改,包括 16 次插入12 次删除
  1. 7 3
      application/wap/view/first/special/details.html
  2. 9 9
      application/wap/view/first/studyplan/details.html

+ 7 - 3
application/wap/view/first/special/details.html

xqd xqd
@@ -1104,7 +1104,7 @@
         <div class="wrap">
             <div class="video_footer_btn acea-row">
                 <div class="video_footer_btn_right acea-row row-column row-center-wrapper on" v-if="special.type != 4" @click="OpenPay(5)">
-                    <span class="video_footer_btn_left_pic">去学习7</span>
+                    <span class="video_footer_btn_left_pic">去学习</span>
                 </div>
                 <div class="video_footer_btn_right acea-row row-column row-center-wrapper on" v-if="special.type == 4" @click="OpenPay(6)">
                     <span class="video_footer_btn_left_pic">进入直播间</span>
@@ -2598,11 +2598,15 @@
                                         id: 0
                                     }
                                 };
+                                if (!task) {
+                                    $h.pushMsg('课程信息错误,无法购买。');
+                                    return true;
+                                }
                                 var task = this.otherTaskList[0];
-                                if (task && task.special_task) {
+                                if (task.special_task) {
                                     task = task.special_task[0];
                                 }
-                                if (task && task.is_light) {
+                                if (task.is_light) {
                                     if (task.light_type === 1) {
                                         opt.a = 'single_text_detail';
                                     }

+ 9 - 9
application/wap/view/first/studyplan/details.html

xqd
@@ -255,15 +255,15 @@
                     store.baseGet($h.U({c: 'index', a: 'user_login'}), function (res) {
                         this.money = this.money;
                         this.payDialogOpen = true;
-                        $h.pushMsg('支付成功');
-                        var opt = {
-                            c: 'studyplan',
-                            a: 'details',
-                            q: {
-                                id: this.planinfo.id
-                            }
-                        };
-                        window.location.assign($h.U(opt));
+                        // $h.pushMsg('支付成功');
+                        // var opt = {
+                        //     c: 'studyplan',
+                        //     a: 'details',
+                        //     q: {
+                        //         id: this.planinfo.id
+                        //     }
+                        // };
+                        // window.location.assign($h.U(opt));
                     }.bind(this), function () {
                         vm.loginShow = true;
                     });