From a90c6ca24052007d27fb18d12f13ea435b971741 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 8 Sep 2019 18:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/setting_recive.js | 31 ++++++++++++++++++++++++++++++- templete/setting_address.html | 2 +- templete/setting_recive.html | 29 ++++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 3 deletions(-) diff --git a/js/setting_recive.js b/js/setting_recive.js index 09a47af..5d807eb 100644 --- a/js/setting_recive.js +++ b/js/setting_recive.js @@ -1,3 +1,32 @@ mui.plusReady(function(){ - console.log("ok") + + // TODO: some ajax + document.getElementById("realname").value = ''; + document.getElementById("bank_name").value = ''; + document.getElementById("bank_no").value = ''; + document.getElementById("alipay_recive").value = ''; + document.getElementById("wechat_recive").value = ''; + + $(".photos").on("tap", 'img', function() { + var _input = $(this).parent().parent().parent().prev()[0]; + UP.init(_input.id, "test", this.id) + openCamera() + }) + + mui(".down").on("tap", "#true", function(){ + realname = document.getElementById("realname").value, + bankName = document.getElementById("bank_name").value, + bankNo = document.getElementById("bank_no").value, + alipayRecive = document.getElementById("alipay_recive").value, + wechatRecive = document.getElementById("wechat_recive").value, + + var data = { + realname, + bankName, + bankNo, + alipayRecive, + wechatRecive, + } + console.log(data) + }) }) \ No newline at end of file diff --git a/templete/setting_address.html b/templete/setting_address.html index b7228be..96f500d 100644 --- a/templete/setting_address.html +++ b/templete/setting_address.html @@ -55,7 +55,7 @@ parent.appendChild(element); element.onload = function() { - var style = [JZL.getCssUrl('setting_address.css'), JZL.getCssUrl("global.css"), JZL.getCssUrl("login.css"), JZL.getCssUrl("sha.css"), JZL.getCssUrl("header.css")]; + var style = [JZL.getCssUrl('setting_address.css'), JZL.getCssUrl("global.css"), JZL.getCssUrl("login.css"), JZL.getCssUrl("sha_2.css"), JZL.getCssUrl("header.css")]; JZL.css_init(style); var script = [JZL.getJsUrl('setting_address.js'),JZL.getJsUrl('common.js')]; JZL.js_init(script); diff --git a/templete/setting_recive.html b/templete/setting_recive.html index 39dff22..12e2d16 100644 --- a/templete/setting_recive.html +++ b/templete/setting_recive.html @@ -32,6 +32,32 @@ 银行账号: +
+ + +
+ +
+
+ + +
+
+
+
+
+ + +
+ +
+
+ + +
+
+
+
确定
@@ -39,6 +65,7 @@ +