Browse Source

首页底部新增版权

master
liaoxinyu 3 months ago
parent
commit
2108f9c883
  1. 4
      App.vue
  2. 1
      manifest.json
  3. 99
      pages/base/home.vue

4
App.vue

@ -7,7 +7,7 @@ export default {
setInterval(() => { setInterval(() => {
this.$navFontColor(); this.$navFontColor();
}, 1000); }, 1000);
this.mobileLogo();
// this.update() // this.update()
}, },
methods: { methods: {
@ -23,6 +23,7 @@ export default {
title_logo: data.title_logo, title_logo: data.title_logo,
share_logo: data.share_logo, share_logo: data.share_logo,
name: data.name, name: data.name,
copyright: data.copyright
}); });
}); });
}, },
@ -127,6 +128,7 @@ export default {
onShow: function () { onShow: function () {
uni.$emit("appShow"); uni.$emit("appShow");
this.$navFontColor(); this.$navFontColor();
this.mobileLogo();
}, },
onHide: function () {}, onHide: function () {},
}; };

1
manifest.json

@ -5,6 +5,7 @@
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : 100, "versionCode" : 100,
"transformPx" : false, "transformPx" : false,
"sassImplementationName": "node-sass",
"app-plus" : { "app-plus" : {
"compatible" : { "compatible" : {
"ignoreVersion" : true //trueHBuilderX1.9.0 "ignoreVersion" : true //trueHBuilderX1.9.0

99
pages/base/home.vue

@ -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>

Loading…
Cancel
Save