Quellcode durchsuchen

修复岗位对应的公司及负责人的图像展示问题

jialuyu vor 2 Wochen
Ursprung
Commit
25cb49be4f

+ 1 - 1
pages/jobdetail/index.vue

@@ -29,7 +29,7 @@
 
       <!-- HR 信息 -->
       <view class="section hr-section">
-        <image :src="jobInfo.companyAvatar || '/static/images/hr_avatar.svg'" class="hr-avatar" mode="aspectFill"></image>
+        <image :src="jobInfo.hrAvatar || jobInfo.companyAvatar || '/static/images/hr_avatar.svg'" class="hr-avatar" mode="aspectFill"></image>
         <view class="hr-content">
           <text class="hr-name">{{ jobInfo.companyName || '平台推荐' }}</text>
           <text class="hr-desc">人事负责人</text>

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/jobdetail/index.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/utils/request.js.map


+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/jobdetail/index.js

@@ -322,7 +322,7 @@ const _sfc_main = {
         i: common_vendor.t(jobInfo.value.recruitNum || 1),
         j: common_assets._imports_1$1,
         k: common_vendor.t(jobInfo.value.registrationEndDate ? jobInfo.value.registrationEndDate.split(" ")[0] : "长期有效"),
-        l: jobInfo.value.companyAvatar || "/static/images/hr_avatar.svg",
+        l: jobInfo.value.hrAvatar || jobInfo.value.companyAvatar || "/static/images/hr_avatar.svg",
         m: common_vendor.t(jobInfo.value.companyName || "平台推荐"),
         n: common_vendor.f(tags.value, (tag, k0, i0) => {
           return {

+ 1 - 1
unpackage/dist/dev/mp-weixin/utils/request.js

@@ -1,6 +1,6 @@
 "use strict";
 const common_vendor = require("../common/vendor.js");
-const BASE_URL = "http://106.14.104.158:8080";
+const BASE_URL = "http://localhost:8080";
 const UPLOAD_URL = BASE_URL;
 const request = (options) => {
   return new Promise((resolve, reject) => {

+ 2 - 2
utils/request.js

@@ -2,8 +2,8 @@
 // 根据环境配置 BASE_URL
 // 开发环境:改成你的本地 IP,如 'http://192.168.1.100:8080'
 // 生产环境:改成实际的服务器地址
-//const BASE_URL = 'http://localhost:8080';
-const BASE_URL = 'http://106.14.104.158:8080';
+const BASE_URL = 'http://localhost:8080';
+//const BASE_URL = 'http://106.14.104.158:8080';
 // OSS 文件上传基地址(与后端网关地址保持一致)
 const UPLOAD_URL = BASE_URL;
 

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.