Przeglądaj źródła

Merge branch 'dev4.4' of http://192.168.3.207:10080/qmx/jy into dev4.4

zhangyuhan 4 lat temu
rodzic
commit
dc66da62c2

+ 14 - 13
src/jfw/modules/app/src/web/staticres/jyapp/squeeze/css/squeezeMobile.css

@@ -55,26 +55,26 @@
   overflow: hidden;
 }
 .squeeze-mobile main .ticket ul {
-  height: 5.04rem;
-  margin-top: 1.26rem;
+  height: 3.14rem;
+  margin-top: 1rem;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
 }
 .squeeze-mobile main .ticket ul li {
   position: relative;
-  margin: 0 0.12rem;
-  margin-bottom: 0.27rem;
-  width: 3.03rem;
+  margin: 0;
+  margin-bottom: 0.20rem;
+  width: 100%;
   height: 1.41rem;
 }
 .squeeze-mobile main .ticket ul li img {
-  width: 100%;
+  width: 4.5rem;
 }
 .squeeze-mobile main .ticket ul li .ticket-btn {
   position: absolute;
   bottom: 0.21rem;
-  right: 0.32rem;
+  right: 1.85rem;
   width: 1.07rem;
   height: 0.41rem;
   text-align: center;
@@ -96,8 +96,8 @@
   transform: scale(0.5) translate(-50%, -50%);
 }
 .squeeze-mobile main .ticket ul li .ticket-btn button.use {
-  color: #fff;
-  background-color: #da1f0f;
+  color: #da1f0f;
+  background-color: #fff;
 }
 .squeeze-mobile main .ticket ul li .ticket-btn button.get {
   color: #da1f0f;
@@ -107,13 +107,14 @@
   font-size: 0.29rem;
   color: rgba(255, 255, 255, 0.5);
 }
+.squeeze-mobile main .ticket ul li .ticket-btn span.end{
+  font-size: 0.2rem;
+}
 .squeeze-mobile main .ticket #getAll {
-  width: 2.94rem;
+  width: 100%;
   height: 0.67rem;
-  background-color: #fff;
-  color: #da1f0f;
+  color: #fff;
   font-size: 0.28rem;
-  border: 1px solid #fff;
   border-radius: 0.33rem;
 }
 .squeeze-mobile main .ticket #getAll.dis {

+ 7 - 12
src/jfw/modules/app/src/web/staticres/jyapp/squeeze/js/squeeze_mobile.js

@@ -7,13 +7,8 @@ let activityId // 活动id
 let isWX = isWeChat()
 console.log(isWX);
 ticketImg = [
-  // '/frontRouter/wx/squeeze/images/ticket5.png',
-  // '/frontRouter/wx/squeeze/images/ticket15.png',
-  // '/frontRouter/wx/squeeze/images/ticket38.png',
-  // '/frontRouter/wx/squeeze/images/ticket100.png',
-  // '/frontRouter/wx/squeeze/images/ticket250.png'
-  '/frontRouter/wx/squeeze/images/ticket380.png',
-  '/frontRouter/wx/squeeze/images/ticket1000.png',
+  '/jyapp/squeeze/images/ticket380.png',
+  '/jyapp/squeeze/images/ticket1000.png'
 ]
 
 activityId = GetRequest() || ''
@@ -39,11 +34,11 @@ function getTicket() {
         }else{
           if (item.IsUser) {
             lis += `<li>
-                        <img src="${ticketImg[index]}" alt="">
-                        <div class="ticket-btn">
-                          <span  data-id="${item.LotteryIdStr}">已使用</span>
-                        </div>
-                      </li>`
+                      <img src="${ticketImg[index]}" alt="">
+                      <div class="ticket-btn">
+                        <span  data-id="${item.LotteryIdStr}">已使用</span>
+                      </div>
+                    </li>`
           } else {
             if (item.IsReceive) {
               if (item.StockNumber > 0) {