Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
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
李伟
cust-app
Commits
11d8d274
Commit
11d8d274
authored
Jan 15, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了H5页面跳转路径位置
parent
9a7fe5bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
config.js
config.js
+3
-2
main.js
main.js
+2
-0
index.vue
webView/index.vue
+2
-1
No files found.
config.js
View file @
11d8d274
// 应用全局配置
// 应用全局配置
module
.
exports
=
{
module
.
exports
=
{
// baseUrl: 'http://106.3.97.198:20162'
// baseUrl: 'http://106.3.97.198:20162'
baseUrl
:
'http://192.168.1.7:8092'
,
//接口地址
baseUrl
:
'http://192.168.1.7:8092'
,
//接口URL
imgUrl
:
'http://192.168.1.7/static/images'
//图片URL
imgUrl
:
'http://192.168.1.7/static/images'
,
//图片URL
webViewUrl
:
'http://192.168.1.7:8080'
//小程序跳转H5页面的URL
}
}
// module.exports = {
// module.exports = {
...
...
main.js
View file @
11d8d274
...
@@ -16,8 +16,10 @@ Vue.use(uView)
...
@@ -16,8 +16,10 @@ Vue.use(uView)
Vue
.
prototype
.
$myRequest
=
request
;
// 接口请求
Vue
.
prototype
.
$myRequest
=
request
;
// 接口请求
Vue
.
prototype
.
$IMG_URL
=
config
.
imgUrl
;
//图片地址
Vue
.
prototype
.
$IMG_URL
=
config
.
imgUrl
;
//图片地址
Vue
.
prototype
.
$WEBVIEW_URL
=
config
.
webViewUrl
;
//图片地址
Vue
.
prototype
.
$store
=
store
;
//正式接口
Vue
.
prototype
.
$store
=
store
;
//正式接口
Vue
.
mixin
(
share
)
Vue
.
mixin
(
share
)
const
app
=
new
Vue
({
const
app
=
new
Vue
({
...
App
...
App
...
...
webView/index.vue
View file @
11d8d274
<
template
>
<
template
>
<view>
<view>
<!--
<web-view
:src=
"'http://106.3.97.198:20163/realAuth.html?token='+token"
></web-view>
-->
<!--
<web-view
:src=
"'http://106.3.97.198:20163/realAuth.html?token='+token"
></web-view>
-->
<web-view
:src=
"
'http://192.168.1.7:8080
/realAuth.html?token='+token"
@
message=
"receiveMessage"
></web-view>
<web-view
:src=
"
webUrl+'
/realAuth.html?token='+token"
@
message=
"receiveMessage"
></web-view>
</view>
</view>
</
template
>
</
template
>
...
@@ -12,6 +12,7 @@ export default {
...
@@ -12,6 +12,7 @@ export default {
name
:
"index"
,
name
:
"index"
,
data
()
{
data
()
{
return
{
return
{
webUrl
:
this
.
$WEBVIEW_URL
,
token
:
uni
.
getStorageSync
(
'token'
),
token
:
uni
.
getStorageSync
(
'token'
),
};
};
},
},
...
...
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