| 
					
				 | 
			
			
				@@ -656,6 +656,11 @@ class Buy 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $type = Dever::input('search_option_type', $type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $type = Dever::input('type', $type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $noprice = Dever::input('noprice', 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($type == 3) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $noprice = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $info = Dever::db('shop/buy_order')->one($id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $result = array(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -664,7 +669,7 @@ class Buy 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $parent_order = $this->show_address($info, $result, $type, $type_info); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $button = $this->show_button($info, $type, $parent_order); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $button = $this->show_button($info, $type, $parent_order, $noprice); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $audit = Dever::input('audit'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ($audit == 1) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -672,16 +677,11 @@ class Buy 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $this->show_audit($info, $result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             # 退款信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $this->show_refund($info, $result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $this->show_refund($info, $result, $type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             # 配送信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $this->show_ps($info, $result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $noprice = Dever::input('noprice', 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if ($type == 3) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                $noprice = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             # 商品信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $this->show_goods($info, $result, $type, $noprice); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -851,7 +851,7 @@ class Buy 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $parent_order; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private function show_button($info, $type, $parent_order) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private function show_button($info, $type, $parent_order, $noprice) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $button = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ($type == 2) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1060,12 +1060,12 @@ class Buy 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $result['审核结果'] = array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'type' => 'html', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'content' => '<script>function saveAudit(){var goods = [];var audit = 1; var audit_text = $(".update_audit_text").val();$(".update_audit").each(function(){if ($(this).get(0).checked){audit = $(this).val()}});$(\'.audit\').each(function(){var v = $(this).val();var id = $(this).attr("id");goods.push(v + "_" + id);});layer.confirm(\'确定进行此项操作吗?\', function(){layui.form.render();var send = {};send.goods = goods.join(",");send.audit = audit;send.audit_text = audit_text;console.info(send);$.post("'.$url.'", send, function(t){t = JSON.parse(t);showYes(t)})})}</script><style>.layui-form-radio{padding-right: 0px;margin: 0px 0px 0 0;margin-left:40px}</style><div class="layui-form-item  show_input"><div classs="layui-col-lg6"><div><label style="font-size:14px;font-weight:bold;" class="">审核状态</label><div style="display:inline" class="am-btn-group"><input update_type="checked" class="checkbox-checkall-0_update_audit update_audit update_value validate[required]" type="radio" name="update_audit[]" value="2" checked="" show_id="audit" autocomplete="off" id="form-validation-field-1"> 审核通过   <input update_type="checked" class="autoload checkbox-checkall-0_update_audit update_audit update_value validate[required]" type="radio" name="update_audit[]" value="3" autocomplete="off" id="form-validation-field-0"> 审核未通过   </div></div></div></div><div class="layui-form-item" style="display: block;"><div classs="layui-col-lg6"><div><label style="font-size:14px;font-weight:bold;" class="">审核备注</label></div><div><textarea style="height:100px;" update_type="value" class="update_value update_audit_text form-control layui-input validate[required]" name="update_desc"></textarea></div></div></div> <div style="text-align:left" class="layui-layer-btn layui-layer-btn-"><a class="layui-layer-btn0" onclick="saveAudit()">保存</a><a class="layui-layer-btn1" style="display:none">取消</a></div>', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'content' => '<script>function saveAudit(){var goods = [];var audit = 1; var audit_text = $(".update_audit_text").val();$(".update_audit").each(function(){if ($(this).get(0).checked){audit = $(this).val()}});$(\'.audit\').each(function(){var v = $(this).val();var id = $(this).attr("id");goods.push(v + "_" + id);});layer.confirm(\'确定进行此项操作吗?\', function(){layui.form.render();var send = {};send.goods = goods.join(",");send.audit = audit;send.audit_text = audit_text;console.info(send);$.post("'.$url.'", send, function(t){t = JSON.parse(t);showYes(t)})})}</script><style>.layui-form-radio{padding-right: 0px;margin: 0px 0px 0 0;margin-left:40px}</style><div class="layui-form-item  show_input"><div classs="layui-col-lg6"><div><label style="font-size:14px;font-weight:bold;" class="">审核状态</label><div style="display:inline" class="am-btn-group"><input update_type="checked" class="checkbox-checkall-0_update_audit update_audit update_value validate[required]" type="radio" name="update_audit[]" value="2" checked="" show_id="audit" autocomplete="off" id="form-validation-field-1"> 审核通过   <input update_type="checked" class="autoload checkbox-checkall-0_update_audit update_audit update_value validate[required]" type="radio" name="update_audit[]" value="3" autocomplete="off" id="form-validation-field-0"> 审核未通过   </div></div></div></div><div class="layui-form-item" style="display: block;"><div classs="layui-col-lg6"><div><label style="font-size:14px;font-weight:bold;" class="">审核备注</label></div><div><textarea style="height:100px;" update_type="value" class="update_value update_audit_text form-control layui-input validate[required]" name="update_desc"></textarea></div></div></div> <div style="text-align:left" class="layui-layer-btn layui-layer-btn-"><a class="layui-btn layui-btn-primary" onclick="saveAudit()">保存</a><a class="layui-layer-btn1" style="display:none">取消</a></div>', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private function show_refund($info, &$result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private function show_refund($info, &$result, $type) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $tk = Dever::db('shop/buy_order_refund')->find(array('order_id' => $info['id'], 'type' => 1)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $url = Dever::url('lib/buy.refund_commit?json=1', 'mshop'); 
			 |