Commit f33c7d0b by 展昭

updte

parent bb4fcc39
...@@ -21,4 +21,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/). ...@@ -21,4 +21,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
### api swagger ### 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] [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 usermemberId 206484 1822782
\ No newline at end of file
[lanhu][https://lanhuapp.com/web/#/item/project/board?pid=f7147322-8784-4212-a995-edaba24e3884]
\ No newline at end of file
...@@ -52,8 +52,6 @@ http.interceptors.response.use( ...@@ -52,8 +52,6 @@ http.interceptors.response.use(
message: '授权失败!', message: '授权失败!',
duration: 0, duration: 0,
overlay: true, overlay: true,
closeOnClick :true,
closeOnClickOverlay :true,
onClose: () => { onClose: () => {
console.log('WebViewJavascriptBridge'); console.log('WebViewJavascriptBridge');
try { try {
......
...@@ -78,8 +78,8 @@ Vue.prototype.setPageNavState = function () { ...@@ -78,8 +78,8 @@ Vue.prototype.setPageNavState = function () {
} }
}; };
const VConsole = require('vconsole') // const VConsole = require('vconsole')
const my_console = new VConsole(); // const my_console = new VConsole();
new Vue({ new Vue({
store, store,
......
import http from '../api/http.js' import http from '../api'
import qs from "qs"; import qs from "qs";
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
...@@ -62,6 +62,7 @@ export default new Vuex.Store({ ...@@ -62,6 +62,7 @@ export default new Vuex.Store({
}, { }, {
userLoaded: async (user) => { userLoaded: async (user) => {
const appid = localStorage.getItem('appid'); const appid = localStorage.getItem('appid');
console.log('user.access_token=',user.access_token);
await getToken(user.access_token, appid); await getToken(user.access_token, appid);
} }
}) })
......
...@@ -420,7 +420,7 @@ export default { ...@@ -420,7 +420,7 @@ export default {
} }
} }
}, },
setBarHeight() { setBarHeightLowBee() {
setTimeout(() => { setTimeout(() => {
const barHeight = localStorage.getItem("barHeight"); const barHeight = localStorage.getItem("barHeight");
const conHeight = 46 + parseInt(barHeight); const conHeight = 46 + parseInt(barHeight);
...@@ -441,6 +441,22 @@ export default { ...@@ -441,6 +441,22 @@ export default {
} }
}, 100); }, 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() { closeWebView() {
try { try {
window.WebViewJavascriptBridge.callHandler( window.WebViewJavascriptBridge.callHandler(
...@@ -454,13 +470,37 @@ export default { ...@@ -454,13 +470,37 @@ export default {
console.log("closeWebView is error"); 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() { navLeftArrowClick() {
this.closeWebView(); this.closeWebView();
},
*callJsBridgeGenerator() {
// TODO:完善一下generator
yield this.setPageNavState();
yield this.setBarHeight();
} }
}, },
async mounted() { async mounted() {
// const callJsBridge=callJsBridgeGenerator();
// this.callJsBridge.next();
// this.callJsBridge.next();
this.setPageNavState(); this.setPageNavState();
this.setBarHeight(); this.setBarHeightLowBee();
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.loadPeriodData(); await this.loadPeriodData();
this.payUrl = await this.loadPayUrl(); this.payUrl = await this.loadPayUrl();
......
...@@ -9,7 +9,7 @@ module.exports = { ...@@ -9,7 +9,7 @@ module.exports = {
title: '业务账单', title: '业务账单',
// 部署应用时的基本 URL // 部署应用时的基本 URL
// baseUrl: process.env.NODE_ENV === "production" ? "192.168.60.110:8080" : "192.168.60.110:8080", // 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" : "/", // publicPath: IS_PROD ? "/mobile" : "/",
...@@ -20,7 +20,7 @@ module.exports = { ...@@ -20,7 +20,7 @@ module.exports = {
assetsDir: "", assetsDir: "",
// 指定生成的 index.html 的输出路径 (相对于 outputDir)。也可以是一个绝对路径。 // 指定生成的 index.html 的输出路径 (相对于 outputDir)。也可以是一个绝对路径。
//indexPath: "index.html", indexPath: "index.html",
// pages: { // pages: {
// app: { // app: {
// entry: "src/main.js", // entry: "src/main.js",
...@@ -70,7 +70,7 @@ module.exports = { ...@@ -70,7 +70,7 @@ module.exports = {
transpileDependencies: [], transpileDependencies: [],
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建 // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建
productionSourceMap: false, productionSourceMap: true,
// 设置生成的 HTML 中 <link rel="stylesheet"> 和 <script> 标签的 crossorigin 属性(注:仅影响构建时注入的标签) // 设置生成的 HTML 中 <link rel="stylesheet"> 和 <script> 标签的 crossorigin 属性(注:仅影响构建时注入的标签)
crossorigin: "", crossorigin: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment