This commit is contained in:
changjinpeng
2022-03-07 16:12:34 +08:00
parent f042951e79
commit e13a398e6e
5 changed files with 20 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ export default {
methods: {
toServiceList(item) {
this.$linkTo(`./serviceList?id=${item.id}&title=${item.name}&subTitle=${item.desc}`)
this.$linkTo(`./list?id=${item.id}&title=${item.name}&subTitle=${item.desc}`)
},
getList() {

View File

@@ -996,9 +996,11 @@ export default {
.then((res) => {
if (res.code === 0) {
this.$toast('申请成功')
uni.reLaunch({
url: `./serviceResult?title=${this.info.processName}`,
})
setTimeout(() => {
uni.reLaunch({
url: `./result?title=${this.info.processName}`,
})
}, 600)
} else {
// this.$hideLoading()
}

View File

@@ -1,7 +1,7 @@
<template>
<div class="service">
<div class="service-list">
<div class="service-item" hover-class="bg-hover" @click="toDetail('./serviceNotice?id=' + item.id)" v-for="(item, index) in list" :key="index">
<div class="service-item" hover-class="bg-hover" @click="toDetail('./notice?id=' + item.id)" v-for="(item, index) in list" :key="index">
<div class="service-item__wrapper">
<h2>{{ item.processName }}</h2>
<i class="iconfont">&#xe6ae;</i>

View File

@@ -89,13 +89,13 @@ export default {
// },
toSubmit() {
this.$linkTo('./serviceForm?id=' + this.id, 'idNumber')
this.$linkTo('./form?id=' + this.id, 'idNumber')
},
},
onShareAppMessage() {
return {
title: this.title,
path: `./serviceNotice?id=${this.id}`,
path: `./notice?id=${this.id}`,
}
},
}

View File

@@ -1,5 +1,5 @@
<template>
<div class="service-result">
<div class="service-result" v-if="showPage">
<image src="/static/img/service-success.png" />
<h2>申请成功等待审批</h2>
<div class="text">
@@ -15,12 +15,19 @@
export default {
appName: '加载中...',
data() {
return {}
return {
showPage: false,
title: '',
}
},
onshow(query) {
onLoad(query) {
this.title = query.title
uni.setNavigationBarTitle({
title: query.title,
title: this.title,
})
if (this.title) {
this.showPage = true
}
},
methods: {