From a5a91019acf0c32629d52a31643acedd9b6db34c Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Mon, 15 Sep 2025 23:11:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85):=20?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=8A=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改页面标题为"求职订单详情" - 优化头像显示逻辑,增加默认图片 - 修复订单类型判断逻辑错误 - 新增师傅简历信息展示和企业信息展示模块 - 添加联系师傅和企业功能 - 优化图片加载失败时的默认显示 --- pages.json | 2 +- pages/order/component/enterprise.vue | 2 +- pages/order/component/master.vue | 2 +- pages_subpack/job-order-detail/index.vue | 110 ++++++++++++++++++++++++++++--- pages_subpack/order-detail/boss.vue | 2 +- pages_subpack/order-detail/index.vue | 89 ++++++++++++++++++++++++- pages_subpack/pay/index.vue | 13 ++-- pages_subpack/payment/index.vue | 8 +-- 8 files changed, 205 insertions(+), 23 deletions(-) diff --git a/pages.json b/pages.json index 644bc07..3e94c64 100644 --- a/pages.json +++ b/pages.json @@ -201,7 +201,7 @@ { "path": "job-order-detail/index", "style": { - "navigationBarTitleText": "聘用订单详情", + "navigationBarTitleText": "求职订单详情", "navigationStyle":"default", "navigationBarBackgroundColor": "#FF7A31", "navigationBarTextStyle": "white" diff --git a/pages/order/component/enterprise.vue b/pages/order/component/enterprise.vue index 3348464..1646e62 100644 --- a/pages/order/component/enterprise.vue +++ b/pages/order/component/enterprise.vue @@ -24,7 +24,7 @@ - + {{items.title}} diff --git a/pages/order/component/master.vue b/pages/order/component/master.vue index 3ac4171..300b238 100644 --- a/pages/order/component/master.vue +++ b/pages/order/component/master.vue @@ -26,7 +26,7 @@ - diff --git a/pages_subpack/job-order-detail/index.vue b/pages_subpack/job-order-detail/index.vue index 9bd5256..1d636c0 100644 --- a/pages_subpack/job-order-detail/index.vue +++ b/pages_subpack/job-order-detail/index.vue @@ -241,15 +241,59 @@ - - + + + + + + + + + 企业信息 + + + + + 公司名称:{{obj.employAuthenticationCompany && obj.employAuthenticationCompany.name || obj.workName || '暂未'}} +
+ 公司地址:{{obj.employAuthenticationCompany && obj.employAuthenticationCompany.address || obj.workAddress || '暂未'}} +
+ 所属行业:{{obj.employAuthenticationCompany && obj.employAuthenticationCompany.industryName || '暂未'}} +
+ 招聘联系人:{{obj.employAuthenticationPerson && obj.employAuthenticationPerson.name || '暂未'}} +
+ 联系方式:{{obj.employAuthenticationPerson && obj.employAuthenticationPerson.phone || '暂未'}} + + 复制 + +
+ + 工作地址:{{obj.workAddress || '暂未'}} + + 复制 + + +
+ + + + 联系企业 + + +
+
+ @@ -295,13 +339,13 @@ // type != 1: 企业招聘师傅,师傅接受后企业跳转保险页面 if (that.obj && !that.obj.orderStatusSeek && that.obj.status > 0 && that.obj.status < 4) { // 如果是个人发布求职(type == 0),师傅视角(type存在)才跳转 - if (that.obj.type == 0 && that.type) { + if (that.obj.type == 1 && that.type) { uni.navigateTo({ url: "/pages_subpack/payment/index?id=" + that.orderId }) } // 如果是企业招聘师傅(type != 0),企业视角(!type)才跳转 - else if (that.obj.type != 0 && !that.type) { + else if (that.obj.type != 1 && !that.type) { uni.navigateTo({ url: "/pages_subpack/payment/index?id=" + that.orderId }) @@ -423,9 +467,59 @@ } }) }, + + // 拨打师傅电话 + callMaster() { + const phone = this.obj.employResume && this.obj.employResume.phone; + if (phone) { + uni.makePhoneCall({ + phoneNumber: phone, + fail: (err) => { + console.error('拨打电话失败', err); + uni.showToast({ + title: '拨打电话失败', + icon: 'none' + }); + } + }); + } else { + uni.showToast({ + title: '师傅电话号码不存在', + icon: 'none' + }); + } + }, + + // 拨打企业联系人电话 + callCompany() { + const phone = this.obj.employAuthenticationPerson && this.obj.employAuthenticationPerson.phone; + if (phone) { + uni.makePhoneCall({ + phoneNumber: phone, + fail: (err) => { + console.error('拨打电话失败', err); + uni.showToast({ + title: '拨打电话失败', + icon: 'none' + }); + } + }); + } else { + uni.showToast({ + title: '企业联系人电话号码不存在', + icon: 'none' + }); + } + }, } } \ No newline at end of file diff --git a/pages_subpack/order-detail/boss.vue b/pages_subpack/order-detail/boss.vue index 2b7acc8..1b8eda3 100644 --- a/pages_subpack/order-detail/boss.vue +++ b/pages_subpack/order-detail/boss.vue @@ -359,7 +359,7 @@ // 企业招聘师傅,师傅接受之后,企业进入订单详情会跳转到支付保险的页面 // 判断条件:是企业视角(type存在)且orderStatusSeek没有值且订单状态在合适范围内 if (that.type && that.obj && !that.obj.orderStatusSeek - && that.obj.type == 1 + && that.obj.type == 0 && that.obj.status > 0 && that.obj.status < 4) { uni.navigateTo({ url: "/pages_subpack/payment/index?id=" + that.orderId diff --git a/pages_subpack/order-detail/index.vue b/pages_subpack/order-detail/index.vue index d9edc8d..2ae6042 100644 --- a/pages_subpack/order-detail/index.vue +++ b/pages_subpack/order-detail/index.vue @@ -169,6 +169,76 @@ + + + + + + + 师傅简历信息 + + + + + + + + + + {{obj.employResume.name || obj.hanHaiMember.nickName || '暂未'}} + {{obj.employResume.sex==1?"男":"女"}}-{{obj.employResume.nation || "未知"}}族-{{obj.employResume.age || '未知'}}岁 + + + + + 联系他 + + + + + + 联系电话 + {{obj.employResume.phone || '暂未'}} + + + 期望薪资 + {{obj.employResume.salaryMin}}-{{obj.employResume.salaryMax}}k + 暂未 + + + 期望工作地址 + {{obj.employResume.address || '暂未'}} + + + 支付方式偏好 + 先付后试用 + 先试用后支付 + 暂未 + + + 专业类别 + {{obj.employResume.categoryOneName || '暂未'}} + + + + + + 个人简介 + + + {{obj.employResume.brief}} + + + + 接单时间:{{obj.createTime}} + + + + @@ -208,7 +278,7 @@ let that = this // 如果是求职者且orderStatusSeek没有值,跳转到保险页面 if (that.obj && !that.obj.orderStatusSeek && - that.obj.type == 0 && + that.obj.type == 1 && that.obj.status > 0 && that.obj.status < 4) { uni.navigateTo({ url: "/pages_subpack/payment/index?id=" + that.orderId @@ -297,9 +367,26 @@ const day = String(date.getDate()).padStart(2, '0'); return `${year}-${month}-${day}`; }, + onCustomerService(phone) { + uni.makePhoneCall({ + phoneNumber: phone, + success: () => { + console.log("拨打成功"); + }, + fail: (err) => { + console.error("拨打失败", err); + }, + }) + }, } } \ No newline at end of file diff --git a/pages_subpack/pay/index.vue b/pages_subpack/pay/index.vue index 4245580..b91e555 100644 --- a/pages_subpack/pay/index.vue +++ b/pages_subpack/pay/index.vue @@ -3,7 +3,8 @@ - + @@ -15,14 +16,14 @@ - + {{ detail.employResume ? detail.employResume.name : detail.workUser }} {{ detail.employResume ? detail.employResume.phone : detail.workPhone }} - + {{ detail.employResume ? detail.employResume.name : detail.workUser }} @@ -44,7 +45,7 @@ - + 师傅试工交通费用 @@ -76,14 +77,14 @@ - + 账户余额 (余额:¥{{ amount }}) - + 微信支付 diff --git a/pages_subpack/payment/index.vue b/pages_subpack/payment/index.vue index 3f9909c..04d575c 100644 --- a/pages_subpack/payment/index.vue +++ b/pages_subpack/payment/index.vue @@ -5,7 +5,7 @@ + items.employJob.image || items.workHeadImg || items.jobHeadImg || '@/static/image/user.png'" mode="aspectFill"> {{items.title}} @@ -16,7 +16,7 @@ - + {{items.workName}} {{items.workPhone}} @@ -42,14 +42,14 @@ - + 账户余额 (余额:¥{{myMoney}}) - + 微信支付