|
|
@ -1215,6 +1215,11 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="botton_logoMap"> |
|
|
|
|
|
<view>{{logoMap.copyright}}</view> |
|
|
|
|
|
<view>{{contacts.email}}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 个人主页弹出层 --> |
|
|
<!-- 个人主页弹出层 --> |
|
|
@ -1480,7 +1485,13 @@ export default { |
|
|
guideList: [],//课程列表 |
|
|
guideList: [],//课程列表 |
|
|
articleList: [], |
|
|
articleList: [], |
|
|
sortedNegativeItems:[], |
|
|
sortedNegativeItems:[], |
|
|
sortedNegativeItems1:[] |
|
|
sortedNegativeItems1:[], |
|
|
|
|
|
contacts : { |
|
|
|
|
|
contact:"", |
|
|
|
|
|
email: "", |
|
|
|
|
|
media:"", |
|
|
|
|
|
service : "", |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -1722,48 +1733,55 @@ export default { |
|
|
this.homeList = data[1].marketInfoList;// 公告上面的数据获取动态 |
|
|
this.homeList = data[1].marketInfoList;// 公告上面的数据获取动态 |
|
|
// console.log(data, '----------市场趋势获取源'); |
|
|
// console.log(data, '----------市场趋势获取源'); |
|
|
|
|
|
|
|
|
let allNegativeIncreaseItems = [] |
|
|
|
|
|
this.sortedNegativeItems = [] |
|
|
this.sortedNegativeItems = [] |
|
|
|
|
|
let allNegativeIncreaseItems = [] |
|
|
const excludedCoins = ["CQF", "HZL", "NKA", "PMK", "GCUL", "DFU", "ACK"]; |
|
|
const excludedCoins = ["CQF", "HZL", "NKA", "PMK", "GCUL", "DFU", "ACK"]; |
|
|
data.forEach((item) => { |
|
|
data.forEach((item) => { |
|
|
if (item.marketInfoList) { |
|
|
if (item.marketInfoList) { |
|
|
const negativeItems = item.marketInfoList.filter((info) => { |
|
|
const filteredItems = item.marketInfoList.filter((info) => { |
|
|
return ( |
|
|
return !excludedCoins.includes(info.coin_name); |
|
|
info.increaseStr && |
|
|
}); |
|
|
info.increaseStr.startsWith("-") && |
|
|
allNegativeIncreaseItems.push(...filteredItems); |
|
|
!excludedCoins.includes(info.coin_name) |
|
|
} |
|
|
); |
|
|
}); |
|
|
}); |
|
|
this.sortedNegativeItems = [...allNegativeIncreaseItems].sort((a, b) => { |
|
|
allNegativeIncreaseItems.push(...negativeItems); // 合并到总数组 |
|
|
const numA = parseFloat(a.increaseStr); |
|
|
} |
|
|
const numB = parseFloat(b.increaseStr); |
|
|
}); |
|
|
const isANegative = numA < 0; |
|
|
this.sortedNegativeItems = [...allNegativeIncreaseItems].sort((a, b) => { |
|
|
const isBNegative = numB < 0; |
|
|
const numA = parseFloat(a.increaseStr); |
|
|
|
|
|
const numB = parseFloat(b.increaseStr); |
|
|
if (isANegative && !isBNegative) { |
|
|
return numA - numB; // 升序排列(小的在前) |
|
|
return -1; |
|
|
|
|
|
} |
|
|
|
|
|
if (!isANegative && isBNegative) { |
|
|
|
|
|
return 1; |
|
|
|
|
|
} |
|
|
|
|
|
return numA - numB; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
let allPositiveIncreaseItems = []; // 存储 "+" 开头的项 |
|
|
let allPositiveIncreaseItems = []; // 存储 "+" 开头的项 |
|
|
this.sortedNegativeItems1 = []; // 存储排序后的结果 |
|
|
this.sortedNegativeItems1 = []; // 存储排序后的结果 |
|
|
|
|
|
|
|
|
data.forEach((item) => { |
|
|
data.forEach((item) => { |
|
|
if (item.marketInfoList) { |
|
|
if (item.marketInfoList) { |
|
|
const positiveItems = item.marketInfoList.filter((info) => { |
|
|
const filteredItems = item.marketInfoList.filter((info) => { |
|
|
return ( |
|
|
return !excludedCoins.includes(info.coin_name); |
|
|
info.increaseStr && |
|
|
}); |
|
|
info.increaseStr.startsWith("+") && |
|
|
allPositiveIncreaseItems.push(...filteredItems); |
|
|
!excludedCoins.includes(info.coin_name) |
|
|
} |
|
|
); |
|
|
|
|
|
}); |
|
|
|
|
|
allPositiveIncreaseItems.push(...positiveItems); // 合并到总数组 |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
this.sortedNegativeItems1 = [...allPositiveIncreaseItems].sort((a, b) => { |
|
|
// 按数值降序排列(大的在前) |
|
|
const numA = parseFloat(a.increaseStr); |
|
|
this.sortedNegativeItems1 = [...allPositiveIncreaseItems].sort((a, b) => { |
|
|
const numB = parseFloat(b.increaseStr); |
|
|
const numA = parseFloat(a.increaseStr); |
|
|
const isANegative = numA < 0; |
|
|
const numB = parseFloat(b.increaseStr); |
|
|
const isBNegative = numB < 0; |
|
|
return numB - numA; // 降序(大的在前) |
|
|
|
|
|
|
|
|
if (isANegative && !isBNegative) { |
|
|
|
|
|
return 1; |
|
|
|
|
|
} |
|
|
|
|
|
if (!isANegative && isBNegative) { |
|
|
|
|
|
return -1; |
|
|
|
|
|
} |
|
|
|
|
|
return numB - numA; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1860,6 +1878,11 @@ export default { |
|
|
}) |
|
|
}) |
|
|
.catch(() => { }) |
|
|
.catch(() => { }) |
|
|
}, |
|
|
}, |
|
|
|
|
|
serviceDetail() { |
|
|
|
|
|
Member.contact({}).then((res)=>{ |
|
|
|
|
|
this.contacts = res.data; |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 切换用户 |
|
|
// 切换用户 |
|
|
outLogin() { |
|
|
outLogin() { |
|
|
uni.removeStorageSync("token") |
|
|
uni.removeStorageSync("token") |
|
|
@ -1938,6 +1961,7 @@ export default { |
|
|
this.indexData() |
|
|
this.indexData() |
|
|
this.indexMarketList() |
|
|
this.indexMarketList() |
|
|
this.getCurrencyExCny() |
|
|
this.getCurrencyExCny() |
|
|
|
|
|
this.serviceDetail(); |
|
|
if (this.isLogin) { |
|
|
if (this.isLogin) { |
|
|
this.createWalletAddress() |
|
|
this.createWalletAddress() |
|
|
this.getAuthInfo() |
|
|
this.getAuthInfo() |
|
|
@ -3391,4 +3415,9 @@ export default { |
|
|
padding: 0rpx 20rpx; |
|
|
padding: 0rpx 20rpx; |
|
|
border-radius: 40rpx; |
|
|
border-radius: 40rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
.botton_logoMap{ |
|
|
|
|
|
color: var(--col2); |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
padding: 60rpx 0rpx; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|