Commit 9e3ae0b2 authored by 罗超's avatar 罗超

修改文件

parent 442cdc95
...@@ -25,11 +25,17 @@ ...@@ -25,11 +25,17 @@
margin-top: 32rpx !important; margin-top: 32rpx !important;
} }
.q-mb-md{ .q-mb-md{
margin-bottom: 32rpx; margin-bottom: 32rpx;
} }
.q-mr-sm{ .q-mr-sm{
margin-right: 16rpx; margin-right: 16rpx;
} }
.q-px-md{
padding: 0 32rpx;
}
.q-mx-md{
margin: 0 32rpx;
}
.q-ml-sm{ .q-ml-sm{
margin-left: 16rpx; margin-left: 16rpx;
} }
...@@ -626,4 +632,10 @@ ...@@ -626,4 +632,10 @@
} }
.opacity0{ .opacity0{
opacity: 0; opacity: 0;
}
.window-height{
height: 100vh;
}
.window-width{
width: 100vw;
} }
\ No newline at end of file
@font-face { @font-face {
font-family: "tffont"; /* Project id 4816119 */ font-family: "tffont"; /* Project id 4816119 */
src: url('//at.alicdn.com/t/c/font_4816119_6zzxojucd79.woff2?t=1740378953818') format('woff2'), src: url('//at.alicdn.com/t/c/font_4816119_2wse58hij19.woff2?t=1750606991860') format('woff2'),
url('//at.alicdn.com/t/c/font_4816119_6zzxojucd79.woff?t=1740378953818') format('woff'), url('//at.alicdn.com/t/c/font_4816119_2wse58hij19.woff?t=1750606991860') format('woff'),
url('//at.alicdn.com/t/c/font_4816119_6zzxojucd79.ttf?t=1740378953818') format('truetype'); url('//at.alicdn.com/t/c/font_4816119_2wse58hij19.ttf?t=1750606991860') format('truetype');
} }
.tffont { .tffont {
...@@ -13,6 +13,50 @@ ...@@ -13,6 +13,50 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.tffont-dinner:before {
content: "\e686";
}
.tffont-chuang1:before {
content: "\e604";
}
.tffont-lvxing:before {
content: "\e603";
}
.tffont-yuanquan:before {
content: "\e63e";
}
.tffont-niunai:before {
content: "\e61e";
}
.tffont-moonbyueliang:before {
content: "\e6a0";
}
.tffont-jingdian:before {
content: "\e88f";
}
.tffont-roushi-c:before {
content: "\e602";
}
.tffont-175:before {
content: "\e6bb";
}
.tffont-othertraffic:before {
content: "\e62a";
}
.tffont-Sunny:before {
content: "\e8c7";
}
.tffont-checkmark:before { .tffont-checkmark:before {
content: "\e611"; content: "\e611";
} }
...@@ -103,4 +147,4 @@ ...@@ -103,4 +147,4 @@
.tffont-yongjin2:before { .tffont-yongjin2:before {
content: "\e600"; content: "\e600";
} }
\ No newline at end of file
...@@ -682,6 +682,13 @@ ...@@ -682,6 +682,13 @@
}, },
{ {
"path": "videoinfo" "path": "videoinfo"
},
{
"path" : "aiTravelDetail",
"style" :
{
"navigationStyle": "custom"
}
} }
] ]
}, },
......
This diff is collapsed.
...@@ -23,8 +23,8 @@ export default { ...@@ -23,8 +23,8 @@ export default {
install(Vue, options) { install(Vue, options) {
Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285" Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
// "http://192.168.5.204:8030" // "http://192.168.5.204:8030"
Vue.prototype.host2 = process.env.NODE_ENV=="development"?"http://192.168.5.214:8033":"https://erpmallapi.oytour.com" Vue.prototype.host2 = process.env.NODE_ENV=="development"?"https://erpmallapi.oytour.com":"https://erpmallapi.oytour.com"
Vue.prototype.host3 = process.env.NODE_ENV=="development"?"http://192.168.5.214":"https://reborn.oytour.com" Vue.prototype.host3 = process.env.NODE_ENV=="development"?"https://reborn.oytour.com":"https://reborn.oytour.com"
// Vue.prototype.host2 = "https://erpmallapi.oytour.com" // Vue.prototype.host2 = "https://erpmallapi.oytour.com"
// Vue.prototype.host3 = "https://reborn.oytour.com" // Vue.prototype.host3 = "https://reborn.oytour.com"
// "http://192.168.5.204:8030": // "http://192.168.5.204:8030":
......
// utils/request.js
const BASE_URL = process.env.NODE_ENV === 'production'
? 'https://rw.oytour.com/api/app'
: 'https://rw.oytour.com/api/app';
const request = (method, url, data = {}, config = {}) => {
// 获取用户信息
let header = {
'Accept': 'application/json',
...config.header
};
try {
const userInfoStr = uni.getStorageSync('userInfo');
if (userInfoStr) {
const userInfo = JSON.parse(userInfoStr);
header['Authorization'] = `Bearer ${userInfo.token}`;
}
} catch (e) {
console.error('获取用户信息失败', e);
}
return new Promise((resolve, reject) => {
uni.request({
url: BASE_URL + url,
method: method.toUpperCase(),
data,
header,
timeout: config.timeout || 10000,
success: (res) => {
if (res.statusCode >= 200 && res.statusCode < 300) {
resolve(res.data);
} else {
// 处理错误状态码
let errorMessage = '请求失败';
switch (res.statusCode) {
case 401:
errorMessage = '未授权,请登录';
break;
case 403:
errorMessage = '拒绝访问';
break;
case 404:
errorMessage = '请求地址不存在';
break;
case 500:
errorMessage = '服务器内部错误';
break;
default:
errorMessage = `请求错误: ${res.statusCode}`;
}
uni.showToast({
title: errorMessage,
icon: 'none',
duration: 2000
});
reject(res.data);
}
},
fail: (err) => {
let errorMessage = '网络错误';
if (err.errMsg.includes('timeout')) {
errorMessage = '请求超时';
}
uni.showToast({
title: errorMessage,
icon: 'none',
duration: 2000
});
reject(err);
}
});
});
};
// 封装常用方法
const http = {
get(url, params = {}, config = {}) {
return request('GET', url, params, config);
},
post(url, data = {}, config = {}) {
return request('POST', url, data, config);
},
put(url, data = {}, config = {}) {
return request('PUT', url, data, config);
},
delete(url, data = {}, config = {}) {
return request('DELETE', url, data, config);
},
// 文件上传
upload(url, filePath, name = 'file', formData = {}, config = {}) {
return new Promise((resolve, reject) => {
// 获取token
let header = {};
try {
const userInfoStr = uni.getStorageSync('userInfo');
if (userInfoStr) {
const userInfo = JSON.parse(userInfoStr);
header['Authorization'] = `Bearer ${userInfo.token}`;
}
} catch (e) {
console.error('获取用户信息失败', e);
}
uni.uploadFile({
url: BASE_URL + url,
filePath,
name,
formData,
header,
success: (res) => {
if (res.statusCode === 200) {
try {
const data = JSON.parse(res.data);
resolve(data);
} catch (e) {
resolve(res.data);
}
} else {
reject(res);
}
},
fail: (err) => {
reject(err);
}
});
});
}
};
export default http;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment