Procházet zdrojové kódy

供应商主页修改价格显示

zhengjinyi před 3 roky
rodič
revize
dbbe558dd8

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

@@ -146,6 +146,7 @@ var supplierHome = new Vue({
                 function (res) {
                     if (res.code === 0 && res.data) {
                         var result = JSON.parse(res.data);
+                        console.log('result',result)
                         _self.listRecord = result.total;
                         var resultData = setSearchProductList(result.items, _self.userId, function () {
                             _self.$forceUpdate();

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

@@ -94,7 +94,7 @@
                                             </div>
                                             <!--机构价格-->
                                             <template v-else-if="GLOBAL_USER_IDENTITY === 2 || (p.priceFlag === 0 && GLOBAL_USER_IDENTITY === 4) || (GLOBAL_USER_IDENTITY === 3 && p.shopId === GLOBAL_SHOP_ID) || GLOBAL_VIP_FLAG === 1">
-                                                <div class="main_price_show" :class="{none: PromotionsFormat(p.promotions) || showVipPriceTag(p)}">
+                                                <div class="main_price_show" :class="{none: PromotionsFormat(p.promotions) || (p.svipProductFlag === 1 && showVipPriceTag(p))}">
                                                     ¥{{ (PromotionsFormat(p.promotions) || showVipPriceTag(p) ? p.originalPrice : p.price ) | NumFormat }}
                                                 </div>
                                             </template>