Commit edd7401f authored by ly's avatar ly

多典花h5

parent b365cc37
No preview for this file type
......@@ -11,13 +11,15 @@
this.loadLocation();
this.loadUuid()
}
plus.screen.lockOrientation("portrait-primary")
console.log('App Launch')
},
methods:{
// 获取common当中的设备信息
loadDevice: function() {
const that = this;
const that = this
convertPromise('getSystemInfo').then(result => {
const deviceInfo = {
......
......@@ -3,7 +3,7 @@
"appid" : "__UNI__DE04B13",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : 103,
"versionCode" : 104,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
......
......@@ -118,6 +118,7 @@
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": ""
}
},
{
......@@ -244,8 +245,15 @@
{
"path": "pages/web/web",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/websrc/websrc",
"style": {
"navigationStyle": "custom"
}
},
{
......
No preview for this file type
......@@ -99,7 +99,7 @@
},
onPageScroll(e) {
// 页面滚动时设置isFixed和scrollTop
console.log(e.scrollTop,'876')
// console.log(e.scrollTop,'876')
this.scrollTop = e.scrollTop;
if( e.scrollTop > 220){
this.isFixed = true;
......
......@@ -122,6 +122,8 @@
goPage(item){
// this.Go(item.linkUrl)
this.Go('http://192.168.0.65:8080/#/loan')
// this.Go('http://192.168.0.65:8081/#/payResult')
},
goLogin(){
this.Go('uni:/pages/login/login')
......
<template>
<view class="page-web">
<!-- 导航栏 -->
<!-- <navigation-bar v-if="showNavBar"></navigation-bar> -->
<view class='web-header' v-if="showNavBar">{{2}}</view>
<web-view ref='webview' :webview-styles="webviewStyles" @message="handleMessage" :src="src"></web-view>
</view>
</template>
......@@ -16,7 +15,7 @@
data() {
return {
// src:'http://192.168.0.38:8081/index.html#/middle?type=mieye&',
src:'',
src:null,
webviewStyles: {
progress: {
color: '#FF4050'
......@@ -31,6 +30,7 @@
}
},
async onLoad(options) {
const that = this
if(options.url){
......@@ -61,6 +61,7 @@
uni.showTabBar()
},
handleMessage(e) {
console.log(e,'9999999999999')
const data = e.detail.data;
if (!data || data.lenght === 0) {
this.toast('调用APP方法报错');
......@@ -75,13 +76,13 @@
return
}
console.log(data,'data222')
// if (data === 'hideNavBar') {
// console.log(data,'data333')
// this.showNavBar = false;
// } else if (data === 'showNavBar') {
// console.log(data,'data444')
// this.showNavBar = true;
// }
if (data === 'hideNavBar') {
console.log(data,'data333')
this.showNavBar = false;
} else if (data === 'showNavBar') {
console.log(data,'data444')
this.showNavBar = true;
}
if (params) {
this[name](params)
} else {
......@@ -178,6 +179,7 @@
},
// 隐藏导航了
HideNavBar() {
console.log('titleNView的值')
try {
plus.navigator.setFullscreen(true)
......
This diff is collapsed.
......@@ -2,7 +2,7 @@
appleAppid=io.dcloud.ddh
[appstore]
appstore=f78d3568306c96378cd0dc20d87bde50
appstore=
[iosStyle]
iosStyle=
......
forceInstall
\ No newline at end of file
forceInstall
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
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 to comment