更新正式环境部署
This commit is contained in:
2
App.vue
2
App.vue
@@ -62,6 +62,6 @@ img {
|
|||||||
--font-button-size:24rpx;
|
--font-button-size:24rpx;
|
||||||
--font-button-size-p:28rpx;
|
--font-button-size-p:28rpx;
|
||||||
/* tab图标 */
|
/* tab图标 */
|
||||||
--tab-url:url('https://vespa.qxmier.com/image/tabline.png');
|
--tab-url:url('http://mdh.xscmmidi.site/image/tabline.png');
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -4,9 +4,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import config from '@/until/config.js';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
httpUrl: null,
|
||||||
fileList: []
|
fileList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -15,6 +17,9 @@
|
|||||||
this.$emit('changeImageList',this.fileList)
|
this.$emit('changeImageList',this.fileList)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.httpUrl = config.BASE_URL
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 选择文件回调
|
// 选择文件回调
|
||||||
select(e) {
|
select(e) {
|
||||||
@@ -60,7 +65,7 @@
|
|||||||
},
|
},
|
||||||
uploadFile(file) {
|
uploadFile(file) {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'https://chat.qxmier.com/adminapi/UploadFile/file_upload',
|
url: `${this.httpUrl}/adminapi/UploadFile/file_upload`,
|
||||||
filePath: file.path,
|
filePath: file.path,
|
||||||
name: 'files',
|
name: 'files',
|
||||||
success: (uploadRes) => {
|
success: (uploadRes) => {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
"disableHostCheck": true, //设置跳过host检查
|
"disableHostCheck": true, //设置跳过host检查
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"/api": {
|
"/api": {
|
||||||
"target": "https://chat.qxmier.com", //目标接口域名
|
"target": "https://md.xscmmidi.site", //目标接口域名
|
||||||
"changeOrigin": true, //是否跨域
|
"changeOrigin": true, //是否跨域
|
||||||
"secure": false, // 设置支持https协议的代理
|
"secure": false, // 设置支持https协议的代理
|
||||||
"pathRewrite": {
|
"pathRewrite": {
|
||||||
|
|||||||
@@ -4,31 +4,31 @@
|
|||||||
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="`关于我们`" :emitBack="true" @backEvent="back">
|
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="`关于我们`" :emitBack="true" @backEvent="back">
|
||||||
</navBar>
|
</navBar>
|
||||||
<view class="dec-view">
|
<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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import headerHeight from '@/component/headerHeight.vue';
|
import config from '@/until/config.js';
|
||||||
import navBar from '@/component/nav.vue';
|
import navBar from '@/component/nav.vue';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
// headerHeight,
|
|
||||||
navBar
|
navBar
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
statusBarHeight:0,
|
statusBarHeight:0,
|
||||||
ThemeData:null
|
ThemeData:null,
|
||||||
|
httpUrl:null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
this.httpUrl = config.BASE_URL
|
||||||
const {
|
const {
|
||||||
h
|
h
|
||||||
} = options
|
} = options
|
||||||
this.currentIndex = type !== undefined ? +type : 0
|
|
||||||
this.statusBarHeight = h
|
this.statusBarHeight = h
|
||||||
if(uni.getStorageSync('Theme_Data')) {
|
if(uni.getStorageSync('Theme_Data')) {
|
||||||
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
|
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<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 :navTitle="`规则说明`" :style="{'margin-top' : `${statusBarHeight || 0}px`}">
|
||||||
</navBar>
|
</navBar>
|
||||||
<view class="dec-view" v-if="flagIndex !== null">
|
<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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -11,24 +11,28 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import navBar from '@/component/nav.vue';
|
import navBar from '@/component/nav.vue';
|
||||||
|
import config from '@/until/config.js';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
navBar
|
navBar
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
statusBarHeight:0,
|
httpUrl: null,
|
||||||
flagIndex:null,
|
statusBarHeight: 0,
|
||||||
ThemeData:null
|
flagIndex: null,
|
||||||
|
ThemeData: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
const {
|
const {
|
||||||
h,flag
|
h,
|
||||||
|
flag
|
||||||
} = options
|
} = options
|
||||||
this.flagIndex = +flag
|
this.flagIndex = +flag
|
||||||
|
this.httpUrl = config.BASE_URL
|
||||||
this.statusBarHeight = h
|
this.statusBarHeight = h
|
||||||
if(uni.getStorageSync('Theme_Data')) {
|
if (uni.getStorageSync('Theme_Data')) {
|
||||||
this.ThemeData = JSON.parse(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-image: url('@/static/image/help/bg.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
img{
|
|
||||||
width: 100%;
|
img {
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dec-view {
|
.dec-view {
|
||||||
min-height: calc(99vh - 160rpx);
|
min-height: calc(99vh - 160rpx);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -4,85 +4,95 @@
|
|||||||
<img src="/static/image/task/rule.png" alt="" />
|
<img src="/static/image/task/rule.png" alt="" />
|
||||||
</view>
|
</view>
|
||||||
<view class="dec-view" style="background-color: transparent !important;">
|
<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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import config from '@/until/config.js';
|
||||||
data() {
|
export default {
|
||||||
return {
|
data() {
|
||||||
// 关键配置:设置 WebView 样式
|
return {
|
||||||
webviewStyles: {
|
httpUrl: null,
|
||||||
progress: {
|
// 关键配置:设置 WebView 样式
|
||||||
color: 'transparent' // 隐藏进度条
|
webviewStyles: {
|
||||||
},
|
progress: {
|
||||||
// 安卓专用配置
|
color: 'transparent' // 隐藏进度条
|
||||||
android: {
|
},
|
||||||
hardwareAccelerated: true, // 开启硬件加速
|
// 安卓专用配置
|
||||||
backgroundColor: 'transparent'
|
android: {
|
||||||
},
|
hardwareAccelerated: true, // 开启硬件加速
|
||||||
// iOS 专用配置
|
backgroundColor: 'transparent'
|
||||||
ios: {
|
},
|
||||||
allowsInlineMediaPlayback: true,
|
// iOS 专用配置
|
||||||
backgroundColor: 'transparent'
|
ios: {
|
||||||
}
|
allowsInlineMediaPlayback: true,
|
||||||
}
|
backgroundColor: 'transparent'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
onReady() {
|
}
|
||||||
// #ifdef APP-PLUS
|
},
|
||||||
// 获取 WebView 实例进行原生设置
|
onLoad() {
|
||||||
const pages = getCurrentPages();
|
this.httpUrl = config.BASE_URL
|
||||||
const page = pages[pages.length - 1];
|
},
|
||||||
const currentWebview = page.$getAppWebview();
|
onReady() {
|
||||||
|
|
||||||
setTimeout(() => {
|
// #ifdef APP-PLUS
|
||||||
const webview = currentWebview.children()[0];
|
// 获取 WebView 实例进行原生设置
|
||||||
|
const pages = getCurrentPages();
|
||||||
// 安卓原生设置
|
const page = pages[pages.length - 1];
|
||||||
// #ifdef APP-ANDROID
|
const currentWebview = page.$getAppWebview();
|
||||||
webview.setStyle({
|
|
||||||
background: 'transparent'
|
setTimeout(() => {
|
||||||
});
|
const webview = currentWebview.children()[0];
|
||||||
// #endif
|
|
||||||
|
// 安卓原生设置
|
||||||
// iOS 原生设置
|
// #ifdef APP-ANDROID
|
||||||
// #ifdef APP-IOS
|
webview.setStyle({
|
||||||
webview.setStyle({
|
background: 'transparent'
|
||||||
opaque: false
|
});
|
||||||
});
|
// #endif
|
||||||
// #endif
|
|
||||||
}, 300); // 延迟确保 WebView 加载完成
|
// iOS 原生设置
|
||||||
// #endif
|
// #ifdef APP-IOS
|
||||||
}
|
webview.setStyle({
|
||||||
}
|
opaque: false
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
}, 300); // 延迟确保 WebView 加载完成
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 重要:设置页面背景透明 */
|
/* 重要:设置页面背景透明 */
|
||||||
page {
|
page {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 隐藏 WebView 默认容器背景 */
|
/* 隐藏 WebView 默认容器背景 */
|
||||||
uni-web-view > div {
|
uni-web-view>div {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-page {
|
.view-page {
|
||||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||||
min-width: calc(100% - 40rpx);
|
min-width: calc(100% - 40rpx);
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
.image{
|
|
||||||
|
.image {
|
||||||
width: calc(100% - 40rpx);
|
width: calc(100% - 40rpx);
|
||||||
// min-height: 100vh;
|
// min-height: 100vh;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -91,6 +101,7 @@ export default {
|
|||||||
right: 20rpx;
|
right: 20rpx;
|
||||||
// bottom: 0;
|
// bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dec-view {
|
.dec-view {
|
||||||
width: calc(100% - 40rpx - 48rpx);
|
width: calc(100% - 40rpx - 48rpx);
|
||||||
min-height: calc(60% - 48rpx);
|
min-height: calc(60% - 48rpx);
|
||||||
|
|||||||
15
unpackage/dist/cache/.vite/deps/_metadata.json
vendored
15
unpackage/dist/cache/.vite/deps/_metadata.json
vendored
@@ -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": {}
|
|
||||||
}
|
|
||||||
2534
unpackage/dist/cache/.vite/deps/axios.js
vendored
2534
unpackage/dist/cache/.vite/deps/axios.js
vendored
File diff suppressed because it is too large
Load Diff
7
unpackage/dist/cache/.vite/deps/axios.js.map
vendored
7
unpackage/dist/cache/.vite/deps/axios.js.map
vendored
File diff suppressed because one or more lines are too long
3
unpackage/dist/cache/.vite/deps/package.json
vendored
3
unpackage/dist/cache/.vite/deps/package.json
vendored
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"type": "module"
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,14 @@
|
|||||||
|
|
||||||
//api 请求路径 本地
|
//api 请求路径 本地
|
||||||
// http://chat.qxmier.com
|
// http://md.xscmmidi.site 正式api
|
||||||
// http://vschat.qxmier.com
|
// http://tmd.xscmmidi.site 测试api
|
||||||
const BASE_URL="http://vschat.qxmier.com";
|
const BASE_URL = "http://md.xscmmidi.site";
|
||||||
const PRIMARY_BGURL = "https://vespa.qxmier.com/image/fy_bg.jpg";
|
// 前端访问域名
|
||||||
|
// 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
|
//IM app_key
|
||||||
const IM_APP_TOKEN="67962a777e2b13bc6a4bde3ccd389d1e";
|
const IM_APP_TOKEN="67962a777e2b13bc6a4bde3ccd389d1e";
|
||||||
const BASR_COLOR = '#6C49E4';
|
const BASR_COLOR = '#6C49E4';
|
||||||
|
|||||||
@@ -1,36 +1,36 @@
|
|||||||
// src/utils/http.js
|
// src/utils/http.js
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
// const {BASE_URL} from "@/until/config.js";
|
import config from './config.js';
|
||||||
// 创建axios实例
|
// 创建axios实例
|
||||||
const http = axios.create({
|
const http = axios.create({
|
||||||
baseURL: "http://chat.qxmier.com", // API的基础路径
|
baseURL: config.BASE_URL, // API的基础路径
|
||||||
timeout: 5000 // 请求超时时间
|
timeout: 5000 // 请求超时时间
|
||||||
});
|
});
|
||||||
|
|
||||||
// 请求拦截器
|
// 请求拦截器
|
||||||
http.interceptors.request.use(
|
http.interceptors.request.use(
|
||||||
config => {
|
config => {
|
||||||
// 在发送请求之前做些什么,例如添加token等
|
// 在发送请求之前做些什么,例如添加token等
|
||||||
// config.headers['token'] = `${uni.getStorageSync('token')?? ''}`;
|
// config.headers['token'] = `${uni.getStorageSync('token')?? ''}`;
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
// 对请求错误做些什么
|
// 对请求错误做些什么
|
||||||
|
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// 响应拦截器
|
// 响应拦截器
|
||||||
http.interceptors.response.use(
|
http.interceptors.response.use(
|
||||||
response => {
|
response => {
|
||||||
// 对响应数据做点什么
|
// 对响应数据做点什么
|
||||||
return response.data; // 根据实际情况可能需要返回response.data或其他处理后的数据
|
return response.data; // 根据实际情况可能需要返回response.data或其他处理后的数据
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
// 对响应错误做点什么
|
// 对响应错误做点什么
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
export default http;
|
export default http;
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
// vue.config.js
|
// vue.config.js
|
||||||
|
// http://md.xscmmidi.site 正式api
|
||||||
|
// http://tmd.xscmmidi.site 测试api
|
||||||
module.exports = {
|
module.exports = {
|
||||||
devServer: {
|
devServer: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'https://chat.qxmier.com',
|
target: 'http://md.xscmmidi.site',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^/api': '' }
|
pathRewrite: { '^/api': '' }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user