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,53 @@
"use strict";
const utils_util = require("../../../utils/util.js");
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
name: "ywjg-view",
data() {
return {
getRateUpOrDown: utils_util.getRateUpOrDown
};
},
props: {
businessStructureList: Array,
//业务结构分析
businessSegmentList: Array
//业务板块详情
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($props.businessStructureList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.business_name),
b: item.is_hexin
}, item.is_hexin ? {} : {}, {
c: common_vendor.t(item.financial_metrics.revenue_ratio),
d: item.financial_metrics.gross_margin
}, item.financial_metrics.gross_margin ? {
e: common_vendor.t(item.financial_metrics.gross_margin)
} : {}, {
f: common_vendor.t(item.revenue),
g: common_vendor.t(item.revenue_unit),
h: item.growth_metrics.revenue_growth
}, item.growth_metrics.revenue_growth ? {
i: common_vendor.t(item.growth_metrics.revenue_growth),
j: common_vendor.n("growthRate " + ($data.getRateUpOrDown(item.growth_metrics.revenue_growth) ? "down" : "up"))
} : {}, {
k: index
});
}),
b: common_vendor.f($props.businessSegmentList, (item, index, i0) => {
return {
a: common_vendor.t(item.segment_name),
b: common_vendor.t(item.segment_description),
c: common_vendor.t(item.competitive_position),
d: common_vendor.t(item.future_potential),
e: index
};
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesStock/components/ywjg-view/ywjg-view.js.map

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,27 @@
.ywjg_list {
color: #2B2B2B;
}
.ywjg_list .title {
font-size: 28rpx;
font-weight: bold;
}
.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: white;
}
.ywjg_list .ywjg_item_1 .growthRate.up {
background-color: #EC3440;
}
.ywjg_list .ywjg_item_1 .growthRate.down {
background-color: #345423;
}