diff --git a/src/api/recruit.js b/src/api/recruit.js new file mode 100644 index 0000000..237e7c4 --- /dev/null +++ b/src/api/recruit.js @@ -0,0 +1,12 @@ +import { get, post } from '../utils/http.js' + +// 执行关注 +export const follow = async (data) => { + try { + const response = await post('/user/support-relation/follow', data) + return response + } catch (error) { + console.error('Failed to fetch follow recharge agency:', error) + throw error + } +} diff --git a/src/api/userInfo.js b/src/api/userInfo.js index 8bbc42b..706f83f 100644 --- a/src/api/userInfo.js +++ b/src/api/userInfo.js @@ -62,3 +62,15 @@ export const getAgencyTotalRecharge = async (data) => { throw error } } + +// 分页查询货运 +export const getFreightAgencys = async () => { + try { + const response = await get(`/user/freight-balance/page`) + return response + } catch (error) { + console.error('Failed to fetch get Freight Agencys:', error) + console.error('error:' + error.response.errorMsg) + throw error + } +} diff --git a/src/assets/images/RechargeAgency/idBg.png b/src/assets/images/RechargeAgency/idBg.png index f37dd96..1deda3e 100644 Binary files a/src/assets/images/RechargeAgency/idBg.png and b/src/assets/images/RechargeAgency/idBg.png differ diff --git a/src/views/Activities/Lottery/Lottery.vue b/src/views/Activities/Lottery/Lottery.vue index bdc5896..996872b 100644 --- a/src/views/Activities/Lottery/Lottery.vue +++ b/src/views/Activities/Lottery/Lottery.vue @@ -1416,7 +1416,7 @@ const getWinners = async () => { } } -//获取领取任务奖励 +//领取任务奖励 const receiveTaskReward = async (code) => { let data = { taskCode: code, diff --git a/src/views/RechargeAgency/Recruit.vue b/src/views/RechargeAgency/Recruit.vue index 0fe9024..63edd3b 100644 --- a/src/views/RechargeAgency/Recruit.vue +++ b/src/views/RechargeAgency/Recruit.vue @@ -46,20 +46,28 @@ display: flex; flex-direction: column; gap: 4px; + margin-bottom: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(32px); " + v-for="FreightAgency in FreightAgencyList?.records" >
-
Nanfangjian
+
{{ FreightAgency.userBaseInfo.userNickname }}
@@ -82,7 +90,7 @@ style=" position: absolute; inset: 0; - padding: 5% 10% 5% 30%; + padding: 5% 8% 5% 23%; display: flex; justify-content: space-between; align-items: center; @@ -90,16 +98,24 @@ >
- 8826602 + {{ FreightAgency.userBaseInfo.account }}
- +
@@ -119,10 +135,12 @@ style="aspect-ratio: 1/1; display: block" />
-
7********
+
{{ maskAmount(FreightAgency.balance) }}
-
Has been a coin agency for 160 days
+
+ Has been a coin agency for {{ FreightAgency.becomeDays }} days +
@@ -135,13 +153,13 @@
-
10972 successful transaction
+
{{ FreightAgency.transactionCount }} successful transaction
- +86 1008610086 + {{ FreightAgency.contactInfo || '' }}
@@ -159,7 +177,7 @@ align-items: center; " :style="{ - background: followingStatus + background: FreightAgency.isFollow ? `radial-gradient(107.94% 107.94% at 15.9% 13.54%, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.00) 100%), linear-gradient(180deg, #FFF 0%, #000 100%), #D1D1D1` : `radial-gradient( 107.94% 107.94% at 15.9% 13.54%, @@ -168,9 +186,9 @@ ), linear-gradient(180deg, #fff 0%, #000 100%), #b464ff`, }" - @click="followingStatus = !followingStatus" + @click="followBt(FreightAgency.isFollow, FreightAgency.userBaseInfo.id)" > -
Following
+
{{ FollowButtonText(FreightAgency.isFollow) }}
@@ -327,7 +525,7 @@ onMounted(() => { @media screen and (max-width: 360px) { * { - font-size: 10px; + font-size: 12px; } }