作者 郭鑫

修改上传

@@ -56,7 +56,7 @@ class CommonController extends HomeBaseController @@ -56,7 +56,7 @@ class CommonController extends HomeBaseController
56 } 56 }
57 } 57 }
58 }else{ 58 }else{
59 - $this->apiResponse('0','暂未注册'); 59 + $this->apiResponse('-1','暂未注册');
60 } 60 }
61 } 61 }
62 62
@@ -142,4 +142,22 @@ class CommonController extends HomeBaseController @@ -142,4 +142,22 @@ class CommonController extends HomeBaseController
142 return $return; 142 return $return;
143 } 143 }
144 144
  145 +// 费用单位处理
  146 + public function getStr($numb){
  147 + $split = str_split($numb);
  148 + $count = count($split);
  149 + $middle_str = '';
  150 + if($count > 5){
  151 + foreach ($split as $spk=>$spv){
  152 + if($spk < ($count-4)){
  153 + $middle_str .= $spv;
  154 + }
  155 + }
  156 + $resStr = $middle_str.'-万元';
  157 + }else{
  158 + $resStr = $numb.'-元';
  159 + }
  160 + return $resStr;
  161 + }
  162 +
145 } 163 }
@@ -178,6 +178,7 @@ class IntermediaryController extends CommonController @@ -178,6 +178,7 @@ class IntermediaryController extends CommonController
178 ->limit(10)->page($page) 178 ->limit(10)->page($page)
179 ->select()->toArray(); 179 ->select()->toArray();
180 if($need_list){ 180 if($need_list){
  181 + $else_arr = [];
181 foreach ($need_list as $neek=>$neev){ 182 foreach ($need_list as $neek=>$neev){
182 $where_agency['need_id'] = $neev['id']; 183 $where_agency['need_id'] = $neev['id'];
183 $where_agency['agency_id'] = $member['id']; 184 $where_agency['agency_id'] = $member['id'];
@@ -522,15 +523,19 @@ class IntermediaryController extends CommonController @@ -522,15 +523,19 @@ class IntermediaryController extends CommonController
522 * @method POST 523 * @method POST
523 * @method POST 524 * @method POST
524 * @param name:token type:int require:1 default: other: desc:token 525 * @param name:token type:int require:1 default: other: desc:token
  526 + * @return data:'type.1增加,2减少,3提现'
525 */ 527 */
526 public function orderDetail(Request $request){ 528 public function orderDetail(Request $request){
527 $data = $request->param(); 529 $data = $request->param();
528 $user = $this->left($data['token']); 530 $user = $this->left($data['token']);
529 $where_umoney['user_id'] = $user['id']; 531 $where_umoney['user_id'] = $user['id'];
530 - $where_umoney['status'] = 1;  
531 - $order_list = Db::name('AmoenyDetail')->where($where_umoney)->select()->toArray(); 532 + $where_umoney['status'] = array('neq',9);
  533 + $order_list = Db::name('MoneyDetail')->where($where_umoney)->select()->toArray();
532 $final['user'] = $user; 534 $final['user'] = $user;
533 if($order_list){ 535 if($order_list){
  536 + foreach ($order_list as $ordk=>$ordv){
  537 + $order_list[$ordk]['update_time'] = date('Y-m-d H:i:s',$ordv['update_time']);
  538 + }
534 $final['detail'] = $order_list; 539 $final['detail'] = $order_list;
535 }else{ 540 }else{
536 $final['detail'] = array(); 541 $final['detail'] = array();
@@ -176,10 +176,10 @@ class OrderController extends CommonController @@ -176,10 +176,10 @@ class OrderController extends CommonController
176 if($data['_type'] == 2) { 176 if($data['_type'] == 2) {
177 $return = $this->wxpay(['order_sn'=>$data['order_sn']],$sort); 177 $return = $this->wxpay(['order_sn'=>$data['order_sn']],$sort);
178 $qrcode_url = url('portal/Index/qrcode',['data'=>urlencode($return['code_url'])],true,true); 178 $qrcode_url = url('portal/Index/qrcode',['data'=>urlencode($return['code_url'])],true,true);
179 - $this->apiResponse(1,'微信支付','<img src="'.$qrcode_url.'" alt=""/>'); 179 + $this->apiResponse(1,'微信支付',['type'=>1,'url'=>$qrcode_url]);
180 } elseif($data['_type'] == 3) { 180 } elseif($data['_type'] == 3) {
181 $alipay_url = url('portal/Alipay/alipay',array('order_sn'=>$data['order_sn'],'name'=>$sort,'price'=>0.01),true,true); 181 $alipay_url = url('portal/Alipay/alipay',array('order_sn'=>$data['order_sn'],'name'=>$sort,'price'=>0.01),true,true);
182 - $this->apiResponse(1,'支付宝支付',$alipay_url); 182 + $this->apiResponse(1,'支付宝支付',['type'=>3,'url'=>$alipay_url]);
183 } 183 }
184 } else { 184 } else {
185 $this->apiResponse(0,'该订单已失效'); 185 $this->apiResponse(0,'该订单已失效');
@@ -974,14 +974,22 @@ class UserController extends CommonController @@ -974,14 +974,22 @@ class UserController extends CommonController
974 } 974 }
975 $where_need['id'] = $data['need_id']; 975 $where_need['id'] = $data['need_id'];
976 $where_need['user_id'] = $member['id']; 976 $where_need['user_id'] = $member['id'];
977 - $where_need['status'] = 5;  
978 - $userNeed = Db::name('UserNeed')->where($where_need)->field("id as need_id,city,quarters,room,pay_money,create_time,choose_time,status")->find(); 977 + $where_need['status'] = array('in','5,7');
  978 + $userNeed = Db::name('UserNeed')->where($where_need)->field("id as need_id,city,quarters,room,pay_money,pay_time,choose_time,status")->find();
979 $final['need'] = $userNeed; 979 $final['need'] = $userNeed;
980 $final['user'] = $member; 980 $final['user'] = $member;
981 if($userNeed){ 981 if($userNeed){
  982 +// 已选择中介
  983 + if($userNeed['status'] == 7){
  984 + $where_agency['a.need_id'] = $data['need_id'];
  985 + $where_agency['a.status'] = 5;
  986 + }else{
  987 +// 待选择中介
  988 + $where_agency['a.need_id'] = $data['need_id'];
  989 + $where_agency['a.status'] = 4;
  990 + }
982 // 查询报价 991 // 查询报价
983 - $where_agency['a.need_id'] = $data['need_id'];  
984 - $where_agency['a.status'] = 4; 992 +
985 $agency = Db::name('Agency')->alias('a') 993 $agency = Db::name('Agency')->alias('a')
986 ->where($where_agency) 994 ->where($where_agency)
987 ->join("hp_Member m", 'm.id = a.agency_id') 995 ->join("hp_Member m", 'm.id = a.agency_id')
@@ -989,6 +997,15 @@ class UserController extends CommonController @@ -989,6 +997,15 @@ class UserController extends CommonController
989 m.id as user_id,m.name,m.company,m.store,m.tel,m.reputation,m.start') 997 m.id as user_id,m.name,m.company,m.store,m.tel,m.reputation,m.start')
990 ->select()->toArray(); 998 ->select()->toArray();
991 if($agency){ 999 if($agency){
  1000 + foreach ($agency as $agek=>$agev){
  1001 + $agency[$agek]['service_charge'] = $this->getStr($agev['service_charge']);
  1002 + $agency[$agek]['assessment_tax'] = $this->getStr($agev['assessment_tax']);
  1003 + $agency[$agek]['security_tax'] = $this->getStr($agev['security_tax']);
  1004 + $agency[$agek]['value_added_tax'] = $this->getStr($agev['value_added_tax']);
  1005 + $agency[$agek]['deed_tax'] = $this->getStr($agev['deed_tax']);
  1006 + $agency[$agek]['personal_income_tax'] = $this->getStr($agev['personal_income_tax']);
  1007 + $agency[$agek]['else_tax'] = $this->getStr($agev['else_tax']);
  1008 + }
992 $final['agency'] = $agency; 1009 $final['agency'] = $agency;
993 $this->apiResponse('1','成功',$final); 1010 $this->apiResponse('1','成功',$final);
994 }else{ 1011 }else{
@@ -1043,13 +1060,25 @@ class UserController extends CommonController @@ -1043,13 +1060,25 @@ class UserController extends CommonController
1043 * @param name:token type:int require:1 default: other: desc:token 1060 * @param name:token type:int require:1 default: other: desc:token
1044 * @param name:need_id type:int require:1 default: other: desc:需求id 1061 * @param name:need_id type:int require:1 default: other: desc:需求id
1045 * @param name:intermediary_id type:int require:1 default: other: desc:中介报价id 1062 * @param name:intermediary_id type:int require:1 default: other: desc:中介报价id
1046 - * @return data:''@ 1063 + * @return data:''
1047 */ 1064 */
1048 public function sureAgency(Request $request){ 1065 public function sureAgency(Request $request){
1049 $data = $request->param(); 1066 $data = $request->param();
1050 if(!$data['need_id'] || !$data['intermediary_id'] ){ 1067 if(!$data['need_id'] || !$data['intermediary_id'] ){
1051 $this->apiResponse('0','参数错误'); 1068 $this->apiResponse('0','参数错误');
1052 } 1069 }
  1070 + $where_need['id'] = $data['need_id'];
  1071 + $where_need['status'] = 5;
  1072 + $user_need = Db::name('UserNeed')->where($where_need)->find();
  1073 + if(!$user_need){
  1074 + $this->apiResponse('0','状态错误');
  1075 + }
  1076 + $need_update['status'] = 7;
  1077 + $need_update['choose_time'] = time();
  1078 + $need_res = Db::name('UserNeed')->where($where_need)->update($need_update);
  1079 + if(!$need_res){
  1080 + $this->apiResponse('0','成交失败');
  1081 + }
1053 $where_bid['need_id'] = $data['need_id']; 1082 $where_bid['need_id'] = $data['need_id'];
1054 $where_bid['id'] = $data['intermediary_id']; 1083 $where_bid['id'] = $data['intermediary_id'];
1055 $where_bid['status'] = 4; 1084 $where_bid['status'] = 4;
@@ -1146,7 +1175,7 @@ class UserController extends CommonController @@ -1146,7 +1175,7 @@ class UserController extends CommonController
1146 $change_status['status'] = 11; 1175 $change_status['status'] = 11;
1147 $change_com = Db::name('UserNeed')->where($where_need)->update($change_status); 1176 $change_com = Db::name('UserNeed')->where($where_need)->update($change_status);
1148 if($change_com){ 1177 if($change_com){
1149 - $this->apiResponse('1','评价成功'); 1178 + $this->apiResponse('1','评价成功',$add_result);
1150 }else{ 1179 }else{
1151 $this->apiResponse('0','评价失败'); 1180 $this->apiResponse('0','评价失败');
1152 } 1181 }
@@ -1168,75 +1197,40 @@ class UserController extends CommonController @@ -1168,75 +1197,40 @@ class UserController extends CommonController
1168 * @url /api/portal/User/changeUserComment 1197 * @url /api/portal/User/changeUserComment
1169 * @method POST 1198 * @method POST
1170 * @param name:token type:int require:1 default: other: desc:token 1199 * @param name:token type:int require:1 default: other: desc:token
1171 - * @param name:comment_id type:int require:1 default: other: desc:评论id 1200 + * @param name:need_id type:int require:1 default: other: desc:需求id
1172 * @param name:content type:int require:1 default: other: desc:评论内容 1201 * @param name:content type:int require:1 default: other: desc:评论内容
1173 */ 1202 */
1174 public function changeUserComment(Request $request){ 1203 public function changeUserComment(Request $request){
1175 $data = $request->param(); 1204 $data = $request->param();
1176 - if(empty($data['comment_id'])){  
1177 - $this->apiResponse('0','评论id不能为空'); 1205 + if(empty($data['need_id'])){
  1206 + $this->apiResponse('0','需求id不能为空');
1178 } 1207 }
  1208 + $where_member['token'] = $data['token'];
  1209 + $member_id = Db::name('Member')->where($where_member)->field('id')->find();
1179 if(empty($data['content'])){ 1210 if(empty($data['content'])){
1180 - $where_change['id'] = $data['comment_id']; 1211 + $where_change['need_id'] = $data['need_id'];
  1212 + $where_change['user_id'] = $member_id['id'];
1181 $where_change['status'] = 1; 1213 $where_change['status'] = 1;
1182 $where_change['is_comment'] = 0; 1214 $where_change['is_comment'] = 0;
1183 $find_comment = Db::name('Comment')->where($where_change)->find(); 1215 $find_comment = Db::name('Comment')->where($where_change)->find();
1184 if($find_comment){ 1216 if($find_comment){
1185 - $this->apiResponse('1','成功',$find_comment); 1217 + $this->apiResponse('1','成功',$find_comment['id']);
1186 }else{ 1218 }else{
1187 $this->apiResponse('0','该评价不可修改'); 1219 $this->apiResponse('0','该评价不可修改');
1188 } 1220 }
1189 }else{ 1221 }else{
1190 - $where_update['id'] = $data['comment_id']; 1222 + $where_update['need_id'] = $data['need_id'];
  1223 + $where_update['user_id'] = $member_id['id'];
  1224 + $where_update['is_comment'] = 0;
1191 $where_update['status'] = 1; 1225 $where_update['status'] = 1;
1192 $update['content'] = $data['content']; 1226 $update['content'] = $data['content'];
1193 $update['is_comment'] = 1; 1227 $update['is_comment'] = 1;
1194 $update_result = Db::name('Comment')->where($where_update)->update($update); 1228 $update_result = Db::name('Comment')->where($where_update)->update($update);
1195 if($update_result){ 1229 if($update_result){
1196 - $this->apiResponse('1','修改成功'); 1230 + $this->apiResponse('1','修改成功',$data['need_id']);
1197 }else{ 1231 }else{
1198 $this->apiResponse('0','修改失败'); 1232 $this->apiResponse('0','修改失败');
1199 } 1233 }
1200 -  
1201 -  
1202 - }  
1203 -  
1204 -  
1205 - if(empty($data['content'])){  
1206 - $this->apiResponse('0','评论内容不能为空');  
1207 - }  
1208 - $where_need['status'] = 10;  
1209 - $where_need['id'] = $data['need_id'];  
1210 - $need = Db::name('UserNeed')->where($where_need)->find();  
1211 - if($need){  
1212 - $where_agency['status'] = 11;  
1213 - $where_agency['need_id'] = $need['id'];  
1214 - $agency = Db::name('Agency')->where($where_agency)->find();  
1215 - if($agency){  
1216 - $add['need_id'] = $need['id'];  
1217 - $add['agency_id'] = $agency['id'];  
1218 - $add['intermediary_id'] = $agency['agency_id'];  
1219 - $add['user_id'] = $need['user_id'];  
1220 - $add['content'] = $data['content'];  
1221 - $add['create_time'] = time();  
1222 - $add['update_time'] = time();  
1223 - $add_result = Db::name('Comment')->insertGetId($add);  
1224 - if($add_result){  
1225 - $change_status['status'] = 11;  
1226 - $change_com = Db::name('UserNeed')->where($where_need)->update($change_status);  
1227 - if($change_com){  
1228 - $this->apiResponse('1','评价成功');  
1229 - }else{  
1230 - $this->apiResponse('0','评价失败');  
1231 - }  
1232 - }else{  
1233 - $this->apiResponse('0','评价失败');  
1234 - }  
1235 - }else{  
1236 - $this->apiResponse('0','评价失败');  
1237 - }  
1238 - }else{  
1239 - $this->apiResponse('0','评价失败');  
1240 } 1234 }
1241 } 1235 }
1242 1236
@@ -1322,7 +1316,10 @@ class UserController extends CommonController @@ -1322,7 +1316,10 @@ class UserController extends CommonController
1322 Db::startTrans(); 1316 Db::startTrans();
1323 $data = $request->param(); 1317 $data = $request->param();
1324 $where_member['token'] = $data['token']; 1318 $where_member['token'] = $data['token'];
1325 - $member = Db::name('Member')->where($where_member)->field('id,money')->find(); 1319 + $member = Db::name('Member')->where($where_member)->field('id,money,type')->find();
  1320 + if($member['money'] <= 0){
  1321 + $this->apiResponse('0','用户余额不足');
  1322 + }
1326 if($member){ 1323 if($member){
1327 $final['user'] = $member; 1324 $final['user'] = $member;
1328 }else{ 1325 }else{
@@ -1338,13 +1335,21 @@ class UserController extends CommonController @@ -1338,13 +1335,21 @@ class UserController extends CommonController
1338 $final['card'] = $card; 1335 $final['card'] = $card;
1339 } 1336 }
1340 $where_umoney['user_id'] = $member['id']; 1337 $where_umoney['user_id'] = $member['id'];
1341 - $where_umoney['card_id'] = $card['id'];  
1342 - $where_umoney['title'] = '用户提现'; 1338 + $where_umoney['user_type'] = $member['type'];
  1339 +// if($member['type'] == 1){
  1340 +// $where_umoney['title'] = '用户提现';
  1341 +// }else{
  1342 +// $where_umoney['title'] = '中介提现';
  1343 +// }
  1344 + $where_umoney['title'] = '余额提现';
1343 $where_umoney['money'] = $member['money']; 1345 $where_umoney['money'] = $member['money'];
  1346 + $where_umoney['order_type'] = 6;
1344 $where_umoney['type'] = 3; 1347 $where_umoney['type'] = 3;
  1348 + $where_umoney['pay_type'] = 3;
  1349 + $where_umoney['status'] = 5;
1345 $where_umoney['create_time'] = time(); 1350 $where_umoney['create_time'] = time();
1346 $where_umoney['update_time'] = time(); 1351 $where_umoney['update_time'] = time();
1347 - $add = Db::name('UmoenyDetail')->insertGetId($where_umoney); 1352 + $add = Db::name('MoneyDetail')->insertGetId($where_umoney);
1348 if($add){ 1353 if($add){
1349 $del = Db::name('Member')->where($where_member)->setDec('money',$member['money']); 1354 $del = Db::name('Member')->where($where_member)->setDec('money',$member['money']);
1350 $inc = Db::name('Member')->where($where_member)->setInc('get_money',$member['money']); 1355 $inc = Db::name('Member')->where($where_member)->setInc('get_money',$member['money']);
@@ -1368,15 +1373,19 @@ class UserController extends CommonController @@ -1368,15 +1373,19 @@ class UserController extends CommonController
1368 * @url /api/portal/User/orderDetail 1373 * @url /api/portal/User/orderDetail
1369 * @method POST 1374 * @method POST
1370 * @param name:token type:int require:1 default: other: desc:token 1375 * @param name:token type:int require:1 default: other: desc:token
  1376 + * @return data:'type.1增加,2减少,3提现'
1371 */ 1377 */
1372 public function orderDetail(Request $request){ 1378 public function orderDetail(Request $request){
1373 $data = $request->param(); 1379 $data = $request->param();
1374 $user = $this->myleft($data['token']); 1380 $user = $this->myleft($data['token']);
1375 $where_umoney['user_id'] = $user['id']; 1381 $where_umoney['user_id'] = $user['id'];
1376 - $where_umoney['status'] = 1;  
1377 - $order_list = Db::name('UmoenyDetail')->where($where_umoney)->select()->toArray(); 1382 + $where_umoney['status'] = array('neq',9);
  1383 + $order_list = Db::name('MoneyDetail')->where($where_umoney)->field('id,title,money,update_time,type')->select()->toArray();
1378 $final['user'] = $user; 1384 $final['user'] = $user;
1379 if($order_list){ 1385 if($order_list){
  1386 + foreach ($order_list as $ordk=>$ordv){
  1387 + $order_list[$ordk]['update_time'] = date('Y-m-d H:i:s',$ordv['update_time']);
  1388 + }
1380 $final['detail'] = $order_list; 1389 $final['detail'] = $order_list;
1381 }else{ 1390 }else{
1382 $final['detail'] = array(); 1391 $final['detail'] = array();
@@ -252,6 +252,9 @@ class UserneedController extends CommonController @@ -252,6 +252,9 @@ class UserneedController extends CommonController
252 unset($data['connect']); 252 unset($data['connect']);
253 unset($data['token']); 253 unset($data['token']);
254 $data['id'] = $data['need_id']; 254 $data['id'] = $data['need_id'];
  255 + if($need['status'] == 2){
  256 + unset($data['pay_money']);
  257 + }
255 $save = $model->isUpdate(true)->allowField(true)->save($data); 258 $save = $model->isUpdate(true)->allowField(true)->save($data);
256 } 259 }
257 if($save){ 260 if($save){
@@ -77,7 +77,7 @@ class AdminOauthController extends AdminBaseController @@ -77,7 +77,7 @@ class AdminOauthController extends AdminBaseController
77 $this->assign('tel', $data['tel']); 77 $this->assign('tel', $data['tel']);
78 } 78 }
79 } 79 }
80 - $lists = Db::name('Member')->where($where_member)->select()->toArray(); 80 + $lists = Db::name('Member')->where($where_member)->order('status')->select()->toArray();
81 foreach ($lists as $lk=>$lv){ 81 foreach ($lists as $lk=>$lv){
82 $where_referee['id'] = $lv['referee_id']; 82 $where_referee['id'] = $lv['referee_id'];
83 $referee = Db::name('Member')->where($where_referee)->field('id,name')->find(); 83 $referee = Db::name('Member')->where($where_referee)->field('id,name')->find();
@@ -236,6 +236,99 @@ class AdminOauthController extends AdminBaseController @@ -236,6 +236,99 @@ class AdminOauthController extends AdminBaseController
236 } 236 }
237 } 237 }
238 238
  239 +// 查询订单
  240 + public function findOrder(){
  241 + $data = $this->request->param();
  242 + $where_order['id'] = $data['order_id'];
  243 + $order = Db::name('Order')->where($where_order)->find();
  244 + if(!$order) {
  245 + $this->error('订单错误');
  246 + }
  247 + $this->assign('list',$order);
  248 + return $this->fetch('order');
  249 + }
  250 +
  251 +// 邀请人
  252 + public function referee(){
  253 + $data = $this->request->param();
  254 + if($data){
  255 + $startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']);
  256 + $endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']);
  257 + if ($startTime && $endTime) {
  258 + $where_referee['create_time'] = array('between',"$startTime,$endTime");
  259 + $this->assign('start_time', $data['start_time']);
  260 + $this->assign('end_time', $data['end_time']);
  261 + }else{
  262 + if($startTime){
  263 + $where_referee['create_time'] = array('egt',$startTime);
  264 + $this->assign('start_time', $data['start_time']);
  265 + }
  266 + if($endTime){
  267 + $where_referee['create_time'] = array('elt',$endTime);
  268 + $this->assign('end_time', $data['end_time']);
  269 + }
  270 + }
  271 +
  272 + if(!empty($data['name'])){
  273 + $where_referee['name'] = array('like','%'.$data['name'].'%');
  274 + $this->assign('name', $data['name']);
  275 + }
  276 + if(!empty($data['tel'])){
  277 + $where_referee['tel'] = array('like','%'.$data['tel'].'%');
  278 + $this->assign('tel', $data['tel']);
  279 + }
  280 + }
  281 + $where_member['id'] = $data['id'];
  282 + $member = Db::name('Member')->where($where_member)->field('id,name,tel')->find();
  283 + $this->assign('user',$member);
  284 + $this->assign('uid',$member['id']);
  285 + $where_referee['referee_id'] = $data['id'];
  286 + $member = Db::name('Member')->where($where_referee)->select()->toArray();
  287 + $this->assign('lists',$member);
  288 + return $this->fetch();
  289 + }
  290 +
  291 +// 提现申请
  292 + public function getMoneyDetail(){
  293 + $data = $this->request->param();
  294 + if($data){
  295 + $startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']);
  296 + $endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']);
  297 + if ($startTime && $endTime) {
  298 + $where_money['create_time'] = array('between',"$startTime,$endTime");
  299 + $this->assign('start_time', $data['start_time']);
  300 + $this->assign('end_time', $data['end_time']);
  301 + }else{
  302 + if($startTime){
  303 + $where_money['create_time'] = array('egt',$startTime);
  304 + $this->assign('start_time', $data['start_time']);
  305 + }
  306 + if($endTime){
  307 + $where_money['create_time'] = array('elt',$endTime);
  308 + $this->assign('end_time', $data['end_time']);
  309 + }
  310 + }
  311 + }
  312 + $where_money['user_id'] = $data['id'];
  313 + $where_money['order_type'] = 6;
  314 + $where_money['type'] = 3;
  315 + $where_money['status'] = array('neq',9);
  316 + $money_list = Db::name('MoneyDetail')->where($where_money)->select();
  317 + $this->assign('uid',$data['id']);
  318 + $this->assign('lists',$money_list);
  319 + return $this->fetch('getdetail');
  320 + }
  321 +
  322 +
  323 +
  324 +// 同意提现
  325 + public function agree(){
  326 +
  327 + }
  328 +
  329 +
  330 +
  331 +
239 // 提现 332 // 提现
240 public function getmoney(){ 333 public function getmoney(){
241 $data = $this->request->param(); 334 $data = $this->request->param();
@@ -256,7 +349,7 @@ class AdminOauthController extends AdminBaseController @@ -256,7 +349,7 @@ class AdminOauthController extends AdminBaseController
256 349
257 350
258 351
259 - 352 +// 中介
260 public function intermediary() 353 public function intermediary()
261 { 354 {
262 // 中介 355 // 中介
@@ -328,7 +421,7 @@ class AdminOauthController extends AdminBaseController @@ -328,7 +421,7 @@ class AdminOauthController extends AdminBaseController
328 Db::name("third_party_user")->where("id", $id)->delete(); 421 Db::name("third_party_user")->where("id", $id)->delete();
329 $this->success("删除成功!", "admin_oauth/index"); 422 $this->success("删除成功!", "admin_oauth/index");
330 } 423 }
331 -// 黑名单 424 +// 加入黑名单
332 public function del(Request $request) 425 public function del(Request $request)
333 { 426 {
334 $where_member['id'] = $request->param('id'); 427 $where_member['id'] = $request->param('id');
@@ -347,7 +440,7 @@ class AdminOauthController extends AdminBaseController @@ -347,7 +440,7 @@ class AdminOauthController extends AdminBaseController
347 } 440 }
348 441
349 442
350 -// 黑名单 443 +// 黑名单列表
351 public function black(Request $request) 444 public function black(Request $request)
352 { 445 {
353 $where_member['status'] = 8; 446 $where_member['status'] = 8;
  1 +<include file="public@header"/>
  2 +<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css">
  3 +<style>
  4 + .popup{
  5 + width: 250px;
  6 + height: 100px;
  7 + background-color: rgba(0,0,0,0.5);
  8 + position: fixed;
  9 + top: 50%;
  10 + transform: translateY(-50px);
  11 + left: 0;
  12 + right: 0;
  13 + margin: 0 auto;
  14 + border-radius: 5px;
  15 + color: #ffffff;
  16 + }
  17 + .popup p{
  18 + text-align: center;
  19 + margin-top: 20px;
  20 + }
  21 + .popup span{
  22 + text-align: center;
  23 + line-height: 30px;
  24 + cursor: pointer;
  25 + }
  26 + .popup .queding{
  27 + display: inline-block;
  28 + width: 80px;
  29 + height: 30px;
  30 + background-color: #1E9FFF;
  31 + border-radius: 3px;
  32 + }
  33 + .popup span:hover{
  34 + opacity: 0.8;
  35 + }
  36 + .popup .quxiao{
  37 + display: inline-block;
  38 + width: 80px;
  39 + height: 30px;
  40 + ckground-color: #9cb945 ;
  41 + color: #333333;
  42 + border-radius: 3px;
  43 + background-color:#fff;
  44 + margin-left: 35px;
  45 + }
  46 + .btn_list{
  47 + margin: 0 auto;
  48 + width: 200px;
  49 + }
  50 +</style>
  51 +</head>
  52 +<body>
  53 +<div class="wrap">
  54 + <ul class="nav nav-tabs">
  55 + <li class="active"><a>提现管理</a></li>
  56 + </ul>
  57 + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/getMoneyDetail',array('id'=>$uid))}">
  58 + 时间:
  59 + <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
  60 + value="{$start_time|default=''}"
  61 + style="width: 140px;" autocomplete="off"> -
  62 + <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
  63 + value="{$end_time|default=''}"
  64 + style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
  65 + <input type="submit" class="btn btn-primary" value="搜索"/>
  66 + <a class="btn btn-danger" href="{:url('AdminOauth/getMoneyDetail',array('id'=>$uid))}">清空</a>
  67 + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
  68 + </form>
  69 +
  70 +
  71 + <form method="post" class="js-ajax-form margin-top-20">
  72 + <table class="table table-hover table-bordered">
  73 + <thead>
  74 + <tr>
  75 + <th>ID</th>
  76 + <th>提现金额</th>
  77 + <th>状态</th>
  78 + <th>提现时间</th>
  79 + <th>操作</th>
  80 + </tr>
  81 + </thead>
  82 + <tbody>
  83 + <foreach name="lists" item="vo">
  84 + <tr>
  85 + <td>{$vo.id}</td>
  86 + <td>{$vo.money}</td>
  87 + <td>
  88 + <eq name="vo.status" value="5">待审核</eq>
  89 + <eq name="vo.status" value="3">提现通过</eq>
  90 + <eq name="vo.status" value="4">提现拒绝</eq>
  91 + </td>
  92 + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
  93 + <td>
  94 + <span class="agree" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">同意</span>
  95 + <span class="refuse" style="color: #ff0000; text-decoration:underline; cursor: pointer; " index="{$vo.id}">拒绝</span>
  96 + </td>
  97 + </tr>
  98 + </foreach>
  99 + </tbody>
  100 + </table>
  101 +
  102 + </form>
  103 + <div class="popup" style="display: none;">
  104 + <p>确认拉黑该用户</p>
  105 + <div class="btn_list">
  106 + <span class="queding">确认</span>
  107 + <span class="quxiao">取消</span>
  108 + </div>
  109 + </div>
  110 +
  111 +</div>
  112 +<script src="__STATIC__/js/admin.js"></script>
  113 +<script src="__STATIC__/js/layer/layer.js"></script>
  114 +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script>
  115 +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script>
  116 +<script type="">
  117 + $('.agree').click(function () {
  118 + var id = $(this).attr('index');
  119 + $('.popup').css('display','block');
  120 + // 删除
  121 + $('.queding').click(function () {
  122 + $.ajax({
  123 + type:"POST",
  124 + url:"{:url('AdminOauth/agree')}",
  125 + data:{
  126 + "id":id,
  127 + },
  128 + success:function (data) {
  129 + new TipBox({type:'success',str:'操作成功',hasBtn:true});
  130 + $('.popup').css('display','none');
  131 + },
  132 + error:function () {
  133 + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true});
  134 + $('.popup').css('display','none');
  135 + }
  136 + })
  137 + })
  138 + })
  139 + $('.quxiao').click(function () {
  140 + $('.popup').css('display','none');
  141 + })
  142 +
  143 +</script>
  144 +</body>
  145 +</html>
@@ -79,6 +79,7 @@ @@ -79,6 +79,7 @@
79 <span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp; 79 <span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp;
80 <span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp; 80 <span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
81 <span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp; 81 <span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp;
  82 + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
82 </div> 83 </div>
83 </div> 84 </div>
84 85
@@ -78,8 +78,10 @@ @@ -78,8 +78,10 @@
78 <div> 78 <div>
79 <span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp; 79 <span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp;
80 <span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp; 80 <span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
81 - <span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp; 81 + <span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  82 + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
82 </div> 83 </div>
  84 +
83 </div> 85 </div>
84 86
85 <form method="post" class="js-ajax-form margin-top-20"> 87 <form method="post" class="js-ajax-form margin-top-20">
@@ -108,8 +110,10 @@ @@ -108,8 +110,10 @@
108 </td> 110 </td>
109 <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> 111 <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
110 <td> 112 <td>
111 - <span class="look" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看订单</span>  
112 - <span class="black" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">删除</span> 113 + <neq name="vo.order_id" value="0">
  114 + <span class="order" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.order_id}">查看订单</span>
  115 + </neq>
  116 + <span class="del" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">删除</span>
113 </td> 117 </td>
114 </tr> 118 </tr>
115 </foreach> 119 </foreach>
@@ -131,7 +135,7 @@ @@ -131,7 +135,7 @@
131 <script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> 135 <script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script>
132 <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> 136 <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script>
133 <script type=""> 137 <script type="">
134 - $('.black').click(function () { 138 + $('.del').click(function () {
135 var id = $(this).attr('index'); 139 var id = $(this).attr('index');
136 $('.popup').css('display','block'); 140 $('.popup').css('display','block');
137 // 删除 141 // 删除
@@ -165,7 +169,14 @@ @@ -165,7 +169,14 @@
165 var url = url3[0]+'/id/'+url2+'.html'; 169 var url = url3[0]+'/id/'+url2+'.html';
166 window.location.href = url 170 window.location.href = url
167 }) 171 })
168 -// 查看收支明细 172 +// 查看订单
  173 + $('.order').click(function () {
  174 + var url1 = "{:url('user/AdminOauth/findOrder')}";
  175 + var url2 = $(this).attr('index');
  176 + var url3 = url1.split('.');
  177 + var url = url3[0]+'/order_id/'+url2+'.html';
  178 + window.location.href = url
  179 + })
169 // 查看提现申请 180 // 查看提现申请
170 // 查看邀请人 181 // 查看邀请人
171 </script> 182 </script>
  1 +<include file="public@header"/>
  2 +<style type="text/css">
  3 + .pic-list li {
  4 + margin-bottom: 5px;
  5 + }
  6 +</style>
  7 +</head>
  8 +<body>
  9 +<div class="wrap js-check-wrap">
  10 + <ul class="nav nav-tabs">
  11 + <!--<li><a href="{:url('Bank/index')}">银行列表</a></li>-->
  12 + <!--<li class="active"><a href="{:url('Bank/add')}">添加银行</a></li>-->
  13 + </ul>
  14 + <form action="{:url('AdminOauth/findOrder')}" method="post" class="form-horizontal js-ajax-form margin-top-20" enctype="multipart/form-data" >
  15 + <div class="row">
  16 + <div class="col-md-9">
  17 + <table class="table table-bordered">
  18 + <input class="form-control" type="hidden" name="id"
  19 + value="{$list['id']}"/>
  20 + <tr>
  21 + <th width="15%">订单号</th>
  22 + <td><input class="form-control" type="text" name="order_sn" readonly="readonly"
  23 + value="{$list['order_sn']}" />
  24 +
  25 + </td>
  26 + </tr>
  27 + <tr>
  28 + <th width="15%">明细内容</th>
  29 + <td><input class="form-control" type="text" name="name" readonly="readonly" value="{$list['name']}" />
  30 +
  31 + </td>
  32 + </tr>
  33 + <tr>
  34 + <th width="15%">需求id</th>
  35 + <td><input class="form-control" type="text" name="type" readonly="readonly" value="{$list['type']}" />
  36 +
  37 + </td>
  38 + </tr>
  39 + <tr>
  40 + <th width="15%">支付金额</th>
  41 + <td><input class="form-control" type="text" name="money" value="{$list['money']}" readonly="readonly"/>
  42 +
  43 + </td>
  44 + </tr>
  45 + <tr>
  46 + <th width="15%">支付状态</th>
  47 + <td><input class="form-control" type="text" name="status" value="{$list['status']}" readonly="readonly"/>
  48 +
  49 + </td>
  50 + </tr>
  51 + <tr>
  52 + <th width="15%">支付方式</th>
  53 + <td><input class="form-control" type="text" name="pay_type" value="{$list['pay_type']}" readonly="readonly"/>
  54 +
  55 + </td>
  56 + </tr>
  57 + <tr>
  58 + <th width="15%">支付时间</th>
  59 + <td><input class="form-control" type="text" name="pay_time" value="{$list['pay_time']|date='Y-m-d H:i:s',###}" readonly="readonly"/>
  60 + </td>
  61 + </tr>
  62 + <tr>
  63 + <th width="15%">订单生成时间</th>
  64 + <td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" readonly="readonly"/>
  65 + </td>
  66 + </tr>
  67 +
  68 + </table>
  69 + <div class="form-group">
  70 + <div class="col-sm-offset-2 col-sm-10">
  71 + <!--<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>-->
  72 + <span class="btn btn-default" onclick="window.history.back(-1)">{:lang('BACK')}</span>
  73 + </div>
  74 + </div>
  75 + </div>
  76 + </div>
  77 + </form>
  78 +</div>
  79 +<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
  80 +<script type="text/javascript">
  81 + //编辑器路径定义
  82 + var editorURL = GV.WEB_ROOT;
  83 +</script>
  84 +<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
  85 +<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
  86 +<script type="text/javascript">
  87 + $(function () {
  88 +
  89 + editorcontent = new baidu.editor.ui.Editor();
  90 + editorcontent.render('content');
  91 + try {
  92 + editorcontent.sync();
  93 + } catch (err) {
  94 + }
  95 +
  96 + $('.btn-cancel-thumbnail').click(function () {
  97 + $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
  98 + $('#thumbnail').val('');
  99 + });
  100 +
  101 + });
  102 +
  103 +</script>
  104 +</body>
  105 +</html>
  1 +<include file="public@header"/>
  2 +<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css">
  3 +<style>
  4 + .popup{
  5 + width: 250px;
  6 + height: 100px;
  7 + background-color: rgba(0,0,0,0.5);
  8 + position: fixed;
  9 + top: 50%;
  10 + transform: translateY(-50px);
  11 + left: 0;
  12 + right: 0;
  13 + margin: 0 auto;
  14 + border-radius: 5px;
  15 + color: #ffffff;
  16 + }
  17 + .popup p{
  18 + text-align: center;
  19 + margin-top: 20px;
  20 + }
  21 + .popup span{
  22 + text-align: center;
  23 + line-height: 30px;
  24 + cursor: pointer;
  25 + }
  26 + .popup .queding{
  27 + display: inline-block;
  28 + width: 80px;
  29 + height: 30px;
  30 + background-color: #1E9FFF;
  31 + border-radius: 3px;
  32 + }
  33 + .popup span:hover{
  34 + opacity: 0.8;
  35 + }
  36 + .popup .quxiao{
  37 + display: inline-block;
  38 + width: 80px;
  39 + height: 30px;
  40 + ckground-color: #9cb945 ;
  41 + color: #333333;
  42 + border-radius: 3px;
  43 + background-color:#fff;
  44 + margin-left: 35px;
  45 + }
  46 + .btn_list{
  47 + margin: 0 auto;
  48 + width: 200px;
  49 + }
  50 +</style>
  51 +</head>
  52 +<body>
  53 +<div class="wrap">
  54 + <ul class="nav nav-tabs">
  55 + <li class="active"><a>邀请人管理</a></li>
  56 + </ul>
  57 + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/referee',array('id'=>$uid))}">
  58 + 时间:
  59 + <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
  60 + value="{$start_time|default=''}"
  61 + style="width: 140px;" autocomplete="off"> -
  62 + <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
  63 + value="{$end_time|default=''}"
  64 + style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
  65 + 姓名:
  66 + <input type="text" class="form-control" name="name" style="width: 200px;"
  67 + value="{$name|default=''}" placeholder="请输入姓名">
  68 + 手机号:
  69 + <input type="text" class="form-control" name="tel" style="width: 200px;"
  70 + value="{$tel|default=''}" placeholder="请输入手机号">
  71 + <input type="submit" class="btn btn-primary" value="搜索"/>
  72 + <a class="btn btn-danger" href="{:url('AdminOauth/referee',array('id'=>$uid))}">清空</a>
  73 + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
  74 + </form>
  75 +
  76 +
  77 + <form method="post" class="js-ajax-form margin-top-20">
  78 + <table class="table table-hover table-bordered">
  79 + <thead>
  80 + <tr>
  81 + <th>ID</th>
  82 + <th>姓名</th>
  83 + <th>手机号</th>
  84 + <th>注册时间</th>
  85 + </tr>
  86 + </thead>
  87 + <tbody>
  88 + <foreach name="lists" item="vo">
  89 + <tr>
  90 + <td>{$vo.id}</td>
  91 + <td>{$vo.name}</td>
  92 + <td>{$vo.tel}</td>
  93 + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
  94 + </tr>
  95 + </foreach>
  96 + </tbody>
  97 + </table>
  98 +
  99 + </form>
  100 + <div class="popup" style="display: none;">
  101 + <p>确认拉黑该用户</p>
  102 + <div class="btn_list">
  103 + <span class="queding">确认</span>
  104 + <span class="quxiao">取消</span>
  105 + </div>
  106 + </div>
  107 +
  108 +</div>
  109 +<script src="__STATIC__/js/admin.js"></script>
  110 +<script src="__STATIC__/js/layer/layer.js"></script>
  111 +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script>
  112 +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script>
  113 +<script type="">
  114 + $('.black').click(function () {
  115 + var id = $(this).attr('index');
  116 + $('.popup').css('display','block');
  117 + // 删除
  118 + $('.queding').click(function () {
  119 + $.ajax({
  120 + type:"POST",
  121 + url:"{:url('AdminOauth/del')}",
  122 + data:{
  123 + "id":id,
  124 + },
  125 + success:function (data) {
  126 + new TipBox({type:'success',str:'操作成功',hasBtn:true});
  127 + $('.popup').css('display','none');
  128 + },
  129 + error:function () {
  130 + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true});
  131 + $('.popup').css('display','none');
  132 + }
  133 + })
  134 + })
  135 + })
  136 + $('.quxiao').click(function () {
  137 + $('.popup').css('display','none');
  138 + })
  139 +
  140 +</script>
  141 +</body>
  142 +</html>
@@ -80,6 +80,7 @@ @@ -80,6 +80,7 @@
80 <th>ID</th> 80 <th>ID</th>
81 <th>姓名</th> 81 <th>姓名</th>
82 <th>手机号</th> 82 <th>手机号</th>
  83 + <th>余额</th>
83 <th>推荐人</th> 84 <th>推荐人</th>
84 <th>推荐人id</th> 85 <th>推荐人id</th>
85 <th>注册时间</th> 86 <th>注册时间</th>
@@ -94,6 +95,7 @@ @@ -94,6 +95,7 @@
94 <td>{$vo.id}</td> 95 <td>{$vo.id}</td>
95 <td>{$vo.name}</td> 96 <td>{$vo.name}</td>
96 <td>{$vo.tel}</td> 97 <td>{$vo.tel}</td>
  98 + <th>{$vo.money}</th>
97 <td> 99 <td>
98 <empty name="vo.referee_name"> 100 <empty name="vo.referee_name">
99 暂无 101 暂无
@@ -122,7 +124,7 @@ @@ -122,7 +124,7 @@
122 <td> 124 <td>
123 <span class="detail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}" >详细信息</span> 125 <span class="detail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}" >详细信息</span>
124 <span class="money" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span> 126 <span class="money" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span>
125 - <span class="getMoney" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">提现申请</span> 127 + <span class="getMoneyDetail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">提现申请</span>
126 <span class="referee" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span> 128 <span class="referee" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span>
127 </td> 129 </td>
128 <td> 130 <td>
@@ -157,7 +159,7 @@ @@ -157,7 +159,7 @@
157 <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> 159 <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script>
158 <script type=""> 160 <script type="">
159 $('.black').click(function () { 161 $('.black').click(function () {
160 - var id = $('.black').attr('index'); 162 + var id = $(this).attr('index');
161 $('.popup').css('display','block'); 163 $('.popup').css('display','block');
162 // 删除 164 // 删除
163 $('.queding').click(function () { 165 $('.queding').click(function () {
@@ -199,7 +201,22 @@ @@ -199,7 +201,22 @@
199 window.location.href = url 201 window.location.href = url
200 }) 202 })
201 // 查看提现申请 203 // 查看提现申请
  204 + $('.getMoneyDetail').click(function () {
  205 + var url1 = "{:url('user/AdminOauth/getMoneyDetail')}";
  206 + var url2 = $(this).attr('index');
  207 + var url3 = url1.split('.');
  208 + var url = url3[0]+'/id/'+url2+'.html';
  209 + window.location.href = url
  210 + })
202 // 查看邀请人 211 // 查看邀请人
  212 + $('.referee').click(function () {
  213 + var url1 = "{:url('user/AdminOauth/referee')}";
  214 + var url2 = $(this).attr('index');
  215 + var url3 = url1.split('.');
  216 + var url = url3[0]+'/id/'+url2+'.html';
  217 + window.location.href = url
  218 + })
  219 +
203 </script> 220 </script>
204 </body> 221 </body>
205 </html> 222 </html>