Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uni-app-ddh-shop
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
zhanhai
uni-app-ddh-shop
Commits
0d421e4d
Commit
0d421e4d
authored
Oct 15, 2024
by
ly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增一个web
parent
b8c4fbee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
48 deletions
+44
-48
index.vue
pages/my/index.vue
+7
-11
web.vue
pages/web/web.vue
+1
-4
websrc.vue
pages/web/websrc.vue
+10
-7
app-service.js
unpackage/dist/dev/app-plus/app-service.js
+26
-26
No files found.
pages/my/index.vue
View file @
0d421e4d
...
...
@@ -134,7 +134,6 @@ export default {
initTels
()
{
const
self
=
this
self
.
$request
(
'/app/v1/settings'
,
'GET'
).
then
(
res
=>
{
console
.
log
(
res
,
'settings'
);
const
{
serviceCall
}
=
res
.
result
self
.
serviceCall
=
serviceCall
}).
catch
(
err
=>
{
...
...
@@ -182,22 +181,19 @@ export default {
this
.
Go
(
'uni:/pages/login/login'
)
},
goBar
(
item
)
{
console
.
log
(
item
.
linkUrl
,
'item'
)
switch
(
item
.
title
)
{
case
"我的还款"
:
this
.
buryingPoint
(
'app:my_repayment_click'
)
const
newpath
=
'http://192.168.0.23:8080/index.html#/bill'
uni
.
setStorageSync
(
'web-src'
,
newpath
)
uni
.
setStorageSync
(
'web-src-title'
,
'账单'
)
this
.
Go
(
'uni:/pages/web/websrc'
)
// this.Go('uni:/pages/web/websrc?src=http://192.168.0.23:8080/index.html#/bill')
uni
.
navigateTo
({
url
:
`/pages/web/websrc?url=
${
item
.
linkUrl
}
`
})
break
;
case
"申请记录"
:
this
.
buryingPoint
(
'app:my_application_record_click'
)
const
Recordpath
=
'http://192.168.0.23:8080/index.html#/loanRecord'
uni
.
setStorageSync
(
'web-src'
,
Recordpath
)
uni
.
setStorageSync
(
'web-src-title'
,
'借款记录'
)
this
.
Go
(
'uni:/pages/web/websrc'
)
// this.Go('uni:/pages/web/websrc?src=http://192.168.0.23:8080/index.html#/loanRecord')
uni
.
navigateTo
({
url
:
`/pages/web/websrc?url=
${
item
.
linkUrl
}
`
})
break
;
default
:
break
;
...
...
pages/web/web.vue
View file @
0d421e4d
...
...
@@ -90,10 +90,7 @@ export default {
// uni.removeStorageSync('hasRefresh')
},
onShow
()
{
console
.
log
(
'WEB show方法'
)
// if (option.src) {
// this.src = option.src
// }
if
(
uni
.
getStorageSync
(
'canRefreshWeb'
))
{
uni
.
removeStorageSync
(
'canRefreshWeb'
)
if
(
this
.
wv
)
{
...
...
pages/web/websrc.vue
View file @
0d421e4d
...
...
@@ -74,13 +74,16 @@ export default {
async
onLoad
(
option
)
{
const
newURL
=
uni
.
getStorageSync
(
'web-src'
)
console
.
log
(
newURL
,
'参数555'
)
const
that
=
this
if
(
newURL
)
{
that
.
src
=
newURL
if
(
option
.
url
){
that
.
src
=
option
.
url
}
// const newURL=uni.getStorageSync('web-src')
console
.
log
(
option
,
'参数555'
)
// if (newURL) {
// that.src = newURL
// }
uni
.
getStorage
({
key
:
'm-device-info'
,
success
:
function
(
res
)
{
...
...
@@ -94,8 +97,8 @@ export default {
},
onShow
()
{
console
.
log
(
'WEB show方法'
)
const
newURL
=
uni
.
getStorageSync
(
'web-src'
)
this
.
src
=
newURL
//
const newURL=uni.getStorageSync('web-src')
//
this.src=newURL
if
(
uni
.
getStorageSync
(
'canRefreshWeb'
))
{
uni
.
removeStorageSync
(
'canRefreshWeb'
)
if
(
this
.
wv
)
{
...
...
unpackage/dist/dev/app-plus/app-service.js
View file @
0d421e4d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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