<!-- 按钮 -->
<block wx:if="{{from == 'unionpay'}}">
	<navigator class="rightsBtn" hover-class="none" url="/pages/webView/webView?url={{uniUrl}}"
		wx:if="{{openid == ''}}">
		<text>立即领取</text>
	</navigator>
	<view class="rightsBtn {{rightsTap == true ? 'active' : ''}}" wx:else>
		<text wx:if="{{rightsTap == true}}">立即购买</text>
		<text wx:else bindtap="unionOrder">立即购买</text>
	</view>
</block>
<view class="newrightsBtn" bindtap="ordinary" wx:else>
	<view class="rightsBtn-text">
		<view class="rightsBtn-text-num">共：{{num}}件商品  </view> 
		<view>实付：<text>￥{{amount}}</text></view>
	</view>
	<button disabled="{{disabled}}">立即购买</button>
</view>


<!-- 重要提示 -->
<view class="rightsPoint">
	<view class="rightsPoint-cont">
		<view class="rightsPoint-top">
			<image src="/static/icon/Point_icon.png"></image>
			<text>重要提示</text>
		</view>
		<view class="rightsPoint-text {{pointMoreShow ? 'active' : ''}}">
			<rich-text nodes="{{notification}}"></rich-text>
		</view>
		<view class="pointMore" bindtap="pointMoreTap">
			<text>{{pointMoreShow == true ? '收起' : '展开'}}</text>
			<image src="{{pointMoreShow == true ? '/static/img/pointMore-up.png' : '/static/img/pointMore.png'}}">
			</image>
		</view>
	</view>
</view>

<view style="padding-bottom: 220px">
	<view class="cont">
		<view class="contBack">
			<image class="classBack" src="https://lifetest.ysd-bs.com/storage/materials/2021/08/09/class_back_02.png" mode="scaleToFill"></image>
			<view class="classCircle"></view>
			<view class="rightsCont">
				<scroll-view scroll-x class="welfareCont-top" scroll-with-animation>
					<view class="welfareCont-list-img" wx:for="{{detail.logos}}" wx:key="logos">
						<image src="{{item}}" mode="aspectFill"></image>
					</view>
				</scroll-view>
				<view class="nowrap rightsCont-btn">
					{{detail.three_title}}
				</view>
			</view>
		</view>
	</view>

	<view class="rightsNumber">
		<image class="rightsGoods-img" src="{{detail.cover}}" mode="aspectFill"></image>
		<view class="rightsGoods">
			<view class="nowrap rightsGoods-text">
				{{detail.title}}
			</view>
			<view class="rightsGoods-price">
				<view class="rightsGoods-number"><text>￥</text>{{detail.price}}</view>
				<view class="rightsAdd">
					<view class="rightsAdd-btn rightsAdd-remove {{num != 1 ? 'active' : ''}}" bindtap="goodsNumber" data-type="remove">-</view>
					<input class="rightsAdd-input" data-num="{{num}}" value="{{num}}" type="number" maxlength='4'
						bindblur="goodsNumberInput"></input>
					<view class="rightsAdd-btn rightsAdd-plus" bindtap="goodsNumber" data-type="plus">+</view>
				</view>
			</view>
		</view>
	</view>

	<!-- 抵扣 -->
	<view class="rightsList" style="padding: 0 0 2rpx">
		<view class="rightsLabel">
			<view class="rightsLabel-left">{{detail.attribute.form_type}}</view>
			<view class="rightsLabel-right rightsLabel-red">-￥{{score}}</view>
		</view>
		<!-- <view class="rightsLabel uni-border-top">
			<view class="rightsLabel-left">{{detail.attribute.form_pay}}</view>
			<view class="rightsLabel-right rightsLabel-score">￥{{amount}}</view>
		</view> -->
	</view>

	<!-- 规格 -->
	<view class="rightsList" wx:if="{{detail.type == 'physical'}}">
		<!-- <view class="rightsLabel">
			<view class="rightsLabel-left">{{detail.attribute.form_price}}</view>
			<view class="rightsLabel-right">￥{{moreAmount}}</view>
		</view> -->
		<view class="rightsLabel" wx:if="{{platIndex == 1}}">
			<view class="rightsLabel-left">电子券</view>
			<view class="rightsLabel-right">{{detail.qty}}张</view>
		</view>
		<!-- <view class="rightsLabel">
			<view class="rightsLabel-left">需要兑换的积分</view>
			<view class="rightsLabel-right">{{detail.score}}</view>
		</view> -->
		<!-- <view class="rightsLabel">
		<view class="rightsLabel-left">卡余额抵扣</view>
		<view class="rightsLabel-right">-￥0.00</view>
	</view> -->
		<!-- <view class="rightsLabel">
		<view class="rightsLabel-left">总金额</view>
		<view class="rightsLabel-right">￥{{detail.price}}</view>
	</view> -->
		<block wx:if="{{detail.type == 'physical'}}">
			<view class="rightsLabel">
				<view class="rightsLabel-left">提交方式</view>
				<view class="rightsLabel-right rightsLabel-range">
					<picker range="{{platformCp}}" range-key="name" bindchange="platBind">
						<view class="tabs-text">
							{{platformCp[platIndex].name}}
						</view>
					</picker>
					<image class="rightsLabel-row" src="/static/icon/rightsArrow.png"></image>
				</view>
			</view>
			<view class="rightsLabel rightsLabel-address" wx:if="{{platformCp[platIndex].name == '快递'}}">
				<image class="rightsLabel-icon" src="/static/img/new_rightsAddress.png"></image>
				<block wx:if="{{address != ''}}">
					<view class="rightsLabel-right" bindtap="addressTap">
						<view class="rightsLabel-address-text">
							<view class="rightsLabel-address-name">{{address.name}}<view class="rightsLabel-address-tel">{{address.mobile}}</view></view>
							<text class="nowrap">{{address.all_address}}</text>
						</view>
						<image class="rightsLabel-row" src="/static/icon/rightsArrow.png"></image>
					</view>
				</block>
				<block wx:else>
					<navigator class="rightsLabel-right" hover-class="none"
						url="/pages/address_form/address_form?type=Add">
						添加收货地址<image class="rightsLabel-row" src="/static/icon/rightsArrow.png"></image>
					</navigator>
				</block>
			</view>
			<view class="rightsLabel" wx:if="{{platformCp[platIndex].name == '快递'}}">
				<view class="rightsLabel-left">快递运费</view>
				<view class="rightsLabel-right rightsLabel-freight">￥{{freight}}</view>
			</view>
		</block>
	</view>

	<!-- 支付方式 -->
	<!-- <view class="rightsList">
		<view class="rightsLabel">
			<view class="rightsLabel-left">请选择支付方式</view>
			<view class="rightsLabel-right rightsLabel-range">
				<picker range="{{payWay}}" range-key="name" bindchange="payBind">
					<view class="tabs-text">
						{{payWay[payWayIndex].name}}
					</view>
				</picker>
				<image class="rightsLabel-row" src="/static/icon/rightsArrow.png"></image>
			</view>
		</view>
		<view class="rightsLabel-pay">
			<view class="rightsLabel-left">支付方式</view>
			<view class="rightsLabel-right">{{payWay[payWayIndex].name}}</view>
		</view>
	</view> -->

	<!-- 自提商家 -->
	<!-- <view class="detailsStore" wx:if="{{platIndex == 0}}">
	<view class="detailsStore-top">
		自提门店
	</view>
	<view class="detailsStore-see">
		<text>查看提货点信息</text>
		<image src="/static/icon/storeArrow.png"></image>
	</view>
</view> -->

	<!-- 购买须知 -->
	<view class="notice">
		<view class="noticeTitle" bindtap="noticeTap">
			<view class="noticeTitle-flex">
				<image class="noticeTitle-img" src="/static/icon/notice_icon.png"></image>
				购买前请仔细阅读使用须知、内容介绍
			</view>
			<image class="noticeTitle-row {{noticeShow ? 'active' : ''}}" src="/static/icon/rightsArrow.png"></image>
		</view>
		<view class="noticeText {{noticeShow ? 'active' : ''}}">
			<view class="noticeText-top">购买须知</view>
			<view class="noticeText-cont">
				<rich-text nodes="{{remark}}"></rich-text>
			</view>

			<view class="noticeText-top">内容介绍</view>
			<view class="noticeText-cont">
				<rich-text nodes="{{content}}"></rich-text>
			</view>
		</view>
	</view>
</view>

<!-- 选择收货地址 -->
<view class="addressBack {{addressShow ? 'active':''}}" bindtap="addressHide"></view>
<view class="addressCont {{addressShow ? 'active':''}}">
	<view class="addressCont-title uni-border-bottom">
		<view class="addressCont-left">请选择收货地址</view>
		<view class="addressCont-right" bindtap="addSelect">新增收货地址</view>
	</view>
	<scroll-view class="header-classify" scroll-y="true">
		<view class="addressCont-list uni-border-bottom" wx:for="{{allAddress}}" wx:key="allAddress"
			bindtap="selectAddress" data-id="{{item.id}}" data-index="{{item}}">
			<view class="addressCont-top">
				<view class="addressCont-name">{{item.name}}</view>
				<view class="addressCont-tel">{{item.mobile}}</view>
			</view>
			<view class="addressCont-text">
				{{item.all_address}}
			</view>
			<view class="address-tool-icon">选择地址</view>
			<!-- <view class="address-tool">
			<view class="address-tool-btn" bindtap="addressEdit" data-id="">编辑地址</view>
			<view class="address-tool-btn address-tool-btn-del">删除地址</view>
		</view> -->
		</view>
	</scroll-view>
</view>

<!-- <view class="webBack {{webShow == true ? '' : 'active'}}">
	获取失败，请重新获取
</view> -->