2.4 组件结构调整,调整会员权限判断
This commit is contained in:
37
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.js
vendored
Normal file
37
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const common_assets = require("../../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
name: "fzjg-view",
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
props: {
|
||||
branchList: Array
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.f($props.branchList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.branch_name),
|
||||
b: item.business_status == "注销"
|
||||
}, item.business_status == "注销" ? {
|
||||
c: common_assets._imports_0$5
|
||||
} : {
|
||||
d: common_assets._imports_1$11
|
||||
}, {
|
||||
e: common_vendor.t(item.business_status),
|
||||
f: common_vendor.n("statusC flex " + (item.business_status == "注销" ? "logOff" : "exist")),
|
||||
g: common_vendor.t(item.register_capital),
|
||||
h: common_vendor.t(item.legal_person),
|
||||
i: common_vendor.t(item.register_date),
|
||||
j: common_vendor.t(item.related_company_count),
|
||||
k: index
|
||||
});
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.js.map
|
||||
3
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.json
vendored
Normal file
3
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="branchList"><view wx:for="{{a}}" wx:for-item="item" wx:key="k" class="item"><view class="titleStatusC flex"><view class="title flex1">{{item.a}}</view><view class="{{item.f}}"><image wx:if="{{item.b}}" class="icon" src="{{item.c}}" mode="widthFix"></image><image wx:else class="icon" src="{{item.d}}" mode="widthFix"></image><view>{{item.e}}</view></view></view><view class="infoC topInfo flex"><view class="infoItem leftInfo flex flex1"><view class="title">注册资本</view><view class="content flex1">{{item.g}}</view></view><view class="infoItem rightInfo flex flex1"><view class="title">法人代表</view><view class="content flex1">{{item.h}}</view></view></view><view class="infoC flex"><view class="infoItem leftInfo flex flex1"><view class="title">成立日期</view><view class="content flex1">{{item.i}}</view></view><view class="infoItem rightInfo flex flex1"><view class="title">关联企业</view><view class="content flex1">{{item.j}}家</view></view></view></view></view>
|
||||
61
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.wxss
vendored
Normal file
61
unpackage/dist/dev/mp-weixin/pagesStock/components/fzjg-view/fzjg-view.wxss
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
.branchList {
|
||||
margin-top: 38rpx;
|
||||
padding: 0 20rpx;
|
||||
}
|
||||
.branchList .item {
|
||||
background-color: #FAFAFC;
|
||||
margin-bottom: 20rpx;
|
||||
padding: 20rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.branchList .item .titleStatusC {
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #2B2B2B;
|
||||
}
|
||||
.branchList .item .titleStatusC .statusC {
|
||||
padding: 0 10rpx;
|
||||
line-height: 28rpx;
|
||||
border-radius: 15rpx;
|
||||
font-size: 20rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
.branchList .item .titleStatusC .statusC .icon {
|
||||
margin-right: 3rpx;
|
||||
width: 16rpx;
|
||||
height: auto;
|
||||
}
|
||||
.branchList .item .titleStatusC .statusC.exist {
|
||||
background-color: #FFF7E9;
|
||||
border: solid 1rpx #F2C369;
|
||||
color: #F2C369;
|
||||
}
|
||||
.branchList .item .titleStatusC .statusC.logOff {
|
||||
background-color: #FFF1F1;
|
||||
border: solid 1rpx #EF3535;
|
||||
color: #EF3535;
|
||||
}
|
||||
.branchList .item .infoC {
|
||||
height: 50rpx;
|
||||
}
|
||||
.branchList .item .infoC .infoItem .title {
|
||||
margin-right: 16rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
}
|
||||
.branchList .item .infoC .infoItem .content {
|
||||
font-size: 24rpx;
|
||||
font-weight: bold;
|
||||
color: #2A2A2A;
|
||||
text-align: right;
|
||||
}
|
||||
.branchList .item .infoC .infoItem.leftInfo {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.branchList .item .infoC .infoItem.rightInfo {
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.branchList .item .infoC.topInfo {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user