From c743612b8129a6221c13b865fcd0b112b84afc38 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 19 八月 2025 15:25:58 +0800 Subject: [PATCH] fix: bug --- apps/bMiniApp/src/components/JobDetailContent/components/curriculumView.vue | 14 +++----------- apps/cMiniApp/project.config.json | 4 ++-- packages/components/src/Image/PreviewImage.vue | 16 ++++++++++++++-- packages/components/src/Card/FlexJobCard.vue | 2 +- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/apps/bMiniApp/src/components/JobDetailContent/components/curriculumView.vue b/apps/bMiniApp/src/components/JobDetailContent/components/curriculumView.vue index 6b4a5f0..7ff1a04 100644 --- a/apps/bMiniApp/src/components/JobDetailContent/components/curriculumView.vue +++ b/apps/bMiniApp/src/components/JobDetailContent/components/curriculumView.vue @@ -23,15 +23,8 @@ </CurriculumViewItem> </div> </CellChunk> - <CellChunk title="璧勬牸璇佷功"> - <nut-grid - square - :column-num="3" - :border="false" - :gutter="20" - v-if="_userCredentials.length > 0" - class="pro-img-grid" - > + <CellChunk title="璧勬牸璇佷功" v-if="_userCredentials.length > 0"> + <nut-grid square :column-num="3" :border="false" :gutter="20" class="pro-img-grid"> <nut-grid-item v-for="(item, index) in _userCredentials" :key="item" @@ -44,8 +37,7 @@ </nut-grid> </CellChunk> <CellChunk title="宸ヤ綔缁忛獙"> - <CurriculumViewItem label="宸ヤ綔骞撮檺锛�" :text="workSeniority ? `${workSeniority}骞碻 : ''"> - </CurriculumViewItem> + <CurriculumViewItem label="宸ヤ綔骞撮檺锛�" :text="workSeniority"> </CurriculumViewItem> <CurriculumViewItem label="宸ヤ綔缁忛獙锛�" :text="workExperience"> </CurriculumViewItem> </CellChunk> <CellChunk title="璇︾粏淇℃伅"> diff --git a/apps/cMiniApp/project.config.json b/apps/cMiniApp/project.config.json index 1d057ff..cc53dd5 100644 --- a/apps/cMiniApp/project.config.json +++ b/apps/cMiniApp/project.config.json @@ -3,8 +3,8 @@ "description": "", "setting": { "urlCheck": false, - "es6": true, - "enhance": true, + "es6": false, + "enhance": false, "postcss": false, "preloadBackgroundData": false, "minified": false, diff --git a/packages/components/src/Card/FlexJobCard.vue b/packages/components/src/Card/FlexJobCard.vue index 6860478..ec87470 100644 --- a/packages/components/src/Card/FlexJobCard.vue +++ b/packages/components/src/Card/FlexJobCard.vue @@ -14,7 +14,7 @@ {{ workExperience }} </div> <div class="flexJob-card-done-detail" v-if="showDoneDetail"> - <div class="flexJob-card-done-detail-item">{{ workSeniority && `${workSeniority}骞碻 }}</div> + <div class="flexJob-card-done-detail-item">{{ workSeniority }}</div> <!-- <div class="flexJob-card-done-detail-item">{{ '鍦ㄣ�屽畞娉㈤浄杩.閰掑簵銆嶏紝鍋氳繃瀹㈡埧鏈嶅姟鍛�' }}</div> --> </div> <div class="flexJob-card-footer"> diff --git a/packages/components/src/Image/PreviewImage.vue b/packages/components/src/Image/PreviewImage.vue index 7104b41..494d302 100644 --- a/packages/components/src/Image/PreviewImage.vue +++ b/packages/components/src/Image/PreviewImage.vue @@ -1,6 +1,12 @@ <template> <div :class="['preview-image-wrapper', wrapperClassName]"> - <Image @tap="handeClick" :mode="mode" :src="src" v-bind="$attrs" /> + <!-- <Image @tap="handeClick" :mode="mode" :src="src" v-bind="$attrs" /> --> + <div + class="preview-image-div" + :style="{ backgroundImage: `url(${src})` }" + v-bind="$attrs" + @tap="handeClick" + ></div> </div> </template> @@ -29,7 +35,6 @@ () => props.src, () => { if (props.src) { - console.log('props.src: ', props.src); Taro.getImageInfo({ src: props.src, success(result) { @@ -64,5 +69,12 @@ width: 100%; height: 100%; overflow: hidden; + + .preview-image-div { + width: 100%; + height: 100%; + background-size: cover; + background-position: center; + } } </style> -- Gitblit v1.9.1