2.4 组件结构调整,调整会员权限判断

This commit is contained in:
尚政杰
2026-02-04 17:43:41 +08:00
parent eeca65538c
commit 995ee7f220
274 changed files with 7191 additions and 2186 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../utils/util.js"),t=require("../../../common/vendor.js"),r={name:"ywjg-view",data:()=>({getRateUpOrDown:e.getRateUpOrDown}),props:{businessStructureList:Array,businessSegmentList:Array}};const i=t._export_sfc(r,[["render",function(e,r,i,n,s,o){return{a:t.f(i.businessStructureList,((e,r,i)=>t.e({a:t.t(e.business_name),b:e.is_hexin},(e.is_hexin,{}),{c:t.t(e.financial_metrics.revenue_ratio),d:e.financial_metrics.gross_margin},e.financial_metrics.gross_margin?{e:t.t(e.financial_metrics.gross_margin)}:{},{f:t.t(e.revenue),g:t.t(e.revenue_unit),h:e.growth_metrics.revenue_growth},e.growth_metrics.revenue_growth?{i:t.t(e.growth_metrics.revenue_growth),j:t.n("growthRate "+(s.getRateUpOrDown(e.growth_metrics.revenue_growth)?"down":"up"))}:{},{k:r}))),b:t.f(i.businessSegmentList,((e,r,i)=>({a:t.t(e.segment_name),b:t.t(e.segment_description),c:t.t(e.competitive_position),d:t.t(e.future_potential),e:r})))}}]]);wx.createPage(i);

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="ywjg_list"><view><view style="margin:25rpx 20rpx;color:#2B2B2B;font-size:28rpx;font-weight:bold">业务结构分析</view><view wx:for="{{a}}" wx:for-item="item" wx:key="k" class="ywjg_item_1"><view style="display:flex;align-items:center"><view style="font-size:28rpx;font-weight:bold;margin-right:10rpx">{{item.a}}</view><view wx:if="{{item.b}}" style="background-color:#F2C369;border-radius:5rpx;font-size:20rpx;padding:0 5rpx"> 核心业务</view></view><view class="flex between" style="font-weight:500"><view class="flex" style="color:#F2C369;font-size:20rpx"><view style="border:1rpx solid #F2C369;border-radius:5rpx;padding:0 10rpx"> 营收占比:{{item.c}}%</view><view wx:if="{{item.d}}" style="border:1rpx solid #F2C369;border-radius:5rpx;padding:0 10rpx;margin-left:10rpx"> 毛利率:{{item.e}}%</view><view wx:else style="border:1rpx solid #F2C369;border-radius:5rpx;padding:0 10rpx;margin-left:10rpx"> 毛利率:-</view></view><view><view style="color:#999999;font-size:24rpx">营业收入</view><view style="font-weight:bold;font-size:30rpx;color:#BB8520;margin-top:10rpx">{{item.f}}{{item.g}}</view></view></view><view style="display:flex"><view wx:if="{{item.h}}" class="{{item.j}}"> 增长:{{item.i}}% </view><view wx:else class="growthRate down">增长:-</view></view></view><view style="margin:25rpx 20rpx;color:#2B2B2B;font-size:28rpx;font-weight:bold">业务板块详情</view><view style="font-weight:500"><view wx:for="{{b}}" wx:for-item="item" wx:key="e" style="background-color:#FAFAFC;color:#2B2B2B;font-size:22rpx;margin:20rpx;border-radius:10rpx;padding:25rpx 20rpx"><view style="font-size:24rpx">{{item.a}}</view><view style="color:#BB8520;font-weight:bold;margin:10rpx 0">业务描述</view><view style="color:#71675D">{{item.b}}</view><view style="color:#BB8520;font-weight:bold;margin:10rpx 0">竞争地位</view><view style="color:#71675D">{{item.c}}</view><view style="color:#BB8520;font-weight:bold;margin:10rpx 0">未来潜力</view><view style="color:#71675D">{{item.d}}</view></view></view></view></view>

View File

@@ -0,0 +1 @@
.ywjg_list{color:#2b2b2b}.ywjg_list .title{font-size:28rpx;font-weight:700}.ywjg_list .ywjg_item_1{font-weight:500;margin:20rpx;background-color:#fafafc;border-radius:10rpx;padding:25rpx 20rpx}.ywjg_list .ywjg_item_1 .growthRate{padding:0 10rpx;line-height:30rpx;border-radius:5rpx;font-size:20rpx;color:#fff}.ywjg_list .ywjg_item_1 .growthRate.up{background-color:#ec3440}.ywjg_list .ywjg_item_1 .growthRate.down{background-color:#345423}