Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
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
郑秀明
shop_mobile_uni
Commits
dfb3fc44
Commit
dfb3fc44
authored
Sep 12, 2020
by
zhengxiuming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同容器优化
parent
ff15d0b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
index.html
index.html
+6
-0
manifest.json
manifest.json
+1
-1
web.vue
pages/web/web.vue
+20
-5
No files found.
index.html
View file @
dfb3fc44
...
...
@@ -83,5 +83,11 @@
})
</script>
<!-- built files will be auto injected -->
<script
src=
"https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"
></script>
<script>
// 初始化
var
vConsole
=
new
VConsole
();
console
.
log
(
'Hello world'
);
</script>
</body>
</html>
manifest.json
View file @
dfb3fc44
...
...
@@ -51,7 +51,7 @@
"mode"
:
"history"
,
"base"
:
"/uni"
},
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
prod
/1.0.31/"
,
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
test
/1.0.31/"
,
"optimization"
:
{
"treeShaking"
:
{
"enable"
:
true
...
...
pages/web/web.vue
View file @
dfb3fc44
<
template
>
<view>
<TopBar
title=
"我的合同"
/>
<web-view
:src=
"url"
></web-view>
<web-view
:src=
"url"
v-if=
"url"
></web-view>
<view
v-else
class=
"empty"
>
获取合同失败,请重试~
</view>
</view>
</
template
>
...
...
@@ -15,10 +18,14 @@
}
},
mounted
()
{
const
obj
=
window
.
location
.
href
.
split
(
'?'
)[
1
];
const
{
contract_url
}
=
parse
(
obj
);
let
web_href
=
window
.
location
.
href
;
let
Index
=
web_href
.
indexOf
(
'contract_url'
);
if
(
Index
>
-
1
){
web_href
=
web_href
.
slice
(
Index
);
}
const
contract_url
=
web_href
.
replace
(
/contract_url=/
,
''
);
if
(
contract_url
){
this
.
url
=
contract_url
;
this
.
url
=
decodeURIComponent
(
contract_url
)
;
}
else
{
this
.
url
=
this
.
$store
.
state
.
webviewUrl
;
}
...
...
@@ -26,5 +33,13 @@
}
</
script
>
<
style
>
<
style
lang=
"scss"
>
.empty
{
height
:
100vh
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
font-size
:
30rpx
;
color
:
#808080
;
}
</
style
>
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