浏览代码

促销商品新增默认排序

qymljy 2 年之前
父节点
当前提交
3a013d98ec
共有 2 个文件被更改,包括 7 次插入6 次删除
  1. 6 5
      src/HDrpManagement/promotion/modules/productModel/HotNewControl.vue
  2. 1 1
      yos/index.html

+ 6 - 5
src/HDrpManagement/promotion/modules/productModel/HotNewControl.vue

@@ -1,13 +1,14 @@
 <template>
   <el-dropdown trigger="click">
       <span class="el-dropdown-link">
-        {{sortType == 1 ? '销售数量降序' : '销售数量升序'}}
-            <img src="@/assets/file_icons/web降序.png" alt="" v-show="sortType == 2">
-            <img src="@/assets/file_icons/web升序.png" alt="" v-show="sortType == 1">
+        {{sortType == 1 ? '销售数量降序' : sortType == 2 ? '销售数量升序' : '默认排序'}}
+            <img src="@/assets/file_icons/web降序.png" alt="" v-show="sortType == 1 || sortType == 3">
+            <img src="@/assets/file_icons/web升序.png" alt="" v-show="sortType == 2">
       </span>
       <el-dropdown-menu slot="dropdown">
       <el-dropdown-item class="clearfix" @click.native="sortTypeClick('默认')">
         默认
+        <el-badge class="iconfont icon-paixushaixuanxuanzhong" v-show="sortType == 3"/>
       </el-dropdown-item>
       <el-dropdown-item class="clearfix" @click.native="sortTypeClick('销售数量降序')">
           销售数量降序
@@ -38,7 +39,7 @@ export default {
   },
   methods: {
     sortTypeClick(name) {
-      this.sortType = name == '销售数量降序' ? 1 : 2
+      this.sortType = name == '销售数量降序' ? 1 : name == '销售数量升序' ? 2 : 3
       this.$emit('sortTypeChange',name)
     }
   },
@@ -62,6 +63,6 @@ export default {
     width: 150px;
   }
   .iconfont {
-    color: #3874F6; 
+    color: #3874F6;
   }
 </style>

+ 1 - 1
yos/index.html

@@ -1 +1 @@
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>yos_manage</title><script defer="defer" type="module" src="js/chunk-vendors.e428fee0.js"></script><script defer="defer" type="module" src="js/app.2e976262.js"></script><link href="css/app.fafa1607.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.0beef1e9.js" nomodule></script><script defer="defer" src="js/app-legacy.302b30bb.js" nomodule></script></head><body><noscript><strong>We're sorry but yos_manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body><head><meta http-equiv="pragma" content="no-cache"></head></html>
+<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>yos_manage</title><script defer="defer" type="module" src="js/chunk-vendors.e428fee0.js"></script><script defer="defer" type="module" src="js/app.53ea6aa3.js"></script><link href="css/app.fafa1607.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.0beef1e9.js" nomodule></script><script defer="defer" src="js/app-legacy.4e8be93a.js" nomodule></script></head><body><noscript><strong>We're sorry but yos_manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body><head><meta http-equiv="pragma" content="no-cache"></head></html>