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 @@
 				<span class="s1">银行账号:</span>
 				<input class="yzm" name="bank_no" type="text" id="bank_no" value="" placeholder="请输入银行卡号" />
 			</div>
+			<div class="renzhengphoto shadown_wai">
+				<label for="">支付宝收款码</label>
+				<input type="hidden" value='' class='alipay_recive inp' id="alipay_recive">
+				<div class='photos'>
+					<span></span>
+					<div class="photos_con">
+						<div class="regConfirm photo">
+							<img src="" class='ossfile' id='alipayReciveCode' alt="">
+							<span class=""></span>
+						</div>
+					</div>
+				</div>
+			</div>
+			<div class="renzhengphoto shadown_wai">
+				<label for="">微信收款码</label>
+				<input type="hidden" value='' class='wechat_recive inp' id="wechat_recive">
+				<div class='photos'>
+					<span></span>
+					<div class="photos_con">
+						<div class="regConfirm photo">
+							<img src="" class='ossfile' id='wechatReciveCode' alt="">
+							<span class=""></span>
+						</div>
+					</div>
+				</div>
+			</div>
 		</div>
 		<div class="down  clearfix">
 			<div class="btn shadown_wai" id="true">确定</div>
@@ -39,6 +65,7 @@
 	</body>
 	<script src="../js/mui.min.js"></script>
 	<script src="../js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
+	<script src="../js/uploader.js" type="text/javascript" charset="utf-8"></script>
 	<script type="text/javascript">
 		mui.plusReady(function() {
 			var element;
@@ -48,7 +75,7 @@
 			parent.appendChild(element);
 	
 			element.onload = function() {
-				var style = [JZL.getCssUrl('setting_recive.css'), JZL.getCssUrl('login.css'), JZL.getCssUrl('setting.css'), JZL.getCssUrl("global.css"), JZL.getCssUrl("header.css")];
+				var style = [JZL.getCssUrl('login.css'), JZL.getCssUrl('setting.css'), JZL.getCssUrl("global.css"), JZL.getCssUrl("header.css")];
 				JZL.css_init(style);
 				var script = [JZL.getJsUrl('setting_recive.js'), JZL.getJsUrl('common.js')];
 				JZL.js_init(script);