sbd-npm 1.5.43 → 1.5.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constant.js +1 -1
- package/package.json +1 -1
- package/util.js +5 -3
package/constant.js
CHANGED
|
@@ -162,8 +162,8 @@ const MenuList = [
|
|
|
162
162
|
'menu': [
|
|
163
163
|
{'key': 'portfolio_recommend', 'name': '特别关注', 'url': '/0x2da99e58e28de94b670c4200657ac7e26dd8dceb'},
|
|
164
164
|
{'key': 'portfolio_gao', 'name': '高大侠', 'url': '/0x44fe5ef98b6802a9e7a893a1dcc231031ef8683d'},
|
|
165
|
-
{'key': 'portfolio_uestc', 'name': '独钓寒江雪', 'url': '/0x7cbaee9df4ea09cc2ad0d001f4b948109b75f39f'},
|
|
166
165
|
{'key': 'portfolio_stratagem', 'name': '上兵伐谋zgz', 'url': '/0x622a4a04d7a04e3b28c85a36500371ba28edea83'},
|
|
166
|
+
{'key': 'portfolio_uestc', 'name': '独钓寒江雪', 'url': '/0x7cbaee9df4ea09cc2ad0d001f4b948109b75f39f'},
|
|
167
167
|
{'key': 'portfolio_ning', 'name': '宁湖', 'url': '/0x69717049aefea13348d702755a4ed38a2f0e40ad'},
|
|
168
168
|
{'key': 'portfolio_two', 'name': '两瓢(彭波)', 'url': '/0x376350389c657c5153d59959b6351935c9357651'},
|
|
169
169
|
{'key': 'portfolio_li', 'name': '力氏周期', 'url': '/0xe639df667bcb74829d1db04e48c0d6c10ea5a1f9'},
|
package/package.json
CHANGED
package/util.js
CHANGED
|
@@ -195,6 +195,8 @@ const Util = {
|
|
|
195
195
|
let upper_code = item.code.toUpperCase();
|
|
196
196
|
if (item.type && item.type === 1) {
|
|
197
197
|
href = Util.get_url("fund_public") + "?fund_code=" + upper_code;
|
|
198
|
+
} else if (item.type && item.type === 2) {
|
|
199
|
+
href = Util.get_url("snowball_user") + "?uid=" + upper_code;
|
|
198
200
|
} else {
|
|
199
201
|
href = "/stock/" + upper_code;
|
|
200
202
|
}
|
|
@@ -4695,14 +4697,14 @@ const Util = {
|
|
|
4695
4697
|
cursor: pointer;
|
|
4696
4698
|
font-size: 14px;
|
|
4697
4699
|
`;
|
|
4698
|
-
copyButton.addEventListener('click',
|
|
4700
|
+
copyButton.addEventListener('click', () => {
|
|
4699
4701
|
navigator.clipboard.writeText(message).then(
|
|
4700
4702
|
function() {
|
|
4701
4703
|
// 复制成功,临时改变按钮文字
|
|
4702
4704
|
const originalText = copyButton.textContent;
|
|
4703
4705
|
copyButton.textContent = '已复制';
|
|
4704
4706
|
copyButton.style.backgroundColor = '#45a049';
|
|
4705
|
-
setTimeout(
|
|
4707
|
+
setTimeout(() => {
|
|
4706
4708
|
copyButton.textContent = originalText;
|
|
4707
4709
|
copyButton.style.backgroundColor = '#4CAF50';
|
|
4708
4710
|
}, 2000);
|
|
@@ -4725,7 +4727,7 @@ const Util = {
|
|
|
4725
4727
|
cursor: pointer;
|
|
4726
4728
|
font-size: 14px;
|
|
4727
4729
|
`;
|
|
4728
|
-
closeButton.addEventListener('click',
|
|
4730
|
+
closeButton.addEventListener('click', () => {
|
|
4729
4731
|
document.body.removeChild(modal);
|
|
4730
4732
|
});
|
|
4731
4733
|
// 组装按钮容器
|