zhb hai 2 meses
pai
achega
fe8ecbb841

+ 5 - 11
components/cwg-empty-state.vue

@@ -2,22 +2,16 @@
   <view class="empty-state">
     <image class="img" src="/static/images/undraw.png" alt="" />
     <view class="r">
-      <view class="title">{{ t('Documentary.tradingCenter.item143') }}</view>
+      <view class="title" v-if="title" v-t="title" />
+      <view class="title" v-else v-t="'Documentary.tradingCenter.item143'" />
     </view>
   </view>
 </template>
 
 <script setup lang="ts">
-import { useI18n } from 'vue-i18n';
-const { t } = useI18n();
-withDefaults(
-  defineProps<{
-    text?: string;
-  }>(),
-  {
-    text: "",
-  }
-);
+const props = defineProps({
+  title: { type: String, default: '' }
+});
 </script>
 
 <style scoped lang="scss">

+ 1 - 2
pages/activities/monthly-list.vue

@@ -5,7 +5,7 @@
         <view id="custom_history" class="">
             <view class="main-content">
                 <!-- 无任务列表提示 -->
-                <cwg-empty-state v-if="!tableData || tableData.length === 0" />
+                <cwg-empty-state v-if="!tableData || tableData.length === 0" title="UtaskList.item12" />
                 <!-- 数据卡片展示 -->
                 <view class="outer-card" v-for="(item, index) in tableData" :key="index"
                     v-show="tableData && tableData.length > 0">
@@ -302,7 +302,6 @@ const withdrawTask = async (id: number) => {
         try {
             const res = await activityApi.UcoinWithdraw({ id })
             if (res.code == Code.StatusOK) {
-                uni.showToast({ title: t("Msg.Success"), icon: "success" })
                 searchFunc()
             } else {
                 uni.showToast({ title: res.msg, icon: "none" })

+ 1 - 3
pages/activities/surplus-list.vue

@@ -5,8 +5,7 @@
 
             <view class="main-content">
                 <!-- 无任务列表提示 -->
-                <cwg-empty-state v-if="!tableData || tableData.length === 0" />
-
+                <cwg-empty-state v-if="!tableData || tableData.length === 0" title="UtaskList.item12" />
                 <!-- 数据卡片展示 -->
                 <view class="outer-card" v-for="(item, index) in tableData" :key="index"
                     v-show="tableData && tableData.length > 0">
@@ -294,7 +293,6 @@ const searchFunc = async () => {
     if (res.code == Code.StatusOK) {
         tableData.value = res.data
         calculateCardData()
-        uni.showToast({ title: t("Msg.SearchSuccess"), icon: "success" })
         pictLoading.value = false
         flag.value = false
     } else {