Bladeren bron

调整课程列表

赵启卫 2 jaren geleden
bovenliggende
commit
0c3d567548
1 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. 6 4
      application/wap/view/first/special/special_cate.html

+ 6 - 4
application/wap/view/first/special/special_cate.html

xqd xqd xqd xqd
@@ -99,16 +99,17 @@
         <span v-show="loading" class="fa fa-spinner loadingpic" style="font-size: 0.4rem;"></span>
         <span v-text="loadTitle">加载更多</span>
     </p>
-    <div>
+    <div v-if="cate_id == 64">
     {include file="public/store_menu"}
     </div>
+    <quick-menu v-if="cate_id != 64"></quick-menu>
 </div>
 {/block}
 {block name="foot"}
 <script>
     var cate_id = {$cate_id};
     var subject_id = {$subject_id};
-    require(['vue', 'axios', 'helper', 'special-type'], function (Vue, axios, $h, specialType) {
+    require(['vue', 'axios', 'helper', 'special-type', 'quick'], function (Vue, axios, $h, specialType, quick) {
         var vm = new Vue({
             el: '#app',
             data: {
@@ -127,6 +128,7 @@
                 bigcateco:'',
                 smailcatco:'',
                 webtitle:'',
+                cate_id: cate_id,
             },
             computed: {
                 updateSpecialList: function () {
@@ -143,7 +145,7 @@
                 this.$nextTick(function () {
                     $h.EventUtil.listenTouchDirection(document, function () {
                         this.getSpecialList();
-                        this.getSubject();
+                        //this.getSubject();
                     }.bind(this), false);
                 });
             },
@@ -302,7 +304,7 @@
                         if (resData.code === 200) {
                             var data = resData.data;
                             vm.specialList = vm.specialList.concat(data);
-                            vm.loadend = vm.limit > data.length;
+                            vm.loadend = vm.limit > data.length ? true : false;
                             vm.loadTitle = vm.loadend ? '已全部加载完' : '上拉加载更多';
                         } else {
                             $h.pushMsg(resData.msg);