闫增涛
2024-05-06 e8ec903206cb82e4dbb4687291d5f7788e7ff046
pages/cart/paymentPage/index.wxml
@@ -3,8 +3,7 @@
<template is="skeleton" wx:if="{{loading}}" />
<view hidden="{{hidden}}">
  <view class="titleBox">
  <!-- <view class="titleBox">
    <view style="width: 100%; height: {{barHeight}}px; "></view>
    <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
      <view>
@@ -12,62 +11,52 @@
      </view>
      <view class="navbar-title">提交订单</view>
    </view>
  </view>
  </view> -->
  <view class="paymentPageBox">
    <view class="content">
      <view class="shoppingCartList">
        <view class="cartList" wx:for="{{productList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
        <view
          class="cartList"
          wx:for="{{productList}}"
          wx:key="index"
          wx:for-item="item"
          wx:for-index="index"
        >
          <view class="imageBox">
            <image wx:if="{{item.paymentIcon}}" src="{{item.paymentIcon }}" mode="aspectFit" />
            <image wx:else src="/static/images/default-book-img.png" class="imageStyle" mode="aspectFit" />
            <image
              wx:if="{{item.paymentIcon}}"
              src="{{item.paymentIcon }}"
              mode="aspectFit"
            />
            <image
              wx:else
              src="/static/images/default-book-img.png"
              class="imageStyle"
              mode="aspectFit"
            />
          </view>
          <view class="cartListContent">
            <view class="cartListDetails">
              <!-- <view class="labelBox">
              <view class="eBook" wx:if="{{item.type == 'product'}}">电子书</view>
              <view wx:if="{{item.type == 'item'}}" class="cloudLearning">云学习</view>
            </view> -->
              <!-- <view class="boosName">
              {{item.orderSaleMethod.product.name}}
            </view> -->
              <view wx:if="{{item.type == 'product'}}" style="width: 386rpx;">
                <!-- <view>
                <text class="eBook">电子书</text> <text class="boosName">{{item.orderSaleMethod.product.name}}</text>
              </view> -->
              <view wx:if="{{item.type == 'product'}}" style="width: 386rpx">
                <view class="boosName">
                  <text class="eBook">电子书</text>
                  <text> {{item.orderSaleMethod.product.name}}</text>
                </view>
              </view>
              <view wx:if="{{item.type == 'item'}}" style="width: 386rpx;">
                <!--
              <view>
                <text class="cloudLearning">云学习</text> <text class="boosName">{{item.orderSaleMethod.product.name}}</text>
              </view> -->
              <view wx:if="{{item.type == 'item'}}" style="width: 386rpx">
                <view class="boosName">
                  <text class="cloudLearning">云学习</text>
                  <text> {{item.orderSaleMethod.product.name}}</text>
                </view>
              </view>
            </view>
            <view class="textBox" wx:if="{{item.type == 'product'}}">图书服务-电子书</view>
            <view class="textBox" wx:if="{{item.type == 'item'}}">图书服务-云学习</view>
            <view class="textBox" wx:if="{{item.type == 'product'}}"
              >图书服务-电子书</view
            >
            <view class="textBox" wx:if="{{item.type == 'item'}}"
              >图书服务-云学习</view
            >
            <view class="priceBox">¥{{item.payPrice}}</view>
          </view>
        </view>
@@ -82,16 +71,30 @@
          <view> <text>合计: </text> ¥{{payPrice}}</view>
        </view>
      </view>
    </view>
    <!-- <view class="interval"></view> -->
    <view class="paymentBox">
      <view class="residue">待支付:<text class="residueTextBox">¥{{payPrice}}</text></view>
      <view class="residue"
        >待支付:<text class="residueTextBox">¥{{payPrice}}</text></view
      >
      <view>
        <t-button class="buttonBox" shape="round" catch:tap="confirmOrderGet">微信支付</t-button>
        <t-button
          wx:if="{{ImmediatelyReceive === 0}}"
          class="buttonBox"
          shape="round"
          catch:tap="onReceive"
          >立即领取</t-button
        >
        <t-button
          wx:else
          class="buttonBox"
          shape="round"
          catch:tap="confirmOrderGet"
          >微信支付</t-button
        >
      </view>
    </view>
  </view>
  <t-toast id="t-toast" />
</view>
</view>