Browse Source

Merge branch 'feat/v20241110-同城联盟卡' into dev

GuYun-D 4 months ago
parent
commit
d852c3b0a9

+ 1 - 16
src/views/business/alliance/components/Buyers.vue

@@ -82,22 +82,7 @@ export default {
       try {
         this.listLoading = true
         const res = await getBuyerPurchaseByByIdApi(this.listQuery)
-        this.list =
-          [
-            {
-              id: 1,
-              allianceCardId: 1,
-              buyerUserId: 1,
-              buyerUserIdPromoters: 0,
-              buyerUserName: 'Eric',
-              buyerUserLogo: 'www.baidu.com',
-              state: 1,
-              cardDeduction: 100,
-              createTime: '2024-11-09 01:18:52',
-              updateTime: '2024-11-09 01:18:52',
-              deleted: 0
-            }
-          ] || res.data.list
+        this.list = res.data.list
         this.total = res.data.total
         this.listLoading = false
       } catch (error) {

+ 6 - 19
src/views/business/alliance/components/ConsumptionDialog.vue

@@ -3,14 +3,14 @@
     <div class="join-shop-list-container">
       <!-- 查询结果 -->
       <el-table v-loading="listLoading" element-loading-text="正在查询中..." :data="list" v-bind="{ stripe: true, size: 'small', border: true, highlightCurrentRow: true }">
-        <el-table-column prop="allianceCardId" label="联盟卡ID"  align="center" />
+        <el-table-column prop="allianceCardId" label="联盟卡ID" align="center" />
         <el-table-column prop="buyerUserId" label="购买者会员ID" align="center" />
-        <el-table-column prop="shopId" label="商家ID"  align="center" />
-        <el-table-column prop="shopName" label="商家名称"  align="center" />
-        <el-table-column prop="amount" label="消费金额"  align="center">
+        <el-table-column prop="shopId" label="商家ID" align="center" />
+        <el-table-column prop="shopName" label="商家名称" align="center" />
+        <el-table-column prop="amount" label="消费金额" align="center">
           <template slot-scope="scope">
             <el-tag size="mini" type="danger">¥{{ scope.row.amount }}</el-tag>
-        </template>
+          </template>
         </el-table-column>
         <el-table-column prop="createTime" label="消费时间" align="center" />
       </el-table>
@@ -66,20 +66,7 @@ export default {
       try {
         this.listLoading = true
         const res = await getConsumptionRecordByUserIdAndAllianceCardIdApi(this.listQuery)
-        this.list =
-          [
-            {
-              id: 1,
-              allianceCardId: 1,
-              buyerUserId: 1,
-              shopId: 1,
-              shopName: '牛鼎膳',
-              amount: 100,
-              createTime: '2024-11-09 01:44:05',
-              updateTime: '2024-11-09 01:44:05',
-              deleted: 0
-            }
-          ] || res.data.list
+        this.list = res.data.list
         this.total = res.data.total
         this.listLoading = false
       } catch (error) {