更新正式环境部署

This commit is contained in:
yziiy
2025-09-02 16:28:18 +08:00
parent 5c96e5bd86
commit 2e2da5fc09
13 changed files with 130 additions and 2662 deletions

View File

@@ -62,6 +62,6 @@ img {
--font-button-size:24rpx;
--font-button-size-p:28rpx;
/* tab图标 */
--tab-url:url('https://vespa.qxmier.com/image/tabline.png');
--tab-url:url('http://mdh.xscmmidi.site/image/tabline.png');
}
</style>

View File

@@ -4,9 +4,11 @@
</template>
<script>
import config from '@/until/config.js';
export default {
data() {
return {
httpUrl: null,
fileList: []
}
},
@@ -15,6 +17,9 @@
this.$emit('changeImageList',this.fileList)
}
},
onLoad() {
this.httpUrl = config.BASE_URL
},
methods: {
// 选择文件回调
select(e) {
@@ -60,7 +65,7 @@
},
uploadFile(file) {
uni.uploadFile({
url: 'https://chat.qxmier.com/adminapi/UploadFile/file_upload',
url: `${this.httpUrl}/adminapi/UploadFile/file_upload`,
filePath: file.path,
name: 'files',
success: (uploadRes) => {

View File

@@ -76,7 +76,7 @@
"disableHostCheck": true, //设置跳过host检查
"proxy": {
"/api": {
"target": "https://chat.qxmier.com", //目标接口域名
"target": "https://md.xscmmidi.site", //目标接口域名
"changeOrigin": true, //是否跨域
"secure": false, // 设置支持https协议的代理
"pathRewrite": {

View File

@@ -4,31 +4,31 @@
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="`关于我们`" :emitBack="true" @backEvent="back">
</navBar>
<view class="dec-view">
<web-view src="https://chat.qxmier.com/api/Page/page_show?id=20"></web-view>
<web-view :src="`${httpUrl}/api/Page/page_show?id=20`"></web-view>
</view>
</view>
</template>
<script>
// import headerHeight from '@/component/headerHeight.vue';
import config from '@/until/config.js';
import navBar from '@/component/nav.vue';
export default {
components: {
// headerHeight,
navBar
},
data() {
return {
statusBarHeight:0,
ThemeData:null
ThemeData:null,
httpUrl:null
}
},
onLoad(options) {
this.httpUrl = config.BASE_URL
const {
h
} = options
this.currentIndex = type !== undefined ? +type : 0
this.statusBarHeight = h
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))

View File

@@ -1,9 +1,9 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<navBar :navTitle="`规则说明`" :style="{'margin-top' : `${statusBarHeight || 0}px`}">
</navBar>
<view class="dec-view" v-if="flagIndex !== null">
<web-view :src="`https://chat.qxmier.com/api/Page/page_show?id=${flagIndex === 1 ? 10 : 11}`"></web-view>
<web-view :src="`${httpUrl}/api/Page/page_show?id=${flagIndex === 1 ? 10 : 11}`"></web-view>
</view>
</view>
</template>
@@ -11,24 +11,28 @@
<script>
import navBar from '@/component/nav.vue';
import config from '@/until/config.js';
export default {
components: {
navBar
},
data() {
return {
statusBarHeight:0,
flagIndex:null,
ThemeData:null
httpUrl: null,
statusBarHeight: 0,
flagIndex: null,
ThemeData: null
}
},
onLoad(options) {
const {
h,flag
h,
flag
} = options
this.flagIndex = +flag
this.httpUrl = config.BASE_URL
this.statusBarHeight = h
if(uni.getStorageSync('Theme_Data')) {
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
}
@@ -42,9 +46,11 @@
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
img{
img {
width: 100%;
}
.dec-view {
min-height: calc(99vh - 160rpx);
position: relative;

View File

@@ -4,15 +4,18 @@
<img src="/static/image/task/rule.png" alt="" />
</view>
<view class="dec-view" style="background-color: transparent !important;">
<web-view :style="{ backgroundColor: 'transparent' }" :webview-styles="webviewStyles" src="https://chat.qxmier.com/api/Page/page_show?id=17"></web-view>
<web-view :style="{ backgroundColor: 'transparent' }" :webview-styles="webviewStyles"
:src="`${httpUrl}/api/Page/page_show?id=17`"></web-view>
</view>
</view>
</template>
<script>
export default {
import config from '@/until/config.js';
export default {
data() {
return {
httpUrl: null,
// 关键配置:设置 WebView 样式
webviewStyles: {
progress: {
@@ -31,7 +34,11 @@ export default {
}
}
},
onLoad() {
this.httpUrl = config.BASE_URL
},
onReady() {
// #ifdef APP-PLUS
// 获取 WebView 实例进行原生设置
const pages = getCurrentPages();
@@ -57,22 +64,24 @@ export default {
}, 300); // 延迟确保 WebView 加载完成
// #endif
}
}
}
</script>
<style scoped lang="scss">
::-webkit-scrollbar {
display: none !important;
}
/* 重要:设置页面背景透明 */
page {
background-color: transparent !important;
}
/* 隐藏 WebView 默认容器背景 */
uni-web-view > div {
uni-web-view>div {
background-color: transparent !important;
}
.view-page {
font-family: Source Han Sans CN, Source Han Sans CN;
min-width: calc(100% - 40rpx);
@@ -82,7 +91,8 @@ export default {
background-color: transparent !important;
margin: 0 auto;
position: relative;
.image{
.image {
width: calc(100% - 40rpx);
// min-height: 100vh;
position: absolute;
@@ -91,6 +101,7 @@ export default {
right: 20rpx;
// bottom: 0;
}
.dec-view {
width: calc(100% - 40rpx - 48rpx);
min-height: calc(60% - 48rpx);

View File

@@ -1,15 +0,0 @@
{
"hash": "1c17547c",
"configHash": "ad10b693",
"lockfileHash": "49722671",
"browserHash": "588f021d",
"optimized": {
"axios": {
"src": "../../../../../node_modules/axios/index.js",
"file": "axios.js",
"fileHash": "c27ebd03",
"needsInterop": false
}
},
"chunks": {}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +0,0 @@
{
"type": "module"
}

View File

@@ -1,11 +1,14 @@
//api 请求路径 本地
// http://chat.qxmier.com
// http://vschat.qxmier.com
const BASE_URL="http://vschat.qxmier.com";
const PRIMARY_BGURL = "https://vespa.qxmier.com/image/fy_bg.jpg";
// http://md.xscmmidi.site 正式api
// http://tmd.xscmmidi.site 测试api
const BASE_URL = "http://md.xscmmidi.site";
// 前端访问域名
// tmdh.xscmmidi.site 测试
// mdh.xscmmidi.site 正式
const PRIMARY_BGURL = "http://mdh.xscmmidi.site/image/fy_bg.jpg";
// 工会管理员
const PRIMARY_BLYURL = "https://vespa.qxmier.com/image/fy_gly.png";
const PRIMARY_BLYURL = "http://mdh.xscmmidi.site/image/fy_gly.png";
//IM app_key
const IM_APP_TOKEN="67962a777e2b13bc6a4bde3ccd389d1e";
const BASR_COLOR = '#6C49E4';

View File

@@ -1,9 +1,9 @@
// src/utils/http.js
import axios from 'axios';
// const {BASE_URL} from "@/until/config.js";
import config from './config.js';
// 创建axios实例
const http = axios.create({
baseURL: "http://chat.qxmier.com", // API的基础路径
baseURL: config.BASE_URL, // API的基础路径
timeout: 5000 // 请求超时时间
});

View File

@@ -1,9 +1,11 @@
// vue.config.js
// http://md.xscmmidi.site 正式api
// http://tmd.xscmmidi.site 测试api
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'https://chat.qxmier.com',
target: 'http://md.xscmmidi.site',
changeOrigin: true,
pathRewrite: { '^/api': '' }
}