Explorar o código

8/19打包测试

Foystor %!s(int64=3) %!d(string=hai) anos
pai
achega
f0914a7511

+ 1 - 1
project.private.config.json

@@ -22,7 +22,7 @@
           "name": "pages/coupons/main",
           "pathName": "pages/coupons/main",
           "query": "",
-          "scene": null
+          "scene": 1001
         },
         {
           "name": "pages/user_center/recharge/main",

+ 6 - 6
src/components/index/personal.vue

@@ -78,7 +78,7 @@
       overlay
       z-index="99"
     >
-      <div class="quan_container padding-tb-xl">
+      <div class="quan_container padding-top-xl">
         <view class=" margin-top-xl flex justify-center">
               <text class="title" >
                 水母会员次卡体验券1张
@@ -370,7 +370,7 @@ export default {
       wx.setStorageSync("is_twenty", false);
     }
     $this.twenty = wx.getStorageSync("is_twenty");
-    console.log("状态", $this.first & $this.twenty);
+    console.log("可以领会员日注册体验券吗", $this.first & $this.twenty);
   },
   onShow() {
     reload_userinfo($this);
@@ -445,7 +445,7 @@ export default {
   font-weight: bold;
   color: #222222;
   font-family: Microsoft YaHei;
-  margin: 6px 0 -5px;
+  margin: 6px 0 -5px 0;
 }
 
 /*副标题*/
@@ -463,15 +463,15 @@ export default {
 }
 .experience{
   font-size: 36px;
-  line-height: 20px;
+  line-height: 22px;
 }
 .hexiao,.discount{
   font-size: 36px;
-  line-height: 7px;
+  line-height: 8px;
 }
 .manjian,.random{
   font-size: 28px;
-  line-height: 7px;
+  line-height: 8px;
 }
 /*分钟二字*/
 .quan_container .time_text {

+ 1 - 1
src/pages/coupons/index.vue

@@ -312,7 +312,7 @@ export default {
     get_ticket($item) {
       couponReceive($item).then((res) => {
         let $res = res.data;
-        if ($res.code == 0) {
+        if ($res.code == 0 || $res.code == 204) {
           Toast.success({
             message: $res.errmsg,
             onClose() {

+ 2 - 2
src/pages/user_center/recharge/index.vue

@@ -238,9 +238,9 @@ export default {
       if($item.coupon.type==3){
         $item["total_price"] = Math.round($item.price*$item.coupon.discount*100)/100
       }else if($item.coupon.type==2){
-         $item["total_price"] = $item.price-$item.coupon.reduce
+         $item["total_price"] = Math.round(($item.price-$item.coupon.reduce)*100)/100
       }else if($item.coupon.type==4){
-          $item["total_price"] = $item.price-$item.coupon.random
+          $item["total_price"] = Math.round(($item.price-$item.coupon.random)*100)/100
       }else{
           $item["total_price"] = Math.round($item.price*$item.discount*100)/100
       }