This commit is contained in:
大哥大哥的大哥哥
2026-09-09 14:47:14 +08:00
parent a5353f7eb5
commit 4d9da40abd
22 changed files with 74 additions and 45 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import App from './App'
var baseUrl ='https://admin.zhenyangtang.com.cn/';
import { API_BASE_URL } from './config/api.js'
var baseUrl = API_BASE_URL;
function joinApiUrl(base, path) {
const b = String(base || '').replace(/\/+$/, '')
@@ -168,4 +169,4 @@ export function createApp() {
app
}
}
// #endif
// #endif
+3 -1
View File
@@ -9,7 +9,9 @@
"dev:app": "UNI_INPUT_DIR=\"$PWD\" uni -p app",
"build:mp-weixin": "UNI_INPUT_DIR=\"$PWD\" uni build -p mp-weixin",
"build:h5": "UNI_INPUT_DIR=\"$PWD\" uni build",
"build:app": "UNI_INPUT_DIR=\"$PWD\" uni build -p app"
"build:app": "UNI_INPUT_DIR=\"$PWD\" uni build -p app",
"test:tang": "node --test build/tang-detective-native-plugin.test.mjs build/tang-detective-cos-media.test.mjs scripts/tang-cos/upload.test.mjs scripts/test-tang-platform.cjs scripts/test-tang-page-lifecycle.cjs",
"check:tang-output": "node build/validate-tang-detective-output.mjs dist/build/mp-weixin"
},
"keywords": [],
"author": "",
+9 -2
View File
@@ -220,8 +220,15 @@
}
}
},
{
"path": "endless-game/index",
{
"path": "tang-detective/index",
"style": {
"navigationBarTitleText": "唐侦探",
"backgroundColor": "#f4fbf4"
}
},
{
"path": "endless-game/index",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "识糖小课堂",
+18 -4
View File
@@ -98,7 +98,17 @@
<view v-if="chartUseMockData" class="st-chart-foot">
<text class="st-chart-mock-hint">示例数据累计记录满 7 天后显示您的真实趋势</text>
</view>
<view class="st-game-entry-list">
<view class="st-game-entry-list">
<view class="st-game-entry st-game-entry--in-card" role="button" aria-label="打开唐侦探看连环画找线索" @click="goTangDetectivePage">
<view class="st-game-entry-icon">
<TongjiIcon name="view" size="sm" color="#006c49" />
</view>
<view class="st-game-entry-body">
<text class="st-game-entry-title">唐侦探</text>
<text class="st-game-entry-sub">看连环画找线索听一家人的故事</text>
</view>
<TongjiIcon name="chevron-right" size="sm" color="#64748b" />
</view>
<view class="st-game-entry st-game-entry--in-card" @click="goEndlessGamePage">
<view class="st-game-entry-icon">
<TongjiIcon name="sparkles" size="sm" color="#006c49" />
@@ -1523,9 +1533,13 @@ function openGamePage(url) {
})
}
function goEndlessGamePage() {
openGamePage('/tongji/endless-game/index')
}
function goEndlessGamePage() {
openGamePage('/tongji/endless-game/index')
}
function goTangDetectivePage() {
openGamePage('/tongji/tang-detective/index')
}
function navToUser() {
uni.redirectTo({ url: '/pages/user/user' })
+3
View File
@@ -1,6 +1,8 @@
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import Optimization from '@uni-ku/bundle-optimizer'
import tangDetectiveNativePlugin from './build/tang-detective-native-plugin.mjs'
import { API_BASE_URL } from './config/api.js'
// uni-app 工程根目录就是源码目录(HBuilderX 兼容)
// 编译产物默认输出到 ./dist/<mode>/<platform>
@@ -16,6 +18,7 @@ export default defineConfig({
dts: false,
logger: false,
}),
tangDetectiveNativePlugin({ apiBaseUrl: API_BASE_URL }),
],
css: {
preprocessorOptions: {