ソースを参照

我的股票修改

Zhangbw 3 ヶ月 前
コミット
66a805c626

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/dev/mp-weixin/pages/pool/pool.wxml


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/dev/mp-weixin/pages/strong/strong.wxml


+ 1 - 1
dist/dev/mp-weixin/utils/api.js

@@ -1,6 +1,6 @@
 "use strict";
 const common_vendor = require("../common/vendor.js");
-const DEV_BASE_URL = "http://localhost:8081";
+const DEV_BASE_URL = "http://192.168.1.3:8081";
 const BASE_URL = DEV_BASE_URL;
 const getToken = () => {
   return common_vendor.index.getStorageSync("user_token") || null;

+ 0 - 3
src/pages/pool/pool.vue

@@ -54,7 +54,6 @@
         <!-- 历史股票池回顾 -->
         <view class="card history-card">
           <view class="history-header">
-            <text class="history-icon">📅</text>
             <text class="history-title">历史股票池回顾</text>
           </view>
           
@@ -69,7 +68,6 @@
             >
               <view class="date-input">
                 <text class="date-text">{{ formatMonth(startMonth) }}</text>
-                <text class="date-icon">📅</text>
               </view>
             </picker>
             
@@ -84,7 +82,6 @@
             >
               <view class="date-input">
                 <text class="date-text">{{ formatMonth(endMonth) }}</text>
-                <text class="date-icon">📅</text>
               </view>
             </picker>
           </view>

+ 0 - 3
src/pages/strong/strong.vue

@@ -65,7 +65,6 @@
         <!-- 历史股票池回顾 -->
         <view class="card history-card">
           <view class="history-header">
-            <text class="history-icon">📅</text>
             <text class="history-title">历史股票池回顾</text>
           </view>
           
@@ -80,7 +79,6 @@
             >
               <view class="date-input">
                 <text class="date-text">{{ formatMonth(startMonth) }}</text>
-                <text class="date-icon">📅</text>
               </view>
             </picker>
             
@@ -95,7 +93,6 @@
             >
               <view class="date-input">
                 <text class="date-text">{{ formatMonth(endMonth) }}</text>
-                <text class="date-icon">📅</text>
               </view>
             </picker>
           </view>

+ 2 - 37
src/utils/api.js

@@ -7,8 +7,8 @@
 // 例如:const DEV_BASE_URL = 'http://192.168.1.3:8080'
 // 可以通过命令 ipconfig (Windows) 或 ifconfig (Mac/Linux) 查看IP地址
 // const DEV_BASE_URL = 'http://192.168.1.3:8080'
-// const DEV_BASE_URL = 'http://192.168.1.3:8081'
-const DEV_BASE_URL = 'http://localhost:8081'
+const DEV_BASE_URL = 'http://192.168.1.3:8081'
+// const DEV_BASE_URL = 'http://localhost:8081'
 
 // 生产环境配置(部署后的服务器地址)
 const PROD_BASE_URL = 'https://your-domain.com'
@@ -209,28 +209,6 @@ export const searchStocks = (keyword) => {
   })
 }
 
-/**
- * 获取用户模拟资产(需要登录)
- * @returns {Promise} 返回用户资产信息
- */
-export const getUserPortfolio = () => {
-  return request({
-    url: '/v1/user/portfolio',
-    method: 'GET'
-  })
-}
-
-/**
- * 获取模拟交易排行榜
- * @returns {Promise} 返回排行榜数据
- */
-export const getLeaderboard = () => {
-  return request({
-    url: '/v1/rank/leaderboard',
-    method: 'GET'
-  })
-}
-
 /**
  * 获取股票实时行情数据(涨跌额、涨跌幅)
  * @param {string} codes - 股票代码,多个用逗号分隔
@@ -296,16 +274,3 @@ export const deleteUserStock = (stockCode) => {
   })
 }
 
-/**
- * 检查股票是否已添加
- * @param {string} stockCode - 股票代码
- * @returns {Promise} 返回是否已添加
- */
-export const checkUserStock = (stockCode) => {
-  return request({
-    url: '/v1/user/stock/check',
-    method: 'GET',
-    data: { stockCode }
-  })
-}
-

+ 0 - 8
src/utils/auth.js

@@ -216,11 +216,3 @@ export const checkLogin = (callback) => {
   
   return false
 }
-
-/**
- * 显示需要登录的提示(用于页面遮罩层)
- * 返回一个标识,表示是否需要显示登录按钮
- */
-export const needLogin = () => {
-  return !isLoggedIn()
-}

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません