<template>
	<view>
		<view class="cmain">
			<view class="box order_detail">
				<view class="item">
					<text class="label">商品名称</text>
					<text class="desc omit">榴莲</text>
				</view>
				<view class="item">
					<text class="label">订单编号</text>
					<text class="desc omit">7979865235</text>
				</view>
				<view class="item">
					<text class="label">商品数量</text>
					<text class="desc">3吨</text>
				</view>
				<view class="item">
					<text class="label">转售金额（必填）</text>
					<text class="desc">
						<input type="number" v-model="order.price" placeholder="请输入(元)" />
					</text>
				</view>
			</view>
			<u-divider text="费项明细"></u-divider>
			<view class="box">
				<u-collapse accordion>
					<u-collapse-item title="会员有什么用?" class="cell_title">
						<view class="itm">1、普能会员：只浏览平台信息，不可下载平台上的相关附件。</view>
						<view class="itm">2、专业会员：上传展示产品与服务内容、上传相关附件，后台审核方可在平台展示。可下载其他专业会员上传的附件。</view>
						<view class="itm">3、专家会员：只有专家会员才能接受评测邀请。</view>
					</u-collapse-item>
					<u-collapse-item title="积分如何使用?" class="cell_title"><text class="coll">获得的积分可以去线下店铺使用享受折扣哦</text></u-collapse-item>
					<u-collapse-item title="如何申请高级会员?" class="cell_title">
						<view class="itm">1、普能会员：只浏览平台信息，不可下载平台上的相关附件。</view>
						<view class="itm">2、专业会员：上传展示产品与服务内容、上传相关附件，后台审核方可在平台展示。可下载其他专业会员上传的附件。</view>
						<view class="itm">3、专家会员：只有专家会员才能接受评测邀请。</view>
					</u-collapse-item>
					<u-collapse-item title="如何购买产品?" class="cell_title">
						<text class="coll">目前无法在线购买产品，如你想购买某款产品，可以去线下的店购买</text>
					</u-collapse-item>
				</u-collapse>
			</view>
		</view>
		<view class="mfooter">
			<view class="flex">
				<view class="f">
					<button class="btn" @click="pay()">确认接单</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			user: this.getUser(),
			item: {},
			order: {}
		};
	},
	onLoad(e) {
		if (e.item) {
			this.item = JSON.parse(e.item);
		}
		this.getFeeItem();
	},
	methods: {
		//费项明细
		getFeeItem(){
			this.http.request({
				url: '/level-two-server/app/TbFeeItem/getList',
				success: res => {
					console.log("asd:"+JSON.stringify(res));
				}
			});
		},
		ok() {
			let rule = [{ name: 'price', checkType: 'notnull', errorMsg: '请输入转售金额' }];
			if (!this.verify.check(this.order, rule)) {
				uni.showModal({ content: this.verify.error, showCancel: false });
				return false;
			}
			uni.showModal({
				title: '提示',
				content: '我已核对转售信息',
				success: res => {
					if (res.confirm) {
						this.http.request({
							url: '/level-two-server/app/TbDemandQuotation/quotation',
							method: 'POST',
							data: this.order,
							success: res => {}
						});
					}
				}
			});
		}
	}
};
</script>

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