xgj 1 month ago
parent
commit
48f8417083
2 changed files with 3 additions and 4 deletions
  1. 1 1
      src/views/promotion/components/PerviewDetail.vue
  2. 2 3
      src/views/promotion/order.vue

+ 1 - 1
src/views/promotion/components/PerviewDetail.vue

@@ -75,7 +75,7 @@
             <el-descriptions-item label="手机号:">
               <span v-if="!detail?.archives?.accounts?.length">-</span>
               <span v-else v-for="(item, index) in detail?.archives?.accounts" :key="index" class="space-x-4">
-                <span>{{ item?.account || "-" }}</span>
+                <span v-if="item.type == 1">{{ item?.account || "-" }}</span>
               </span>
             </el-descriptions-item>
           </el-descriptions>

+ 2 - 3
src/views/promotion/order.vue

@@ -167,9 +167,8 @@
             <div>
               {{ row.archives?.name }}
             </div>
-            <div>
-              <div v-for="(item, index) in row.archives?.accounts" :key="index" class="space-x-4">
-                <!-- <span class="inline-block whitespace-nowrap w-[4em]">{{ accountTypes[item.type] }}</span> -->
+            <div v-for="(item, index) in row.archives.accounts" :key="index">
+              <div v-if="item.type == 1 && item.account">
                 <span>【{{ item.account }}】</span>
               </div>
             </div>