Browse Source

H5:购物车商品点击去结算优化

panyong 3 years ago
parent
commit
c062e65713

+ 3 - 3
htmldev/dashboard/src/views/orderDetail/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="order-detail">
     <div v-if="refund_price" class="top" @click="goRefundList()">
-      <span>退款金额: {{refund_price}}元</span>
+      <span>退款金额: {{refund_price | fen2Yuan}}元</span>
       <span>退款成功</span>
     </div>
     <div class="main">
@@ -9,8 +9,8 @@
         <li v-for="(item,index) in list" :key="index">
           <img :src="item.product_img_url" alt="">
           <div class="item-right">
-            <p><span>{{item.product_name}}</span><span>¥{{item.product_price | fen2Yuan}}</span></p>
-            <p><span>{{item.product_attach}}</span><span>*{{item.product_num}}</span></p>
+            <p><span>{{item.product_name}}</span><span>¥{{item.product_unit_price | fen2Yuan}}</span></p>
+            <p><span>{{item.product_attach.replace(',', '+')}}</span><span>*{{item.product_num}}</span></p>
           </div>
         </li>
       </ul>

+ 1 - 1
htmldev/dashboard/src/views/refundList/index.vue

@@ -13,7 +13,7 @@
             <div class="item-right">
               <p>
                 <span>{{ val.product_name }}</span
-                ><span>¥{{ val.product_price | fen2Yuan }}</span>
+                ><span>¥{{ val.product_unit_price | fen2Yuan }}</span>
               </p>
               <p>
                 <span>{{ val.product_attach }}</span