Ver Fonte

8/24支付成功样式&主页卡券列表打折券精度

Foystor há 3 anos atrás
pai
commit
499e11aa4d
2 ficheiros alterados com 27 adições e 31 exclusões
  1. 6 3
      src/pages/coupons/index.vue
  2. 21 28
      src/pages/user_center/confirmPay/index.vue

+ 6 - 3
src/pages/coupons/index.vue

@@ -40,7 +40,7 @@
                    <!-- 折扣券 -->
                    <view style="margin-top:36rpx" v-if="item.type==3">
                      <text class="time_text">打</text>
-                     <text class="time margin-lr-xs">{{ item.discount.discount*10 }}</text>
+                     <text class="time margin-lr-xs">{{ item.discount.discount_format }}</text>
                      <text class="time_text">折</text>
                    </view>
 
@@ -121,7 +121,7 @@
                     <!-- 折扣券 -->
                     <view style="margin-top:36rpx" v-if="item.type==3">
                       <text class="time_text">打</text>
-                      <text class="time margin-lr-xs">{{ item.discount*10 }}</text>
+                      <text class="time margin-lr-xs">{{ item.discount_format }}</text>
                       <text class="time_text">折</text>
                     </view>
 
@@ -201,7 +201,7 @@
                     <!-- 折扣券 -->
                     <view style="margin-top:36rpx" v-if="item.type==3">
                       <text class="time_text">打</text>
-                      <text class="time margin-lr-xs">{{ item.discount*10 }}</text>
+                      <text class="time margin-lr-xs">{{ item.discount_format }}</text>
                       <text class="time_text">折</text>
                     </view>
 
@@ -281,6 +281,7 @@ export default {
           $val['end_time'] = timestampTwoNum($val['end_time'])
           $val['start_time'] = timestampTwoNum($val['start_time'])
           $val['random'] = parseInt($val['random'])
+          $val['discount_format'] = Math.round(($val['discount']*10)*100)/100
         })
       })
     },
@@ -293,6 +294,7 @@ export default {
           $val['end_time'] = timestampTwoNum($val['end_time'])
           $val['start_time'] = timestampTwoNum($val['start_time'])
           $val['random'] = parseInt($val['random'])
+          $val['discount_format'] = Math.round(($val['discount']*10)*100)/100
         })
       })
     },
@@ -305,6 +307,7 @@ export default {
           $val.validity_time['end_time_format'] = timestampTwoNum($val.validity_time['end_time'])
           $val.validity_time['start_time_format'] = timestampTwoNum($val.validity_time['start_time'])
           $val.validity_time['time_format'] = timestampTwoNum($val.validity_time['time'])
+          $val.discount['discount_format'] = Math.round(($val.discount['discount']*10)*100)/100
         })
       })
     },

+ 21 - 28
src/pages/user_center/confirmPay/index.vue

@@ -99,32 +99,24 @@
     <van-popup
       :show="success_show"
       @close="close_success_pop"
-      round
       :close-on-click-overlay="false"
+      custom-class="pop"
+      overlay
+      z-index="99"
     >
-      <div class="err_container flex flex-direction align-center justify-around ext_container padding-top-lg padding-bottom">
-        <img
-          src="https://img.shuimuai.com/web/boyya.png"
-          class="boy_logo"
-          alt=""
-        >
-        <view>
-          <text class="payTitle" v-if="!payment_info.msg">
-            充值成功
-          </text>
-
-          <text class="payTitle" v-if="payment_info.msg">
-            {{payment_info.msg}}
-          </text>
-        </view>
-       
+      <div class="flex flex-direction align-center justify-around ext_container padding-bottom" style="padding-top:50px">  
+        <text class="payTitle">充值成功!</text>
+        <div class="flex flex-direction align-center justify-around">
+          <text v-if="payment_info.msg" v-for="(item,index) in payment_info.msg" :key="index" class="margin-bottom-sm">{{item}} </text>
+        </div>
         <div class="button_group flex justify-around">
           <!--          <button class="cu-btn bg-gray text-white lg" @click="close_success_pop">以后再填</button>-->
           <!--          <button class="cu-btn  bg-primary text-white lg" @click="to_write_address">填写地址</button>-->
           <button
             class="cu-btn  bg-primary text-white lg"
+            style="width: 102px;"
             @click="to_index"
-          >充值成功</button>
+          >确定</button>
         </div>
       </div>
     </van-popup>
@@ -410,25 +402,26 @@ export default {
   height: 83px;
 }
 .ext_container {
-  height: 320px;
-  /*background-image: url("https://img.shuimuai.com/web/boyya_bg.png");*/
-  /*background-size: 100% 100%;*/
-  /*background-position: center;*/
-  background-color: rgba(255, 255, 255, 0);
-}
-.boy_logo {
-  width: 136px;
-  height: 150px;
+  height: 324px;
+  width: 319px;
+  background-image: url("https://img.shuimuai.com/pic_sucessPay.png");
+  background-size: 100% 100%;
+  background-position: center;
 }
 .btnFail{
   width: 146px;
   height: 44px;
 }
 .payTitle {
-  font-size: 18px;
+  font-size: 20px;
   font-weight: bold;
   color: #6B6B6B;
   line-height: 18px;
   font-family: Microsoft YaHei;
 }
 </style>
+<style>
+.pop {
+  background-color: rgba(255, 255, 255, 0) !important;
+}
+</style>