ソースを参照

项目仪器页面静态化part7

chao 4 年 前
コミット
19f36ba3cb

+ 1 - 0
src/main/resources/static/js/index.js

@@ -230,6 +230,7 @@ var homeData = new Vue({
                             if(price.promotions && price.promotions.type*1===1 && price.promotions.mode*1===1){
                                 parent.find(".main_price_show").hide();
                                 parent.find(".main_price_show.none").show();
+                                parent.find(".price_unit").show();
                             }
                         } else if (userIdentity===4 && priceFlag === 2){
                             parent.find(".main_price_show").hide();

+ 1 - 0
src/main/resources/static/js/product/instruement.js

@@ -146,6 +146,7 @@
                             if(price.promotions && price.promotions.type*1===1 && price.promotions.mode*1===1){
                                 parent.find(".main_price_show").hide();
                                 parent.find(".main_price_show.none").show();
+                                parent.find(".price_unit").show();
                             }
                         } else if (userIdentity===4 && priceFlag === 2){
                             parent.find(".main_price_show").hide();

+ 1 - 1
src/main/resources/templates/index.html

@@ -151,7 +151,7 @@
                                                                     <template th:text="*{promotions.name}"></template>
                                                                     <th:block th:if="*{promotions.type}==1 and *{promotions.mode}==1">
                                                                         <!--单品优惠:优惠价-->
-                                                                        :¥<span class="price_num"></span>
+                                                                        <span class="price_unit" style="display:none;">:¥</span><span class="price_num"></span>
                                                                     </th:block>
                                                                 </p>
                                                             </div>

+ 1 - 1
src/main/resources/templates/product/instrument.html

@@ -103,7 +103,7 @@
                                                                 <template th:text="*{promotions.name}"></template>
                                                                 <th:block th:if="*{promotions.type}==1 and *{promotions.mode}==1">
                                                                     <!--单品优惠:优惠价-->
-                                                                    :¥<span class="price_num"></span>
+                                                                    <span class="price_unit" style="display:none;">:¥</span><span class="price_num"></span>
                                                                 </th:block>
                                                             </p>
                                                         </div>