From 5f44fd68afc6af842059b11408415ffb0555b9d7 Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 12 Apr 2025 18:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/common.js | 22 +++- pages/sangdai/sangdai.vue | 5 +- pages/shouye/yaoqing_ranking.vue | 208 ++++++++++++++++--------------- 3 files changed, 129 insertions(+), 106 deletions(-) diff --git a/common/common.js b/common/common.js index f52f446..a7e9c07 100644 --- a/common/common.js +++ b/common/common.js @@ -610,5 +610,25 @@ export default { } }) // #endif - } + }, + nav(url) { + uni.navigateTo({ + url: url, + fail: () => { + uni.switchTab({ + url: url + }); + } + }) + }, + red(url) { + uni.redirectTo({ + url: url, + fail: () => { + uni.switchTab({ + url: url + }); + } + }) + }, } \ No newline at end of file diff --git a/pages/sangdai/sangdai.vue b/pages/sangdai/sangdai.vue index 0125437..1d1305a 100644 --- a/pages/sangdai/sangdai.vue +++ b/pages/sangdai/sangdai.vue @@ -442,8 +442,9 @@ (pre, item) => pre + item.chooseNum * item.goodslist_money, 0 ) - console.log("8888888", total); - return total.toFixed(2); + // console.log("8888888", total); + + return this.$c.removeTrailingZeros(total.toFixed(2)); }, /* 是否全选 */ diff --git a/pages/shouye/yaoqing_ranking.vue b/pages/shouye/yaoqing_ranking.vue index b1023c8..10136bc 100644 --- a/pages/shouye/yaoqing_ranking.vue +++ b/pages/shouye/yaoqing_ranking.vue @@ -4,17 +4,10 @@ style="width: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; background-color: #FFFFFF;"> - + - + 邀请排行榜 @@ -23,22 +16,20 @@ @click="$refs.rulePop.getRule(25, '规则说明')" mode=""> - - + + :style="{ 'background-image': `url(${$img('/static/image/invite2.png')})` }"> - {{list[1].nickname}} + {{ list[1].nickname + }} - {{list[1].value}} + {{ + list[1].value }} @@ -46,16 +37,16 @@ + :style="{ 'background-image': `url(${$img('/static/image/invite1.png')})` }"> - {{list[0].nickname}} + {{ list[0].nickname + }} - {{list[0].value}} + {{ + list[0].value }} @@ -63,135 +54,146 @@ + :style="{ 'background-image': `url(${$img('/static/image/invite3.png')})` }"> - {{list[2].nickname}} + {{ list[2].nickname + }} {{list[2].value}} + style="width: 100%; text-align: center; margin-top: 24rpx; font-size: 32rpx; color: #333333;">{{ + list[2].value }} - - - - - + + :style="{ backgroundColor: setBgColor(index) }"> - - - - - {{index+1}} + {{ index + 1 }} - {{item.nickname}} + {{ item.nickname }} - {{item.value}}{{ item.value }} - - - 立即邀请 + + + + 立即邀请 + - \ No newline at end of file