فهرست منبع

前端内容修改

Zhangbw 1 ماه پیش
والد
کامیت
d5eae709c6
1فایلهای تغییر یافته به همراه11 افزوده شده و 2 حذف شده
  1. 11 2
      src/pages/pool/pool.vue

+ 11 - 2
src/pages/pool/pool.vue

@@ -43,7 +43,7 @@
           <view v-else class="unlocked-content">
             <view class="unlocked-header">
               <view class="unlocked-dot"></view>
-              <text class="unlocked-tip">需学习内容</text>
+              <text class="unlocked-tip">需学习内容 ({{ currentDate }})</text>
             </view>
             <view class="stock-list">
               <view class="stock-item" v-for="(stock, index) in stockList" :key="index">
@@ -95,7 +95,7 @@
 </template>
 
 <script setup>
-import { ref, onUnmounted, reactive } from 'vue'
+import { ref, onUnmounted, reactive, computed } from 'vue'
 import { onLoad, onShow, onHide } from '@dcloudio/uni-app'
 import { isLoggedIn as checkLoginStatus } from '../../utils/auth.js'
 import { getStockQuotes, addUserStock, getStockPoolList, createOrder, wxPay, checkSubscription, getPaymentConfig, queryOrder, getStockHistoryStats } from '../../utils/api.js'
@@ -121,6 +121,15 @@ let subscriptionTimer = null
 const app = getApp();
 // #endif
 
+// 获取当前日期
+const currentDate = computed(() => {
+  const now = new Date()
+  const year = now.getFullYear()
+  const month = String(now.getMonth() + 1).padStart(2, '0')
+  const day = String(now.getDate()).padStart(2, '0')
+  return `${year}年${month}月${day}日`
+})
+
 // 性能统计数据
 const performanceStats = reactive({
   successRate: '0%',