调整webView,新增关闭按钮
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- <video src="https://t12.cdn2020.com:12337/video/m3u8/2021/10/11/d647a87d/index.m3u8"></video> -->
|
||||
<view class="header">
|
||||
<view class="banner">
|
||||
<u-swiper
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<view class="btns-item btns-red" @click="onRefused(item.business_order_transfer_id)">拒绝</view>
|
||||
<view class="btns-item btns-border" @click="onAgree(item.business_order_transfer_id)">接收</view>
|
||||
</block>
|
||||
<view class="btns-item" @click="$Router.push({name: 'OrderInfo', params: {orderId: item.business_order_transfer_id}})">查看</view>
|
||||
<view class="btns-item" @click="$Router.push({name: 'OrderInfo', params: {orderId: item.order.business_order_id}})">查看</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -169,6 +169,9 @@
|
||||
status: this.tabs[this.tabsCurrent].val,
|
||||
type : this.type
|
||||
}).then(res => {
|
||||
|
||||
console.log(res)
|
||||
|
||||
let { data } = res;
|
||||
this.orders = data
|
||||
}).catch(err => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view>
|
||||
<web-view :src="webUrl" @message="onMessage"></web-view>
|
||||
<web-view :src="webUrl"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -14,16 +14,15 @@
|
||||
created() {
|
||||
this.webUrl = this.$Route.query.url
|
||||
},
|
||||
methods: {
|
||||
onMessage(e){
|
||||
let { data } = e.detail
|
||||
data.map(val => {
|
||||
if(val.type === 'back'){
|
||||
this.$Route.back()
|
||||
return
|
||||
}
|
||||
})
|
||||
}
|
||||
onNavigationBarButtonTap() {
|
||||
let pages = getCurrentPages()
|
||||
let page = pages[pages.length - 1];
|
||||
let currentPages = page.$getAppWebview()
|
||||
let children=currentPages.children()
|
||||
children[0].close()
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack()
|
||||
},0)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<view class="qrcode-column">
|
||||
<l-painter class="qrcode-src">
|
||||
<l-painter-qrcode
|
||||
:text="'https://app.douhuofalv.com/app?invite_code=' + invite"
|
||||
:text="'https://app.douhuofalv.com?invite_code=' + invite"
|
||||
css="width: 250rpx; height: 250rpx;"
|
||||
/>
|
||||
</l-painter>
|
||||
@@ -126,7 +126,7 @@
|
||||
},
|
||||
views: [
|
||||
{
|
||||
text: "https://app.douhuofalv.com/app?invite_code=" + this.invite,
|
||||
text: "https://app.douhuofalv.com?invite_code=" + this.invite,
|
||||
type: "qrcode",
|
||||
css: {
|
||||
width: "220rpx",
|
||||
|
||||
Reference in New Issue
Block a user