瀏覽代碼

wap页修改

laiguoran 5 年之前
父節點
當前提交
a7d71e12e4
共有 4 個文件被更改,包括 29 次插入20 次删除
  1. 8 2
      app/public/js/wap/global.js
  2. 8 6
      app/view/wap/dashboard.ejs
  3. 1 0
      app/view/wap/list.ejs
  4. 12 12
      app/view/wap/tender.ejs

+ 8 - 2
app/public/js/wap/global.js

@@ -1,3 +1,8 @@
+$(function () {
+   $('a').on('click', function () {
+       showWaitingView();
+   })
+})
 /**
  * 动态请求数据
  * @param {String} url - 请求链接
@@ -226,11 +231,12 @@ function showWaitingView() {
     msgObj.style.zIndex = '9999';
     msgObj.setAttribute("id", "msgDiv");
     msgObj.setAttribute("align", "center");
-    msgObj.style.position = "absolute";
+    msgObj.style.position = "fixed";
     msgObj.style.font = "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
     msgObj.style.width = msgw + "px";
     msgObj.style.height = msgh + "px";
-    msgObj.style.top = (document.documentElement.scrollTop + (sHeight - msgh) / 2) + "px";
+    // msgObj.style.top = (document.documentElement.scrollTop + (sHeight - msgh) / 2) + "px";
+    msgObj.style.top = "50%";
     msgObj.style.left = (sWidth - msgw) / 2 + "px";
     document.body.appendChild(msgObj);
 

+ 8 - 6
app/view/wap/dashboard.ejs

@@ -47,12 +47,12 @@
                         <div class="d-flex justify-content-between"><span>第<%- audit.order %>期</span><span><%- audit.s_time %></span></div>
                         <div class="my-2">
                             <table class="table table-sm table-bordered">
-                                <tr><th>本期合同计量</th><td class="text-right"><%- ctx.helper.formatMoney(audit.contract_tp) %></td></tr>
-                                <tr><th>本期数量变更计量</th><td class="text-right"><%- ctx.helper.formatMoney(audit.qc_tp) %></td></tr>
-                                <tr><th>本期完成计量</th><td class="text-right"><%- ctx.helper.formatMoney(audit.gather_tp) %></td></tr>
-                                <tr><th>截止上期完成计量</th><td class="text-right"><%- ctx.helper.formatMoney(audit.pre_gather_tp) %></td></tr>
-                                <tr><th>截止本期完成计量</th><td class="text-right"><%- ctx.helper.formatMoney(audit.end_gather_tp) %></td></tr>
-                                <tr><th>本期应付</th><td class="text-right"><%- ctx.helper.formatMoney(audit.yf_tp) %></td></tr>
+                                <tr><th>本期合同计量</th><td class="text-right"><%- audit.contract_tp ? audit.contract_tp : '' %></td></tr>
+                                <tr><th>本期数量变更计量</th><td class="text-right"><%- audit.qc_tp ? audit.qc_tp : '' %></td></tr>
+                                <tr><th>本期完成计量</th><td class="text-right"><%- audit.gather_tp ? audit.gather_tp : '' %></td></tr>
+                                <tr><th>截止上期完成计量</th><td class="text-right"><%- audit.pre_gather_tp ? audit.pre_gather_tp : '' %></td></tr>
+                                <tr><th>截止本期完成计量</th><td class="text-right"><%- audit.end_gather_tp ? audit.end_gather_tp : '' %></td></tr>
+                                <tr><th>本期应付</th><td class="text-right"><%- audit.yf_tp ? audit.yf_tp : '' %></td></tr>
                             </table>
                         </div>
                         <div class="">
@@ -82,6 +82,8 @@
     <script src="/public/js/jquery/jquery-3.2.1.min.js"></script>
     <script src="/public/js/popper/popper.min.js"></script>
     <script src="/public/js/bootstrap/bootstrap.min.js"></script>
+    <script src="/public/js/cookies.js"></script>
+    <script src="/public/js/wap/global.js"></script>
 </body>
 
 </html>

+ 1 - 0
app/view/wap/list.ejs

@@ -70,6 +70,7 @@
 <script src="/public/js/lodash.js"></script>
 <script src="/public/js/lz-string/lz-string.js"></script>
 <script src="/public/js/number-precision.js"></script>
+<script src="/public/js/cookies.js"></script>
 <script src="/public/js/wap/global.js"></script>
 <script src="/public/js/decimal.min.js"></script>
 <script src="/public/js/zh_calc.js"></script>

+ 12 - 12
app/view/wap/tender.ejs

@@ -90,31 +90,31 @@
                             <tbody><tr>
                                 <td>
                                     <p class="mb-0">本期合同计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((s.contract_tp ? s.contract_tp : 0)) %></b>
+                                    <b>¥<%- s.contract_tp ? s.contract_tp : 0 %></b>
                                 </td>
                                 <td>
                                     <p class="mb-0">本期数量变更计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((s.qc_tp ? s.qc_tp : 0)) %></b>
+                                    <b>¥<%- s.qc_tp ? s.qc_tp : 0 %></b>
                                 </td>
                             </tr>
                             <tr>
                                 <td>
                                     <p class="mb-0">本期完成计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((s.tp ? s.tp : 0)) %></b>
+                                    <b>¥<%- s.tp ? s.tp : 0 %></b>
                                 </td>
                                 <td>
                                     <p class="mb-0">截止上期完成计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((s.pre_tp ? s.pre_tp : 0)) %></b>
+                                    <b>¥<%- s.pre_tp ? s.pre_tp : 0 %></b>
                                 </td>
                             </tr>
                             <tr>
                                 <td>
                                     <p class="mb-0">截止本期完成计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((s.end_tp ? s.end_tp : 0)) %></b>
+                                    <b>¥<%- s.end_tp ? s.end_tp : 0 %></b>
                                 </td>
                                 <td>
                                     <p class="mb-0">本期应付</p>
-                                    <b>¥<%- ctx.helper.formatMoney((s.yf_tp ? s.yf_tp : 0)) %></b>
+                                    <b>¥<%- s.yf_tp ? s.yf_tp : 0 %></b>
                                 </td>
                             </tr>
                             </tbody></table>
@@ -140,31 +140,31 @@
                             <tbody><tr>
                                 <td>
                                     <p class="mb-0">本期合同计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((stage.contract_tp ? stage.contract_tp : 0)) %></b>
+                                    <b>¥<%- stage.contract_tp ? stage.contract_tp : 0 %></b>
                                 </td>
                                 <td>
                                     <p class="mb-0">本期数量变更计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((stage.qc_tp ? stage.qc_tp : 0)) %></b>
+                                    <b>¥<%- stage.qc_tp ? stage.qc_tp : 0 %></b>
                                 </td>
                             </tr>
                             <tr>
                                 <td>
                                     <p class="mb-0">本期完成计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((stage.tp ? stage.tp : 0)) %></b>
+                                    <b>¥<%- stage.tp ? stage.tp : 0 %></b>
                                 </td>
                                 <td>
                                     <p class="mb-0">截止上期完成计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((stage.pre_tp ? stage.pre_tp : 0)) %></b>
+                                    <b>¥<%- stage.pre_tp ? stage.pre_tp : 0 %></b>
                                 </td>
                             </tr>
                             <tr>
                                 <td>
                                     <p class="mb-0">截止本期完成计量</p>
-                                    <b>¥<%- ctx.helper.formatMoney((stage.end_tp ? stage.end_tp : 0)) %></b>
+                                    <b>¥<%- stage.end_tp ? stage.end_tp : 0 %></b>
                                 </td>
                                 <td>
                                     <p class="mb-0">本期应付</p>
-                                    <b>¥<%- ctx.helper.formatMoney((stage.yf_tp ? stage.yf_tp : 0)) %></b>
+                                    <b>¥<%- stage.yf_tp ? stage.yf_tp : 0 %></b>
                                 </td>
                             </tr>
                             </tbody></table>