|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="h100vh page-bg-color">
|
|
|
- <u-navbar :customBack="handleBackHome" :title="typeLabel[currentType]"></u-navbar>
|
|
|
+ <u-navbar v-if="showNavbar" :customBack="handleBackHome" :title="typeLabel[currentType]"></u-navbar>
|
|
|
<view class="workflow-page" :style="{height: `calc(100vh - ${diStatusBarHeight}px - 48px)`}">
|
|
|
<view class="workflow-main">
|
|
|
<start-workflow v-if="currentType === 'start'"></start-workflow>
|
|
@@ -11,6 +11,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ // import wx from "weixin-js-sdk";
|
|
|
import startWorkflow from './startWorkflow/startWorkflow'
|
|
|
import approveCenter from './approveCenter/index'
|
|
|
import constant from '@/utils/constant.js'
|
|
@@ -18,6 +19,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
currentType: 'start',
|
|
|
+ showNavbar:true,
|
|
|
typeLabel: {
|
|
|
start: '发起申请',
|
|
|
myLaunch: '我发起的',
|
|
@@ -32,8 +34,15 @@
|
|
|
onLoad(options) {
|
|
|
this.diStatusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
|
|
this.currentType = options.type
|
|
|
- console.log('类型',options.type)
|
|
|
+ if(options?.mpType){
|
|
|
+ this.showNavbar=false
|
|
|
+ }
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: this.typeLabel[this.currentType] || ''
|
|
|
+ });
|
|
|
+ // console.log('类型',options.type)
|
|
|
},
|
|
|
+
|
|
|
components: {
|
|
|
startWorkflow,
|
|
|
approveCenter
|
|
@@ -43,18 +52,18 @@
|
|
|
console.log('000000')
|
|
|
let url=constant.host()
|
|
|
window.parent.postMessage('/pages/index/index',url+'/mobile/pages/flow/flow')
|
|
|
- try {
|
|
|
- uni.webView.postMessage({
|
|
|
- data: {
|
|
|
- action: '/pages/index/index'
|
|
|
- }
|
|
|
- });
|
|
|
- } catch (error) {
|
|
|
- console.warn('unipostMessage',error)
|
|
|
- }
|
|
|
-
|
|
|
- // uni.switchTab({
|
|
|
- // url: '/pages/home/home'
|
|
|
+ // try {
|
|
|
+ // console.log('unipostMessage')
|
|
|
+ // uni.webView.postMessage({
|
|
|
+ // data: {
|
|
|
+ // action: '/pages/index/index'
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // } catch (error) {
|
|
|
+ // console.warn('unipostMessage',error)
|
|
|
+ // }
|
|
|
+ // uni.switchTab({
|
|
|
+ // url: '/pages/index/index'
|
|
|
// })
|
|
|
}
|
|
|
}
|