gift-detail.wxml 3.04 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <view class="product">
        <view class="product-item">
          <view class="image-wrap">
            <image class="image" mode="aspectFit" src="{{item.commodityImages[0]}}" />
          </view>
          <view class="cont">
            <view class="name">{{item.commodityTitle || '-'}}</view>
            <view class="integral">消耗积分:{{item.commodityPrice}}分</view>
          </view>
        </view>
      </view>
      <!-- 使用规则 -->
      <view class="cont-wrap use-rule">
        <!-- 京东E卡可在京东商城
        <span class="link">www.jd.com</span>
        上购买自营商品(“自营商品”指在商品详情页明确标识为自营的商品),用户可在订单结算时输入E卡密码并使用。 -->
        {{item.commodityInfo}}
      </view>
      <!-- 表单提交 (实物) -->
      <block wx:if="{{item.commodityType == 'object'}}">
        <!-- 表单 -->
        <view wx:if="{{defaultReceiver}}" class="cont-wrap form">
          <view class="form-tit">
            <view class="address-message">收货信息</view>
            <view bindtap="onAddressManagementHandler" class="address-edit">更改地址</view>
          </view>
          <view class="form-item">
            <view class="label">收货人</view>
            <view class="cont">{{defaultReceiver.receiverName}}</view>
          </view>
          <view class="form-item">
            <view class="label">收货电话</view>
            <view class="cont">{{defaultReceiver.receiverPhone}}</view>
          </view>
          <view class="form-item">
            <view class="label">收货地址</view>
            <view class="cont">{{defaultReceiver.receiverAddress}}</view>
          </view>
          <textarea value="{{remark}}" bindinput="bindRemarkInput" placeholder="备注您的其他要求" class="form-remark"></textarea>
        </view>
        <!-- 添加地址按钮 -->
        <view wx:else bindtap="onAddressAddHandler" class="manage-add">我的收货地址</view>
      </block>
    </view>
    <view class="bottom">
      <view class="submit-bar">
        <view class="submit-bar-cont">
          现有积分
          <span class="integral">{{indexInfo.memberPoints}}</span>

        </view>
        <view bindtap="onSubmitHandler" class="submit-bar-btn">确认兑换</view>
      </view>
    </view>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<van-popup show="{{ commonTipsCompVisible }}">
  <common-tips-comp bind:evtcomp="evtcomp" cid="{{cid}}" inner-title="{{innerTitle}}" inner-text="{{innerText}}" inner-button="{{innerButton}}"></common-tips-comp>
</van-popup>
<!-- 兑换成功提示 -->
<van-popup show="{{ orderSubmitSuccessCompVisible }}">
  <order-submit-success-tips-comp bind:evtcomp="evtcomp" item="{{item}}"></order-submit-success-tips-comp>
</van-popup>