From 509cc83ad66a7684a42620b448681de631d9f4b0 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Sun, 17 Mar 2024 21:23:28 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E4=BC=81=E4=B8=9A=E6=8B=9B=E5=B7=A5?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=A0=A1=E9=AA=8C2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/companyList/collectionList.vue | 24 ++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/components/companyList/collectionList.vue b/components/companyList/collectionList.vue index d354559..75dc880 100644 --- a/components/companyList/collectionList.vue +++ b/components/companyList/collectionList.vue @@ -56,6 +56,7 @@ import { dateFormat } from "../../untils/format.js"; import dictionary from '@/common/textdata.js'; +import { defaults } from "lodash"; export default { beforeCreate: function () { }, @@ -101,15 +102,20 @@ export default { }, goInfo: function (item) { // const isCan = this.noApply === false ? '0' : '1' - if(item.type == 0) { - uni.navigateTo({ - url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1` - }) - } else if(item.type == 1) { - uni.navigateTo({ - url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1` - }) - } + switch(item.type) { + case 0: + this.navTo(`/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1`) + break + case 1: + this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`) + break + case 2: + this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`) + break + default: + this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`) + } + }, getCity: function (val) { if (val) {