From 7f068b35be355bbbc823faa38c520f9a68b241f8 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Wed, 3 Jun 2026 11:05:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=81=93=E5=85=B7=E5=95=86=E5=BA=97?= =?UTF-8?q?=E3=80=81=E8=B5=84=E6=BA=90=E9=85=8D=E7=BD=AE):=20=E9=81=93?= =?UTF-8?q?=E5=85=B7=E5=95=86=E5=93=81=E7=B1=BB=E5=9E=8B=E5=92=8C=E9=81=93?= =?UTF-8?q?=E5=85=B7=E7=B1=BB=E5=9E=8B=E6=96=B0=E5=A2=9E=E2=80=9CCP?= =?UTF-8?q?=E6=88=92=E6=8C=87=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/messages/pages/en.js | 4 +- src/lang/messages/pages/zh.js | 4 +- src/views/props/props-store/form-edit.vue | 70 +++++++++++++++++++++++ 3 files changed, 76 insertions(+), 2 deletions(-) diff --git a/src/lang/messages/pages/en.js b/src/lang/messages/pages/en.js index b151eed..7130cb8 100644 --- a/src/lang/messages/pages/en.js +++ b/src/lang/messages/pages/en.js @@ -4066,6 +4066,7 @@ export default { quantityOrDays: 'Quantity / Days' }, resourceType: { + cpRing: 'CP Ring', avatarFrame: 'Avatar Frame', ride: 'Ride', nobleVip: 'Noble', @@ -6797,7 +6798,8 @@ export default { LAYOUT: 'Decoration', FLOAT_PICTURE: 'Floating Image', CHAT_BUBBLE: 'Chat Bubble', - DATA_CARD: 'Profile Card' + DATA_CARD: 'Profile Card', + CP_RING: 'CP Ring' }, currencyTypes: { GOLD: 'Gold', diff --git a/src/lang/messages/pages/zh.js b/src/lang/messages/pages/zh.js index 98e9aae..dc034ca 100644 --- a/src/lang/messages/pages/zh.js +++ b/src/lang/messages/pages/zh.js @@ -4063,6 +4063,7 @@ export default { quantityOrDays: '数量/天数' }, resourceType: { + cpRing: 'CP戒指', avatarFrame: '头像框', ride: '座驾', nobleVip: '贵族', @@ -6794,7 +6795,8 @@ export default { LAYOUT: '装扮', FLOAT_PICTURE: '飘窗', CHAT_BUBBLE: '聊天气泡', - DATA_CARD: '资料卡' + DATA_CARD: '资料卡', + CP_RING: 'CP戒指' }, currencyTypes: { GOLD: '金币', diff --git a/src/views/props/props-store/form-edit.vue b/src/views/props/props-store/form-edit.vue index c8be0aa..652ce10 100644 --- a/src/views/props/props-store/form-edit.vue +++ b/src/views/props/props-store/form-edit.vue @@ -244,6 +244,52 @@ {{ $t('pages.propsStore.action.changeResource') }} + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + + + + + + + + + + {{ $t('pages.propsStore.action.changeResource') }} + + @@ -436,6 +482,7 @@ export default { loginRewardsAmount: '', roomMaxMember: '', avatarFrameId: '', + cpRingId: '', chatBubbleId: '', carId: '', dataCardId: '' @@ -444,6 +491,7 @@ export default { tmpValidDays: [], tmpSourceIndex: '', tmpAvatarIndex: '', + tmpCpRingIndex: '', tmpDataCardIndex: '', tmpChatBubbleIndex: '', tmpFloatPictureIndex: '', @@ -458,6 +506,7 @@ export default { sourceSelect: {}, carSouceSelect: {}, avatarSouceSelect: {}, + cpRingSouceSelect: {}, dataCardSouceSelect: {}, chatBubbleSouceSelect: {}, @@ -468,6 +517,12 @@ export default { isChangeSource: false, list: [] }, + 'CP_RING': { + loading: false, + isLoadSourceTypeList: false, + isChangeSource: false, + list: [] + }, 'RIDE': { loading: false, isLoadSourceTypeList: false, @@ -570,12 +625,14 @@ export default { 'propsAbility.loginRewardsAmount': commonRules, 'propsAbility.roomMaxMember': commonRules, 'propsAbility.avatarFrameId': commonRules, + 'propsAbility.cpRingId': commonRules, 'propsAbility.carId': commonRules, 'propsAbility.chatBubbleId': commonRules, 'propsAbility.dataCardId': commonRules, tmpCarIndex: commonRules, tmpDataCardIndex: commonRules, tmpAvatarIndex: commonRules, + tmpCpRingIndex: commonRules, tmpChatBubbleIndex: commonRules, tmpFloatPictureIndex: commonRules, tmpSourceIndex: commonRules @@ -632,6 +689,15 @@ export default { } } + const cpRing = newVal.propsAbility.cpRing + if (cpRing) { + this.cpRingSouceSelect = { + id: cpRing.id, + cover: cpRing.cover, + sourceUrl: cpRing.sourceUrl + } + } + const chatBubble = newVal.propsAbility.chatBubble if (chatBubble) { this.chatBubbleSouceSelect = { @@ -681,6 +747,10 @@ export default { this.avatarSouceSelect = this.sourceMap['AVATAR_FRAME'].list[index] this.form.propsAbility.avatarFrameId = this.avatarSouceSelect.id }, + changeCpRingSource(index) { + this.cpRingSouceSelect = this.sourceMap['CP_RING'].list[index] + this.form.propsAbility.cpRingId = this.cpRingSouceSelect.id + }, changeDataCardSource(index) { this.dataCardSouceSelect = this.sourceMap['DATA_CARD'].list[index] this.form.propsAbility.dataCardId = this.dataCardSouceSelect.id