瀏覽代碼

feat:企业搜索,vip【开通】改为v标识

zhangsiya 11 月之前
父節點
當前提交
bd05065027

+ 14 - 0
apps/mobile/src/components/cell/filter-cell/index.vue

@@ -7,6 +7,7 @@
     <div class="filter-cell-title">
       <div style="flex-shrink: 0">
         <span class="cell-title-left">{{ title }}</span>
+        <span v-if="isVip" class="v-vip-icon"></span>
         <span v-if="isTag" class="jy-tag">
           <slot name="tag">开通</slot>
         </span>
@@ -59,6 +60,10 @@ export default {
     isLink: {
       type: Boolean,
       default: false
+    },
+    isVip: {
+      type: Boolean,
+      default: false
     }
   },
   methods: {
@@ -99,5 +104,14 @@ export default {
   .filter-cell-label {
     margin-top: 2px;
   }
+  .v-vip-icon{
+    display: inline-block;
+    width: 14px;
+    height: 14px;
+    margin-left: 2px;
+    background: url(@/assets/image/icon/vip/v_icon.png) no-repeat center;
+    background-size: contain;
+    margin-bottom: 1px;
+  }
 }
 </style>

+ 4 - 4
apps/mobile/src/components/search/company-search/MoreSelectorContent.vue

@@ -36,14 +36,14 @@
     <FilterCell
       title="中标区域"
       isLink
-      :isTag="openTag"
+      :isVip="showVip"
       :value="formatAreaVal"
       @onClick="onCellClick(entBidArea)"
       v-if="isLogin"
     ></FilterCell>
     <FilterCell
       title="单位类型"
-      :isTag="openTag"
+      :isVip="showVip"
       :value="unitType.value"
       @onClick="onCellClick(unitType)"
       v-if="isLogin"
@@ -61,7 +61,7 @@
     </FilterCell>
     <FilterCell
       title="联系方式"
-      :isTag="openTag"
+      :isVip="showVip"
       :value="entContact.value"
       @onClick="onCellClick(entContact)"
       v-if="isLogin"
@@ -196,7 +196,7 @@ export default {
   },
   computed: {
     ...mapGetters('user', ['isLogin']),
-    openTag() {
+    showVip () {
       return this.freeUser
     },
     formatAreaVal() {

+ 2 - 2
apps/mobile/src/data/company.js

@@ -52,13 +52,13 @@ export const entScopeData = [
   {
     label: '经营范围',
     key: 'F',
-    tag: '开通',
+    vip: true,
     disabled: true
   },
   {
     label: '中标项目/标的物',
     key: 'E',
-    tag: '开通',
+    vip: true,
     disabled: true
   }
 ]

+ 1 - 1
apps/mobile/src/views/search/result/company/index.vue

@@ -244,7 +244,7 @@ export default {
         return list.filter((item) => !item.disabled)
       }
       list.forEach((v) => {
-        if (this.freeUser && v.tag) {
+        if (this.freeUser && v.vip) {
           v.disabled = true
         } else {
           v.disabled = false