|
@@ -13,13 +13,13 @@ import WalletList from "./list";
|
13
|
13
|
import "@/assets/css/iconfont.css";
|
14
|
14
|
import "./index.scss";
|
15
|
15
|
|
16
|
|
-export default withLayout((props) => {
|
|
16
|
+export default withLayout(props => {
|
17
|
17
|
const { person } = props;
|
18
|
18
|
const [activeKey, setActiveKey] = useState(1);
|
19
|
19
|
const [mineInfo, setMineInfo] = useState({});
|
20
|
20
|
|
21
|
21
|
useEffect(() => {
|
22
|
|
- queryBrokerRankMine().then((res) => {
|
|
22
|
+ queryBrokerRankMine().then(res => {
|
23
|
23
|
setMineInfo(res);
|
24
|
24
|
});
|
25
|
25
|
}, []);
|
|
@@ -29,33 +29,33 @@ export default withLayout((props) => {
|
29
|
29
|
Taro.showModal({
|
30
|
30
|
title: "完善信息",
|
31
|
31
|
content: "请提供您的身份证信息",
|
32
|
|
- success: (res) => {
|
|
32
|
+ success: res => {
|
33
|
33
|
if (res.confirm) {
|
34
|
34
|
Taro.navigateTo({
|
35
|
|
- url: "/subpackages/pages/broker/toBeBroker/index",
|
|
35
|
+ url: "/subpackages/pages/broker/toBeBroker/index"
|
36
|
36
|
});
|
37
|
37
|
} else if (res.cancel) {
|
38
|
38
|
Taro.navigateBack({ delta: 1 });
|
39
|
39
|
}
|
40
|
|
- },
|
|
40
|
+ }
|
41
|
41
|
});
|
42
|
42
|
|
43
|
43
|
return;
|
44
|
44
|
}
|
45
|
|
- querybkBankCard().then((res) => {
|
|
45
|
+ querybkBankCard().then(res => {
|
46
|
46
|
if (res.total === 0) {
|
47
|
47
|
Taro.showModal({
|
48
|
48
|
title: "完善信息",
|
49
|
49
|
content: "请提供您的银行卡信息",
|
50
|
|
- success: (res) => {
|
|
50
|
+ success: res => {
|
51
|
51
|
if (res.confirm) {
|
52
|
52
|
Taro.navigateTo({
|
53
|
|
- url: "/subpackages/pages/broker/toBeBroker/index",
|
|
53
|
+ url: "/subpackages/pages/broker/toBeBroker/index"
|
54
|
54
|
});
|
55
|
55
|
} else if (res.cancel) {
|
56
|
56
|
Taro.navigateBack({ delta: 1 });
|
57
|
57
|
}
|
58
|
|
- },
|
|
58
|
+ }
|
59
|
59
|
});
|
60
|
60
|
}
|
61
|
61
|
});
|
|
@@ -80,14 +80,31 @@ export default withLayout((props) => {
|
80
|
80
|
</view>
|
81
|
81
|
</view>
|
82
|
82
|
<view className="middle">
|
83
|
|
- <text className="text1">总资产(元)</text>
|
84
|
|
- <text className="text2">
|
85
|
|
- {Number(
|
86
|
|
- (activeKey === 1
|
87
|
|
- ? mineInfo.totalCommission || 0
|
88
|
|
- : mineInfo.referralFee || 0) / 100
|
89
|
|
- ).toFixed(2)}
|
90
|
|
- </text>
|
|
83
|
+ <view>
|
|
84
|
+ <view className="text1">总资产(元)</view>
|
|
85
|
+ <view className="text2">
|
|
86
|
+ {Number(
|
|
87
|
+ (activeKey === 1
|
|
88
|
+ ? mineInfo.totalCommission || 0
|
|
89
|
+ : mineInfo.referralFee || 0) / 100
|
|
90
|
+ ).toFixed(2)}
|
|
91
|
+ </view>
|
|
92
|
+ </view>
|
|
93
|
+
|
|
94
|
+ {activeKey === 1 && (
|
|
95
|
+ <view className="detail">
|
|
96
|
+ <view className="text">
|
|
97
|
+ 已结:{((mineInfo.settledCommission || 0) / 100).toFixed(2)}
|
|
98
|
+ </view>
|
|
99
|
+ <view className="text">
|
|
100
|
+ 待结:
|
|
101
|
+ {(
|
|
102
|
+ (mineInfo.totalCommission - mineInfo.settledCommission || 0) /
|
|
103
|
+ 100
|
|
104
|
+ ).toFixed(2)}
|
|
105
|
+ </view>
|
|
106
|
+ </view>
|
|
107
|
+ )}
|
91
|
108
|
</view>
|
92
|
109
|
<view className="bottom">
|
93
|
110
|
<WalletList show={activeKey === 1} type={"commission"}></WalletList>
|