xuqiang 4 ani în urmă
părinte
comite
21d20762c2

+ 4 - 5
src/main/pc-space/src/views/user/CollectionOrder.vue

@@ -83,11 +83,10 @@
                 <el-table-column prop="id" label="订单编号" width="120"> </el-table-column>
                 <el-table-column prop="createdAt" label="成交时间" width="158"> </el-table-column>
                 <el-table-column prop="status" label="状态" width="108" :formatter="statusFormatter">
-                    <!-- <template slot-scope="scope">
-                        <div :style="{ color: 'red' }">
-                            {{ scope.row.status }}
-                        </div>
-                    </template> -->
+                    <template slot-scope="scope">
+                        <div :style="{ color: '#fdfb60' }" v-if="scope.row.status === 'FINISH'">已完成</div>
+                        <div :style="{ color: '#fdfb60' }" v-if="scope.row.status === 'PROCESSING'">交易中</div>
+                    </template>
                 </el-table-column>
                 <el-table-column fixed="right" label="操作">
                     <template slot-scope="scope">

+ 4 - 0
src/main/pc-space/src/views/user/PayRecord.vue

@@ -25,6 +25,10 @@
                 style="width: 100%; background: #1c1e26"
             >
                 <el-table-column prop="payMethod" label="支付类型" width="108" :formatter="statusFormatter">
+                    <template slot-scope="scope">
+                        <div :style="{ color: '#fdfb60' }" v-if="scope.row.payMethod === 'WEIXIN'">微信</div>
+                        <div :style="{ color: '#fdfb60' }" v-if="scope.row.payMethod === 'ALIPAY'">支付宝</div>
+                    </template>
                 </el-table-column>
                 <el-table-column prop="name" label="藏品信息" width="158">
                     <template slot-scope="scope">

+ 5 - 1
src/main/pc-space/src/views/user/TransactionOrdes.vue

@@ -24,7 +24,11 @@
                 :highlight-current-row="false"
                 style="width: 100%; background: #1c1e26"
             >
-                <el-table-column prop="payMethod" label="交易类型" width="148" :formatter="statusFormatter">
+                <el-table-column prop="payMethod" label="支付类型" width="148" :formatter="statusFormatter">
+                    <template slot-scope="scope">
+                        <div :style="{ color: '#fdfb60' }" v-if="scope.row.payMethod === 'WEIXIN'">微信</div>
+                        <div :style="{ color: '#fdfb60' }" v-if="scope.row.payMethod === 'ALIPAY'">支付宝</div>
+                    </template>
                 </el-table-column>
                 <el-table-column prop="name" label="藏品信息" width="178">
                     <template slot-scope="scope">