shish 3 years ago
parent
commit
0df96fc95e

+ 4 - 1
ghsApp/src/api/cash/index.js

@@ -1,6 +1,9 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 
-//提现账号设置 shish 2021.3.27
+export const getInfo = data => {
+	return https.get('/cash/get-info', data)
+}
+
 export const cashUpdate = data => {
 	return https.get('/shop/cash-update', data)
 }

+ 1 - 0
ghsApp/src/pages.json

@@ -102,6 +102,7 @@
 			"root": "pagesStore",
 			"pages": [
 				{"path": "me/withdraw","style": {"navigationBarTitleText": "提现记录"}},
+				{"path": "me/cashInfo","style": {"navigationBarTitleText": "明细"}},
 				{"path": "me/income","style": {"navigationBarTitleText": "收入记录"}},
 				{"path": "me/expend","style": {"navigationBarTitleText": "支出记录"}},
 				{"path": "me/recharge","style": {"navigationBarTitleText": "充值"}},

+ 259 - 0
ghsApp/src/pagesStore/me/cashInfo.vue

@@ -0,0 +1,259 @@
+<template>
+	<view class="app-content">
+		<view class="info-content_box">
+			<view class="content-box price-detail">
+				<div class="module-com input-line-wrap">
+					<tui-list-cell class="line-cell" :hover="false">
+						<div class="tui-title">提现编号</div>
+						<div class="detail-price_box" style="font-size:28upx;">{{ detailInfo.orderSn }}</div>
+					</tui-list-cell>
+					<tui-list-cell class="line-cell" :hover="false">
+						<div class="tui-title">提现金额</div>
+						<div class="detail-price_box" style="font-size:28upx;">¥{{ detailInfo.amount?parseFloat(detailInfo.amount):0 }}</div>
+					</tui-list-cell>
+					<tui-list-cell class="line-cell" :hover="false">
+						<div class="tui-title">到账金额</div>
+						<div class="detail-price_box" style="font-size:28upx;">¥{{ detailInfo.beAmount?parseFloat(detailInfo.beAmount):0 }}</div>
+					</tui-list-cell>
+					<tui-list-cell class="line-cell" :hover="false">
+						<div class="tui-title">申请时间</div>
+						<div class="detail-price_box" style="font-size:28upx;">
+                            <text v-if="detailInfo.status==2">{{detailInfo.addTime.substr(0,16)}}</text><text v-else></text>
+                        </div>
+					</tui-list-cell>
+					<tui-list-cell class="line-cell" :hover="false">
+						<div class="tui-title">到账时间</div>
+						<div class="detail-price_box" style="font-size:28upx;">
+                            <text v-if="detailInfo.status==2">{{detailInfo.updateTime.substr(0,16)}}</text><text v-else></text>
+                        </div>
+					</tui-list-cell>
+					<tui-list-cell class="line-cell" :hover="false">
+						<div class="tui-title">状态</div>
+						<div class="detail-price_box" style="font-size:28upx;">{{detailInfo.status==1?'处理中':detailInfo.status==2?'已提现':'失败'}}</div>
+					</tui-list-cell>
+				</div>
+			</view>
+		</view>
+	</view>
+</template>
+<script>
+import productMins from "@/mixins/product";
+import TuiListCell from "@/components/plugin/list-cell";
+import ModalModule from "@/components/plugin/modal"
+import { getInfo } from '@/api/cash';
+export default {
+	name: "cashInfo",
+	components: {
+		TuiListCell,
+		ModalModule
+	},
+	mixins: [productMins],
+	data() {
+		return {
+			detailInfo: {}
+		};
+	},
+	methods: {
+		init() {
+			getInfo({id:this.option.id}).then(res=>{
+                if(res.code == 1){
+                    this.detailInfo = res.data.info ? res.data.info : []
+                }
+            })
+			
+		}
+	}
+};
+</script>
+
+<style lang="scss" scoped>
+.info-content_box {
+	padding: 0 20upx 100upx;
+	& > .title {
+		color: #666666;
+		font-size: 28upx;
+		padding: 30upx 3upx;
+	}
+	& .address-des_bx {
+		display: flex;
+		padding: 20upx 10upx 20upx 20upx;
+		& > view:nth-child(1) {
+			flex: 1;
+			margin-top: 10upx;
+			& > view:nth-child(1) {
+				color: #333333;
+				font-size: 32upx;
+				font-weight: bold;
+			}
+			& > view:nth-child(2) {
+				color: #666666;
+				font-size: 28upx;
+				font-weight: 400;
+				margin-top: 20upx;
+			}
+		}
+		& > view:nth-child(2) {
+			display: flex;
+			& .icondianhua1 {
+				font-size: 50upx;
+				color: #3385ff;
+				margin-left: 0upx;
+				margin-right:30upx;
+			}
+		}
+	}
+	.bills-info_box {
+		padding: 30upx 20upx 30upx;
+		// border-bottom: 1upx solid #EEEEEE;
+		& > .order-info_box {
+			display: flex;
+			align-items: center;
+			font-size: 26upx;
+			font-weight: 400;
+			margin-bottom: 5upx;
+			& > view:nth-child(1) {
+				color: #999999;
+				width: 135upx;
+				text-align: right;
+			}
+			& > view:nth-child(2) {
+				color: #333333;
+			}
+			& > .price {
+				flex: 1;
+				font-size: 30upx;
+				color: #333333;
+				display: flex;
+				align-items: center;
+				justify-content: flex-end;
+				& .iconxiangyou {
+					color: #999999;
+					font-size: 25upx;
+					margin-left: 12upx;
+				}
+			}
+		}
+	}
+	.content-box {
+		background-color: #ffffff;
+		border-radius: 10upx;
+	}
+	.commodity-view {
+		display: flex;
+		flex-direction: column;
+		.commodity-list {
+			padding: 20upx;
+			.commodity-item {
+				display: flex;
+				margin-bottom: 20upx;
+				.item-icon {
+					flex-shrink: 0;
+					width: 140upx;
+					height: 140upx;
+				}
+				.item-info {
+					display: flex;
+					flex-direction: column;
+					justify-content: center;
+					flex: 1;
+					margin-left: 20upx;
+					.info-line {
+						margin-bottom: 20upx;
+						display: flex;
+						justify-content: space-between;
+						align-items: flex-end;
+						.item-name {
+							color: #333333;
+							font-size:32upx;
+							font-weight: bold;
+						}
+						.item-price {
+							color: #333;
+							font-size: 22upx;
+							.price {
+								font-size: 30upx;
+								font-weight: bold;
+							}
+						}
+						.item-type {
+							color: #999;
+							font-size: 24upx;
+						}
+						.item-count {
+							color: #333333;
+							font-size: 28upx;
+						}
+					}
+				}
+			}
+		}
+		.summary-bar {
+			padding: 0 20upx;
+			height: 90upx;
+			display: flex;
+
+			align-items: center;
+			justify-content: space-between;
+			border-top: 1upx solid #eeeeee;
+			.operate-view {
+				display: flex;
+
+				align-items: center;
+				color: #3385ff;
+				font-size: 26upx;
+				.iconfont {
+					margin-right: 20upx;
+					font-size: 40upx;
+				}
+			}
+			.describe-view {
+				display: flex;
+
+				align-items: center;
+				color: #333;
+				font-size: 24upx;
+				.price {
+					font-weight: bold;
+					font-size: 36upx;
+				}
+			}
+		}
+	}
+	.shipping-address {
+		display: flex;
+		align-items: center;
+		margin-top: 20upx;
+		& > view:nth-child(1) {
+			color: #999999;
+			font-size: 28upx;
+			font-weight: 400;
+			display: inline-block;
+			padding: 30upx 0 30upx 20upx;
+			flex: 1;
+			& > text {
+				color: #333333;
+				font-weight: 600;
+			}
+		}
+		& > view:nth-child(2) {
+			font-size: 60upx;
+			color: #d6e7ff;
+			margin-right: 10upx;
+		}
+	}
+	.price-detail {
+		margin-top: 20upx;
+		margin-bottom: 20upx;
+	}
+	.detail-price_box {
+		color: #333333;
+		font-size: 22upx;
+		text-align: right;
+		flex: 1;
+		font-weight: 600;
+		&.red {
+			color: #ff2842;
+		}
+	}
+}
+</style>

+ 9 - 6
ghsApp/src/pagesStore/me/withdraw.vue

@@ -12,14 +12,14 @@
 				<t-tr v-for="(item, index) in list.data" :key="index">
 					<t-td>
 						<view style="width:150upx;">
-							<view>{{item.addTime.substr(5,11)}}</view>
-							<view>{{item.ptStyle==1?'零售':'批发'}}</view>
+							<view @click="getDetail(item.id)">{{item.addTime.substr(5,11)}}</view>
+							<view @click="getDetail(item.id)">{{item.ptStyle==1?'零售':'批发'}}</view>
 						</view>
 						</t-td>
-					<t-td> <view v-if="item.status==2">{{item.updateTime.substr(5,11)}}</view><view v-else></view> </t-td>
-					<t-td> <view>{{item.amount}}</view> </t-td>
-					<t-td> <view v-if="item.status==2">{{item.beAmount}}</view><view v-else></view> </t-td>
-					<t-td> <view>{{item.status==1?'处理中':item.status==2?'已提现':'失败'}}</view> </t-td>
+					<t-td> <view @click="getDetail(item.id)" v-if="item.status==2">{{item.updateTime.substr(5,11)}}</view><view v-else></view> </t-td>
+					<t-td> <view @click="getDetail(item.id)">{{item.amount}}</view> </t-td>
+					<t-td> <view @click="getDetail(item.id)" v-if="item.status==2">{{item.beAmount}}</view><view v-else></view> </t-td>
+					<t-td> <view @click="getDetail(item.id)">{{item.status==1?'处理中':item.status==2?'已提现':'失败'}}</view> </t-td>
 				</t-tr>
 			</t-table>
 		</block>
@@ -44,6 +44,9 @@ export default {
 		};
 	},
 	methods: {
+		getDetail(id){
+			this.$util.pageTo({url: '/pagesStore/me/cashInfo?id='+id})
+		},
 		async init(){
 			uni.showLoading({ title: '加载中' })
 			try {