dever há 6 anos atrás
pai
commit
3502777912
2 ficheiros alterados com 14 adições e 1 exclusões
  1. 13 0
      service/assets/mobile/css/success.css
  2. 1 1
      service/src/Buy.php

+ 13 - 0
service/assets/mobile/css/success.css

@@ -74,6 +74,7 @@
 .read {
 .read {
     margin-bottom: 1.066667rem;
     margin-bottom: 1.066667rem;
     position: relative;
     position: relative;
+    overflow: hidden;
 }
 }
 
 
 .read p {
 .read p {
@@ -88,6 +89,8 @@
     /* line-height: .933333rem; */
     /* line-height: .933333rem; */
     width: 6.933333rem /* 520/75 */;
     width: 6.933333rem /* 520/75 */;
     margin: 0 auto;
     margin: 0 auto;
+    text-align: center;
+    clear: both;
 }
 }
 .read p span{
 .read p span{
     display: inline-block;
     display: inline-block;
@@ -100,9 +103,11 @@
 }
 }
 .read p span:nth-child(even){
 .read p span:nth-child(even){
     text-align: left;
     text-align: left;
+    float: right;
 }
 }
 .read p span:nth-child(odd){
 .read p span:nth-child(odd){
     text-align: right;
     text-align: right;
+    float: left;
 }
 }
 .read p span:nth-child(odd):after{
 .read p span:nth-child(odd):after{
     content: "|";
     content: "|";
@@ -110,6 +115,14 @@
     right: -0.053333rem /* 4/75 */;
     right: -0.053333rem /* 4/75 */;
     top: 0;
     top: 0;
 }
 }
+.read p.single span{
+    display: block;
+    width: 100%;
+    text-align: center;
+}
+.read p.single span:after{
+    content: none;
+}
 
 
 /* .read p,
 /* .read p,
 .read P:before {
 .read P:before {

+ 1 - 1
service/src/Buy.php

@@ -183,7 +183,7 @@ class Buy extends Base
                 $config['button'] = '复制兑换码<span>'.$order['code'].'</span>';
                 $config['button'] = '复制兑换码<span>'.$order['code'].'</span>';
             }
             }
             
             
-            $config['code'] = '<p><span>'.$order['code'].'</span></p>';
+            $config['code'] = '<p class="single"><span>'.$order['code'].'</span></p>';
             $buy = Dever::db('journal/buy_num')->one($buy_id);
             $buy = Dever::db('journal/buy_num')->one($buy_id);
             if ($buy && $buy['code'] > 1) {
             if ($buy && $buy['code'] > 1) {
                 $uid = $this->user['id'];
                 $uid = $this->user['id'];