Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
9e3ae0b2
Commit
9e3ae0b2
authored
Jun 23, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件
parent
442cdc95
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1208 additions
and
7 deletions
+1208
-7
flex.css
asset/css/flex.css
+13
-1
tffont.css
asset/font/tffont.css
+48
-4
pages.json
pages.json
+7
-0
aiTravelDetail.vue
pages/jiuzhai/aiTravelDetail.vue
+1002
-0
api.js
plugin/api.js
+2
-2
rwRequest.js
plugin/rwRequest.js
+136
-0
No files found.
asset/css/flex.css
View file @
9e3ae0b2
...
@@ -25,11 +25,17 @@
...
@@ -25,11 +25,17 @@
margin-top
:
32
rpx
!important
;
margin-top
:
32
rpx
!important
;
}
}
.q-mb-md
{
.q-mb-md
{
margin-bottom
:
32
rpx
;
margin-bottom
:
32
rpx
;
}
}
.q-mr-sm
{
.q-mr-sm
{
margin-right
:
16
rpx
;
margin-right
:
16
rpx
;
}
}
.q-px-md
{
padding
:
0
32
rpx
;
}
.q-mx-md
{
margin
:
0
32
rpx
;
}
.q-ml-sm
{
.q-ml-sm
{
margin-left
:
16
rpx
;
margin-left
:
16
rpx
;
}
}
...
@@ -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
asset/font/tffont.css
View file @
9e3ae0b2
@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
pages.json
View file @
9e3ae0b2
...
@@ -682,6 +682,13 @@
...
@@ -682,6 +682,13 @@
},
},
{
{
"path"
:
"videoinfo"
"path"
:
"videoinfo"
},
{
"path"
:
"aiTravelDetail"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
}
]
]
},
},
...
...
pages/jiuzhai/aiTravelDetail.vue
0 → 100644
View file @
9e3ae0b2
This diff is collapsed.
Click to expand it.
plugin/api.js
View file @
9e3ae0b2
...
@@ -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"
?
"http
s://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"
?
"http
s://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":
...
...
plugin/rwRequest.js
0 → 100644
View file @
9e3ae0b2
// 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment