|
@@ -43,7 +43,7 @@
|
|
|
<view v-else class="unlocked-content">
|
|
<view v-else class="unlocked-content">
|
|
|
<view class="unlocked-header">
|
|
<view class="unlocked-header">
|
|
|
<view class="unlocked-dot"></view>
|
|
<view class="unlocked-dot"></view>
|
|
|
- <text class="unlocked-tip">需学习内容</text>
|
|
|
|
|
|
|
+ <text class="unlocked-tip">需学习内容 ({{ currentDate }})</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="stock-list">
|
|
<view class="stock-list">
|
|
|
<view class="stock-item" v-for="(stock, index) in stockList" :key="index">
|
|
<view class="stock-item" v-for="(stock, index) in stockList" :key="index">
|
|
@@ -95,7 +95,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { ref, onUnmounted, reactive } from 'vue'
|
|
|
|
|
|
|
+import { ref, onUnmounted, reactive, computed } from 'vue'
|
|
|
import { onLoad, onShow, onHide } from '@dcloudio/uni-app'
|
|
import { onLoad, onShow, onHide } from '@dcloudio/uni-app'
|
|
|
import { isLoggedIn as checkLoginStatus } from '../../utils/auth.js'
|
|
import { isLoggedIn as checkLoginStatus } from '../../utils/auth.js'
|
|
|
import { getStockQuotes, addUserStock, getStockPoolList, createOrder, wxPay, checkSubscription, getPaymentConfig, queryOrder, getStockHistoryStats } from '../../utils/api.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();
|
|
const app = getApp();
|
|
|
// #endif
|
|
// #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({
|
|
const performanceStats = reactive({
|
|
|
successRate: '0%',
|
|
successRate: '0%',
|