| xqd
@@ -13,13 +13,10 @@
|
|
|
<style>
|
|
|
.free{margin-top:.1rem;font-weight:400;font-size:.22rem;line-height:.38rem;color:#FF6B00;}
|
|
|
.nothing {
|
|
|
- position: absolute;
|
|
|
- top: 70%;
|
|
|
- left: 50%;
|
|
|
width: 4.14rem;
|
|
|
height: 3.36rem;
|
|
|
- -webkit-transform: translate(-50%, -50%);
|
|
|
- transform: translate(-50%, -50%);
|
|
|
+ /* -webkit-transform: translate(-50%, -50%);
|
|
|
+ transform: translate(-50%, -50%); */
|
|
|
}
|
|
|
body {
|
|
|
padding-bottom: 1.1rem;
|
| xqd
@@ -68,7 +65,7 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="bigcateco" style="margin: 10px; color: gray;">
|
|
|
+ <div v-if="smailcatco" style="margin: 10px; color: gray;">
|
|
|
{{smailcatco}}
|
|
|
</div>
|
|
|
<div class="public_list_big goodList">
|
| xqd
@@ -95,7 +92,7 @@
|
|
|
</div>
|
|
|
</a>
|
|
|
</div>
|
|
|
- <div v-if="loadend && !specialList.length">
|
|
|
+ <div v-if="loadend && !specialList.length" style="text-align:center;padding-top:20px;">
|
|
|
<img class="nothing" src="/wap/first/zsff/images/no_data_available.png">
|
|
|
</div>
|
|
|
<p v-else class="loading-line" style="background-color: #fff;">
|
| xqd
@@ -143,6 +140,7 @@
|
|
|
this.$nextTick(function () {
|
|
|
$h.EventUtil.listenTouchDirection(document, function () {
|
|
|
this.getSpecialList();
|
|
|
+ this.getSubject();
|
|
|
}.bind(this), false);
|
|
|
});
|
|
|
},
|
| xqd
@@ -157,6 +155,26 @@
|
|
|
// 获取导航数据
|
|
|
getCateList: function () {
|
|
|
this.loading = true;
|
|
|
+ that = this;
|
|
|
+ /* 获取主分类*/
|
|
|
+ if (cate_id > 0) {
|
|
|
+ axios.get("{:url('special/get_subject_info')}", {
|
|
|
+ params: {
|
|
|
+ id: cate_id,
|
|
|
+ }
|
|
|
+ }).then(function(res) {
|
|
|
+ that.bigcateco = res.data.data.co;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (subject_id > 0) {
|
|
|
+ axios.get("{:url('special/get_subject_info')}", {
|
|
|
+ params: {
|
|
|
+ id: subject_id,
|
|
|
+ }
|
|
|
+ }).then(function(res) {
|
|
|
+ that.smailcatco = res.data.data.co;
|
|
|
+ });
|
|
|
+ }
|
|
|
axios.get("{:url('special/get_grade_cate')}").then(function (res) {
|
|
|
vm.loading = false;
|
|
|
var resData = res.data;
|
| xqd
@@ -265,25 +283,6 @@
|
|
|
that = this;
|
|
|
this.loading = true;
|
|
|
this.loadTitle = '';
|
|
|
- /* 获取主分类*/
|
|
|
- if (this.gradeId) {
|
|
|
- axios.get("{:url('special/get_subject_info')}", {
|
|
|
- params: {
|
|
|
- id: that.gradeId,
|
|
|
- }
|
|
|
- }).then(function(res) {
|
|
|
- that.bigcateco = res.data.data.co;
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.subjectId) {
|
|
|
- axios.get("{:url('special/get_subject_info')}", {
|
|
|
- params: {
|
|
|
- id: that.subjectId,
|
|
|
- }
|
|
|
- }).then(function(res) {
|
|
|
- that.smailcatco = res.data.data.co;
|
|
|
- });
|
|
|
- }
|
|
|
axios.get("{:url('special/get_special_list')}", {
|
|
|
params: {
|
|
|
grade_id: this.gradeId,
|