Prechádzať zdrojové kódy

feat: 添加积分到账提示信息,优化消息组件和上传功能的逻辑

EvilDragon 1 mesiac pred
rodič
commit
d405909645

+ 3 - 0
packages/app/src/core/libs/messages.ts

@@ -1,6 +1,9 @@
 export const messages = {
   home: { shareTitle: '筑巢荟' },
   moment: { imageNotExist: '请上传图片' },
+  messages: {
+    pointNotice: '确认后,积分即刻到账,如有问题请驳回,联系材料商/平台客服,修改后再次确认',
+  },
   mine: {
     authentication: {
       channelSourceErrorText: '请选择来源',

+ 1 - 0
packages/app/src/pages/common/components/coupons-selector.vue

@@ -24,6 +24,7 @@ const { alert } = useMessage()
 const tab = ref(0)
 const query = ref<{ userId: number; available?: boolean }>({
   userId: userInfo.value.userId,
+  available: true,
 })
 const request = computed(() =>
   props.type === 'points'

+ 2 - 1
packages/app/src/pages/messages/components/message-card.vue

@@ -9,6 +9,7 @@ import { getPointsCoupons } from '../../../core/libs/requests'
 import { getMessageType } from '../../../core/libs/message-types'
 import { useRouter } from '../../../core/utils/router'
 import ButtonEvo from '@/components/button-evo.vue'
+import { messages } from '../../../core/libs/messages'
 
 const props = withDefaults(defineProps<{ options?: Message }>(), {})
 const emits = defineEmits<{
@@ -120,7 +121,7 @@ onMounted(async () => {
             "
           >
             <span class="text-black/40">
-              确认积分后,即刻到账,如有问题请驳回,联系材料商修改积分后再次确认
+              {{ messages.messages.pointNotice }}
             </span>
           </template>
           <template

+ 1 - 0
packages/app/src/pages/publish/moment/index.vue

@@ -184,6 +184,7 @@ onLoad(async (query: { circleType: '1' | '2' }) => {
     <wd-upload
       :file-list="fileList"
       image-mode="aspectFill"
+      accept="media"
       :action="action"
       :multiple="true"
       :limit="9"