<template>
	<view>
		<view class="cmain">
			<view class="box order_detail" style="margin-top: 0px">
				<u-divider text="服务点扣除信息"></u-divider>
				<view class="item" style="padding-top: 0px">
					<text class="label">扣除用途</text>
					<text class="desc">商品上架</text>
				</view>
				<view class="item">
					<text class="label">订单号</text>
					<text class="desc omit">{{ item.tradeNo }}</text>
				</view>
				<view class="item">
					<text class="label">商品名称</text>
					<text class="desc">{{ item.goodsNames }}</text>
				</view>
				<view class="item">
					<text class="label">商铺名称</text>
					<text class="desc">{{ item.shopName }}</text>
				</view>			
				<view class="item">
					<text class="label">车牌号</text>
					<text class="desc">{{ item.veNo }}</text>
				</view>
				<view class="item">
					<text class="label">交易扣除点数</text>
					<text class="desc">-{{ item.amount }}</text>
				</view>
				<view class="item">
					<text class="label">扣除时间</text>
					<text class="desc">{{ item.recordTime }}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			item: {},
			param: {},
		};
	},
	onLoad(e) {
		if (e.id) {
			this.param.id = e.id
			this.http.request({
				url: '/level-one-server/app/WalletManage/getWalletRecordById',
				data: this.param,
				success: res => {
					this.item = res.data.data;
				}
			});
		}
	},
	methods: {
		//查看边民
		members(id) {
			uni.navigateTo({
				url: '/pages/market/one/leader/members?id=' + id
			});
		}
	}
};
</script>

<style lang="scss">
page {
	background-color: $pg;
}
</style>
