正在显示
21 个修改的文件
包含
2372 行增加
和
90 行删除
@@ -49,6 +49,9 @@ class IndexController extends CommonController | @@ -49,6 +49,9 @@ class IndexController extends CommonController | ||
49 | $final['banner'] = Db::name('Banner')->where($where_banner) | 49 | $final['banner'] = Db::name('Banner')->where($where_banner) |
50 | ->field("pic") | 50 | ->field("pic") |
51 | ->order("score desc,create_time desc")->select()->toArray(); | 51 | ->order("score desc,create_time desc")->select()->toArray(); |
52 | + foreach ($final['banner'] as $bannerk=>$bannerv){ | ||
53 | + $final['banner'][$bannerk]['pic'] = cmf_get_image_url($bannerv['pic']); | ||
54 | + } | ||
52 | // 2.交易流程 | 55 | // 2.交易流程 |
53 | $where_process['status'] = 1; | 56 | $where_process['status'] = 1; |
54 | $where_process['type'] = $request->param('type'); | 57 | $where_process['type'] = $request->param('type'); |
@@ -63,6 +66,14 @@ class IndexController extends CommonController | @@ -63,6 +66,14 @@ class IndexController extends CommonController | ||
63 | // 4. 合作企业 | 66 | // 4. 合作企业 |
64 | $where_coo['status'] = 1; | 67 | $where_coo['status'] = 1; |
65 | $final['coop'] = Db::name('Cooperation')->where($where_coo)->order("score desc , create_time desc")->field('pic,jump')->select()->toArray(); | 68 | $final['coop'] = Db::name('Cooperation')->where($where_coo)->order("score desc , create_time desc")->field('pic,jump')->select()->toArray(); |
69 | + foreach ($final['coop'] as $coopk=>$coopv){ | ||
70 | + if(empty($member['pic'])){ | ||
71 | + $pic = "../themes/simpleboot3/public/assets/images/house.jpg"; | ||
72 | + }else{ | ||
73 | + $pic = $coopv['pic']; | ||
74 | + } | ||
75 | + $final['coop'][$coopk]['pic'] = cmf_get_image_url($pic); | ||
76 | + } | ||
66 | // 5. 文章 | 77 | // 5. 文章 |
67 | $where_cate['c.delete_time'] = 0; | 78 | $where_cate['c.delete_time'] = 0; |
68 | $where_cate['c.status'] = 1; | 79 | $where_cate['c.status'] = 1; |
@@ -124,48 +135,48 @@ class IndexController extends CommonController | @@ -124,48 +135,48 @@ class IndexController extends CommonController | ||
124 | $this->apiResponse('1','成功',$final); | 135 | $this->apiResponse('1','成功',$final); |
125 | } | 136 | } |
126 | 137 | ||
127 | - public function a(){ | ||
128 | - // 推荐人处理 | ||
129 | - if(!empty($getParam['parent_id'])){ | ||
130 | - $where_parentAdd['id'] = $getParam['parent_id']; | ||
131 | - $where_parentAdd['type'] = 2; | ||
132 | - $where_reward['type'] = 2; | ||
133 | - $where_reward['status'] = 1; | ||
134 | - $reward = Db::name('Reward')->where($where_reward)->order('create_time')->field('number')->find(); | ||
135 | - if($reward){ | ||
136 | - $add_agencyScore = $user->where($where_parentAdd)->setInc('reputation',$reward['number']); | ||
137 | - if(!$add_agencyScore){ | ||
138 | - $this->apiResponse('0','推荐奖励增加失败'); | ||
139 | - }else{ | ||
140 | -// 推荐记录表 | ||
141 | - $add_log['type'] = 2; | ||
142 | - $add_log['number'] = $reward['number']; | ||
143 | - $add_log['referee'] = $getParam['parent_id']; | ||
144 | - $add_log['recommen'] = $uid; | ||
145 | - $add_log['create_time'] = time(); | ||
146 | - $add_log['update_time'] = time(); | ||
147 | - $log = Db::name('RewardLog')->insertGetId($add_log); | ||
148 | - if(!$log){ | ||
149 | - Db::rollback(); | ||
150 | - } | ||
151 | -// 信誉记录表 | ||
152 | - $add_startlog['detail'] = "推荐".$getParam['parent'].'注册'; | ||
153 | - $add_startlog['star'] = $reward['number']; | ||
154 | - $add_startlog['type'] = 3; | ||
155 | - $add_startlog['create_time'] = time(); | ||
156 | - $add_startlog['update_time'] = time(); | ||
157 | - $startLog = Db::name('StartDetail')->insertGetId($add_startlog); | ||
158 | - if(!$startLog){ | ||
159 | - Db::rollback(); | ||
160 | - } | ||
161 | - } | ||
162 | - }else{ | ||
163 | - Db::rollback(); | ||
164 | - $this->apiResponse('0','推荐奖励获取失败'); | ||
165 | - } | ||
166 | - } | ||
167 | -// end | ||
168 | - } | 138 | +// public function a(){ |
139 | +// // 推荐人处理 | ||
140 | +// if(!empty($getParam['parent_id'])){ | ||
141 | +// $where_parentAdd['id'] = $getParam['parent_id']; | ||
142 | +// $where_parentAdd['type'] = 2; | ||
143 | +// $where_reward['type'] = 2; | ||
144 | +// $where_reward['status'] = 1; | ||
145 | +// $reward = Db::name('Reward')->where($where_reward)->order('create_time')->field('number')->find(); | ||
146 | +// if($reward){ | ||
147 | +// $add_agencyScore = $user->where($where_parentAdd)->setInc('reputation',$reward['number']); | ||
148 | +// if(!$add_agencyScore){ | ||
149 | +// $this->apiResponse('0','推荐奖励增加失败'); | ||
150 | +// }else{ | ||
151 | +//// 推荐记录表 | ||
152 | +// $add_log['type'] = 2; | ||
153 | +// $add_log['number'] = $reward['number']; | ||
154 | +// $add_log['referee'] = $getParam['parent_id']; | ||
155 | +// $add_log['recommen'] = $uid; | ||
156 | +// $add_log['create_time'] = time(); | ||
157 | +// $add_log['update_time'] = time(); | ||
158 | +// $log = Db::name('RewardLog')->insertGetId($add_log); | ||
159 | +// if(!$log){ | ||
160 | +// Db::rollback(); | ||
161 | +// } | ||
162 | +//// 信誉记录表 | ||
163 | +// $add_startlog['detail'] = "推荐".$getParam['parent'].'注册'; | ||
164 | +// $add_startlog['star'] = $reward['number']; | ||
165 | +// $add_startlog['type'] = 3; | ||
166 | +// $add_startlog['create_time'] = time(); | ||
167 | +// $add_startlog['update_time'] = time(); | ||
168 | +// $startLog = Db::name('StartDetail')->insertGetId($add_startlog); | ||
169 | +// if(!$startLog){ | ||
170 | +// Db::rollback(); | ||
171 | +// } | ||
172 | +// } | ||
173 | +// }else{ | ||
174 | +// Db::rollback(); | ||
175 | +// $this->apiResponse('0','推荐奖励获取失败'); | ||
176 | +// } | ||
177 | +// } | ||
178 | +//// end | ||
179 | +// } | ||
169 | 180 | ||
170 | 181 | ||
171 | } | 182 | } |
@@ -134,6 +134,10 @@ class IntermediaryController extends CommonController | @@ -134,6 +134,10 @@ class IntermediaryController extends CommonController | ||
134 | $member = Db::name('Member')->where($where_member)->field('name,id,start,reputation,company,store,quarters,tel,city,pic,money,get_money,referee_tel')->find(); | 134 | $member = Db::name('Member')->where($where_member)->field('name,id,start,reputation,company,store,quarters,tel,city,pic,money,get_money,referee_tel')->find(); |
135 | if(!$member){ | 135 | if(!$member){ |
136 | $this->apiResponse('0','用户信息错误'); | 136 | $this->apiResponse('0','用户信息错误'); |
137 | + }else{ | ||
138 | + if(empty($member['pic'])){ | ||
139 | + $member['pic'] = "../themes/simpleboot3/public/assets/images/pic.png"; | ||
140 | + } | ||
137 | } | 141 | } |
138 | // 查询签到信息 | 142 | // 查询签到信息 |
139 | $member['pic'] = cmf_get_image_url($member['pic']); | 143 | $member['pic'] = cmf_get_image_url($member['pic']); |
@@ -23,7 +23,7 @@ use think\Url; | @@ -23,7 +23,7 @@ use think\Url; | ||
23 | use SmsDemo; | 23 | use SmsDemo; |
24 | //use think\Route; | 24 | //use think\Route; |
25 | /** | 25 | /** |
26 | - * @title 30分钟后发布 | 26 | + * @title 订单修改 |
27 | * @description 接口说明 | 27 | * @description 接口说明 |
28 | * @group 接口分组 | 28 | * @group 接口分组 |
29 | */ | 29 | */ |
@@ -37,7 +37,27 @@ class ThirdsendController extends HomeBaseController | @@ -37,7 +37,27 @@ class ThirdsendController extends HomeBaseController | ||
37 | $this->postModel = $postModel; | 37 | $this->postModel = $postModel; |
38 | } | 38 | } |
39 | 39 | ||
40 | -// 查询中介报价 | 40 | + /** |
41 | + * API返回信息格式函数 ;0失败,1成功,-1需要登录 | ||
42 | + * @param string $code | ||
43 | + * @param string $message | ||
44 | + * @param array $data | ||
45 | + */ | ||
46 | + public function apiResponse($code = '0', $message = '',$data = array(),$nums =0){ | ||
47 | + header('Access-Control-Allow-Origin: *'); | ||
48 | + header('Content-Type:application/json; charset=utf-8'); | ||
49 | + $result = array( | ||
50 | + 'code'=>$code, | ||
51 | + 'message'=>$message, | ||
52 | + 'data'=>$data, | ||
53 | + 'nums'=>''.$nums | ||
54 | + ); | ||
55 | + die(json_encode($result,JSON_UNESCAPED_UNICODE)); | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | +// 查询中介报价(暂未用) | ||
41 | // $need_id 需求id | 61 | // $need_id 需求id |
42 | public function Offer($user_id,$need_id){ | 62 | public function Offer($user_id,$need_id){ |
43 | $where_agency['status'] = 2; | 63 | $where_agency['status'] = 2; |
@@ -75,6 +95,478 @@ class ThirdsendController extends HomeBaseController | @@ -75,6 +95,478 @@ class ThirdsendController extends HomeBaseController | ||
75 | } | 95 | } |
76 | } | 96 | } |
77 | 97 | ||
98 | + public function isLogin($token){ | ||
99 | + $where_member['token'] = $token; | ||
100 | +// $where_member['status'] = 1; | ||
101 | + $member = Db::name('Member')->where($where_member)->field('id,status')->find(); | ||
102 | + if($member){ | ||
103 | + if($member['status'] == 9){ | ||
104 | + $this->apiResponse('0','您已被拉入黑名单'); | ||
105 | + }else{ | ||
106 | + return $member; | ||
107 | + } | ||
108 | + }else{ | ||
109 | + $this->apiResponse('-1','请重新登录'); | ||
110 | + } | ||
111 | + } | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + /** | ||
116 | + * @title 30分钟后发布(sure)(时间为0时调用) | ||
117 | + * @description 接口说明 | ||
118 | + * @author 开发者 | ||
119 | + * @url /api/portal/Thirdsend/thirdChange | ||
120 | + * @method POST | ||
121 | + * @param name:token type:int require:1 default: other: desc:token | ||
122 | + * @param name:need_id type:int require:1 default: other: desc:需求id | ||
123 | + */ | ||
124 | +// 30分钟后发布(sure)(时间为0时调用) | ||
125 | +// need_id 需求id | ||
126 | + public function thirdChange(){ | ||
127 | + Db::startTrans(); | ||
128 | + $data = $this->request->param(); | ||
129 | + $this->isLogin($data['token']); | ||
130 | + if(empty($data['need_id'])){ | ||
131 | + $this->apiResponse('0','需求id不能为空'); | ||
132 | + } | ||
133 | + $where_need['status'] = 2; | ||
134 | + $where_need['id'] = $data['need_id']; | ||
135 | + $userNeedList = Db::name('UserNeed')->where($where_need)->field('id,pay_time')->find(); | ||
136 | + $time = time(); | ||
137 | + if($time < $userNeedList['pay_time']+1800){ | ||
138 | + $this->apiResponse('0','未到发布时间'); | ||
139 | + }else{ | ||
140 | + $where_save['id'] = $data['need_id']; | ||
141 | + $save['status'] = 3; | ||
142 | + $save['update_time'] = time(); | ||
143 | + $fianl_save = Db::name('UserNeed')->where($where_save)->update($save); | ||
144 | + if($fianl_save){ | ||
145 | + Db::commit(); | ||
146 | + $where_return['id'] = $data['need_id']; | ||
147 | + $return = Db::name('UserNeed')->where($where_return)->find(); | ||
148 | + $this->apiResponse('1','成功',$return); | ||
149 | + }else{ | ||
150 | + Db::rollback(); | ||
151 | + $this->apiResponse('0','失败'); | ||
152 | + } | ||
153 | + } | ||
154 | + } | ||
155 | + | ||
156 | + | ||
157 | + /** | ||
158 | + * @title 规定时间结束报价(sure)(时间为0时调用) | ||
159 | + * @description 接口说明 | ||
160 | + * @author 开发者 | ||
161 | + * @url /api/portal/Thirdsend/timeOver | ||
162 | + * @method POST | ||
163 | + * @param name:token type:int require:1 default: other: desc:token | ||
164 | + * @param name:need_id type:int require:1 default: other: desc:需求id | ||
165 | + */ | ||
166 | +// 规定时间结束报价(sure)(时间为0时调用) | ||
167 | +// need_id 需求id | ||
168 | + public function timeOver() | ||
169 | + { | ||
170 | + Db::startTrans(); | ||
171 | + $data = $this->request->param(); | ||
172 | + $this->isLogin($data['token']); | ||
173 | + if(empty($data['need_id'])){ | ||
174 | + $this->apiResponse('0','需求id不能为空'); | ||
175 | + } | ||
176 | +// 查询用户发布需求信息 | ||
177 | + $where_need['status'] = 3; | ||
178 | + $where_need['id'] = $data['need_id']; | ||
179 | + $userNeedList = Db::name('UserNeed')->where($where_need)->field('id,quotation_time,create_time,pay_time,user_id,pay_money')->find(); | ||
180 | + if(!$userNeedList){ | ||
181 | + $this->apiResponse('0','需求状态不正确'); | ||
182 | + } | ||
183 | + $time = time(); | ||
184 | +// 查询相应报价 | ||
185 | + $final_time = $userNeedList['pay_time'] + $userNeedList['quotation_time'] * 86400; | ||
186 | +// 判断时间是否正确 | ||
187 | + if ($time >= $final_time) { | ||
188 | +// $us_middleid = $uNeedv['id']; | ||
189 | + $where_agency['a.status'] = 2; | ||
190 | + $where_agency['a.pay_time'] = array('lt', time()); | ||
191 | + $where_agency['a.need_id'] = $userNeedList['id']; | ||
192 | + $where_agency['m.type'] = 2; | ||
193 | + $where_agency['m.status'] = 1; | ||
194 | + $agency_list = Db::name('Agency')->alias('a') | ||
195 | + ->where($where_agency) | ||
196 | + ->join("hp_Member m", 'm.id = a.agency_id') | ||
197 | + ->field('a.*,m.company') | ||
198 | + ->select()->toArray(); | ||
199 | +// 查询品牌企业 | ||
200 | + $where_brand['status'] = 1; | ||
201 | + $band_list = Db::name('Brand')->where($where_brand)->column('name'); | ||
202 | + $agen_arr = array(); | ||
203 | + if ($agency_list) { | ||
204 | +// 删除十万以内报价 | ||
205 | + foreach ($agency_list as $tenk=>$tenv){ | ||
206 | + $ten_money = $tenv['housing_price'] * 10000 + $tenv['assessment_tax'] + $tenv['security_tax'] + $tenv['else_tax'] + $tenv['service_charge']; | ||
207 | + if($ten_money > 1000000){ | ||
208 | + $is_trueMoney[] = $tenv; | ||
209 | + } | ||
210 | + } | ||
211 | + // 判断是否超过三个报价人 | ||
212 | + if (count($is_trueMoney) >= 3) { | ||
213 | + | ||
214 | + | ||
215 | +// 查询三人中是否有品牌中介 | ||
216 | +// 循环匹配品牌企业 | ||
217 | + foreach ($is_trueMoney as $agencyk => $agencyv) { | ||
218 | + foreach ($band_list as $brak => $brav) { | ||
219 | +// 判断是否在品牌企业中 | ||
220 | + if (strstr($brav, $agencyv['company']) !== false) { | ||
221 | +// 存在 | ||
222 | + $agen_money = $agencyv['housing_price'] * 10000 + $agencyv['assessment_tax'] + $agencyv['security_tax'] + $agencyv['else_tax'] + $agencyv['service_charge']; | ||
223 | + if (empty($agen_arr)) { | ||
224 | + $agen_arr[0]['money'] = $agen_money; | ||
225 | + $agen_arr[0]['id'] = $agencyv['id']; | ||
226 | + } else { | ||
227 | +// 判断大小 | ||
228 | + if ($agen_money < $agen_arr[0]['money']) { | ||
229 | + $agen_arr[0]['money'] = $agen_money; | ||
230 | + $agen_arr[0]['id'] = $agencyv['id']; | ||
231 | + | ||
232 | + } | ||
233 | + } | ||
234 | + } | ||
235 | + } | ||
236 | +// 取出前三报价 | ||
237 | + $money = $agencyv['housing_price'] * 10000 + $agencyv['assessment_tax'] + $agencyv['security_tax'] + $agencyv['else_tax'] + $agencyv['service_charge']; | ||
238 | + $money_list[$agencyv['id']] = $money; | ||
239 | + } | ||
240 | + asort($money_list); | ||
241 | + $k = 0; | ||
242 | + foreach ($money_list as $mok => $mov) { | ||
243 | + $else_changeList[] = $mok; | ||
244 | + if ($k < 3) { | ||
245 | + $fin_list[$k]['id'] = $mok; | ||
246 | + $fin_list[$k]['money'] = $mov; | ||
247 | + $fin_arr[] = $mok; | ||
248 | + } | ||
249 | + $k += 1; | ||
250 | + } | ||
251 | + if($agen_arr){ | ||
252 | + if(!in_array($agen_arr[0]['id'],$fin_arr)){ | ||
253 | +// 品牌中介不在取出三个最低价中 | ||
254 | + $middle_agen[0] = $agen_arr[0]['id']; | ||
255 | + $get_list = array_merge($fin_arr,$middle_agen); | ||
256 | + }else{ | ||
257 | + $get_list = $fin_arr; | ||
258 | + } | ||
259 | + } | ||
260 | + foreach ($else_changeList as $getk=>$getv){ | ||
261 | + if(in_array($getv,$get_list)){ | ||
262 | + $change_final['id'] = $getv; | ||
263 | + $change_final['status'] = 4; | ||
264 | + }else{ | ||
265 | + $change_final['id'] = $getv; | ||
266 | + $change_final['status'] = 3; | ||
267 | + } | ||
268 | + $agencyModel = new AgencyModel(); | ||
269 | + $fianl_AgsaveFirst = $agencyModel->isUpdate(true)->save($change_final); | ||
270 | + if(!$fianl_AgsaveFirst){ | ||
271 | + Db::rollback(); | ||
272 | + } | ||
273 | + } | ||
274 | +// 报价成功,更改状态 | ||
275 | + $userSave_statusFirst['id'] = $userNeedList['need_id']; | ||
276 | + $userSave_statusFirst['status'] = 5; | ||
277 | + $userSave_statusFirst['choose_time'] = time(); | ||
278 | + $userNeedModel = new UserNeedModel(); | ||
279 | + $fianl_Ussave = $userNeedModel->isUpdate(true)->save($userSave_statusFirst); | ||
280 | + if(!$fianl_Ussave){ | ||
281 | + Db::rollback(); | ||
282 | + } | ||
283 | + } else { | ||
284 | +// 报价小于3人,更改订单状态,报价失败 | ||
285 | + foreach ($agency_list as $changeka=>$changeva){ | ||
286 | + $change_final['id'] = $changeva['id']; | ||
287 | + $change_final['status'] = 7; | ||
288 | + $agencyModel = new AgencyModel(); | ||
289 | + $fianl_AgsaveNext = $agencyModel->isUpdate(true)->save($change_final); | ||
290 | + | ||
291 | + if(!$fianl_AgsaveNext){ | ||
292 | + Db::rollback(); | ||
293 | + } | ||
294 | +// 退回中介保证金 | ||
295 | + $add_a['user_id'] = $changeva['agency_id']; | ||
296 | + $add_a['title'] = '报价人数不足'; | ||
297 | + $add_a['type'] = 1; | ||
298 | + $add_a['reason'] = 1; | ||
299 | + $add_a['money'] = $changeva['deposit']; | ||
300 | + $add_a['create_time'] = time(); | ||
301 | + $add_a['update_time'] = time(); | ||
302 | + $amoney_id = Db::name('AmoenyDetail')->insertGetId($add_a); | ||
303 | + if (!$amoney_id) { | ||
304 | + Db::rollback(); | ||
305 | + } | ||
306 | +// 用户表增加金额 | ||
307 | + $where_member['type'] = 2; | ||
308 | + $where_member['id'] = $changeva['agency_id']; | ||
309 | + $add_money = Db::name('Member')->where($where_member)->setInc('money',$changeva['deposit']); | ||
310 | + if (!$add_money) { | ||
311 | + Db::rollback(); | ||
312 | + } | ||
313 | + | ||
314 | + } | ||
315 | + $userSave_status['id'] = $userNeedList['id']; | ||
316 | + $userSave_status['status'] = 4; | ||
317 | + $userNeedModel = new UserNeedModel(); | ||
318 | + $fianl_Ussave = $userNeedModel->isUpdate(true)->save($userSave_status); | ||
319 | + if(!$fianl_Ussave){ | ||
320 | + Db::rollback(); | ||
321 | + } | ||
322 | + | ||
323 | +// 退回保证金 | ||
324 | +// 用户 | ||
325 | +// 加用户金额明细表 | ||
326 | + $add_del['need_id'] = $userNeedList['id']; | ||
327 | + $add_del['user_id'] = $userNeedList['user_id']; | ||
328 | + $add_del['title'] = '报价人数不足'; | ||
329 | + $add_del['reason'] = 1; | ||
330 | + $add_del['type'] = 1; | ||
331 | + $add_del['money'] = $userNeedList['pay_money']; | ||
332 | + $add_del['create_time'] = time(); | ||
333 | + $add_del['update_time'] = time(); | ||
334 | + $umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del); | ||
335 | + if (!$umoney_id) { | ||
336 | + Db::rollback(); | ||
337 | + } | ||
338 | + $where_memberNext['type'] = 1; | ||
339 | + $where_memberNext['id'] = $userNeedList['user_id']; | ||
340 | + $add_moneyNext = Db::name('Member')->where($where_memberNext)->setInc('money',$userNeedList['pay_money']); | ||
341 | + if (!$add_moneyNext) { | ||
342 | + Db::rollback(); | ||
343 | + } | ||
344 | + | ||
345 | + } | ||
346 | + } else { | ||
347 | +// 没有报价 | ||
348 | + $userSave_status['id'] = $userNeedList['id']; | ||
349 | + $userSave_status['status'] = 4; | ||
350 | + $userNeedModel = new UserNeedModel(); | ||
351 | + $fianl_Ussave = $userNeedModel->isUpdate(true)->save($userSave_status); | ||
352 | + if(!$fianl_Ussave){ | ||
353 | + Db::rollback(); | ||
354 | + } | ||
355 | + | ||
356 | +// 退回保证金 | ||
357 | +// 用户 | ||
358 | +// 加用户金额明细表 | ||
359 | + $add_del['need_id'] = $userNeedList['id']; | ||
360 | + $add_del['user_id'] = $userNeedList['user_id']; | ||
361 | + $add_del['title'] = '报价人数不足'; | ||
362 | + $add_del['type'] = 1; | ||
363 | + $add_del['money'] = $userNeedList['pay_money']; | ||
364 | + $add_del['create_time'] = time(); | ||
365 | + $add_del['update_time'] = time(); | ||
366 | + $umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del); | ||
367 | + if (!$umoney_id) { | ||
368 | + Db::rollback(); | ||
369 | + $this->apiResponse('0','金额明细添加失败'); | ||
370 | + } | ||
371 | + $where_memberNext['type'] = 1; | ||
372 | + $where_memberNext['id'] = $userNeedList['user_id']; | ||
373 | + $add_moneyNext = Db::name('Member')->where($where_memberNext)->setInc('money',$userNeedList['pay_money']); | ||
374 | + if (!$add_moneyNext) { | ||
375 | + Db::rollback(); | ||
376 | + } | ||
377 | + | ||
378 | + } | ||
379 | +// 插入数据库 | ||
380 | +// 用户需求表 | ||
381 | +// 中介报价表 | ||
382 | + Db::commit(); | ||
383 | + $where_return['id'] = $data['need_id']; | ||
384 | + $return = Db::name('UserNeed')->where($where_return)->find(); | ||
385 | + $this->apiResponse('1','成功',$return); | ||
386 | + }else{ | ||
387 | + $this->apiResponse('0','时间不正确'); | ||
388 | + } | ||
389 | + | ||
390 | +// } | ||
391 | + } | ||
392 | + | ||
393 | + /** | ||
394 | + * @title 三天用户选择(sure)(时间为0时调用) | ||
395 | + * @description 接口说明 | ||
396 | + * @author 开发者 | ||
397 | + * @url /api/portal/Thirdsend/choose | ||
398 | + * @method POST | ||
399 | + * @param name:token type:int require:1 default: other: desc:token | ||
400 | + * @param name:need_id type:int require:1 default: other: desc:需求id | ||
401 | + */ | ||
402 | +// 三天用户选择(sure)(时间为0时调用) | ||
403 | +// need_id 需求id | ||
404 | + public function choose(){ | ||
405 | + Db::startTrans(); | ||
406 | + $data = $this->request->param(); | ||
407 | + $this->isLogin($data['token']); | ||
408 | + if(empty($data['need_id'])){ | ||
409 | + $this->apiResponse('0','需求id不能为空'); | ||
410 | + } | ||
411 | +// 查询用户发布需求信息 | ||
412 | + $where_need['status'] = 5; | ||
413 | + $where_need['id'] = $data['need_id']; | ||
414 | + $userNeedList = Db::name('UserNeed')->where($where_need)->field('id,choose_time,user_id,pay_money,choose_time')->find(); | ||
415 | + if($userNeedList){ | ||
416 | +// foreach ($userNeedList as $needk=>$needv) { | ||
417 | + if (time() >= ($userNeedList['choose_time'] + 259200)) { | ||
418 | + $where_agency['need_id'] = $userNeedList['id']; | ||
419 | + $where_agency['status'] = 4; | ||
420 | + $agency_list = Db::name('Agency')->where($where_agency)->select()->toArray(); | ||
421 | + if ($agency_list) { | ||
422 | + $where_agencyUpdate['need_id'] = $userNeedList['id']; | ||
423 | + $where_agencyUpdate['status'] = 4; | ||
424 | + $agency_save['status'] = 8; | ||
425 | + $agency_save['update_time'] = time(); | ||
426 | + $agency_result = Db::name('Agency')->where($where_agencyUpdate)->update($agency_save); | ||
427 | + if (!$agency_result) { | ||
428 | + Db::rollback(); | ||
429 | + } | ||
430 | + } | ||
431 | + $where_needUpdate['id'] = $userNeedList['id']; | ||
432 | + $needUpdate['status'] = 6; | ||
433 | + $need_result = Db::name('UserNeed')->where($where_needUpdate)->update($needUpdate); | ||
434 | + if (!$need_result) { | ||
435 | + Db::rollback(); | ||
436 | + } else { | ||
437 | +// 加用户金额明细表 | ||
438 | + $add_del['need_id'] = $userNeedList['id']; | ||
439 | + $add_del['user_id'] = $userNeedList['user_id']; | ||
440 | + $add_del['title'] = '未选择中介'; | ||
441 | + $add_del['type'] = 2; | ||
442 | + $add_del['money'] = $userNeedList['pay_money']; | ||
443 | + $add_del['create_time'] = time(); | ||
444 | + $add_del['update_time'] = time(); | ||
445 | + $umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del); | ||
446 | + if (!$umoney_id) { | ||
447 | + Db::rollback(); | ||
448 | + } | ||
449 | +// 中介金额明细表 | ||
450 | + foreach ($agency_list as $agenk=>$agenv){ | ||
451 | + $add_a['ag_id'] = $agenv['id']; | ||
452 | + $add_a['user_id'] = $agenv['agency_id']; | ||
453 | + $add_a['title'] = '用户未选择中介'; | ||
454 | + $add_a['type'] = 1; | ||
455 | + $add_a['money'] = $agenv['deposit']; | ||
456 | + $add_a['create_time'] = time(); | ||
457 | + $add_a['update_time'] = time(); | ||
458 | + $amoney_id = Db::name('AmoenyDetail')->insertGetId($add_a); | ||
459 | + if (!$amoney_id) { | ||
460 | + Db::rollback(); | ||
461 | + } | ||
462 | + $where_member['type'] = 2; | ||
463 | + $where_member['id'] = $agenv['agency_id']; | ||
464 | + $add_money = Db::name('Member')->where($where_member)->setInc('money',$agenv['deposit']); | ||
465 | + if (!$add_money) { | ||
466 | + Db::rollback(); | ||
467 | + } | ||
468 | + } | ||
469 | + | ||
470 | + } | ||
471 | + } | ||
472 | +// } | ||
473 | + Db::commit(); | ||
474 | + $where_return['id'] = $data['need_id']; | ||
475 | + $return = Db::name('UserNeed')->where($where_return)->find(); | ||
476 | + $this->apiResponse('1','成功',$return); | ||
477 | + }else{ | ||
478 | + $this->apiResponse('0','需求错误'); | ||
479 | + } | ||
480 | + } | ||
481 | + | ||
482 | + /** | ||
483 | + * @title 三天中介确认(时间为0时调用) | ||
484 | + * @description 接口说明 | ||
485 | + * @author 开发者 | ||
486 | + * @url /api/portal/Thirdsend/threeChoose | ||
487 | + * @method POST | ||
488 | + * @param name:token type:int require:1 default: other: desc:token | ||
489 | + * @param name:need_id type:int require:1 default: other: desc:需求id | ||
490 | + */ | ||
491 | +// 三天中介确认(时间为0时调用) | ||
492 | +// need_id 需求id | ||
493 | + public function threeChoose(){ | ||
494 | + Db::startTrans(); | ||
495 | + $data = $this->request->param(); | ||
496 | + $this->isLogin($data['token']); | ||
497 | + if(empty($data['need_id'])){ | ||
498 | + $this->apiResponse('0','需求id不能为空'); | ||
499 | + } | ||
500 | + $where_need['status'] = 7; | ||
501 | + $where_need['id'] = $data['need_id']; | ||
502 | + $need_list = Db::name('UserNeed')->where($where_need)->field('id,choose_time')->find(); | ||
503 | + if($need_list){ | ||
504 | +// foreach ($need_list as $needk=>$needv){ | ||
505 | + if(time() >= ($need_list['choose_time']+259200)){ | ||
506 | + $where_agency['status'] = 5; | ||
507 | + $where_agency['need_id'] = $need_list['id']; | ||
508 | + $agency = Db::name('Agency')->where($where_agency)->find(); | ||
509 | +// 修改中介报价状态 | ||
510 | + if($agency){ | ||
511 | + $where_changeAgency['id'] = $agency['id']; | ||
512 | + $changeAgency['status'] = 10; | ||
513 | + $changeAgency['update_time'] = time(); | ||
514 | + $update_a = Db::name('Agency')->where($where_changeAgency)->update($changeAgency); | ||
515 | + if(!$update_a){ | ||
516 | + Db::rollback(); | ||
517 | + } | ||
518 | + } | ||
519 | +// 增加中介保证金变化 | ||
520 | + $add_a['ag_id'] = $agency['id']; | ||
521 | + $add_a['user_id'] = $agency['agency_id']; | ||
522 | + $add_a['title'] = '中介未确认'; | ||
523 | + $add_a['type'] = 2; | ||
524 | + $add_a['money'] = $agency['deposit']; | ||
525 | + $add_a['create_time'] = time(); | ||
526 | + $add_a['update_time'] = time(); | ||
527 | + $amoney_id = Db::name('AmoenyDetail')->insertGetId($add_a); | ||
528 | + if (!$amoney_id) { | ||
529 | + Db::rollback(); | ||
530 | + } | ||
531 | +// 修改用户需求状态 | ||
532 | + $where_needChange['id'] = $need_list['id']; | ||
533 | + $update_need['status'] = 8; | ||
534 | + $update_need['update_time'] = time(); | ||
535 | + $change_needFinal = Db::name('UserNeed')->where($where_needChange)->update($update_need); | ||
536 | + if (!$change_needFinal) { | ||
537 | + Db::rollback(); | ||
538 | + } | ||
539 | +// 增加用户保证金,余额 | ||
540 | + $add_del['need_id'] = $need_list['id']; | ||
541 | + $add_del['user_id'] = $need_list['user_id']; | ||
542 | + $add_del['title'] = '中介未确认'; | ||
543 | + $add_del['type'] = 1; | ||
544 | + $add_del['money'] = $need_list['pay_money']; | ||
545 | + $add_del['create_time'] = time(); | ||
546 | + $add_del['update_time'] = time(); | ||
547 | + $umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del); | ||
548 | + if (!$umoney_id) { | ||
549 | + Db::rollback(); | ||
550 | + } | ||
551 | + $where_member['type'] = 1; | ||
552 | + $where_member['id'] = $need_list['user_id']; | ||
553 | + $add_money = Db::name('Member')->where($where_member)->setInc('money',$need_list['pay_money']); | ||
554 | + if (!$add_money) { | ||
555 | + Db::rollback(); | ||
556 | + } | ||
557 | + } | ||
558 | +// } | ||
559 | + Db::commit(); | ||
560 | + $where_return['id'] = $data['need_id']; | ||
561 | + $return = Db::name('UserNeed')->where($where_return)->find(); | ||
562 | + $this->apiResponse('1','成功',$return); | ||
563 | + }else{ | ||
564 | + $this->apiResponse('0','需求错误'); | ||
565 | + } | ||
566 | + } | ||
567 | + | ||
568 | + | ||
569 | + | ||
78 | 570 | ||
79 | 571 | ||
80 | // 30分钟后发布(sure)(分钟执行) | 572 | // 30分钟后发布(sure)(分钟执行) |
@@ -1291,17 +1291,11 @@ class UserController extends CommonController | @@ -1291,17 +1291,11 @@ class UserController extends CommonController | ||
1291 | }else{ | 1291 | }else{ |
1292 | $this->apiResponse('0','投诉失败'); | 1292 | $this->apiResponse('0','投诉失败'); |
1293 | } | 1293 | } |
1294 | - | ||
1295 | - | ||
1296 | - | ||
1297 | }else{ | 1294 | }else{ |
1298 | $this->apiResponse('0','当前状态不支持投诉'); | 1295 | $this->apiResponse('0','当前状态不支持投诉'); |
1299 | } | 1296 | } |
1300 | - | ||
1301 | - | ||
1302 | $final['user'] = $member; | 1297 | $final['user'] = $member; |
1303 | 1298 | ||
1304 | - | ||
1305 | } | 1299 | } |
1306 | 1300 | ||
1307 | /** | 1301 | /** |
@@ -1398,7 +1392,6 @@ class UserController extends CommonController | @@ -1398,7 +1392,6 @@ class UserController extends CommonController | ||
1398 | } | 1392 | } |
1399 | 1393 | ||
1400 | 1394 | ||
1401 | - | ||
1402 | // 短网址 | 1395 | // 短网址 |
1403 | function shot($url){ | 1396 | function shot($url){ |
1404 | $jump = "http://suo.im/api.php?url=".$url; | 1397 | $jump = "http://suo.im/api.php?url=".$url; |
@@ -1407,4 +1400,7 @@ class UserController extends CommonController | @@ -1407,4 +1400,7 @@ class UserController extends CommonController | ||
1407 | } | 1400 | } |
1408 | 1401 | ||
1409 | 1402 | ||
1403 | + | ||
1404 | + | ||
1405 | + | ||
1410 | } | 1406 | } |
1 | +<?php | ||
2 | +// +---------------------------------------------------------------------- | ||
3 | +// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] | ||
4 | +// +---------------------------------------------------------------------- | ||
5 | +// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved. | ||
6 | +// +---------------------------------------------------------------------- | ||
7 | +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) | ||
8 | +// +---------------------------------------------------------------------- | ||
9 | +// | Author: Powerless < wzxaini9@gmail.com> | ||
10 | +// +---------------------------------------------------------------------- | ||
11 | +namespace app\portal\controller; | ||
12 | + | ||
13 | +use cmf\controller\AdminBaseController; | ||
14 | +use think\Db; | ||
15 | +use think\Loader; | ||
16 | +use think\Request; | ||
17 | + | ||
18 | +class ComplaintController extends AdminBaseController | ||
19 | +{ | ||
20 | + | ||
21 | +// 提现申请 | ||
22 | + public function index(){ | ||
23 | + $data = $this->request->param(); | ||
24 | + if($data){ | ||
25 | + $startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']); | ||
26 | + $endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']); | ||
27 | + if ($startTime && $endTime) { | ||
28 | + $where_money['d.create_time'] = array('between',"$startTime,$endTime"); | ||
29 | + $this->assign('start_time', $data['start_time']); | ||
30 | + $this->assign('end_time', $data['end_time']); | ||
31 | + }else{ | ||
32 | + if($startTime){ | ||
33 | + $where_money['d.create_time'] = array('egt',$startTime); | ||
34 | + $this->assign('start_time', $data['start_time']); | ||
35 | + } | ||
36 | + if($endTime){ | ||
37 | + $where_money['d.create_time'] = array('elt',$endTime); | ||
38 | + $this->assign('end_time', $data['end_time']); | ||
39 | + } | ||
40 | + } | ||
41 | + if(!empty($data['name'])){ | ||
42 | + $where_money['name'] = array('like','%'.$data['name'].'%'); | ||
43 | + $this->assign('name', $data['name']); | ||
44 | + } | ||
45 | + if(!empty($data['tel'])){ | ||
46 | + $where_money['tel'] = array('like','%'.$data['tel'].'%'); | ||
47 | + $this->assign('tel', $data['tel']); | ||
48 | + } | ||
49 | + } | ||
50 | + $where_money['c.status'] = array('neq',9); | ||
51 | + $money_list = Db::name('Complaint')->alias('c') | ||
52 | + ->join("Member m",'m.id = c.user_id') | ||
53 | + ->where($where_money) | ||
54 | + ->field("m.name,m.tel,c.*") | ||
55 | + ->paginate(); | ||
56 | + $page = $money_list->render(); | ||
57 | + $this->assign('page',$page); | ||
58 | + $this->assign('lists',$money_list); | ||
59 | + return $this->fetch('getdetail'); | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | +// 同意投诉 | ||
65 | + public function agree(){ | ||
66 | + $data = $this->request->param(); | ||
67 | + $where_money['id'] = $data['id']; | ||
68 | + $where_money['status'] = array('neq',9); | ||
69 | + $money = Db::name('Complaint')->where($where_money)->find(); | ||
70 | + if($money){ | ||
71 | + $save['status'] = 2; | ||
72 | + $save['update_time'] = time(); | ||
73 | + $update = Db::name('Complaint')->where($where_money)->update($save); | ||
74 | + if($update){ | ||
75 | + $this->success('成功'); | ||
76 | + }else{ | ||
77 | + $this->error('失败'); | ||
78 | + } | ||
79 | + }else{ | ||
80 | + $this->error('投诉状态不正确'); | ||
81 | + } | ||
82 | + } | ||
83 | + | ||
84 | + // 拒绝投诉 | ||
85 | + public function refuse(){ | ||
86 | + $data = $this->request->param(); | ||
87 | + $where_money['id'] = $data['id']; | ||
88 | + $where_money['status'] = array('neq',9); | ||
89 | + $money = Db::name('Complaint')->where($where_money)->find(); | ||
90 | + if($money){ | ||
91 | + $save['status'] = 3; | ||
92 | + $save['update_time'] = time(); | ||
93 | + $update = Db::name('Complaint')->where($where_money)->update($save); | ||
94 | + if($update){ | ||
95 | + $this->success('成功'); | ||
96 | + }else{ | ||
97 | + $this->error('失败'); | ||
98 | + } | ||
99 | + }else{ | ||
100 | + $this->error('订单状态不正确'); | ||
101 | + } | ||
102 | + } | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + /** | ||
108 | + * 后台删除第三方用户绑定 | ||
109 | + * @adminMenu( | ||
110 | + * 'name' => '删除第三方用户绑定', | ||
111 | + * 'parent' => 'index', | ||
112 | + * 'display'=> false, | ||
113 | + * 'hasView'=> false, | ||
114 | + * 'order' => 10000, | ||
115 | + * 'icon' => '', | ||
116 | + * 'remark' => '删除第三方用户绑定', | ||
117 | + * 'param' => '' | ||
118 | + * ) | ||
119 | + */ | ||
120 | + public function delete() | ||
121 | + { | ||
122 | + $id = input('param.id', 0, 'intval'); | ||
123 | + if (empty($id)) { | ||
124 | + $this->error('非法数据!'); | ||
125 | + } | ||
126 | + Db::name("third_party_user")->where("id", $id)->delete(); | ||
127 | + $this->success("删除成功!", "admin_oauth/index"); | ||
128 | + } | ||
129 | + | ||
130 | +} |
@@ -79,13 +79,13 @@ class AdminOauthController extends AdminBaseController | @@ -79,13 +79,13 @@ class AdminOauthController extends AdminBaseController | ||
79 | } | 79 | } |
80 | $lists = Db::name('Member')->where($where_member)->order('status')->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']; | ||
83 | - $referee = Db::name('Member')->where($where_referee)->field('id,name')->find(); | ||
84 | - if($referee){ | ||
85 | - $lists[$lk]['referee_name'] = $referee['name']; | ||
86 | - }else{ | ||
87 | - $lists[$lk]['referee_name'] = ''; | ||
88 | - } | 82 | + $where_referee['id'] = $lv['referee_id']; |
83 | + $referee = Db::name('Member')->where($where_referee)->field('id,name')->find(); | ||
84 | + if($referee){ | ||
85 | + $lists[$lk]['referee_name'] = $referee['name']; | ||
86 | + }else{ | ||
87 | + $lists[$lk]['referee_name'] = ''; | ||
88 | + } | ||
89 | } | 89 | } |
90 | // 获取分页显示 | 90 | // 获取分页显示 |
91 | // $page = $lists->render(); | 91 | // $page = $lists->render(); |
@@ -323,10 +323,49 @@ class AdminOauthController extends AdminBaseController | @@ -323,10 +323,49 @@ class AdminOauthController extends AdminBaseController | ||
323 | 323 | ||
324 | // 同意提现 | 324 | // 同意提现 |
325 | public function agree(){ | 325 | public function agree(){ |
326 | - | 326 | + $data = $this->request->param(); |
327 | + $where_money['id'] = $data['id']; | ||
328 | + $where_money['user_id'] = $data['uid']; | ||
329 | + $where_money['order_type'] = 6; | ||
330 | + $where_money['type'] = 3; | ||
331 | + $where_money['status'] = array('neq',9); | ||
332 | + $money = Db::name('MoneyDetail')->where($where_money)->find(); | ||
333 | + if($money){ | ||
334 | + $save['status'] = 3; | ||
335 | + $save['update_time'] = time(); | ||
336 | + $update = Db::name('MoneyDetail')->where($where_money)->update($save); | ||
337 | + if($update){ | ||
338 | + $this->success('成功'); | ||
339 | + }else{ | ||
340 | + $this->error('失败'); | ||
341 | + } | ||
342 | + }else{ | ||
343 | + $this->error('订单状态不正确'); | ||
344 | + } | ||
327 | } | 345 | } |
328 | 346 | ||
329 | - | 347 | + // 拒绝提现 |
348 | + public function refuse(){ | ||
349 | + $data = $this->request->param(); | ||
350 | + $where_money['id'] = $data['id']; | ||
351 | + $where_money['user_id'] = $data['uid']; | ||
352 | + $where_money['order_type'] = 6; | ||
353 | + $where_money['type'] = 3; | ||
354 | + $where_money['status'] = array('neq',9); | ||
355 | + $money = Db::name('MoneyDetail')->where($where_money)->find(); | ||
356 | + if($money){ | ||
357 | + $save['status'] = 4; | ||
358 | + $save['update_time'] = time(); | ||
359 | + $update = Db::name('MoneyDetail')->where($where_money)->update($save); | ||
360 | + if($update){ | ||
361 | + $this->success('成功'); | ||
362 | + }else{ | ||
363 | + $this->error('失败'); | ||
364 | + } | ||
365 | + }else{ | ||
366 | + $this->error('订单状态不正确'); | ||
367 | + } | ||
368 | + } | ||
330 | 369 | ||
331 | 370 | ||
332 | // 提现 | 371 | // 提现 |
@@ -399,6 +438,80 @@ class AdminOauthController extends AdminBaseController | @@ -399,6 +438,80 @@ class AdminOauthController extends AdminBaseController | ||
399 | // 渲染模板输出 | 438 | // 渲染模板输出 |
400 | return $this->fetch(); | 439 | return $this->fetch(); |
401 | } | 440 | } |
441 | + | ||
442 | + // 中介详细信息 | ||
443 | + public function agencyDetail(){ | ||
444 | + $data = $this->request->param(); | ||
445 | + if(empty($data['id'])){ | ||
446 | + $this->error("用户id不能为空"); | ||
447 | + }else{ | ||
448 | + $where_member['id'] = $data['id']; | ||
449 | + $member = Db::name('Member')->where($where_member)->find(); | ||
450 | + if($member){ | ||
451 | + $quarters = explode('+',$member['quarters']); | ||
452 | + $member['quarters'] = implode(' ; ',$quarters); | ||
453 | + | ||
454 | + } | ||
455 | + $this->assign('list',$member); | ||
456 | + return $this->fetch(); | ||
457 | + } | ||
458 | + } | ||
459 | + | ||
460 | +// 修改中介信息 | ||
461 | + public function changeAgency(){ | ||
462 | + $data = $this->request->param(); | ||
463 | + if($data){ | ||
464 | + // 验证 | ||
465 | + $validate = Loader::validate('Member'); | ||
466 | + if (!$validate->scene('change')->check($data)) { | ||
467 | +// return json(array('code' => 0, 'msg' => $validate->getError())); | ||
468 | + $this->error($validate->getError()); | ||
469 | + } | ||
470 | +// 更新数据 | ||
471 | + $where_update['id'] = $data['id']; | ||
472 | + $save = $data; | ||
473 | + $save['login_time'] = strtotime($save['login_time']); | ||
474 | + $save['last_login_time'] = strtotime($save['last_login_time']); | ||
475 | + $save['create_time'] = strtotime($save['create_time']); | ||
476 | + $member_change = Db::name('Member')->where($where_update)->update($save); | ||
477 | + if($member_change){ | ||
478 | + $this->success('修改成功',url('intermediary')); | ||
479 | + }else{ | ||
480 | + $this->error('修改失败'); | ||
481 | + } | ||
482 | + } | ||
483 | + } | ||
484 | + | ||
485 | +// 中介评价 | ||
486 | + public function comment(){ | ||
487 | + $data = $this->request->param(); | ||
488 | + $where_comment['intermediary_id'] = $data['id']; | ||
489 | + $where_comment['status'] = 1; | ||
490 | + $comment_list = Db::name('Comment')->where($where_comment)->select(); | ||
491 | + $this->assign('uid',$data['id']); | ||
492 | + $this->assign('lists',$comment_list); | ||
493 | + return $this->fetch(); | ||
494 | + } | ||
495 | + | ||
496 | +// 删除中介评价 | ||
497 | + public function agencyDel(){ | ||
498 | + $data = $this->request->param(); | ||
499 | + $where_com['id'] = $data['id']; | ||
500 | + $where_com['status'] = array('neq',9); | ||
501 | + $complaint = Db::name('Comment')->where($where_com)->find(); | ||
502 | + if($complaint){ | ||
503 | + $save['status'] = 9; | ||
504 | + $save['update_time'] = time(); | ||
505 | + $update = Db::name('Comment')->where($where_com)->update($save); | ||
506 | + if($update){ | ||
507 | + $this->success('删除成功'); | ||
508 | + }else{ | ||
509 | + $this->error('删除失败'); | ||
510 | + } | ||
511 | + }else{ | ||
512 | + $this->error('评论状态错误'); | ||
513 | + } | ||
514 | + } | ||
402 | /** | 515 | /** |
403 | * 后台删除第三方用户绑定 | 516 | * 后台删除第三方用户绑定 |
404 | * @adminMenu( | 517 | * @adminMenu( |
@@ -421,6 +534,7 @@ class AdminOauthController extends AdminBaseController | @@ -421,6 +534,7 @@ class AdminOauthController extends AdminBaseController | ||
421 | Db::name("third_party_user")->where("id", $id)->delete(); | 534 | Db::name("third_party_user")->where("id", $id)->delete(); |
422 | $this->success("删除成功!", "admin_oauth/index"); | 535 | $this->success("删除成功!", "admin_oauth/index"); |
423 | } | 536 | } |
537 | + | ||
424 | // 加入黑名单 | 538 | // 加入黑名单 |
425 | public function del(Request $request) | 539 | public function del(Request $request) |
426 | { | 540 | { |
@@ -439,7 +553,6 @@ class AdminOauthController extends AdminBaseController | @@ -439,7 +553,6 @@ class AdminOauthController extends AdminBaseController | ||
439 | } | 553 | } |
440 | } | 554 | } |
441 | 555 | ||
442 | - | ||
443 | // 黑名单列表 | 556 | // 黑名单列表 |
444 | public function black(Request $request) | 557 | public function black(Request $request) |
445 | { | 558 | { |
app/user/controller/GetmoneyController.php
0 → 100644
1 | +<?php | ||
2 | +// +---------------------------------------------------------------------- | ||
3 | +// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] | ||
4 | +// +---------------------------------------------------------------------- | ||
5 | +// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved. | ||
6 | +// +---------------------------------------------------------------------- | ||
7 | +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) | ||
8 | +// +---------------------------------------------------------------------- | ||
9 | +// | Author: Powerless < wzxaini9@gmail.com> | ||
10 | +// +---------------------------------------------------------------------- | ||
11 | +namespace app\user\controller; | ||
12 | + | ||
13 | +use cmf\controller\AdminBaseController; | ||
14 | +use think\Db; | ||
15 | +use think\Loader; | ||
16 | +use think\Request; | ||
17 | + | ||
18 | +class GetmoneyController extends AdminBaseController | ||
19 | +{ | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | +// 提现申请 | ||
24 | + public function index(){ | ||
25 | + $data = $this->request->param(); | ||
26 | + if($data){ | ||
27 | + $startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']); | ||
28 | + $endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']); | ||
29 | + if ($startTime && $endTime) { | ||
30 | + $where_money['d.create_time'] = array('between',"$startTime,$endTime"); | ||
31 | + $this->assign('start_time', $data['start_time']); | ||
32 | + $this->assign('end_time', $data['end_time']); | ||
33 | + }else{ | ||
34 | + if($startTime){ | ||
35 | + $where_money['d.create_time'] = array('egt',$startTime); | ||
36 | + $this->assign('start_time', $data['start_time']); | ||
37 | + } | ||
38 | + if($endTime){ | ||
39 | + $where_money['d.create_time'] = array('elt',$endTime); | ||
40 | + $this->assign('end_time', $data['end_time']); | ||
41 | + } | ||
42 | + } | ||
43 | + if(!empty($data['name'])){ | ||
44 | + $where_money['name'] = array('like','%'.$data['name'].'%'); | ||
45 | + $this->assign('name', $data['name']); | ||
46 | + } | ||
47 | + if(!empty($data['tel'])){ | ||
48 | + $where_money['tel'] = array('like','%'.$data['tel'].'%'); | ||
49 | + $this->assign('tel', $data['tel']); | ||
50 | + } | ||
51 | + } | ||
52 | +// $where_money['user_id'] = $data['id']; | ||
53 | + $where_money['d.order_type'] = 6; | ||
54 | + $where_money['d.type'] = 3; | ||
55 | + $where_money['d.status'] = array('neq',9); | ||
56 | + $money_list = Db::name('MoneyDetail')->alias('d') | ||
57 | + ->join("Member m",'m.id = d.user_id') | ||
58 | + ->where($where_money) | ||
59 | + ->field("m.name,m.tel,m.type,d.money,d.status,d.id,d.create_time") | ||
60 | + ->select(); | ||
61 | +// $this->assign('uid',$data['id']); | ||
62 | + $this->assign('lists',$money_list); | ||
63 | + return $this->fetch('getdetail'); | ||
64 | + } | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | +// 同意提现 | ||
69 | + public function agree(){ | ||
70 | + $data = $this->request->param(); | ||
71 | + $where_money['id'] = $data['id']; | ||
72 | +// $where_money['user_id'] = $data['uid']; | ||
73 | + $where_money['order_type'] = 6; | ||
74 | + $where_money['type'] = 3; | ||
75 | + $where_money['status'] = array('neq',9); | ||
76 | + $money = Db::name('MoneyDetail')->where($where_money)->find(); | ||
77 | + if($money){ | ||
78 | + $save['status'] = 3; | ||
79 | + $save['update_time'] = time(); | ||
80 | + $update = Db::name('MoneyDetail')->where($where_money)->update($save); | ||
81 | + if($update){ | ||
82 | + $this->success('成功'); | ||
83 | + }else{ | ||
84 | + $this->error('失败'); | ||
85 | + } | ||
86 | + }else{ | ||
87 | + $this->error('订单状态不正确'); | ||
88 | + } | ||
89 | + } | ||
90 | + | ||
91 | + // 拒绝提现 | ||
92 | + public function refuse(){ | ||
93 | + $data = $this->request->param(); | ||
94 | + $where_money['id'] = $data['id']; | ||
95 | +// $where_money['user_id'] = $data['uid']; | ||
96 | + $where_money['order_type'] = 6; | ||
97 | + $where_money['type'] = 3; | ||
98 | + $where_money['status'] = array('neq',9); | ||
99 | + $money = Db::name('MoneyDetail')->where($where_money)->find(); | ||
100 | + if($money){ | ||
101 | + $save['status'] = 4; | ||
102 | + $save['update_time'] = time(); | ||
103 | + $update = Db::name('MoneyDetail')->where($where_money)->update($save); | ||
104 | + if($update){ | ||
105 | + $this->success('成功'); | ||
106 | + }else{ | ||
107 | + $this->error('失败'); | ||
108 | + } | ||
109 | + }else{ | ||
110 | + $this->error('订单状态不正确'); | ||
111 | + } | ||
112 | + } | ||
113 | + | ||
114 | + | ||
115 | +// 提现 | ||
116 | + public function getmoney(){ | ||
117 | + $data = $this->request->param(); | ||
118 | + $where_member['id'] = $data['id']; | ||
119 | + $member = Db::name('Member')->where($where_member)->field('id,name,tel')->find(); | ||
120 | + if($member){ | ||
121 | + $where_money['user_id'] = $member['id']; | ||
122 | + $where_money['user_type'] = 1; | ||
123 | + $where_money['order_type'] = 6; | ||
124 | + $detail = Db::name('MoneyDetail')->where($where_money)->select()->toArray(); | ||
125 | + $this->assign('lists',$detail); | ||
126 | + }else{ | ||
127 | + $this->error('用户信息获取失败'); | ||
128 | + } | ||
129 | + } | ||
130 | + | ||
131 | + | ||
132 | + /** | ||
133 | + * 后台删除第三方用户绑定 | ||
134 | + * @adminMenu( | ||
135 | + * 'name' => '删除第三方用户绑定', | ||
136 | + * 'parent' => 'index', | ||
137 | + * 'display'=> false, | ||
138 | + * 'hasView'=> false, | ||
139 | + * 'order' => 10000, | ||
140 | + * 'icon' => '', | ||
141 | + * 'remark' => '删除第三方用户绑定', | ||
142 | + * 'param' => '' | ||
143 | + * ) | ||
144 | + */ | ||
145 | + public function delete() | ||
146 | + { | ||
147 | + $id = input('param.id', 0, 'intval'); | ||
148 | + if (empty($id)) { | ||
149 | + $this->error('非法数据!'); | ||
150 | + } | ||
151 | + Db::name("third_party_user")->where("id", $id)->delete(); | ||
152 | + $this->success("删除成功!", "admin_oauth/index"); | ||
153 | + } | ||
154 | + | ||
155 | +} |
@@ -157,6 +157,7 @@ return array ( | @@ -157,6 +157,7 @@ return array ( | ||
157 | 'PORTAL_BRAND_INDEX' => '品牌中介列表', | 157 | 'PORTAL_BRAND_INDEX' => '品牌中介列表', |
158 | 'PORTAL_CODE_DEFAULT' => '短信验证码管理', | 158 | 'PORTAL_CODE_DEFAULT' => '短信验证码管理', |
159 | 'PORTAL_CODE_INDEX' => '短信验证码列表', | 159 | 'PORTAL_CODE_INDEX' => '短信验证码列表', |
160 | + 'PORTAL_COMPLAINT_INDEX' => '投诉管理', | ||
160 | 'PORTAL_COOPERATION_DEFAULT' => '首页内容管理', | 161 | 'PORTAL_COOPERATION_DEFAULT' => '首页内容管理', |
161 | 'PORTAL_COOPERATION_INDEX' => '合作企业列表', | 162 | 'PORTAL_COOPERATION_INDEX' => '合作企业列表', |
162 | 'PORTAL_NEED_USER' => '需求管理', | 163 | 'PORTAL_NEED_USER' => '需求管理', |
@@ -185,4 +186,5 @@ return array ( | @@ -185,4 +186,5 @@ return array ( | ||
185 | 'USER_ADMINUSERACTION_EDITPOST' => '编辑用户操作提交', | 186 | 'USER_ADMINUSERACTION_EDITPOST' => '编辑用户操作提交', |
186 | 'USER_ADMINUSERACTION_INDEX' => '用户操作管理', | 187 | 'USER_ADMINUSERACTION_INDEX' => '用户操作管理', |
187 | 'USER_ADMINUSERACTION_SYNC' => '同步用户操作', | 188 | 'USER_ADMINUSERACTION_SYNC' => '同步用户操作', |
189 | + 'USER_GETMONEY_INDEX' => '提现管理', | ||
188 | ); | 190 | ); |
1 | +<include file="public@header"/> | ||
2 | +<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css"> | ||
3 | +<style> | ||
4 | + .popup,.popdown{ | ||
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,.popdown p{ | ||
18 | + text-align: center; | ||
19 | + margin-top: 20px; | ||
20 | + } | ||
21 | + .popup span,.popdown span{ | ||
22 | + text-align: center; | ||
23 | + line-height: 30px; | ||
24 | + cursor: pointer; | ||
25 | + } | ||
26 | + .popup .queding,.popdown .sure{ | ||
27 | + display: inline-block; | ||
28 | + width: 80px; | ||
29 | + height: 30px; | ||
30 | + background-color: #1E9FFF; | ||
31 | + border-radius: 3px; | ||
32 | + } | ||
33 | + .popup span:hover,.popdown span:hover{ | ||
34 | + opacity: 0.8; | ||
35 | + } | ||
36 | + .popup .quxiao,.popdown .re{ | ||
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('Complaint/index')}"> | ||
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"> | ||
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('Complaint/index')}">清空</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>用户id</th> | ||
83 | + <th>用户名</th> | ||
84 | + <th>手机号</th> | ||
85 | + <th>需求id</th> | ||
86 | + <th>中介报价id</th> | ||
87 | + <th>中介id</th> | ||
88 | + <th>投诉内容</th> | ||
89 | + <th>投诉时间</th> | ||
90 | + <th>状态</th> | ||
91 | + <th>操作</th> | ||
92 | + </tr> | ||
93 | + </thead> | ||
94 | + <tbody> | ||
95 | + <foreach name="lists" item="vo"> | ||
96 | + <tr> | ||
97 | + <td>{$vo.id}</td> | ||
98 | + <td>{$vo.user_id}</td> | ||
99 | + <td>{$vo.name}</td> | ||
100 | + <td>{$vo.tel}</td> | ||
101 | + <td>{$vo.need_id}</td> | ||
102 | + <td>{$vo.intermediary_id}</td> | ||
103 | + <td>{$vo.agency_id}</td> | ||
104 | + <td>{$vo.content}</td> | ||
105 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
106 | + <td> | ||
107 | + <eq name="vo.status" value="2"> | ||
108 | + <span index="{$vo.id}" style="color: #858585">已同意</span> | ||
109 | + </eq> | ||
110 | + <eq name="vo.status" value="3"> | ||
111 | + <span index="{$vo.id}" style="color: #858585">已拒绝</span> | ||
112 | + </eq> | ||
113 | + <eq name="vo.status" value="1"> | ||
114 | + <span index="{$vo.id}" style="color: #858585">未处理</span> | ||
115 | + </eq> | ||
116 | + </td> | ||
117 | + <td> | ||
118 | + <eq name="vo.status" value="2"> | ||
119 | + <span style="color: #00AA00; cursor: pointer; " index="{$vo.id}">已同意</span> | ||
120 | + </eq> | ||
121 | + <eq name="vo.status" value="3"> | ||
122 | + <span style="color: #ff0000; cursor: pointer; " index="{$vo.id}">已拒绝</span> | ||
123 | + </eq> | ||
124 | + <eq name="vo.status" value="1"> | ||
125 | + <span class="agree" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">同意</span> | ||
126 | + <span class="refuse" style="color: #ff0000; text-decoration:underline; cursor: pointer; " index="{$vo.id}">拒绝</span> | ||
127 | + </eq> | ||
128 | + </td> | ||
129 | + </tr> | ||
130 | + </foreach> | ||
131 | + | ||
132 | + </tbody> | ||
133 | + | ||
134 | + </table> | ||
135 | + <ul class="pagination">{$page|default=''}</ul> | ||
136 | + </form> | ||
137 | + <div class="popup" style="display: none;"> | ||
138 | + <p>确认同意投诉</p> | ||
139 | + <div class="btn_list"> | ||
140 | + <span class="queding">接受</span> | ||
141 | + <span class="quxiao">取消</span> | ||
142 | + </div> | ||
143 | + </div> | ||
144 | + <div class="popdown" style="display: none;"> | ||
145 | + <p>确认拒绝投诉</p> | ||
146 | + <div class="btn_list"> | ||
147 | + <span class="sure">确认</span> | ||
148 | + <span class="re">取消</span> | ||
149 | + </div> | ||
150 | + </div> | ||
151 | + | ||
152 | +</div> | ||
153 | +<script src="__STATIC__/js/admin.js"></script> | ||
154 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
155 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
156 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
157 | +<script type=""> | ||
158 | + $('.agree').click(function () { | ||
159 | + var id = $(this).attr('index'); | ||
160 | + $('.popup').css('display','block'); | ||
161 | + // 删除 | ||
162 | + $('.queding').click(function () { | ||
163 | + $.ajax({ | ||
164 | + type:"POST", | ||
165 | + url:"{:url('Complaint/agree')}", | ||
166 | + data:{ | ||
167 | + "id":id, | ||
168 | + }, | ||
169 | + success:function (data) { | ||
170 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
171 | + $('.popup').css('display','none'); | ||
172 | + }, | ||
173 | + error:function () { | ||
174 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
175 | + $('.popup').css('display','none'); | ||
176 | + } | ||
177 | + }) | ||
178 | + }) | ||
179 | + }) | ||
180 | + $('.quxiao').click(function () { | ||
181 | + $('.popup').css('display','none'); | ||
182 | + }) | ||
183 | +// 拒绝申请 | ||
184 | + $('.refuse').click(function () { | ||
185 | + var id = $(this).attr('index'); | ||
186 | + $('.popdown').css('display','block'); | ||
187 | + // 删除 | ||
188 | + $('.sure').click(function () { | ||
189 | + $.ajax({ | ||
190 | + type:"POST", | ||
191 | + url:"{:url('Complaint/refuse')}", | ||
192 | + data:{ | ||
193 | + "id":id, | ||
194 | + }, | ||
195 | + success:function (data) { | ||
196 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
197 | + $('.popdown').css('display','none'); | ||
198 | + }, | ||
199 | + error:function () { | ||
200 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
201 | + $('.popdown').css('display','none'); | ||
202 | + } | ||
203 | + }) | ||
204 | + }) | ||
205 | + }) | ||
206 | + $('.re').click(function () { | ||
207 | + $('.popdown').css('display','none'); | ||
208 | + }) | ||
209 | + | ||
210 | +</script> | ||
211 | +</body> | ||
212 | +</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 | + <li class=""><a href="{:url('AdminOauth/money',array('id'=>$uid))}">支出</a></li> | ||
57 | + </ul> | ||
58 | + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/inmoney')}"> | ||
59 | + <input type="hidden" name="id" value="{$uid}"> | ||
60 | + 时间: | ||
61 | + <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | ||
62 | + value="{$start_time|default=''}" | ||
63 | + style="width: 140px;" autocomplete="off"> - | ||
64 | + <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | ||
65 | + value="{$end_time|default=''}" | ||
66 | + style="width: 140px;" autocomplete="off"> | ||
67 | + 收入详情: | ||
68 | + <input type="text" class="form-control" name="title" style="width: 200px;" | ||
69 | + value="{$title|default=''}" placeholder="请输入收入详情"> | ||
70 | + 收入金额: | ||
71 | + <input type="text" class="form-control" name="money" style="width: 200px;" | ||
72 | + value="{$money|default=''}" placeholder="请输入收入金额"> | ||
73 | + <input type="submit" class="btn btn-primary" value="搜索"/> | ||
74 | + <a class="btn btn-danger" href="{:url('AdminOauth/inmoney',array('id'=>$uid))}">清空</a> | ||
75 | + </form> | ||
76 | + <div class="well form-inline margin-top-20"> | ||
77 | + <div >用户信息</div> | ||
78 | + <div> | ||
79 | + <span>用户id:{$user.id}</span> | ||
80 | + <span>用户名:{$user.name}</span> | ||
81 | + <span>手机号:{$user.tel}</span> | ||
82 | + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + | ||
86 | + <form method="post" class="js-ajax-form margin-top-20"> | ||
87 | + <table class="table table-hover table-bordered"> | ||
88 | + <thead> | ||
89 | + <tr> | ||
90 | + <th>ID</th> | ||
91 | + <th>收入详情</th> | ||
92 | + <th>收入金额</th> | ||
93 | + <th>状态</th> | ||
94 | + <th>支出时间</th> | ||
95 | + <!--<th align="center" style="cursor: pointer; text-align: center;">查看</th>--> | ||
96 | + <th align="center" style="cursor: pointer;">操作</th> | ||
97 | + </tr> | ||
98 | + </thead> | ||
99 | + <tbody> | ||
100 | + <foreach name="lists" item="vo"> | ||
101 | + <tr> | ||
102 | + <td>{$vo.id}</td> | ||
103 | + <td>{$vo.title}</td> | ||
104 | + <td>{$vo.money}</td> | ||
105 | + <td> | ||
106 | + <eq name="vo.status" value="1"> | ||
107 | + 正常 | ||
108 | + </eq> | ||
109 | + </td> | ||
110 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
111 | + <td> | ||
112 | + <span class="look" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看订单</span> | ||
113 | + <span class="black" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">删除</span> | ||
114 | + </td> | ||
115 | + </tr> | ||
116 | + </foreach> | ||
117 | + </tbody> | ||
118 | + </table> | ||
119 | + | ||
120 | + </form> | ||
121 | + <div class="popup" style="display: none;"> | ||
122 | + <p>确认删除该信息</p> | ||
123 | + <div class="btn_list"> | ||
124 | + <span class="queding">确认</span> | ||
125 | + <span class="quxiao">取消</span> | ||
126 | + </div> | ||
127 | + </div> | ||
128 | + | ||
129 | +</div> | ||
130 | +<script src="__STATIC__/js/admin.js"></script> | ||
131 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
132 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
133 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
134 | +<script type=""> | ||
135 | + $('.black').click(function () { | ||
136 | + var id = $(this).attr('index'); | ||
137 | + $('.popup').css('display','block'); | ||
138 | + // 删除 | ||
139 | + $('.queding').click(function () { | ||
140 | + $.ajax({ | ||
141 | + type:"POST", | ||
142 | + url:"{:url('AdminOauth/moneyDel')}", | ||
143 | + data:{ | ||
144 | + "id":id, | ||
145 | + }, | ||
146 | + success:function (data) { | ||
147 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
148 | + $('.popup').css('display','none'); | ||
149 | + }, | ||
150 | + error:function () { | ||
151 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
152 | + $('.popup').css('display','none'); | ||
153 | + } | ||
154 | + }) | ||
155 | + }) | ||
156 | + }) | ||
157 | + $('.quxiao').click(function () { | ||
158 | + $('.popup').css('display','none'); | ||
159 | + }) | ||
160 | + | ||
161 | +// 查看用户详细信息 | ||
162 | + $('.detail').click(function () { | ||
163 | + var url1 = "{:url('user/AdminOauth/userDetail')}"; | ||
164 | + var url2 = $(this).attr('index'); | ||
165 | + var url3 = url1.split('.'); | ||
166 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
167 | + window.location.href = url | ||
168 | + }) | ||
169 | +// 查看收支明细 | ||
170 | +// 查看提现申请 | ||
171 | +// 查看邀请人 | ||
172 | +</script> | ||
173 | +</body> | ||
174 | +</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=""><a href="{:url('AdminOauth/inmoney',array('id'=>$uid))}">收入</a></li> | ||
56 | + <li class="active"><a>支出</a></li> | ||
57 | + </ul> | ||
58 | + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/money')}"> | ||
59 | + <input type="hidden" name="id" value="{$uid}"> | ||
60 | + 时间: | ||
61 | + <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | ||
62 | + value="{$start_time|default=''}" | ||
63 | + style="width: 140px;" autocomplete="off"> - | ||
64 | + <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | ||
65 | + value="{$end_time|default=''}" | ||
66 | + style="width: 140px;" autocomplete="off"> | ||
67 | + 支出详情: | ||
68 | + <input type="text" class="form-control" name="title" style="width: 200px;" | ||
69 | + value="{$title|default=''}" placeholder="请输入支出详情"> | ||
70 | + 支出金额: | ||
71 | + <input type="text" class="form-control" name="money" style="width: 200px;" | ||
72 | + value="{$money|default=''}" placeholder="请输入支出金额"> | ||
73 | + <input type="submit" class="btn btn-primary" value="搜索"/> | ||
74 | + <a class="btn btn-danger" href="{:url('AdminOauth/money',array('id'=>$uid))}">清空</a> | ||
75 | + </form> | ||
76 | + <div class="well form-inline margin-top-20"> | ||
77 | + <div >用户信息</div> | ||
78 | + <div> | ||
79 | + <span>用户id:{$user.id}</span> | ||
80 | + <span>用户名:{$user.name}</span> | ||
81 | + <span>手机号:{$user.tel}</span> | ||
82 | + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span> | ||
83 | + </div> | ||
84 | + | ||
85 | + </div> | ||
86 | + | ||
87 | + <form method="post" class="js-ajax-form margin-top-20"> | ||
88 | + <table class="table table-hover table-bordered"> | ||
89 | + <thead> | ||
90 | + <tr> | ||
91 | + <th>ID</th> | ||
92 | + <th>支出详情</th> | ||
93 | + <th>支出金额</th> | ||
94 | + <th>状态</th> | ||
95 | + <th>支出时间</th> | ||
96 | + <!--<th align="center" style="cursor: pointer; text-align: center;">查看</th>--> | ||
97 | + <th align="center" style="cursor: pointer;">操作</th> | ||
98 | + </tr> | ||
99 | + </thead> | ||
100 | + <tbody> | ||
101 | + <foreach name="lists" item="vo"> | ||
102 | + <tr> | ||
103 | + <td>{$vo.id}</td> | ||
104 | + <td>{$vo.title}</td> | ||
105 | + <td>{$vo.money}</td> | ||
106 | + <td> | ||
107 | + <eq name="vo.status" value="1"> | ||
108 | + 正常 | ||
109 | + </eq> | ||
110 | + </td> | ||
111 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
112 | + <td> | ||
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> | ||
117 | + </td> | ||
118 | + </tr> | ||
119 | + </foreach> | ||
120 | + </tbody> | ||
121 | + </table> | ||
122 | + | ||
123 | + </form> | ||
124 | + <div class="popup" style="display: none;"> | ||
125 | + <p>确认删除该信息</p> | ||
126 | + <div class="btn_list"> | ||
127 | + <span class="queding">确认</span> | ||
128 | + <span class="quxiao">取消</span> | ||
129 | + </div> | ||
130 | + </div> | ||
131 | + | ||
132 | +</div> | ||
133 | +<script src="__STATIC__/js/admin.js"></script> | ||
134 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
135 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
136 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
137 | +<script type=""> | ||
138 | + $('.del').click(function () { | ||
139 | + var id = $(this).attr('index'); | ||
140 | + $('.popup').css('display','block'); | ||
141 | + // 删除 | ||
142 | + $('.queding').click(function () { | ||
143 | + $.ajax({ | ||
144 | + type:"POST", | ||
145 | + url:"{:url('AdminOauth/moneyDel')}", | ||
146 | + data:{ | ||
147 | + "id":id, | ||
148 | + }, | ||
149 | + success:function (data) { | ||
150 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
151 | + $('.popup').css('display','none'); | ||
152 | + }, | ||
153 | + error:function () { | ||
154 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
155 | + $('.popup').css('display','none'); | ||
156 | + } | ||
157 | + }) | ||
158 | + }) | ||
159 | + }) | ||
160 | + $('.quxiao').click(function () { | ||
161 | + $('.popup').css('display','none'); | ||
162 | + }) | ||
163 | + | ||
164 | +// 查看用户详细信息 | ||
165 | + $('.detail').click(function () { | ||
166 | + var url1 = "{:url('user/AdminOauth/userDetail')}"; | ||
167 | + var url2 = $(this).attr('index'); | ||
168 | + var url3 = url1.split('.'); | ||
169 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
170 | + window.location.href = url | ||
171 | + }) | ||
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 | + }) | ||
180 | +// 查看提现申请 | ||
181 | +// 查看邀请人 | ||
182 | +</script> | ||
183 | +</body> | ||
184 | +</html> |
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/changeAgency')}" 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="name" readonly="readonly" | ||
23 | + value="{$list['name']}" /> | ||
24 | + | ||
25 | + </td> | ||
26 | + </tr> | ||
27 | + <tr> | ||
28 | + <th width="15%">手机号</th> | ||
29 | + <td><input class="form-control" type="text" name="tel" value="{$list['tel']}" /> | ||
30 | + | ||
31 | + </td> | ||
32 | + </tr> | ||
33 | + <tr> | ||
34 | + <th width="15%">余额</th> | ||
35 | + <td><input class="form-control" type="text" name="money" value="{$list['money']}" /> | ||
36 | + | ||
37 | + </td> | ||
38 | + </tr> | ||
39 | + <tr> | ||
40 | + <th width="15%">当前提现金额</th> | ||
41 | + <td><input class="form-control" type="text" name="get_money" value="{$list['get_money']}" /> | ||
42 | + </td> | ||
43 | + </tr> | ||
44 | + <tr> | ||
45 | + <th width="15%">城市</th> | ||
46 | + <td><input class="form-control" type="text" name="city" value="{$list['city']}" /> | ||
47 | + </td> | ||
48 | + </tr> | ||
49 | + <tr> | ||
50 | + <th width="15%">所属公司</th> | ||
51 | + <td><input class="form-control" type="text" name="company" value="{$list['company']}" /> | ||
52 | + </td> | ||
53 | + </tr> | ||
54 | + <tr> | ||
55 | + <th width="15%">门店</th> | ||
56 | + <td><input class="form-control" type="text" name="store" value="{$list['store']}" /> | ||
57 | + </td> | ||
58 | + </tr> | ||
59 | + <tr> | ||
60 | + <th width="15%">服务小区</th> | ||
61 | + <td><input class="form-control" type="text" name="quarters" value="{$list['quarters']}" /> | ||
62 | + </td> | ||
63 | + </tr> | ||
64 | + <tr> | ||
65 | + <th width="15%">推荐人手机号</th> | ||
66 | + <td><input class="form-control" type="text" name="referee_tel" value="{$list['referee_tel']}" /> | ||
67 | + | ||
68 | + </td> | ||
69 | + </tr> | ||
70 | + <tr> | ||
71 | + <th width="15%">推荐人id</th> | ||
72 | + <td><input class="form-control" type="text" name="referee_id" value="{$list['referee_id']}" /> | ||
73 | + | ||
74 | + </td> | ||
75 | + </tr> | ||
76 | + <tr> | ||
77 | + <th width="15%">短网址</th> | ||
78 | + <td><input class="form-control" type="text" name="link" value="{$list['link']}" /> | ||
79 | + </td> | ||
80 | + </tr> | ||
81 | + <tr> | ||
82 | + <th width="15%">最后登录ip</th> | ||
83 | + <td><input class="form-control" type="text" name="last_login_ip" value="{$list['last_login_ip']}" /> | ||
84 | + </td> | ||
85 | + </tr> | ||
86 | + <tr> | ||
87 | + <th width="15%">注册时ip</th> | ||
88 | + <td><input class="form-control" type="text" name="create_ip" value="{$list['create_ip']}" /> | ||
89 | + </td> | ||
90 | + </tr> | ||
91 | + <tr> | ||
92 | + <th width="15%">首次登录时间</th> | ||
93 | + <td><input class="form-control" type="text" name="login_time" value="{$list['login_time']|date='Y-m-d H:i:s',###}" /> | ||
94 | + </td> | ||
95 | + </tr> | ||
96 | + <tr> | ||
97 | + <th width="15%">最后登录时间</th> | ||
98 | + <td><input class="form-control" type="text" name="last_login_time" value="{$list['last_login_time']|date='Y-m-d H:i:s',###}" /> | ||
99 | + </td> | ||
100 | + </tr> | ||
101 | + <tr> | ||
102 | + <th width="18%">注册时间</th> | ||
103 | + <td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" /> | ||
104 | + </td> | ||
105 | + </tr> | ||
106 | + <tr> | ||
107 | + <th>状态</th> | ||
108 | + <td> | ||
109 | + <select name="status"> | ||
110 | + <option name="status" value="1" <eq name="list.status" value="1">selected</eq>> 正常 </option> | ||
111 | + <option name="status" value="8" <eq name="list.status" value="8">selected</eq>> 拉黑 </option> | ||
112 | + </select> | ||
113 | + <!--<input class="form-control" type="text" name="status" value="{$list['status']}" />--> | ||
114 | + | ||
115 | + </td> | ||
116 | + </tr> | ||
117 | + </table> | ||
118 | + <div class="form-group"> | ||
119 | + <div class="col-sm-offset-2 col-sm-10"> | ||
120 | + <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button> | ||
121 | + <a class="btn btn-default" href="{:url('AdminOauth/intermediary')}">{:lang('BACK')}</a> | ||
122 | + </div> | ||
123 | + </div> | ||
124 | + </div> | ||
125 | + </div> | ||
126 | + </form> | ||
127 | +</div> | ||
128 | +<script type="text/javascript" src="__STATIC__/js/admin.js"></script> | ||
129 | +<script type="text/javascript"> | ||
130 | + //编辑器路径定义 | ||
131 | + var editorURL = GV.WEB_ROOT; | ||
132 | +</script> | ||
133 | +<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script> | ||
134 | +<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script> | ||
135 | +<script type="text/javascript"> | ||
136 | + $(function () { | ||
137 | + | ||
138 | + editorcontent = new baidu.editor.ui.Editor(); | ||
139 | + editorcontent.render('content'); | ||
140 | + try { | ||
141 | + editorcontent.sync(); | ||
142 | + } catch (err) { | ||
143 | + } | ||
144 | + | ||
145 | + $('.btn-cancel-thumbnail').click(function () { | ||
146 | + $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
147 | + $('#thumbnail').val(''); | ||
148 | + }); | ||
149 | + | ||
150 | + }); | ||
151 | + | ||
152 | +</script> | ||
153 | +</body> | ||
154 | +</html> |
1 | <include file="public@header"/> | 1 | <include file="public@header"/> |
2 | <link rel="stylesheet" href="__STATIC__/install/css/mdialog.css"> | 2 | <link rel="stylesheet" href="__STATIC__/install/css/mdialog.css"> |
3 | <style> | 3 | <style> |
4 | - .popup{ | 4 | + .popup,.popdown{ |
5 | width: 250px; | 5 | width: 250px; |
6 | height: 100px; | 6 | height: 100px; |
7 | background-color: rgba(0,0,0,0.5); | 7 | background-color: rgba(0,0,0,0.5); |
@@ -14,26 +14,26 @@ | @@ -14,26 +14,26 @@ | ||
14 | border-radius: 5px; | 14 | border-radius: 5px; |
15 | color: #ffffff; | 15 | color: #ffffff; |
16 | } | 16 | } |
17 | - .popup p{ | 17 | + .popup p,.popdown p{ |
18 | text-align: center; | 18 | text-align: center; |
19 | margin-top: 20px; | 19 | margin-top: 20px; |
20 | } | 20 | } |
21 | - .popup span{ | 21 | + .popup span,.popdown span{ |
22 | text-align: center; | 22 | text-align: center; |
23 | line-height: 30px; | 23 | line-height: 30px; |
24 | cursor: pointer; | 24 | cursor: pointer; |
25 | } | 25 | } |
26 | - .popup .queding{ | 26 | + .popup .queding,.popdown .sure{ |
27 | display: inline-block; | 27 | display: inline-block; |
28 | width: 80px; | 28 | width: 80px; |
29 | height: 30px; | 29 | height: 30px; |
30 | background-color: #1E9FFF; | 30 | background-color: #1E9FFF; |
31 | border-radius: 3px; | 31 | border-radius: 3px; |
32 | } | 32 | } |
33 | - .popup span:hover{ | 33 | + .popup span:hover,.popdown span:hover{ |
34 | opacity: 0.8; | 34 | opacity: 0.8; |
35 | } | 35 | } |
36 | - .popup .quxiao{ | 36 | + .popup .quxiao,.popdown .re{ |
37 | display: inline-block; | 37 | display: inline-block; |
38 | width: 80px; | 38 | width: 80px; |
39 | height: 30px; | 39 | height: 30px; |
@@ -91,8 +91,16 @@ | @@ -91,8 +91,16 @@ | ||
91 | </td> | 91 | </td> |
92 | <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | 92 | <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> |
93 | <td> | 93 | <td> |
94 | + <eq name="vo.status" value="3"> | ||
95 | + <span style="color: #00AA00; cursor: pointer; " index="{$vo.id}">提现通过</span> | ||
96 | + </eq> | ||
97 | + <eq name="vo.status" value="4"> | ||
98 | + <span style="color: #ff0000; cursor: pointer; " index="{$vo.id}">未通过</span> | ||
99 | + </eq> | ||
100 | + <eq name="vo.status" value="5"> | ||
94 | <span class="agree" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">同意</span> | 101 | <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> | 102 | <span class="refuse" style="color: #ff0000; text-decoration:underline; cursor: pointer; " index="{$vo.id}">拒绝</span> |
103 | + </eq> | ||
96 | </td> | 104 | </td> |
97 | </tr> | 105 | </tr> |
98 | </foreach> | 106 | </foreach> |
@@ -101,12 +109,19 @@ | @@ -101,12 +109,19 @@ | ||
101 | 109 | ||
102 | </form> | 110 | </form> |
103 | <div class="popup" style="display: none;"> | 111 | <div class="popup" style="display: none;"> |
104 | - <p>确认拉黑该用户</p> | 112 | + <p>确认同意申请</p> |
105 | <div class="btn_list"> | 113 | <div class="btn_list"> |
106 | <span class="queding">确认</span> | 114 | <span class="queding">确认</span> |
107 | <span class="quxiao">取消</span> | 115 | <span class="quxiao">取消</span> |
108 | </div> | 116 | </div> |
109 | </div> | 117 | </div> |
118 | + <div class="popdown" style="display: none;"> | ||
119 | + <p>确认拒绝申请</p> | ||
120 | + <div class="btn_list"> | ||
121 | + <span class="sure">确认</span> | ||
122 | + <span class="re">取消</span> | ||
123 | + </div> | ||
124 | + </div> | ||
110 | 125 | ||
111 | </div> | 126 | </div> |
112 | <script src="__STATIC__/js/admin.js"></script> | 127 | <script src="__STATIC__/js/admin.js"></script> |
@@ -116,6 +131,7 @@ | @@ -116,6 +131,7 @@ | ||
116 | <script type=""> | 131 | <script type=""> |
117 | $('.agree').click(function () { | 132 | $('.agree').click(function () { |
118 | var id = $(this).attr('index'); | 133 | var id = $(this).attr('index'); |
134 | + var uid = "{$uid}"; | ||
119 | $('.popup').css('display','block'); | 135 | $('.popup').css('display','block'); |
120 | // 删除 | 136 | // 删除 |
121 | $('.queding').click(function () { | 137 | $('.queding').click(function () { |
@@ -124,6 +140,7 @@ | @@ -124,6 +140,7 @@ | ||
124 | url:"{:url('AdminOauth/agree')}", | 140 | url:"{:url('AdminOauth/agree')}", |
125 | data:{ | 141 | data:{ |
126 | "id":id, | 142 | "id":id, |
143 | + "uid":uid, | ||
127 | }, | 144 | }, |
128 | success:function (data) { | 145 | success:function (data) { |
129 | new TipBox({type:'success',str:'操作成功',hasBtn:true}); | 146 | new TipBox({type:'success',str:'操作成功',hasBtn:true}); |
@@ -139,6 +156,34 @@ | @@ -139,6 +156,34 @@ | ||
139 | $('.quxiao').click(function () { | 156 | $('.quxiao').click(function () { |
140 | $('.popup').css('display','none'); | 157 | $('.popup').css('display','none'); |
141 | }) | 158 | }) |
159 | +// 拒绝申请 | ||
160 | + $('.refuse').click(function () { | ||
161 | + var id = $(this).attr('index'); | ||
162 | + var uid = "{$uid}"; | ||
163 | + $('.popdown').css('display','block'); | ||
164 | + // 删除 | ||
165 | + $('.sure').click(function () { | ||
166 | + $.ajax({ | ||
167 | + type:"POST", | ||
168 | + url:"{:url('AdminOauth/refuse')}", | ||
169 | + data:{ | ||
170 | + "id":id, | ||
171 | + "uid":uid, | ||
172 | + }, | ||
173 | + success:function (data) { | ||
174 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
175 | + $('.popdown').css('display','none'); | ||
176 | + }, | ||
177 | + error:function () { | ||
178 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
179 | + $('.popdown').css('display','none'); | ||
180 | + } | ||
181 | + }) | ||
182 | + }) | ||
183 | + }) | ||
184 | + $('.re').click(function () { | ||
185 | + $('.popdown').css('display','none'); | ||
186 | + }) | ||
142 | 187 | ||
143 | </script> | 188 | </script> |
144 | </body> | 189 | </body> |
@@ -52,16 +52,16 @@ | @@ -52,16 +52,16 @@ | ||
52 | <body> | 52 | <body> |
53 | <div class="wrap"> | 53 | <div class="wrap"> |
54 | <ul class="nav nav-tabs"> | 54 | <ul class="nav nav-tabs"> |
55 | - <li class="active"><a>{:lang('USER_OAUTHADMIN_INDEX')}</a></li> | 55 | + <li class="active"><a>用户管理</a></li> |
56 | </ul> | 56 | </ul> |
57 | - <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/intermediary')}"> | 57 | + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/user')}"> |
58 | 时间: | 58 | 时间: |
59 | <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | 59 | <input type="text" class="form-control js-bootstrap-datetime" name="start_time" |
60 | value="{$start_time|default=''}" | 60 | value="{$start_time|default=''}" |
61 | style="width: 140px;" autocomplete="off"> - | 61 | style="width: 140px;" autocomplete="off"> - |
62 | <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | 62 | <input type="text" class="form-control js-bootstrap-datetime" name="end_time" |
63 | value="{$end_time|default=''}" | 63 | value="{$end_time|default=''}" |
64 | - style="width: 140px;" autocomplete="off"> | 64 | + style="width: 140px;" autocomplete="off"> |
65 | 姓名: | 65 | 姓名: |
66 | <input type="text" class="form-control" name="name" style="width: 200px;" | 66 | <input type="text" class="form-control" name="name" style="width: 200px;" |
67 | value="{$name|default=''}" placeholder="请输入姓名"> | 67 | value="{$name|default=''}" placeholder="请输入姓名"> |
@@ -69,8 +69,10 @@ | @@ -69,8 +69,10 @@ | ||
69 | <input type="text" class="form-control" name="tel" style="width: 200px;" | 69 | <input type="text" class="form-control" name="tel" style="width: 200px;" |
70 | value="{$tel|default=''}" placeholder="请输入手机号"> | 70 | value="{$tel|default=''}" placeholder="请输入手机号"> |
71 | <input type="submit" class="btn btn-primary" value="搜索"/> | 71 | <input type="submit" class="btn btn-primary" value="搜索"/> |
72 | - <a class="btn btn-danger" href="{:url('AdminOauth/intermediary')}">清空</a> | 72 | + <a class="btn btn-danger" href="{:url('AdminOauth/user')}">清空</a> |
73 | </form> | 73 | </form> |
74 | + | ||
75 | + | ||
74 | <form method="post" class="js-ajax-form margin-top-20"> | 76 | <form method="post" class="js-ajax-form margin-top-20"> |
75 | <table class="table table-hover table-bordered"> | 77 | <table class="table table-hover table-bordered"> |
76 | <thead> | 78 | <thead> |
@@ -78,16 +80,13 @@ | @@ -78,16 +80,13 @@ | ||
78 | <th>ID</th> | 80 | <th>ID</th> |
79 | <th>姓名</th> | 81 | <th>姓名</th> |
80 | <th>手机号</th> | 82 | <th>手机号</th> |
81 | - <th>城市</th> | ||
82 | - <th>所属公司</th> | ||
83 | - <th>门店</th> | ||
84 | - <th>服务小区</th> | 83 | + <th>余额</th> |
85 | <th>推荐人</th> | 84 | <th>推荐人</th> |
86 | <th>推荐人id</th> | 85 | <th>推荐人id</th> |
87 | - <th>创建时间</th> | ||
88 | - <th>更新时间</th> | 86 | + <th>注册时间</th> |
89 | <th>状态</th> | 87 | <th>状态</th> |
90 | - <th align="center">操作</th> | 88 | + <th align="center" style="cursor: pointer; text-align: center;">查看</th> |
89 | + <th align="center" style="cursor: pointer;">操作</th> | ||
91 | </tr> | 90 | </tr> |
92 | </thead> | 91 | </thead> |
93 | <tbody> | 92 | <tbody> |
@@ -96,10 +95,7 @@ | @@ -96,10 +95,7 @@ | ||
96 | <td>{$vo.id}</td> | 95 | <td>{$vo.id}</td> |
97 | <td>{$vo.name}</td> | 96 | <td>{$vo.name}</td> |
98 | <td>{$vo.tel}</td> | 97 | <td>{$vo.tel}</td> |
99 | - <td>{$vo.city}</td> | ||
100 | - <td>{$vo.company}</td> | ||
101 | - <td>{$vo.store}</td> | ||
102 | - <td>{$vo.quarters}</td> | 98 | + <th>{$vo.money}</th> |
103 | <td> | 99 | <td> |
104 | <empty name="vo.referee_name"> | 100 | <empty name="vo.referee_name"> |
105 | 暂无 | 101 | 暂无 |
@@ -107,14 +103,13 @@ | @@ -107,14 +103,13 @@ | ||
107 | {$vo.referee_name} | 103 | {$vo.referee_name} |
108 | </td> | 104 | </td> |
109 | <td> | 105 | <td> |
110 | - <empty name="vo.referee_name"> | 106 | + <empty name="vo.referee_id"> |
111 | 暂无 | 107 | 暂无 |
112 | </empty> | 108 | </empty> |
113 | {$vo.referee_id} | 109 | {$vo.referee_id} |
114 | </td> | 110 | </td> |
115 | 111 | ||
116 | <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | 112 | <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> |
117 | - <td>{:date('Y-m-d H:i:s',$vo['update_time'])}</td> | ||
118 | <td> | 113 | <td> |
119 | <eq name="vo.status" value="1"> | 114 | <eq name="vo.status" value="1"> |
120 | 正常 | 115 | 正常 |
@@ -127,14 +122,22 @@ | @@ -127,14 +122,22 @@ | ||
127 | </eq> | 122 | </eq> |
128 | </td> | 123 | </td> |
129 | <td> | 124 | <td> |
125 | + <span class="detail" style="color: #0FD149; text-decoration:underline; cursor: pointer; " index="{$vo.id}" >详细信息</span> | ||
126 | + <span class="money" style="color: #9B399C; 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> | ||
128 | + <span class="referee" style="color: #BFB61D; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span> | ||
129 | + <span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看评论</span> | ||
130 | + <span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看信誉分</span> | ||
131 | + </td> | ||
132 | + <td> | ||
130 | <eq name="vo.status" value="1"> | 133 | <eq name="vo.status" value="1"> |
131 | - <span class="black" style="color: #18BC9C; text-decoration:underline;" index="{$vo.id}">拉黑</span> | 134 | + <span class="black" style="color: #AC4555; text-decoration:underline; cursor: pointer; " index="{$vo.id}">拉黑</span> |
132 | </eq> | 135 | </eq> |
133 | <eq name="vo.status" value="8"> | 136 | <eq name="vo.status" value="8"> |
134 | - <span style="color:#aaaaaa;" index="{$vo.id}">已拉黑</span> | 137 | + <span style="color:#aaaaaa; cursor: pointer; " index="{$vo.id}">已拉黑</span> |
135 | </eq> | 138 | </eq> |
136 | <eq name="vo.status" value="9"> | 139 | <eq name="vo.status" value="9"> |
137 | - <span style="color:#aaaaaa;" index="{$vo.id}">已删除</span> | 140 | + <span style="color:#aaaaaa; cursor: pointer; " index="{$vo.id}">已删除</span> |
138 | </eq> | 141 | </eq> |
139 | </td> | 142 | </td> |
140 | </tr> | 143 | </tr> |
@@ -158,7 +161,7 @@ | @@ -158,7 +161,7 @@ | ||
158 | <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | 161 | <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> |
159 | <script type=""> | 162 | <script type=""> |
160 | $('.black').click(function () { | 163 | $('.black').click(function () { |
161 | - var id = $('.black').attr('index'); | 164 | + var id = $(this).attr('index'); |
162 | $('.popup').css('display','block'); | 165 | $('.popup').css('display','block'); |
163 | // 删除 | 166 | // 删除 |
164 | $('.queding').click(function () { | 167 | $('.queding').click(function () { |
@@ -171,7 +174,7 @@ | @@ -171,7 +174,7 @@ | ||
171 | success:function (data) { | 174 | success:function (data) { |
172 | new TipBox({type:'success',str:'操作成功',hasBtn:true}); | 175 | new TipBox({type:'success',str:'操作成功',hasBtn:true}); |
173 | $('.popup').css('display','none'); | 176 | $('.popup').css('display','none'); |
174 | - }, | 177 | + }, |
175 | error:function () { | 178 | error:function () { |
176 | new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | 179 | new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); |
177 | $('.popup').css('display','none'); | 180 | $('.popup').css('display','none'); |
@@ -182,6 +185,47 @@ | @@ -182,6 +185,47 @@ | ||
182 | $('.quxiao').click(function () { | 185 | $('.quxiao').click(function () { |
183 | $('.popup').css('display','none'); | 186 | $('.popup').css('display','none'); |
184 | }) | 187 | }) |
188 | + | ||
189 | + // 查看用户详细信息 | ||
190 | + $('.detail').click(function () { | ||
191 | + var url1 = "{:url('user/AdminOauth/agencyDetail')}"; | ||
192 | + var url2 = $(this).attr('index'); | ||
193 | + var url3 = url1.split('.'); | ||
194 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
195 | + window.location.href = url | ||
196 | + }) | ||
197 | + // 查看收支明细 | ||
198 | + $('.money').click(function () { | ||
199 | + var url1 = "{:url('user/AdminOauth/money')}"; | ||
200 | + var url2 = $(this).attr('index'); | ||
201 | + var url3 = url1.split('.'); | ||
202 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
203 | + window.location.href = url | ||
204 | + }) | ||
205 | + // 查看提现申请 | ||
206 | + $('.getMoneyDetail').click(function () { | ||
207 | + var url1 = "{:url('user/AdminOauth/getMoneyDetail')}"; | ||
208 | + var url2 = $(this).attr('index'); | ||
209 | + var url3 = url1.split('.'); | ||
210 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
211 | + window.location.href = url | ||
212 | + }) | ||
213 | + // 查看邀请人 | ||
214 | + $('.referee').click(function () { | ||
215 | + var url1 = "{:url('user/AdminOauth/referee')}"; | ||
216 | + var url2 = $(this).attr('index'); | ||
217 | + var url3 = url1.split('.'); | ||
218 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
219 | + window.location.href = url | ||
220 | + }) | ||
221 | + // 查看评论 | ||
222 | + $('.comment').click(function () { | ||
223 | + var url1 = "{:url('user/AdminOauth/comment')}"; | ||
224 | + var url2 = $(this).attr('index'); | ||
225 | + var url3 = url1.split('.'); | ||
226 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
227 | + window.location.href = url | ||
228 | + }) | ||
185 | </script> | 229 | </script> |
186 | </body> | 230 | </body> |
187 | </html> | 231 | </html> |
1 | +<include file="public@header"/> | ||
2 | +<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css"> | ||
3 | +<style> | ||
4 | + .popup,.popdown{ | ||
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,.popdown p{ | ||
18 | + text-align: center; | ||
19 | + margin-top: 20px; | ||
20 | + } | ||
21 | + .popup span,.popdown span{ | ||
22 | + text-align: center; | ||
23 | + line-height: 30px; | ||
24 | + cursor: pointer; | ||
25 | + } | ||
26 | + .popup .queding,.popdown .sure{ | ||
27 | + display: inline-block; | ||
28 | + width: 80px; | ||
29 | + height: 30px; | ||
30 | + background-color: #1E9FFF; | ||
31 | + border-radius: 3px; | ||
32 | + } | ||
33 | + .popup span:hover,.popdown span:hover{ | ||
34 | + opacity: 0.8; | ||
35 | + } | ||
36 | + .popup .quxiao,.popdown .re{ | ||
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('Getmoney/index')}"> | ||
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"> | ||
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('Getmoney/index')}">清空</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 | + <th>提现金额</th> | ||
86 | + <th>状态</th> | ||
87 | + <th>提现时间</th> | ||
88 | + <th>操作</th> | ||
89 | + </tr> | ||
90 | + </thead> | ||
91 | + <tbody> | ||
92 | + <foreach name="lists" item="vo"> | ||
93 | + <tr> | ||
94 | + <td>{$vo.id}</td> | ||
95 | + <td>{$vo.name}</td> | ||
96 | + <td>{$vo.tel}</td> | ||
97 | + <td> | ||
98 | + <eq name="vo.type" value="1"> | ||
99 | + 用户 | ||
100 | + </eq> | ||
101 | + <eq name="vo.type" value="2"> | ||
102 | + 中介 | ||
103 | + </eq> | ||
104 | + </td> | ||
105 | + <td>{$vo.money}</td> | ||
106 | + <td> | ||
107 | + <eq name="vo.status" value="5">待审核</eq> | ||
108 | + <eq name="vo.status" value="3">提现通过</eq> | ||
109 | + <eq name="vo.status" value="4">提现拒绝</eq> | ||
110 | + </td> | ||
111 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
112 | + <td> | ||
113 | + <eq name="vo.status" value="3"> | ||
114 | + <span style="color: #00AA00; cursor: pointer; " index="{$vo.id}">提现通过</span> | ||
115 | + </eq> | ||
116 | + <eq name="vo.status" value="4"> | ||
117 | + <span style="color: #ff0000; cursor: pointer; " index="{$vo.id}">未通过</span> | ||
118 | + </eq> | ||
119 | + <eq name="vo.status" value="5"> | ||
120 | + <span class="agree" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">同意</span> | ||
121 | + <span class="refuse" style="color: #ff0000; text-decoration:underline; cursor: pointer; " index="{$vo.id}">拒绝</span> | ||
122 | + </eq> | ||
123 | + </td> | ||
124 | + </tr> | ||
125 | + </foreach> | ||
126 | + </tbody> | ||
127 | + </table> | ||
128 | + | ||
129 | + </form> | ||
130 | + <div class="popup" style="display: none;"> | ||
131 | + <p>确认同意申请</p> | ||
132 | + <div class="btn_list"> | ||
133 | + <span class="queding">确认</span> | ||
134 | + <span class="quxiao">取消</span> | ||
135 | + </div> | ||
136 | + </div> | ||
137 | + <div class="popdown" style="display: none;"> | ||
138 | + <p>确认拒绝申请</p> | ||
139 | + <div class="btn_list"> | ||
140 | + <span class="sure">确认</span> | ||
141 | + <span class="re">取消</span> | ||
142 | + </div> | ||
143 | + </div> | ||
144 | + | ||
145 | +</div> | ||
146 | +<script src="__STATIC__/js/admin.js"></script> | ||
147 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
148 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
149 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
150 | +<script type=""> | ||
151 | + $('.agree').click(function () { | ||
152 | + var id = $(this).attr('index'); | ||
153 | + $('.popup').css('display','block'); | ||
154 | + // 删除 | ||
155 | + $('.queding').click(function () { | ||
156 | + $.ajax({ | ||
157 | + type:"POST", | ||
158 | + url:"{:url('Getmoney/agree')}", | ||
159 | + data:{ | ||
160 | + "id":id, | ||
161 | + }, | ||
162 | + success:function (data) { | ||
163 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
164 | + $('.popup').css('display','none'); | ||
165 | + }, | ||
166 | + error:function () { | ||
167 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
168 | + $('.popup').css('display','none'); | ||
169 | + } | ||
170 | + }) | ||
171 | + }) | ||
172 | + }) | ||
173 | + $('.quxiao').click(function () { | ||
174 | + $('.popup').css('display','none'); | ||
175 | + }) | ||
176 | +// 拒绝申请 | ||
177 | + $('.refuse').click(function () { | ||
178 | + var id = $(this).attr('index'); | ||
179 | + $('.popdown').css('display','block'); | ||
180 | + // 删除 | ||
181 | + $('.sure').click(function () { | ||
182 | + $.ajax({ | ||
183 | + type:"POST", | ||
184 | + url:"{:url('Getmoney/refuse')}", | ||
185 | + data:{ | ||
186 | + "id":id, | ||
187 | + }, | ||
188 | + success:function (data) { | ||
189 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
190 | + $('.popdown').css('display','none'); | ||
191 | + }, | ||
192 | + error:function () { | ||
193 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
194 | + $('.popdown').css('display','none'); | ||
195 | + } | ||
196 | + }) | ||
197 | + }) | ||
198 | + }) | ||
199 | + $('.re').click(function () { | ||
200 | + $('.popdown').css('display','none'); | ||
201 | + }) | ||
202 | + | ||
203 | +</script> | ||
204 | +</body> | ||
205 | +</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 | + <li class=""><a href="{:url('AdminOauth/money',array('id'=>$uid))}">支出</a></li> | ||
57 | + </ul> | ||
58 | + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/inmoney')}"> | ||
59 | + <input type="hidden" name="id" value="{$uid}"> | ||
60 | + 时间: | ||
61 | + <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | ||
62 | + value="{$start_time|default=''}" | ||
63 | + style="width: 140px;" autocomplete="off"> - | ||
64 | + <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | ||
65 | + value="{$end_time|default=''}" | ||
66 | + style="width: 140px;" autocomplete="off"> | ||
67 | + 收入详情: | ||
68 | + <input type="text" class="form-control" name="title" style="width: 200px;" | ||
69 | + value="{$title|default=''}" placeholder="请输入收入详情"> | ||
70 | + 收入金额: | ||
71 | + <input type="text" class="form-control" name="money" style="width: 200px;" | ||
72 | + value="{$money|default=''}" placeholder="请输入收入金额"> | ||
73 | + <input type="submit" class="btn btn-primary" value="搜索"/> | ||
74 | + <a class="btn btn-danger" href="{:url('AdminOauth/inmoney',array('id'=>$uid))}">清空</a> | ||
75 | + </form> | ||
76 | + <div class="well form-inline margin-top-20"> | ||
77 | + <div >用户信息</div> | ||
78 | + <div> | ||
79 | + <span>用户id:{$user.id}</span> | ||
80 | + <span>用户名:{$user.name}</span> | ||
81 | + <span>手机号:{$user.tel}</span> | ||
82 | + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + | ||
86 | + <form method="post" class="js-ajax-form margin-top-20"> | ||
87 | + <table class="table table-hover table-bordered"> | ||
88 | + <thead> | ||
89 | + <tr> | ||
90 | + <th>ID</th> | ||
91 | + <th>收入详情</th> | ||
92 | + <th>收入金额</th> | ||
93 | + <th>状态</th> | ||
94 | + <th>支出时间</th> | ||
95 | + <!--<th align="center" style="cursor: pointer; text-align: center;">查看</th>--> | ||
96 | + <th align="center" style="cursor: pointer;">操作</th> | ||
97 | + </tr> | ||
98 | + </thead> | ||
99 | + <tbody> | ||
100 | + <foreach name="lists" item="vo"> | ||
101 | + <tr> | ||
102 | + <td>{$vo.id}</td> | ||
103 | + <td>{$vo.title}</td> | ||
104 | + <td>{$vo.money}</td> | ||
105 | + <td> | ||
106 | + <eq name="vo.status" value="1"> | ||
107 | + 正常 | ||
108 | + </eq> | ||
109 | + </td> | ||
110 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
111 | + <td> | ||
112 | + <span class="look" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看订单</span> | ||
113 | + <span class="black" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">删除</span> | ||
114 | + </td> | ||
115 | + </tr> | ||
116 | + </foreach> | ||
117 | + </tbody> | ||
118 | + </table> | ||
119 | + | ||
120 | + </form> | ||
121 | + <div class="popup" style="display: none;"> | ||
122 | + <p>确认删除该信息</p> | ||
123 | + <div class="btn_list"> | ||
124 | + <span class="queding">确认</span> | ||
125 | + <span class="quxiao">取消</span> | ||
126 | + </div> | ||
127 | + </div> | ||
128 | + | ||
129 | +</div> | ||
130 | +<script src="__STATIC__/js/admin.js"></script> | ||
131 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
132 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
133 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
134 | +<script type=""> | ||
135 | + $('.black').click(function () { | ||
136 | + var id = $(this).attr('index'); | ||
137 | + $('.popup').css('display','block'); | ||
138 | + // 删除 | ||
139 | + $('.queding').click(function () { | ||
140 | + $.ajax({ | ||
141 | + type:"POST", | ||
142 | + url:"{:url('AdminOauth/moneyDel')}", | ||
143 | + data:{ | ||
144 | + "id":id, | ||
145 | + }, | ||
146 | + success:function (data) { | ||
147 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
148 | + $('.popup').css('display','none'); | ||
149 | + }, | ||
150 | + error:function () { | ||
151 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
152 | + $('.popup').css('display','none'); | ||
153 | + } | ||
154 | + }) | ||
155 | + }) | ||
156 | + }) | ||
157 | + $('.quxiao').click(function () { | ||
158 | + $('.popup').css('display','none'); | ||
159 | + }) | ||
160 | + | ||
161 | +// 查看用户详细信息 | ||
162 | + $('.detail').click(function () { | ||
163 | + var url1 = "{:url('user/AdminOauth/userDetail')}"; | ||
164 | + var url2 = $(this).attr('index'); | ||
165 | + var url3 = url1.split('.'); | ||
166 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
167 | + window.location.href = url | ||
168 | + }) | ||
169 | +// 查看收支明细 | ||
170 | +// 查看提现申请 | ||
171 | +// 查看邀请人 | ||
172 | +</script> | ||
173 | +</body> | ||
174 | +</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=""><a href="{:url('AdminOauth/inmoney',array('id'=>$uid))}">收入</a></li> | ||
56 | + <li class="active"><a>支出</a></li> | ||
57 | + </ul> | ||
58 | + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/money')}"> | ||
59 | + <input type="hidden" name="id" value="{$uid}"> | ||
60 | + 时间: | ||
61 | + <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | ||
62 | + value="{$start_time|default=''}" | ||
63 | + style="width: 140px;" autocomplete="off"> - | ||
64 | + <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | ||
65 | + value="{$end_time|default=''}" | ||
66 | + style="width: 140px;" autocomplete="off"> | ||
67 | + 支出详情: | ||
68 | + <input type="text" class="form-control" name="title" style="width: 200px;" | ||
69 | + value="{$title|default=''}" placeholder="请输入支出详情"> | ||
70 | + 支出金额: | ||
71 | + <input type="text" class="form-control" name="money" style="width: 200px;" | ||
72 | + value="{$money|default=''}" placeholder="请输入支出金额"> | ||
73 | + <input type="submit" class="btn btn-primary" value="搜索"/> | ||
74 | + <a class="btn btn-danger" href="{:url('AdminOauth/money',array('id'=>$uid))}">清空</a> | ||
75 | + </form> | ||
76 | + <div class="well form-inline margin-top-20"> | ||
77 | + <div >用户信息</div> | ||
78 | + <div> | ||
79 | + <span>用户id:{$user.id}</span> | ||
80 | + <span>用户名:{$user.name}</span> | ||
81 | + <span>手机号:{$user.tel}</span> | ||
82 | + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span> | ||
83 | + </div> | ||
84 | + | ||
85 | + </div> | ||
86 | + | ||
87 | + <form method="post" class="js-ajax-form margin-top-20"> | ||
88 | + <table class="table table-hover table-bordered"> | ||
89 | + <thead> | ||
90 | + <tr> | ||
91 | + <th>ID</th> | ||
92 | + <th>支出详情</th> | ||
93 | + <th>支出金额</th> | ||
94 | + <th>状态</th> | ||
95 | + <th>支出时间</th> | ||
96 | + <!--<th align="center" style="cursor: pointer; text-align: center;">查看</th>--> | ||
97 | + <th align="center" style="cursor: pointer;">操作</th> | ||
98 | + </tr> | ||
99 | + </thead> | ||
100 | + <tbody> | ||
101 | + <foreach name="lists" item="vo"> | ||
102 | + <tr> | ||
103 | + <td>{$vo.id}</td> | ||
104 | + <td>{$vo.title}</td> | ||
105 | + <td>{$vo.money}</td> | ||
106 | + <td> | ||
107 | + <eq name="vo.status" value="1"> | ||
108 | + 正常 | ||
109 | + </eq> | ||
110 | + </td> | ||
111 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
112 | + <td> | ||
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> | ||
117 | + </td> | ||
118 | + </tr> | ||
119 | + </foreach> | ||
120 | + </tbody> | ||
121 | + </table> | ||
122 | + | ||
123 | + </form> | ||
124 | + <div class="popup" style="display: none;"> | ||
125 | + <p>确认删除该信息</p> | ||
126 | + <div class="btn_list"> | ||
127 | + <span class="queding">确认</span> | ||
128 | + <span class="quxiao">取消</span> | ||
129 | + </div> | ||
130 | + </div> | ||
131 | + | ||
132 | +</div> | ||
133 | +<script src="__STATIC__/js/admin.js"></script> | ||
134 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
135 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
136 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
137 | +<script type=""> | ||
138 | + $('.del').click(function () { | ||
139 | + var id = $(this).attr('index'); | ||
140 | + $('.popup').css('display','block'); | ||
141 | + // 删除 | ||
142 | + $('.queding').click(function () { | ||
143 | + $.ajax({ | ||
144 | + type:"POST", | ||
145 | + url:"{:url('AdminOauth/moneyDel')}", | ||
146 | + data:{ | ||
147 | + "id":id, | ||
148 | + }, | ||
149 | + success:function (data) { | ||
150 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
151 | + $('.popup').css('display','none'); | ||
152 | + }, | ||
153 | + error:function () { | ||
154 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
155 | + $('.popup').css('display','none'); | ||
156 | + } | ||
157 | + }) | ||
158 | + }) | ||
159 | + }) | ||
160 | + $('.quxiao').click(function () { | ||
161 | + $('.popup').css('display','none'); | ||
162 | + }) | ||
163 | + | ||
164 | +// 查看用户详细信息 | ||
165 | + $('.detail').click(function () { | ||
166 | + var url1 = "{:url('user/AdminOauth/userDetail')}"; | ||
167 | + var url2 = $(this).attr('index'); | ||
168 | + var url3 = url1.split('.'); | ||
169 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
170 | + window.location.href = url | ||
171 | + }) | ||
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 | + }) | ||
180 | +// 查看提现申请 | ||
181 | +// 查看邀请人 | ||
182 | +</script> | ||
183 | +</body> | ||
184 | +</html> |
13.9 KB
17.2 KB
@@ -1280,3 +1280,5 @@ | @@ -1280,3 +1280,5 @@ | ||
1280 | 2018-07-24 16:19:20 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018062560425105\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-07-24 16:19:20\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'QNTf+UwxVvV/IHI5pXHBQgooMftGLNyVw+d2TlB+Njr91hFYX5/eiAcu9szghr6p74pf7PaM9qzU/3YK0cfwI4DHQ9n7cBweDbLit9PLpAnrn5ANxtb591e7E/kZkojcj4xPQN6lMgR/20wFdB55m1n5FYd+Ok3/F6G/CDNxkdnTKHLsmLofD4D1qT9pnN+Nrs1VPByn124InkkVrUk7RS9ThjDDy3QFpKOUFPN8w7hmeDSC5dZccJ31vRZzO5pVU/Ygy9kkgTP00zWNqW4c9j3DLRK8ttNmGgRrcomqSd1OgsKmLVBC6pYyHxwfZ0EK3iIw+ztuXwao0ZonMxwc9g==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>' | 1280 | 2018-07-24 16:19:20 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018062560425105\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-07-24 16:19:20\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'QNTf+UwxVvV/IHI5pXHBQgooMftGLNyVw+d2TlB+Njr91hFYX5/eiAcu9szghr6p74pf7PaM9qzU/3YK0cfwI4DHQ9n7cBweDbLit9PLpAnrn5ANxtb591e7E/kZkojcj4xPQN6lMgR/20wFdB55m1n5FYd+Ok3/F6G/CDNxkdnTKHLsmLofD4D1qT9pnN+Nrs1VPByn124InkkVrUk7RS9ThjDDy3QFpKOUFPN8w7hmeDSC5dZccJ31vRZzO5pVU/Ygy9kkgTP00zWNqW4c9j3DLRK8ttNmGgRrcomqSd1OgsKmLVBC6pYyHxwfZ0EK3iIw+ztuXwao0ZonMxwc9g==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>' |
1281 | 2018-07-24 16:19:28 {"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"} | 1281 | 2018-07-24 16:19:28 {"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"} |
1282 | 2018-07-24 16:19:28 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018062560425105\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-07-24 16:19:28\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'wM7VQXlL8ov5HFZ4BLFkc0uZ3V9wFl1+zuHqa3r3tTCwi7BRMDc6qv1NuA7mCz+hH/5krUrdcxo1Sx+U8WTIFctFYUZymo73u7MwxaqavqEF9h1+eZpQ8hMUCgAont3glbYQwZZE7hbQObnQFxtr1Ox56mbF7SyyOQ6srtoptIQo3r4XOrucJSxmxazqEBZSjP3Wb7YUPr7zFUIF3hgRxhhkEDB7+XD8kK1w2i/5LSKdR8TkEAf6jN3RL05rR49vd11OSS3lPYreANgSvtRaXGiyOye7R1hXN/oZgYws9jFw9Eu4YyNw/aqRkI+p11LUZAPhWUoRB3/5ehNJFh6LKg==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>' | 1282 | 2018-07-24 16:19:28 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072199481015"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018062560425105\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-07-24 16:19:28\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'wM7VQXlL8ov5HFZ4BLFkc0uZ3V9wFl1+zuHqa3r3tTCwi7BRMDc6qv1NuA7mCz+hH/5krUrdcxo1Sx+U8WTIFctFYUZymo73u7MwxaqavqEF9h1+eZpQ8hMUCgAont3glbYQwZZE7hbQObnQFxtr1Ox56mbF7SyyOQ6srtoptIQo3r4XOrucJSxmxazqEBZSjP3Wb7YUPr7zFUIF3hgRxhhkEDB7+XD8kK1w2i/5LSKdR8TkEAf6jN3RL05rR49vd11OSS3lPYreANgSvtRaXGiyOye7R1hXN/oZgYws9jFw9Eu4YyNw/aqRkI+p11LUZAPhWUoRB3/5ehNJFh6LKg==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>' |
1283 | +2018-07-25 15:41:51 {"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072556535456"} | ||
1284 | +2018-07-25 15:41:51 response: '<form id=\'alipaysubmit\' name=\'alipaysubmit\' action=\'https://openapi.alipay.com/gateway.do?charset=UTF-8\' method=\'POST\'><input type=\'hidden\' name=\'biz_content\' value=\'{"product_code":"FAST_INSTANT_TRADE_PAY","body":"","subject":"需求保证金支付","total_amount":"0.01","out_trade_no":"2018072556535456"}\'/><input type=\'hidden\' name=\'app_id\' value=\'2018062560425105\'/><input type=\'hidden\' name=\'version\' value=\'1.0\'/><input type=\'hidden\' name=\'format\' value=\'json\'/><input type=\'hidden\' name=\'sign_type\' value=\'RSA2\'/><input type=\'hidden\' name=\'method\' value=\'alipay.trade.page.pay\'/><input type=\'hidden\' name=\'timestamp\' value=\'2018-07-25 15:41:51\'/><input type=\'hidden\' name=\'alipay_sdk\' value=\'alipay-sdk-php-20161101\'/><input type=\'hidden\' name=\'notify_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/notify_url\'/><input type=\'hidden\' name=\'return_url\' value=\'http://houseprice.w.bronet.cn/api/portal/Alipay/return_url\'/><input type=\'hidden\' name=\'charset\' value=\'UTF-8\'/><input type=\'hidden\' name=\'sign\' value=\'ASt3s4pu9rBbcNefAqZJlYPA19fo1+EthrchZ3cwUHdOku2j1j0pDOTxC14qlVKGFoRqXwuwROoadTLiT0YYEFPgWOuCk3Am3dR3T6rA150tJwHGAzJzP/VqDnsGe14U+jYOIut/SE96sAIg2OpZeoM5npIhx4Qhf906L9qecYzrM9QDuAqaNue9UzOVHioeeibsw5CxjxBIc5WcXH+BgYdByhcGVoqYoWJPgMTp+Es1VDq/kDchzqjYSRHRg6hFbDpinJEnVQwjBPEW0TZg82p2n8lZUO7HG4qI6ynXKm5KVNMecbm6YyhJTT8gBOxk0YOjAadkbA/leX1QSq/rFQ==\'/><input type=\'submit\' value=\'ok\' style=\'display:none;\'\'></form><script>document.forms[\'alipaysubmit\'].submit();</script>' |
@@ -18,6 +18,7 @@ class Doc | @@ -18,6 +18,7 @@ class Doc | ||
18 | 'api\\portal\\controller\\IntermediaryController', | 18 | 'api\\portal\\controller\\IntermediaryController', |
19 | 'app\\portal\\controller\\CommonController', | 19 | 'app\\portal\\controller\\CommonController', |
20 | 'api\\portal\\controller\\OrderController', | 20 | 'api\\portal\\controller\\OrderController', |
21 | + 'api\\portal\\controller\\ThirdsendController', | ||
21 | ], | 22 | ], |
22 | 'filter_method'=>['_empty'], | 23 | 'filter_method'=>['_empty'], |
23 | 'return_format' => [ | 24 | 'return_format' => [ |
-
请 注册 或 登录 后发表评论