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: { methods: {
toServiceList(item) { 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() { getList() {

View File

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

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="service"> <div class="service">
<div class="service-list"> <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"> <div class="service-item__wrapper">
<h2>{{ item.processName }}</h2> <h2>{{ item.processName }}</h2>
<i class="iconfont">&#xe6ae;</i> <i class="iconfont">&#xe6ae;</i>

View File

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

View File

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