Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f33c7d0b
authored
May 13, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
updte
parent
bb4fcc39
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
12 deletions
README.md
src/api/http.js
src/main.js
src/store/index.js
src/views/Bill/index.vue
vue.config.js
README.md
View file @
f33c7d0b
...
...
@@ -21,4 +21,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
### api swagger
[
api swagger
][
http://organization.test.hrs100.cn:18080/swagger-ui.html?urls.primaryName=%E4%BC%81%E4%B8%9A%E4%BF%A1%E6%81%AF%E7%AE%A1%E7%90%86%E6%8E%A5%E5%8F%A3V1.0-HRS100%E4%B8%9A%E5%8A%A1%E8%B4%A6%E5%8D%95%E7%9B%B8%E5%85%B3#/%E4%B8%9A%E5%8A%A1%E8%B4%A6%E5%8D%95-H5%E7%9B%B8%E5%85%B3%E6%8E%A5%E5%8F%A3
]
usermemberId 206484 1822782
\ No newline at end of file
usermemberId 206484 1822782
[
lanhu
][
https://lanhuapp.com/web/#/item/project/board?pid=f7147322-8784-4212-a995-edaba24e3884
]
\ No newline at end of file
src/api/http.js
View file @
f33c7d0b
...
...
@@ -52,8 +52,6 @@ http.interceptors.response.use(
message
:
'授权失败!'
,
duration
:
0
,
overlay
:
true
,
closeOnClick
:
true
,
closeOnClickOverlay
:
true
,
onClose
:
()
=>
{
console
.
log
(
'WebViewJavascriptBridge'
);
try
{
...
...
src/main.js
View file @
f33c7d0b
...
...
@@ -78,8 +78,8 @@ Vue.prototype.setPageNavState = function () {
}
};
const
VConsole
=
require
(
'vconsole'
)
const
my_console
=
new
VConsole
();
//
const VConsole = require('vconsole')
//
const my_console = new VConsole();
new
Vue
({
store
,
...
...
src/store/index.js
View file @
f33c7d0b
import
http
from
'../api
/http.js
'
import
http
from
'../api'
import
qs
from
"qs"
;
import
Vue
from
'vue'
;
import
Vuex
from
'vuex'
;
...
...
@@ -62,6 +62,7 @@ export default new Vuex.Store({
},
{
userLoaded
:
async
(
user
)
=>
{
const
appid
=
localStorage
.
getItem
(
'appid'
);
console
.
log
(
'user.access_token='
,
user
.
access_token
);
await
getToken
(
user
.
access_token
,
appid
);
}
})
...
...
src/views/Bill/index.vue
View file @
f33c7d0b
...
...
@@ -420,7 +420,7 @@ export default {
}
}
},
setBarHeight
()
{
setBarHeight
LowBee
()
{
setTimeout
(()
=>
{
const
barHeight
=
localStorage
.
getItem
(
"barHeight"
);
const
conHeight
=
46
+
parseInt
(
barHeight
);
...
...
@@ -441,6 +441,22 @@ export default {
}
},
100
);
},
setBarHeight
()
{
const
barHeight
=
localStorage
.
getItem
(
"barHeight"
);
const
conHeight
=
46
+
parseInt
(
barHeight
);
const
dom
=
document
.
getElementsByClassName
(
"iosStyle"
)[
0
];
if
(
dom
)
{
dom
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
}
const
dom2
=
document
.
getElementsByClassName
(
"container"
)[
0
];
if
(
dom2
)
{
dom2
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
}
},
closeWebView
()
{
try
{
window
.
WebViewJavascriptBridge
.
callHandler
(
...
...
@@ -454,13 +470,37 @@ export default {
console
.
log
(
"closeWebView is error"
);
}
},
setPageNavStateShow
(){
window
.
WebViewJavascriptBridge
.
callHandler
(
"setPageNavState"
,
{
isShowClose
:
true
,
isShowBack
:
true
,
isCloseLeft
:
true
,
isShowTitle
:
true
,
isShowNav
:
true
,
isCloseWebView
:
true
},
function
(
response
)
{
console
.
log
(
"setPageNavState来自 ios/android的回传数据: "
,
response
);
}
);
},
navLeftArrowClick
()
{
this
.
closeWebView
();
},
*
callJsBridgeGenerator
()
{
// TODO:完善一下generator
yield
this
.
setPageNavState
();
yield
this
.
setBarHeight
();
}
},
async
mounted
()
{
// const callJsBridge=callJsBridgeGenerator();
// this.callJsBridge.next();
// this.callJsBridge.next();
this
.
setPageNavState
();
this
.
setBarHeight
();
this
.
setBarHeight
LowBee
();
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
await
this
.
loadPeriodData
();
this
.
payUrl
=
await
this
.
loadPayUrl
();
...
...
vue.config.js
View file @
f33c7d0b
...
...
@@ -9,7 +9,7 @@ module.exports = {
title
:
'业务账单'
,
// 部署应用时的基本 URL
// baseUrl: process.env.NODE_ENV === "production" ? "192.168.60.110:8080" : "192.168.60.110:8080",
publicPath
:
process
.
env
.
VUE_APP_PUBLIC_DIR
,
publicPath
:
'/'
,
//
process.env.VUE_APP_PUBLIC_DIR,
// publicPath: IS_PROD ? "/mobile" : "/",
...
...
@@ -20,7 +20,7 @@ module.exports = {
assetsDir
:
""
,
// 指定生成的 index.html 的输出路径 (相对于 outputDir)。也可以是一个绝对路径。
//
indexPath: "index.html",
indexPath
:
"index.html"
,
// pages: {
// app: {
// entry: "src/main.js",
...
...
@@ -70,7 +70,7 @@ module.exports = {
transpileDependencies
:
[],
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建
productionSourceMap
:
fals
e
,
productionSourceMap
:
tru
e
,
// 设置生成的 HTML 中 <link rel="stylesheet"> 和 <script> 标签的 crossorigin 属性(注:仅影响构建时注入的标签)
crossorigin
:
""
,
...
...
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