فهرست منبع

fix: promotion模板多根元素 + 内联赋值

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
liaoxg 3 ماه پیش
والد
کامیت
64d33b82f1
1فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 8 3
      cfc-frontend/pages/promotion/index.vue

+ 8 - 3
cfc-frontend/pages/promotion/index.vue

@@ -1,5 +1,6 @@
 <template>
-  <scroll-view class="container" scroll-y scroll-with-animation>
+  <view class="page-wrapper">
+    <scroll-view class="container" scroll-y scroll-with-animation>
     <!-- 家庭公共收益总览 -->
     <view class="family-earnings-card" v-if="familySummary">
       <view class="fe-header">
@@ -200,8 +201,8 @@
     <view style="height:40rpx"></view>
   </scroll-view>
 
-  <SharePoster :show="showPoster" :referralCode="shareReferralCode" :qrCodeBase64="inviteQrCode" :nickname="shareNickname" :userAvatar="shareAvatar" :familyName="familyName" @close="showPoster = false" />
-</template>
+  <SharePoster :show="showPoster" :referralCode="shareReferralCode" :qrCodeBase64="inviteQrCode" :nickname="shareNickname" :userAvatar="shareAvatar" :familyName="familyName" @close="closePoster" />
+</view>
 
 <script>
 import { getReferralSummary, getCommissionSummary, getFamilyEarningsSummary, getFamilyEarningsMembers, getFamilyEarningsRecords, distributeToMember, toggleMemberBalance, withdrawFamilyEarnings, getInviteQrCode, getFamilyMembers, getReferralCode } from '../../utils/api.js'
@@ -517,12 +518,16 @@ export default {
     },
     goLeaderboard() {
       uni.navigateTo({ url: '/pages/promotion/leaderboard' })
+    },
+    closePoster() {
+      this.showPoster = false
     }
   }
 }
 </script>
 
 <style scoped>
+.page-wrapper { min-height: 100vh; }
 .container {
   padding: 30rpx;
   min-height: 100vh;