|
@@ -110,25 +110,20 @@
|
|
|
<van-loading class="loading" v-if="showLoading" type="spinner" color="#000" />
|
|
|
</view>
|
|
|
<!-- #ifdef APP-PLUS||H5 -->
|
|
|
- <view class="status_bar"></view>
|
|
|
- <view class="aaa" style="margin-top: var(--status-bar-height);margin-bottom: var(--status-bar-height);">
|
|
|
+ <view class="status_bar" v-if="deviceCode"></view>
|
|
|
+ <view class="aaa" v-if="deviceCode" style="margin-top: var(--status-bar-height);margin-bottom: var(--status-bar-height);">
|
|
|
<uni-nav-bar title="" height="var(--status-bar-height)" left-icon="left" backgroundColor="#F35546" color="#fff" @clickLeft="webviewback"></uni-nav-bar>
|
|
|
</view>
|
|
|
- <!-- <view class="" @click="webviewback" style="z-index: 1;position: absolute;">
|
|
|
- 我是来展位的
|
|
|
- </view> -->
|
|
|
<!-- #endif -->
|
|
|
<view class="" v-if="deviceCode">
|
|
|
<!-- <web-view :src="h5url"></web-view> -->
|
|
|
<!-- <web-view style="position: absolute; top: 100px;z-index: 2;" src="https://openapiweb.slaaplekker.cn/reportH5?accessToken=9f36cea4a4f64ba8bfb680ff98d98c1b&sn=289935886000036"></web-view> -->
|
|
|
- <web-view ref="webview" v-if="h5url" style="position: absolute; top: 100px;z-index: 2;" :src="h5url" @message="bbb"></web-view>
|
|
|
+ <web-view ref="webview" v-if="h5url" style="position: absolute; top: 100px;z-index: 2;" :src="h5url"></web-view>
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- </page-container> -->
|
|
|
+<!--
|
|
|
<van-popup :show="showDayPicker" position="bottom">
|
|
|
<van-datetime-picker @cancel="showDayPicker=false" @confirm="onConfirm" :value="currentDay" type="date" />
|
|
|
- <!-- :min-date="minDate" -->
|
|
|
- </van-popup>
|
|
|
+ </van-popup> -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -346,9 +341,6 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- bbb(e){
|
|
|
- console.log(e,'我是刚触发得事件')
|
|
|
- },
|
|
|
webviewback(){
|
|
|
uni.reLaunch({
|
|
|
url: '/pages/index/index'
|
|
@@ -372,7 +364,7 @@
|
|
|
setTimeout(function() {
|
|
|
const wv = currentWebview.children()[0];
|
|
|
wv.setStyle({
|
|
|
- top: 80, //设置web-view距离顶部的距离以及自己的高度,单位为px
|
|
|
+ top: 68, //设置web-view距离顶部的距离以及自己的高度,单位为px
|
|
|
height: height
|
|
|
});
|
|
|
}, 1000); //如页面初始化调用需要写延迟
|