Browse Source

订阅页面样式调整

liuhaidi123 3 days ago
parent
commit
ca14286152
1 changed files with 10 additions and 5 deletions
  1. 10 5
      src/views/bookStore/Subscribe.vue

+ 10 - 5
src/views/bookStore/Subscribe.vue

@@ -181,7 +181,11 @@
                   >
                     {{ item.label }}
                   </li>
-                  <el-tooltip placement="right" style="height: 32px">
+                  <el-tooltip
+                    placement="right"
+                    style="height: 32px"
+                    v-if="rules"
+                  >
                     <div slot="content" v-html="rules"></div>
                     <el-button class="tooltip-btn"
                       ><svg-icon icon-class="icon-mark"></svg-icon
@@ -325,7 +329,7 @@
                       </el-table>
                     </div>
                     <el-button class="tooltip-btn"
-                      ><svg-icon icon-class="icon-mark"></svg-icon
+                      >查看明细 <svg-icon icon-class="icon-mark"></svg-icon
                     ></el-button>
                   </el-tooltip>
                 </template>
@@ -1016,7 +1020,7 @@ export default {
             str +=
               item.buy_count + " 期 " + item.discount.toFixed(1) + " 折<br/>";
           });
-          this.rules = str;
+          this.rules = res.rule_list.length > 0 ? str : "";
         }
       });
     },
@@ -1838,10 +1842,11 @@ export default {
   border: none;
   padding: 0;
   margin-left: 6px;
-  color: #bebebe;
+  color: #ea5939;
+  font-size: 14px;
   &:focus,
   &:hover {
-    color: #bebebe;
+    color: #ea5939;
     background: none;
   }
 }