shish пре 3 година
родитељ
комит
ffc74dcaca
1 измењених фајлова са 26 додато и 50 уклоњено
  1. 26 50
      hdApp/src/pagesStore/me/withdraw.vue

+ 26 - 50
hdApp/src/pagesStore/me/withdraw.vue

@@ -1,31 +1,32 @@
 <template>
-	<div>
+	<view class="app-content">
 		<block v-if="!$util.isEmpty(list.data)">
 			<t-table :headerBackgroundColor="'#F0F2F6'">
 				<t-tr header>
-					<t-th v-for="(item, index) in columns" :key="index" :align="item.align">
-						{{ item.name }}
-					</t-th>
+					<t-th><view style="width:150upx;">申请时间</view></t-th>
+					<t-th>到账时间</t-th>
+					<t-th>提现</t-th>
+					<t-th>实到</t-th>
+					<t-th>状态</t-th>
 				</t-tr>
 				<t-tr v-for="(item, index) in list.data" :key="index">
-					<t-td
-						v-for="(column, colIndex) in columns"
-						:key="colIndex"
-						:align="column.align"
-						:color="column.color"
-					>
-						<view>
-							{{ item[column.dataIndex] || "" }}
+					<t-td>
+						<view style="width:150upx;">
+							<view>{{item.addTime.substr(5,11)}}</view>
+							<view>{{item.ptStyle==1?'零售':'批发'}}</view>
 						</view>
-					</t-td>
+						</t-td>
+					<t-td> <view>{{item.updateTime.substr(5,11)}}</view> </t-td>
+					<t-td> <view>{{item.amount}}</view> </t-td>
+					<t-td> <view>{{item.beAmount}}</view> </t-td>
+					<t-td> <view>{{item.status==1?'处理中':item.status==2?'已提现':'失败'}}</view> </t-td>
 				</t-tr>
 			</t-table>
 		</block>
 		<block v-else>
 			<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
 		</block>
-    <!-- <kd-entrance></kd-entrance> -->
-	</div>
+	</view>
 </template>
 
 <script>
@@ -40,45 +41,20 @@ export default {
 	mixins:[list],
 	data() {
 		return {
-			columns: [
-				{
-					name: "提现时间",
-					dataIndex: "updateTime",
-					color: "info",
-					align: "center"
-				},
-				{
-					name: "提现金额",
-					dataIndex: "amount",
-					color: "info",
-					align: "center"
-				},
-				{
-					name: "状态",
-					dataIndex: "statusText",
-					color: "info",
-					align: "center"
-				}
-			],
+
 		};
 	},
 	methods: {
 		async init(){
-			 uni.showLoading({
-                    title: '加载中'
-                });
-				try {
-				const res = await withdrawCashList({
-					page:this.list.page
-				})
-				res.data.list  = res.data.list.map(i=>({
-					...i,
-					statusText: i.status ==1?'待处理':i.status ==2?'已完成':'未通过'				  
-				}))
-			   this.completes(res)
-              } finally {
-                 uni.hideLoading(); 
-              }
+			uni.showLoading({ title: '加载中' })
+			try {
+			const res = await withdrawCashList({
+				page:this.list.page
+			})
+			this.completes(res)
+			} finally {
+				uni.hideLoading(); 
+			}
 		}
 	},
 	async onPullDownRefresh() {