소스 검색

Merge remote-tracking branch 'origin/developerA' into developerA

喻文俊 3 년 전
부모
커밋
7b142a7577
24개의 변경된 파일170개의 추가작업 그리고 141개의 파일을 삭제
  1. 89 0
      backup.sql
  2. 3 3
      src/main/resources/static/js/index.js
  3. 3 3
      src/main/resources/static/js/product/detail.js
  4. 13 6
      src/main/resources/static/js/product/instruement.js
  5. 3 82
      src/main/resources/static/js/product/list.js
  6. 3 3
      src/main/resources/static/js/product/produce-list.js
  7. 11 2
      src/main/resources/static/js/product/product-coupon.js
  8. 3 3
      src/main/resources/static/js/product/product-supporting.js
  9. 3 3
      src/main/resources/static/js/user-center/collection/collection.js
  10. 4 1
      src/main/resources/static/js/user-center/member/memberPage.js
  11. 12 12
      src/main/resources/templates/activity/activityTopic.html
  12. 2 2
      src/main/resources/templates/activity/beautyTopic.html
  13. 1 1
      src/main/resources/templates/index.html
  14. 1 1
      src/main/resources/templates/product/beautytopic.html
  15. 2 2
      src/main/resources/templates/product/detail.html
  16. 1 1
      src/main/resources/templates/product/instruelist.html
  17. 1 1
      src/main/resources/templates/product/instrument.html
  18. 1 1
      src/main/resources/templates/product/list.html
  19. 1 1
      src/main/resources/templates/product/product-coupon.html
  20. 1 1
      src/main/resources/templates/product/product-supporting.html
  21. 1 1
      src/main/resources/templates/product/promotions.html
  22. 8 8
      src/main/resources/templates/product/temporary.html
  23. 1 1
      src/main/resources/templates/supplier/index.html
  24. 2 2
      src/main/resources/templates/user-center/collection/collection.html

+ 89 - 0
backup.sql

@@ -124,3 +124,92 @@ ALTER TABLE `cm_product_archive_file`
     ADD COLUMN `waterOssUrl` TEXT NULL COMMENT '水印oss链接' AFTER `ossUrl`;
 
 -- =================================== 2021年10月 呵呵优惠券 end =====================================
+-- =================================== 2021年11月 采美百科 start =====================================
+ALTER TABLE `info`
+    ADD COLUMN `publishSource` INT NULL DEFAULT 1 COMMENT '文章发布来源:1采美365网,2供应商' AFTER `source`,
+    ADD COLUMN `shopId` INT NULL COMMENT '供应商id,publishSource为2时才有值' AFTER `publishSource`,
+    ADD COLUMN `auditStatus` INT NULL DEFAULT 2 COMMENT '供应商文章审核状态:1待审核,2审核通过,3审核失败' AFTER `priorityIndex`,
+    ADD COLUMN `failReason` TEXT NULL COMMENT '审核失败理由' AFTER `auditStatus`;
+
+CREATE TABLE `cm_baike_hot_search` (
+    `id` INT NOT NULL AUTO_INCREMENT,
+    `keyWord` VARCHAR(15) NULL COMMENT '热搜词',
+    `jumpType` INT NULL COMMENT '跳转方式:1仅搜索,2产品,3仪器,4链接',
+    `productId` INT NULL COMMENT '产品/仪器id',
+    `jumpLink` TEXT NULL COMMENT '跳转链接',
+    `sort` INT NULL COMMENT '排序值',
+    `status` INT NULL COMMENT '状态:0停用,1启用',
+    `addTime` DATETIME NULL COMMENT '添加时间',
+    `addBy` INT NULL COMMENT '添加人',
+    PRIMARY KEY (`id`));
+
+CREATE TABLE `cm_baike_banner` (
+    `id` INT NOT NULL AUTO_INCREMENT,
+    `productPcBanner` TEXT NULL COMMENT '产品pc端banner',
+    `productAppBanner` TEXT NULL COMMENT '产品移动端banner',
+    `instrumentPcBanner` TEXT NULL COMMENT '仪器pc端banner',
+    `instrumentAppBanner` TEXT NULL COMMENT '仪器移动端banner',
+    `productLink` TEXT NULL COMMENT '产品banner跳转链接',
+    `instrumentLink` TEXT NULL COMMENT '仪器banner跳转链接',
+    `productStatus` INT NULL COMMENT '产品banner状态:0停用,1启用',
+    `instrumentStatus` INT NULL COMMENT '仪器banner状态:0停用,1启用',
+    PRIMARY KEY (`id`))
+    COMMENT = '采美百科产品仪器banner图';
+
+INSERT INTO `cm_baike_banner` (`id`) VALUES ('1');
+
+CREATE TABLE `cm_baike_type` (
+    `id` INT NOT NULL AUTO_INCREMENT,
+    `typeSort` INT NULL COMMENT '分类类型:1产品,2仪器',
+    `name` VARCHAR(30) NULL COMMENT '分类名称',
+    `sort` INT NULL COMMENT '排序',
+    `status` INT NULL COMMENT '状态:0停用,1启用',
+    `addTime` DATETIME NULL COMMENT '添加时间',
+    `addBy` INT NULL COMMENT '添加人',
+    PRIMARY KEY (`id`))
+    COMMENT = '采美百科产品/仪器分类';
+
+CREATE TABLE `cm_baike_product` (
+    `id` INT NOT NULL AUTO_INCREMENT,
+    `classify` INT NULL COMMENT '分类:1产品,2仪器',
+    `name` VARCHAR(50) NULL COMMENT '名称',
+    `alias` VARCHAR(50) NULL COMMENT '别名',
+    `discription` VARCHAR(300) NULL COMMENT '描述',
+    `image` TEXT NULL COMMENT '图片',
+    `advantage` VARCHAR(500) NULL COMMENT '优点',
+    `disadvantage` VARCHAR(500) NULL COMMENT '缺点',
+    `principle` VARCHAR(500) NULL COMMENT '原理',
+    `brand` VARCHAR(50) NULL COMMENT '品牌',
+    `producePlace` VARCHAR(50) NULL COMMENT '产地',
+    `marketTime` DATETIME NULL COMMENT '上市时间',
+    `company` VARCHAR(50) NULL COMMENT '公司/供应商',
+    `nmpaTime` DATETIME NULL COMMENT 'NMPA认证时间',
+    `adaptiveMan` VARCHAR(500) NULL COMMENT '适应人群',
+    `unAdaptiveMan` VARCHAR(500) NULL COMMENT '不适应人群',
+    `aroundOperation` VARCHAR(500) NULL COMMENT '术前术后',
+    `publishTime` DATETIME NULL COMMENT '发布时间',
+    `basePv` INT NULL COMMENT '基础浏览量',
+    `actualPv` INT NULL COMMENT '实际浏览量',
+    `typeId` INT NULL COMMENT '分类id',
+    `topPosition` INT NULL COMMENT '置顶位',
+    `status` INT NULL COMMENT '状态:0停用,1启用',
+    `addTime` DATETIME NULL COMMENT '添加时间',
+    PRIMARY KEY (`id`))
+    COMMENT = '采美百科产品/仪器表';
+
+CREATE TABLE `cm_baike_product_param` (
+    `id` INT NOT NULL AUTO_INCREMENT,
+    `productId` INT NULL COMMENT '产品/仪器id' ,
+    `name` VARCHAR(15) NULL COMMENT '参数名称',
+    `content` VARCHAR(50) NULL COMMENT '参数内容' ,
+    PRIMARY KEY (`id`))
+    COMMENT = '产品/仪器参数';
+
+CREATE TABLE `cm_baike_product_image` (
+    `id` INT NOT NULL AUTO_INCREMENT,
+    `productId` INT NULL COMMENT '产品/仪器id',
+    `type` INT NULL COMMENT '图片类型:1产品/仪器认证,2效果展示',
+    `image` TEXT NULL COMMENT '图片',
+    PRIMARY KEY (`id`));
+
+-- =================================== 2021年11月 采美百科 end =====================================

+ 3 - 3
src/main/resources/static/js/index.js

@@ -23,11 +23,11 @@ var homeData = new Vue({
             //非会员
             if(!GLOBAL_VIP_FLAG === 1) return false;
             // 商品所有机构可见
-            if(pros.priceFlag === 0 ) return true;
+            if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
             // 商品价格仅资质机构可见
-            if(pros.priceFlag === 2 && GLOBAL_USER_IDENTITY === 2) return true;
+            if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
             // 商品价格仅医美机构可见
-            if(pros.priceFlag === 3 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
             // 其它
             return false;
         },

+ 3 - 3
src/main/resources/static/js/product/detail.js

@@ -688,11 +688,11 @@ var productDetail = new Vue({
             //非会员
             if(!GLOBAL_VIP_FLAG === 1) return false;
             // 商品所有机构可见
-            if(pros.priceFlag === 0 ) return true;
+            if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
             // 商品价格仅资质机构可见
-            if(pros.priceFlag === 2 && GLOBAL_USER_IDENTITY === 2) return true;
+            if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
             // 商品价格仅医美机构可见
-            if(pros.priceFlag === 3 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
             // 其它
             return false;
         },

+ 13 - 6
src/main/resources/static/js/product/instruement.js

@@ -22,12 +22,19 @@
          }
      },
      methods:{
-        // 是否显示vip标签价格
-        showVipPriceTag: function(product){
-            console.log(product);
-            return (product.priceFlag !== 1 && product.svipProductFlag === 1 && ((GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG === 1) || GLOBAL_USER_IDENTITY === 2));
-        },
-
+         // 是否显示vip标签价格
+         showVipPriceTag: function(pros){
+             //非会员
+             if(!GLOBAL_VIP_FLAG === 1) return false;
+             // 商品所有机构可见
+             if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
+             // 商品价格仅资质机构可见
+             if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
+             // 商品价格仅医美机构可见
+             if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+             // 其它
+             return false;
+         },
         closeup:function(){
             this.showflag = false;
             document.body.style.overflow='';

+ 3 - 82
src/main/resources/static/js/product/list.js

@@ -79,14 +79,11 @@ var productList = new Vue({
             //非会员
             if(!GLOBAL_VIP_FLAG === 1) return false;
             // 商品所有机构可见
-            if(pros.priceFlag === 0 ) return true;
-            console.log('11111111111')
+            if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
             // 商品价格仅资质机构可见
-            if(pros.priceFlag === 2 && GLOBAL_USER_IDENTITY === 2) return true;
-            console.log('222222222222')
+            if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
             // 商品价格仅医美机构可见
-            if(pros.priceFlag === 3 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
-            console.log('33333333333')
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
             // 其它
             return false;
         },
@@ -133,10 +130,8 @@ var productList = new Vue({
                 newFlag: this.params.newFlag, // 查询新品标记,默认0,新品1
                 promotionFlag: this.params.promotionFlag, // 查询促销标记,默认0,促销1
             },function (res) {
-                console.log(res);
                 if (res.code === 0 && res.data ) {
                     var result = JSON.parse(res.data);
-                    console.log(result.items);
                     _self.listRecord = result.total;
                     var resultData = setSearchProductList(result.items, _self.userId, function(){
                         _self.$forceUpdate();
@@ -166,7 +161,6 @@ var productList = new Vue({
         getCommoditySearchQUeryBrand:function() { // 查询筛选项品牌
             var _self = this;
             ProductApi.getCommoditySearchQUeryBrand(_self.brandParam,function (response) {
-                console.log(response);
                 if (response.code === 0 && response.data ) {
                     var data = response.data;
                     _self.defaultBrandLists = data.map((el, index) => {
@@ -254,41 +248,9 @@ var productList = new Vue({
         handleConfirmScreen:function(){
             this.params.num = 1;
             this.listData = [];
-            console.log('_self.params.brandIds',this.params.brandIds)
             this.getListByKeyword();
             this.isProductScreen = false;
         }
-        // getListByCategory: function (path, categoryId) {
-        //     var _self = this;
-        //     $.getJSON(spiServer+"/search/query/product/"+ path ,{
-        //         id: categoryId,
-        //         identity: IDENTITY,
-        //         pageSize: this.params.size,
-        //         pageNum: this.params.num,
-        //         sortField: this.params.sortField,
-        //         sortType: this.params.sortType
-        //     }, function (r) {
-        //         if (r.code === 0 && r.data) {
-        //             var result = JSON.parse(r.data);
-        //             _self.listRecord = result.total;
-        //             var resultData = setSearchProductList(result.items, _self.userId, function(){
-        //                 _self.$forceUpdate();
-        //                 setTimeout(function(){
-        //                     // 图片懒加载
-        //                     $("img[data-original]").lazyload();
-        //                 },500);
-        //             });
-        //             if(isPC){
-        //                 _self.listData = resultData;
-        //             }else{
-        //                 _self.listData = _self.listData.concat(resultData);
-        //             }
-        //             console.log(_self.listData)
-        //         }
-        //         _self.listLoading = false;
-        //         _self.requestFlag = true;
-        //     })
-        // }
     },
     created: function () {
         if(isPC){
@@ -300,7 +262,6 @@ var productList = new Vue({
             if(this.hrefBrandId){
                 this.params.brandIds = this.hrefBrandId +',';
             }
-            console.log('hrefBrandId',this.hrefBrandId)
             if(this.params.promotionFlag == 1){
                 this.isActiviChecked = true;
             }else{
@@ -337,32 +298,6 @@ var productList = new Vue({
         this.getListByKeyword();
         // 获取对应品牌列表
         this.getCommoditySearchQUeryBrand();
-        // if (this.searchFlag) {
-        //     // 获取列表数据
-        //     this.getListByKeyword();
-        // } else {
-        //     // category=1000-1001-1005
-        //     if (!getUrlParam("category")) {
-        //         this.listLoading = false;
-        //         return false;
-        //     }
-        //     var category = getUrlParam("category").split("-");
-        //     this.params.bid = category[0];
-        //     this.params.sid = category[1];
-        //     this.params.tid = category[2];
-        //     // 根据分类获取数据
-        //     if (this.params.tid && this.params.tid>0) {
-        //         this.getListByCategory("tinyType", this.params.tid);
-        //     } else if (this.params.sid && this.params.sid>0){
-        //         this.getListByCategory("smallType", this.params.sid);
-        //     } else if (this.params.bid && this.params.bid>0) {
-        //         this.getListByCategory("bigType", this.params.bid);
-        //     } else {
-        //         alertInfo("URL参数异常!", function(){
-        //             window.location.href = "/";
-        //         });
-        //     }
-        // }
     },
     mounted: function () {
         var _self = this;
@@ -382,20 +317,6 @@ var productList = new Vue({
                             _self.params.num = next;
                             // 获取列表数据
                             _self.getListByKeyword();
-
-                            // if (_self.searchFlag) {
-                            //     // 获取列表数据
-                            //     _self.getListByKeyword();
-                            // } else {
-                            //     // 根据分类获取数据
-                            //     if (_self.params.tid && _self.params.tid>0) {
-                            //         _self.getListByCategory("tinyType", _self.params.tid);
-                            //     } else if (_self.params.sid && _self.params.sid>0){
-                            //         _self.getListByCategory("smallType", _self.params.sid);
-                            //     } else if (_self.params.bid && _self.params.bid>0) {
-                            //         _self.getListByCategory("bigType", _self.params.bid);
-                            //     }
-                            // }
                         }
                         _self.requestFlag = false;
                     }else{

+ 3 - 3
src/main/resources/static/js/product/produce-list.js

@@ -60,11 +60,11 @@ var productList = new Vue({
             //非会员
             if(!GLOBAL_VIP_FLAG === 1) return false;
             // 商品所有机构可见
-            if(pros.priceFlag === 0 ) return true;
+            if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
             // 商品价格仅资质机构可见
-            if(pros.priceFlag === 2 && GLOBAL_USER_IDENTITY === 2) return true;
+            if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
             // 商品价格仅医美机构可见
-            if(pros.priceFlag === 3 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
             // 其它
             return false;
         },

+ 11 - 2
src/main/resources/static/js/product/product-coupon.js

@@ -31,8 +31,17 @@ var productList = new Vue({
     },
     methods: {
         // 是否显示vip标签价格
-        showVipPriceTag: function(product){
-            return (product.priceFlag !== 1 && product.svipProductFlag === 1 && ((GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG === 1) || GLOBAL_USER_IDENTITY === 2));
+        showVipPriceTag: function(pros){
+            //非会员
+            if(!GLOBAL_VIP_FLAG === 1) return false;
+            // 商品所有机构可见
+            if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
+            // 商品价格仅资质机构可见
+            if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
+            // 商品价格仅医美机构可见
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+            // 其它
+            return false;
         },
         getListByKeyword: function () {
             var _self = this;

+ 3 - 3
src/main/resources/static/js/product/product-supporting.js

@@ -157,11 +157,11 @@ var supporting = new Vue({
             //非会员
             if(!GLOBAL_VIP_FLAG === 1) return false;
             // 商品所有机构可见
-            if(pros.priceFlag === 0 ) return true;
+            if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
             // 商品价格仅资质机构可见
-            if(pros.priceFlag === 2 && GLOBAL_USER_IDENTITY === 2) return true;
+            if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
             // 商品价格仅医美机构可见
-            if(pros.priceFlag === 3 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
             // 其它
             return false;
         },

+ 3 - 3
src/main/resources/static/js/user-center/collection/collection.js

@@ -104,11 +104,11 @@ var orderPage = new Vue({
             //非会员
             if(!GLOBAL_VIP_FLAG === 1) return false;
             // 商品所有机构可见
-            if(pros.priceFlag === 0 ) return true;
+            if(pros.priceFlag === 0  && pros.svipProductFlag === 1 ) return true;
             // 商品价格仅资质机构可见
-            if(pros.priceFlag === 2 && GLOBAL_USER_IDENTITY === 2) return true;
+            if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
             // 商品价格仅医美机构可见
-            if(pros.priceFlag === 3 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
             // 其它
             return false;
         },

+ 4 - 1
src/main/resources/static/js/user-center/member/memberPage.js

@@ -333,9 +333,12 @@ var memberPage = new Vue({
                 if (priceFlag === 1) {
                     return '¥价格未公开'
                 }
-                if ((priceFlag === 2 && GLOBAL_USER_IDENTITY !== 2) && GLOBAL_VIP_FLAG !== 1) {
+                if ((priceFlag === 2 && GLOBAL_USER_IDENTITY === 4) && GLOBAL_VIP_FLAG !== 1) {
                     return '¥会员可见'
                 }
+                if ((priceFlag === 3 && GLOBAL_USER_IDENTITY === 2 && GLOBAL_CLUB_TYPE!=1) || (priceFlag === 3 && GLOBAL_USER_IDENTITY === 4)) {
+                    return '¥仅医美机构可见'
+                }
                 // 价格可见
                 if ((priceFlag === 0 && userIdentity !== 3) || (GLOBAL_USER_IDENTITY === 2) || (userIdentity === 3 && GLOBAL_SHOP_ID === shopID) || GLOBAL_VIP_FLAG === 1) {
                     if (promotions || (svipProductFlag === 1 && GLOBAL_VIP_FLAG === 1)) {

+ 12 - 12
src/main/resources/templates/activity/activityTopic.html

@@ -420,7 +420,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -542,7 +542,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -675,7 +675,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -781,7 +781,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -904,7 +904,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -1021,7 +1021,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -1138,7 +1138,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -1250,7 +1250,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -1363,7 +1363,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -1469,7 +1469,7 @@
                               </div>
                             </template>
                             <!-- 样式3 -->
-                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                            <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                               <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -1586,7 +1586,7 @@
                                     </div>
                                   </template>
                                   <!-- 样式3 -->
-                                  <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                  <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                     <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                       <span class="tag">{{pros.product.promotions.name}}</span>
@@ -1695,7 +1695,7 @@
                                     </div>
                                   </template>
                                   <!-- 样式3 -->
-                                  <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                  <template v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                     <div class="price-tag" v-if="pros.product.actStatus==1">
 <!--                                      <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>-->
                                       <span class="tag">{{pros.product.promotions.name}}</span>

+ 2 - 2
src/main/resources/templates/activity/beautyTopic.html

@@ -127,7 +127,7 @@
                                                                         </template>
                                                                         <!-- 样式3 -->
                                                                         <template
-                                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                                             <div class="price-tag cm-left"
                                                                                  v-if="pros.product.actStatus==1">
                                                                                 <span class="tag">{{pros.product.promotions.name}}</span>
@@ -284,7 +284,7 @@
                                                                     </template>
                                                                     <!-- 样式3 -->
                                                                     <template
-                                                                            v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                            v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                                         <div class="price-tag cm-left"
                                                                              v-if="pros.product.actStatus==1">
                                                                             <span class="tag">{{pros.product.promotions.name}}</span>

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

@@ -194,7 +194,7 @@
                                                             <em class="price_grade"><span>¥</span>价格未公开</em>
                                                         </template>
                                                         <!--机构价仅会员可见 && 用户是普通机构-->
-                                                        <template v-else-if="pros.product.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">
+                                                        <template v-else-if="pros.product.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">
                                                             <em class="price_grade_club"><span>¥</span>会员可见</em>
                                                         </template>
                                                         <!--机构价仅医美机构可见-->

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

@@ -124,7 +124,7 @@
                                                         </div>
                                                     </template>
                                                     <!--仅会员机构可见-->
-                                                    <template v-else-if="pros.priceFlag==2 && pros.userIdentity==4">
+                                                    <template v-else-if="pros.priceFlag==2 && pros.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                         <div class="main_price_text">
                                                             <div class="price_text_tag">
 <!--																<p class="couponTag" v-if="pros.couponsLogo">优惠券</p>-->

+ 2 - 2
src/main/resources/templates/product/detail.html

@@ -71,7 +71,7 @@
                             <!--用户身份 0、个人 1、协销 2、会员机构 3、供应商 4,普通机构-->
                             <em v-if="priceObj.priceFlag==1" v-text="'¥价格未公开'"></em>
                             <!--仅会员可见 -->
-                            <em v-else-if="priceObj.priceFlag==2 && GLOBAL_USER_IDENTITY == 4" class="red" v-text="'¥会员可见'"></em>
+                            <em v-else-if="priceObj.priceFlag==2 && GLOBAL_USER_IDENTITY == 4 && GLOBAL_VIP_FLAG!=1" class="red" v-text="'¥会员可见'"></em>
                             <!--仅医美机构可见 -->
                             <em v-else-if="priceObj.priceFlag==3 && (GLOBAL_CLUB_TYPE !=1)" class="red" v-text="'¥仅医美机构可见'"></em>
                             <!--SVIP时的划线价格-->
@@ -297,7 +297,7 @@
                                             <!--0公开价格 1不公开价格 2仅对会员机构公开-->
                                             <div class="main_price_unde" v-if="pros.priceFlag==1">¥价格未公开</div>
                                             <!--机构价仅会员可见 && 用户是普通机构-->
-                                            <div class="main_price_unde" v-else-if="pros.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">
+                                            <div class="main_price_unde" v-else-if="pros.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">
                                                 ¥会员可见
                                             </div>
                                             <!--机构价仅会员可见 && 用户是普通机构-->

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

@@ -210,7 +210,7 @@
                                         </div>
                                     </template>
                                     <!--会员可见-->
-                                    <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">¥会员可见</div>
+                                    <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">¥会员可见</div>
                                     <!--仅医美机构可见-->
                                     <div class="main_price_unde" v-else-if="p.priceFlag==3 && (GLOBAL_CLUB_TYPE !=1)">¥仅医美机构可见</div>
                                     <!--其他-->

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

@@ -145,7 +145,7 @@
                                                     <!--0公开价格 1不公开价格 2仅对会员机构公开-->
                                                     <em class="price_grade" v-if="pros.product.priceFlag == 1"><span>¥</span>价格未公开</em>
                                                     <!--会员可见-->
-                                                    <template v-else-if="pros.product.priceFlag === 2 && GLOBAL_USER_IDENTITY === 4">
+                                                    <template v-else-if="pros.product.priceFlag === 2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">
                                                         <em class="price_grade_club">
                                                             <span>¥</span>会员可见
                                                         </em>

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

@@ -155,7 +155,7 @@
                                 <!--0公开价格 1不公开价格 2仅对会员机构公开-->
                                 <div class="main_price_unde" v-if="p.priceFlag==1">¥价格未公开</div>
                                 <!--机构价仅会员可见 && 用户是普通机构-->
-                                <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">
+                                <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">
                                     ¥会员可见
                                 </div>
                                 <!--机构价仅会员可见 && 用户是普通机构-->

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

@@ -56,7 +56,7 @@
                                 <!--0公开价格 1不公开价格 2仅对会员机构公开-->
                                 <div class="main_price_unde" v-if="p.priceFlag==1">¥价格未公开</div>
                                 <!--机构价仅会员可见 && 用户是普通机构-->
-                                <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">¥会员可见</div>
+                                <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">¥会员可见</div>
                                 <!--仅医美机构可见-->
                                 <div class="main_price_unde" v-else-if="p.priceFlag==3 && (GLOBAL_CLUB_TYPE !=1)">¥仅医美机构可见</div>
                                 <!-- 资质机构 || (价格全部机构可见 && 普通机构) || (供应商 && 商品为供应商下的商品) || 超级会员用户 -->

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

@@ -45,7 +45,7 @@
                                 <!--0公开价格 1不公开价格 2仅对会员机构公开-->
                                 <div class="main_price_unde" v-if="pros.priceFlag==1">¥价格未公开</div>
                                 <!--机构价仅会员可见 && 用户是普通机构-->
-                                <div class="main_price_unde" v-else-if="pros.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">
+                                <div class="main_price_unde" v-else-if="pros.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">
                                     ¥会员可见
                                 </div>
                                 <!--仅医美机构可见-->

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

@@ -57,7 +57,7 @@
                                     <em class="p" v-text="'¥'+parseFloat(p.price).toFixed(2)"></em>
                                     <span class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</span>
                                 </template>
-                                <template v-else-if="p.priceFlag==2 && p.userIdentity==4">
+                                <template v-else-if="p.priceFlag==2 && p.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                     <em>¥会员可见</em>
                                     <span class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</span>
                                     <div class="btnBox">

+ 8 - 8
src/main/resources/templates/product/temporary.html

@@ -103,7 +103,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>
@@ -200,7 +200,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>
@@ -299,7 +299,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>
@@ -402,7 +402,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>
@@ -494,7 +494,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>
@@ -585,7 +585,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>
@@ -677,7 +677,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>
@@ -767,7 +767,7 @@
                                                             </div>
                                                         </template>
                                                         <template
-                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4">
+                                                                v-else-if="pros.product.priceFlag==2 && pros.product.userIdentity==4 && GLOBAL_VIP_FLAG!=1">
                                                             <div class="price_text_tag">
                                                                 <p class="listTag" v-if="pros.product.actStatus==1">
                                                                     {{pros.product.promotions.name}}</p>

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

@@ -86,7 +86,7 @@
                                             </div>
                                             <div class="main_price_unde" v-if="p.priceFlag == 1">¥价格未公开</div>
                                             <!--机构价仅会员可见 && 用户是普通机构-->
-                                            <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4">¥会员可见</div>
+                                            <div class="main_price_unde" v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">¥会员可见</div>
                                             <!--仅医美机构可见-->
                                             <div class="main_price_unde" v-else-if="p.priceFlag==3 && (GLOBAL_CLUB_TYPE !=1)">
                                                 ¥仅医美机构可见

+ 2 - 2
src/main/resources/templates/user-center/collection/collection.html

@@ -76,7 +76,7 @@
                   </div>
                   <div class="main_price_unde">¥价格未公开</div>
                 </template>
-                <template v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY==4">
+                <template v-else-if="p.priceFlag==2 && GLOBAL_USER_IDENTITY==4 && GLOBAL_VIP_FLAG!=1">
                   <div class="price_text_tag">
                     <p class="couponTag" v-if="p.couponsLogo">优惠券</p>
                     <p class="listTag" v-if="p.actStatus==1">{{p.promotions.name}}</p>
@@ -117,7 +117,7 @@
                         </div>
                       </div>
                     </div>
-                    <div class="main_price_show" :class="PromotionsFormat(p.promotions) ? 'none' : ''">
+                    <div class="main_price_show" :class="{none: showVipPriceTag(p) || PromotionsFormat(p.promotions)}">
                       ¥{{ (PromotionsFormat(p.promotions) ? p.originalPrice : p.price ) | NumFormat }}
                     </div>
                   </template>