From c3086cda662e2b908cf96b6b3ff599713eb924d6 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 02 九月 2024 16:59:16 +0800
Subject: [PATCH] gongneng

---
 pages/cart/paymentPage/index.wxml |   72 ++++++++++++++----------------------
 1 files changed, 28 insertions(+), 44 deletions(-)

diff --git a/pages/cart/paymentPage/index.wxml b/pages/cart/paymentPage/index.wxml
index 09600ee..b0ceeb3 100644
--- a/pages/cart/paymentPage/index.wxml
+++ b/pages/cart/paymentPage/index.wxml
@@ -16,25 +16,10 @@
   <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">
@@ -51,21 +36,34 @@
                 </view>
               </view>
             </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 class="textBox" wx:if="{{item.type == 'product'}}">鍥句功鏈嶅姟-鐢靛瓙涔�</view>
+            <view class="textBox" wx:if="{{item.type == 'item'}}">鍥句功鏈嶅姟-浜戝涔�</view>
+            <view class="priceBox">锟{item.orderSaleMethod.price}}</view>
           </view>
+        </view>
+      </view>
+      <view class="integralBreakdown">
+        <view class="priceBreakdownContent">绉垎鍏戞崲锛�100绉垎鍙厬鎹�1鍏冿級</view>
+        <view class="integral">
+          <view>
+            鎴戠殑绉垎锛歿{integral}}
+          </view>
+          <t-switch defaultValue="{{defaultVal}}" slot="note" bindchange="handleChange" />
+
         </view>
       </view>
       <view class="priceBreakdown">
         <view class="priceBreakdownContent">浠锋牸鏄庣粏</view>
         <view class="amountMoney">
           <view class="commodityBox">鍟嗗搧閲戦</view>
-          <view class="payPriceBox">锟{payPrice}}</view>
+          <view class="payPriceBox">锟{price}}</view>
+        </view>
+        <view class="integralCon" wx:if="{{showIntegral}}">
+          <view class="label">绉垎鎶垫墸</view>
+          <view class="payBox">
+            <view>{{currentBalance}}</view>
+            <view>锟{deduct}}</view>
+          </view>
         </view>
         <view class="amount">
           <view> <text>鍚堣锛� </text> 锟{payPrice}}</view>
@@ -74,27 +72,13 @@
     </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
-          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
-        >
+        <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>
\ No newline at end of file

--
Gitblit v1.9.1