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