<!--packageI/newMedia/newMediaExchange/newMediaExchange.wxml-->

<view class="wrapper">
  <view class="surplus">
    当前流量值：{{details.stream}}
  </view>
  <view class="exchange">
    <view class="explain">
     <text>兑换流量值数量</text> 
      <text class="num">当前剩余积分:{{details.points}}</text>
    </view>
    <view class="input">
      <input type="number" placeholder="0" bindinput="setPoints" model:value="{{quantity}}"  />
    </view>
    <view class="desc">注：1流量值等于{{details.stream_eq_points}}积分</view>
    <view class="payPrice" wx:if="{{points>0}}">需要支付{{points}}积分</view>
    <view class="btn buttonActive" bindtap="send">兑换</view>
  </view>
</view>











