Browse Source

首页推荐位配置

xuqiaoying 3 years ago
parent
commit
b841dc30ae

+ 9 - 1
src/components/goodsItem/index.vue

@@ -21,6 +21,7 @@
       </div>
       </div>
       <div class="course-item__desc">
       <div class="course-item__desc">
         <div class="price">{{item.standPrice === 0 ? '免费' : `¥${item.standPrice}`}}</div>
         <div class="price">{{item.standPrice === 0 ? '免费' : `¥${item.standPrice}`}}</div>
+        <div v-if="item.linePrice" class="linePrice">¥{{item.linePrice}}</div>
       </div>
       </div>
       <div class="course-item__btns">
       <div class="course-item__btns">
         <a class="add" @click.stop="addCart(item)">加购物车</a>
         <a class="add" @click.stop="addCart(item)">加购物车</a>
@@ -226,7 +227,8 @@ export default {
   &__desc {
   &__desc {
     height: 32px;
     height: 32px;
     margin-left: 8px;
     margin-left: 8px;
-
+    display: flex;
+    align-items: center;
     .price {
     .price {
       font-size: 18px;
       font-size: 18px;
       font-family: Microsoft YaHei;
       font-family: Microsoft YaHei;
@@ -234,6 +236,12 @@ export default {
       color: #ff2d55;
       color: #ff2d55;
       line-height: 32px;
       line-height: 32px;
     }
     }
+    .linePrice {
+      color: #999999;
+      font-size: 16px;
+      text-decoration:line-through;
+      margin-left: 10px;
+    }
   }
   }
 
 
   &__btns {
   &__btns {

+ 9 - 6
src/pages/home/index.vue

@@ -441,7 +441,7 @@
 
 
         <div class="pagination">
         <div class="pagination">
           <el-pagination
           <el-pagination
-            @current-change="currentChangeBank"
+            @current-change="currentChangeCou"
             background
             background
             layout="prev, pager, next"
             layout="prev, pager, next"
             :total="paramList[0].total"
             :total="paramList[0].total"
@@ -536,7 +536,7 @@
         
         
         <div class="pagination">
         <div class="pagination">
           <el-pagination
           <el-pagination
-            @current-change="currentChangeCou"
+            @current-change="currentChangeBank"
             background
             background
             layout="prev, pager, next"
             layout="prev, pager, next"
             :total="paramList[1].total"
             :total="paramList[1].total"
@@ -820,8 +820,9 @@ export default {
 			})
 			})
 			 
 			 
 		},
 		},
-    async currentChangeCou(e) {
-      this.params.pageNum = e
+    async currentChangeCou(val) {
+      console.log('vallll', val)
+      this.paramList[0].pageNum = val
       this.goodsList1 = []
       this.goodsList1 = []
       let list1 = await this.getGoodsList(this.courseId, 0)
       let list1 = await this.getGoodsList(this.courseId, 0)
       this.goodsList1.push(...list1)
       this.goodsList1.push(...list1)
@@ -834,9 +835,11 @@ export default {
 			let list1 = await this.getGoodsList(recommendId, 0)
 			let list1 = await this.getGoodsList(recommendId, 0)
 			this.goodsList1.push(...list1)
 			this.goodsList1.push(...list1)
 		},
 		},
-    async currentChangeBank(e) {
+    async currentChangeBank(val) {
+      console.log('val--', val)
+      this.paramList[1].pageNum = val
       this.goodsList2 = []
       this.goodsList2 = []
-      let list2 = await this.getGoodsList(this.bankId, 0)
+      let list2 = await this.getGoodsList(this.bankId, 1)
       this.goodsList2.push(...list2)
       this.goodsList2.push(...list2)
     },
     },
     async changebank(recommendId, index) {
     async changebank(recommendId, index) {

+ 4 - 0
src/pages/mock-report/index.vue

@@ -197,6 +197,10 @@
             >全部解析</el-button
             >全部解析</el-button
           >
           >
         </div>
         </div>
+
+        <div class="course_list">
+
+        </div>
       </div>
       </div>
     </section>
     </section>