From 5405154d6979f1b50ce2d881bb164b1acca80b6d Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 15 一月 2021 18:58:18 +0800 Subject: [PATCH] 修改相关bug --- service-daylucky/src/main/resources/static/award-type-redpacket-divide.html | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/service-daylucky/src/main/resources/static/award-type-redpacket-divide.html b/service-daylucky/src/main/resources/static/award-type-redpacket-divide.html index 1675153..5fa55b2 100644 --- a/service-daylucky/src/main/resources/static/award-type-redpacket-divide.html +++ b/service-daylucky/src/main/resources/static/award-type-redpacket-divide.html @@ -54,7 +54,7 @@ <label class="layui-form-label"> 褰撳墠璐︽埛浣欓锛�</label> <div class="layui-input-inline"> - <span style="font-size: 16px;"> 1000.00鍏�</span> + <span style="font-size: 16px;"> {{balance}}鍏�</span> <a style="float: right;" class="layui-btn">鍏呭��</a> </div> </div> @@ -99,6 +99,7 @@ </div> </div> <script src="js/common.js"></script> +<script src="js/http.js"></script> <script> var listener; @@ -114,14 +115,23 @@ total: "", count: "", result: "", + balance: 0, }, created: function () { + var $this = this; var data = JSON.parse(decodeURIComponent(common.getQueryString("data"))); this.total = data.total; this.count = data.count; setTimeout(function () { app.render(); }); + + ksapp.post("/admin/sponsor/getBalance", {}, function (res) { + if (res.code == 0) { + $this.balance = res.data.balance; + } + }, null); + }, watch: { total: function (e) { -- Gitblit v1.8.0