<template>
	<view class="container">
		<view style="color: #fff;">
			<tn-nav-bar backgroundColor="#26B3A0" :bottomShadow="false">提现结果</tn-nav-bar>
		</view>
		<view class="z_tabs" :style="{ marginTop: tobheight + 'px' }"></view>
		<view class="content" :style="{}">
			<view class="topIcon">
				<icon :type="detail.status==2?'error':detail.status==0?'info':'success'" size="54"
					:color="detail.status==2?'red':detail.status==0?'orange':'#26B3A0'" />
				<view class="txt" :style="{color:detail.status==2?'red':detail.status==0?'orange':'#26B3A0'}">
					{{detail.status==2?'提现审核失败':detail.status==0?'提现待审核':'提现审核成功'}}
				</view>
			</view>


			<view class="" v-if="detail.status">
				<view class="line">
				</view>
				<view class="sunTitle">
					反馈内容
				</view>

				<view class="content2">
					{{detail.feedback_reason}}
				</view>
				<view class="sunTitle">
					反馈图片
				</view>

				<view class="chooscontainer">
					<view class="addpicall" v-for="(item,index) in pic_url" :key="index">
						<image style="width: 184rpx;height:186rpx;border-radius: 20rpx;" @click="previewImg(item)"
							:src="item" mode="aspectFill"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tobheight: 45,
				detail: {},
				pic_url: []
			}
		},
		computed: {

		},
		onLoad() {
			this.detail = getApp().withDrawRes
			this.pic_url = getApp().withDrawRes.feedback_image.split(',')
			console.log('提现结果', this.detail);
		},
		methods: {
			//点击预览图片
			previewImg(item) {
				uni.previewImage({
					current: item,
					urls: this.pic_url, //存放图片的数组
					loop: true,
					indicator: 'default'
				})
			},
		}
	}
</script>

<style lang="scss">
	@import './index.scss';
</style>