Browse Source

工资详情添加会员

xiaozhen 6 years ago
parent
commit
5516e1db84
3 changed files with 17 additions and 3 deletions
  1. BIN
      assets/img/vip_icon_premium.png
  2. 6 1
      components/menu/data.js
  3. 11 2
      pages/main/index/wage_details.vue

BIN
assets/img/vip_icon_premium.png


+ 6 - 1
components/menu/data.js

@@ -80,7 +80,12 @@ export default [
 				title: '用户账单列表',
 				path: baseUrl + 'user_bills',
 				hidden: true
-			}
+			},
+      {
+        title: '工资账单明细',
+        path: baseUrl + 'wage_details',
+        hidden: true
+      }
 		]
 	},
 	{

+ 11 - 2
pages/main/index/wage_details.vue

@@ -23,13 +23,22 @@
               <span>¥</span>
               {{item.company.company_total_price}}
             </b>
+            <template v-if="item.company_info">
             <img
-              src="@/assets/img/vip_icon_com.png"
+              src="@/assets/img/vip_icon_premium.png"
               height="16"
               width="16"
               valign="middle"
-              v-show="item.rate.company_service_fee_rate_reduce>0"
+              v-show="item.company_info.vip_type_id==3"
             >
+              <img
+                src="@/assets/img/vip_icon_com.png"
+                height="16"
+                width="16"
+                valign="middle"
+                v-show="item.company_info.vip_type_id==1"
+              >
+            </template>
           </p>
           <p class="font15 color2">
             <label class="label">本月工资</label>