正在显示
9 个修改的文件
包含
397 行增加
和
79 行删除
@@ -411,28 +411,59 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -411,28 +411,59 @@ class PersonalcenterController extends WeChatBaseController{ | ||
411 | $my_user = Db::name('my_user') -> where('uid',$uid) -> find(); | 411 | $my_user = Db::name('my_user') -> where('uid',$uid) -> find(); |
412 | if($my_user['status'] == 3){ | 412 | if($my_user['status'] == 3){ |
413 | $student = Db::name('my_user') -> alias('a') -> field("a.*,b.user_nickname,b.avatar") -> join("user b","a.uid = b.id",'LEFT') -> where("a.pid",$my_user['id']) -> select() -> toArray(); | 413 | $student = Db::name('my_user') -> alias('a') -> field("a.*,b.user_nickname,b.avatar") -> join("user b","a.uid = b.id",'LEFT') -> where("a.pid",$my_user['id']) -> select() -> toArray(); |
414 | - foreach ($student as $key => $val){ | ||
415 | - $student[$key]['indent'] = Db::name('indent') -> where('uid',$val['uid']) -> where("state = 2 or state = 3 or state = 5") -> select() -> toArray(); | ||
416 | - $name = $val['user_nickname']; | ||
417 | - $avatar = $val['avatar']; | ||
418 | - $cumulative_money = 0; | ||
419 | - foreach ($student[$key]['indent'] as $key1 => $val1){ | ||
420 | - $student[$key]['indent'][$key1]['user_name'] = $name; | ||
421 | - $student[$key]['indent'][$key1]['avatar'] = $avatar; | ||
422 | - $money_income = Db::name('money_income') -> where("indent_id =".$val1['id']." and uid = ".$uid) -> select() -> toArray(); | ||
423 | - $money = 0; | ||
424 | - foreach ($money_income as $key2 => $val2){ | ||
425 | - $money += $val2['money']; | 414 | + if(!empty($student)){ |
415 | + foreach ($student as $key => $val){ | ||
416 | + $student[$key]['indent'] = Db::name('indent') -> where('uid',$val['uid']) -> where("state = 2 or state = 3 or state = 5") -> select() -> toArray(); | ||
417 | + $name = $val['user_nickname']; | ||
418 | + $avatar = $val['avatar']; | ||
419 | + $cumulative_money = 0; | ||
420 | + foreach ($student[$key]['indent'] as $key1 => $val1){ | ||
421 | + $student[$key]['indent'][$key1]['user_name'] = $name; | ||
422 | + $student[$key]['indent'][$key1]['avatar'] = $avatar; | ||
423 | + $money_income = Db::name('money_income') -> where("indent_id =".$val1['id']." and uid = ".$uid) -> select() -> toArray(); | ||
424 | + $money = 0; | ||
425 | + foreach ($money_income as $key2 => $val2){ | ||
426 | + $money += $val2['money']; | ||
427 | + } | ||
428 | + $student[$key]['indent'][$key1]['total_money'] = $money; | ||
429 | + $cumulative_money += $money; | ||
426 | } | 430 | } |
427 | - $student[$key]['indent'][$key1]['total_money'] = $money; | ||
428 | - $cumulative_money += $money; | ||
429 | - } | ||
430 | - $student[$key]['cumulative_money'] = $cumulative_money; | 431 | + $student[$key]['cumulative_money'] = $cumulative_money; |
431 | 432 | ||
432 | - } | 433 | + } |
434 | + }else{ | ||
435 | + $student = null; | ||
436 | + } | ||
437 | + $this -> assign('type',3); | ||
433 | $this -> assign('student',$student); | 438 | $this -> assign('student',$student); |
434 | }elseif ($my_user['status'] == 2){ | 439 | }elseif ($my_user['status'] == 2){ |
440 | + //查找业务员下级老师 | ||
441 | + $teacher = Db::name('my_user') -> alias('a') -> field("a.*,b.user_nickname,b.avatar") -> join("user b","a.uid = b.id",'LEFT') -> where("a.pid",$my_user['id']) -> select() -> toArray(); | ||
442 | + if(!empty($teacher)){ | ||
443 | + foreach ($teacher as $key => $val){ | ||
444 | + $money_income = Db::name('money_income') -> where("uid",$val['uid']) -> select(); | ||
445 | + $total_commission = 0; | ||
446 | + foreach ($money_income as $key1 => $val1){ | ||
447 | + $total_commission += $val1['money']; | ||
448 | + } | ||
449 | + $teacher[$key]['total_commission'] = $total_commission; | ||
450 | + //查找老师下面的学生 | ||
451 | + $teacher[$key]['student'] = Db::name('my_user') -> alias('a') -> field("a.*,b.user_nickname,b.avatar") -> join("user b","a.uid = b.id",'LEFT') -> where("a.pid",$val['id']) -> select() -> toArray(); | ||
452 | + if(!empty($teacher[$key]['student'])){ | ||
453 | + foreach ($teacher[$key]['student'] as $key2 => $val2){ | ||
454 | + $teacher[$key]['student']['indent'] = Db::name('indent') -> where('uid',$val2['uid']) -> where("state = 2 or state = 3 or state = 5") -> select() -> toArray(); | ||
455 | + foreach ($teacher[$key]['student']['indent'] as $key3 => $val3){ | ||
456 | + $student_money_income = Db::name('money_income') -> where("indent_id =".$val3['id']." and uid = ".$val['uid']) -> select() -> toArray(); | ||
457 | + | ||
458 | + } | ||
459 | + } | ||
460 | + } | ||
461 | + } | ||
462 | + }else{ | ||
463 | + $teacher = null; | ||
464 | + } | ||
435 | 465 | ||
466 | + $this -> assign('teacher',$teacher); | ||
436 | } | 467 | } |
437 | return $this -> fetch(); | 468 | return $this -> fetch(); |
438 | 469 | ||
@@ -474,6 +505,9 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -474,6 +505,9 @@ class PersonalcenterController extends WeChatBaseController{ | ||
474 | */ | 505 | */ |
475 | public function withdrawal_subsidiary(){ | 506 | public function withdrawal_subsidiary(){ |
476 | 507 | ||
508 | + $uid = cmf_get_current_user_id(); | ||
509 | + $data = Db::name('money_expend') -> where('uid='.$uid) -> where("state = 1") -> select(); | ||
510 | + $this -> assign('data',$data); | ||
477 | return $this -> fetch(); | 511 | return $this -> fetch(); |
478 | 512 | ||
479 | } | 513 | } |
@@ -83,14 +83,18 @@ | @@ -83,14 +83,18 @@ | ||
83 | <img src="__TMPL__/public/assets/images/21.png" alt=""> | 83 | <img src="__TMPL__/public/assets/images/21.png" alt=""> |
84 | <p style="color:#FF7700;">分类</p> | 84 | <p style="color:#FF7700;">分类</p> |
85 | </li> | 85 | </li> |
86 | - <li> | ||
87 | - <img src="__TMPL__/public/assets/images/17.png" alt=""> | ||
88 | - <p>购物车</p> | ||
89 | - </li> | ||
90 | - <li> | ||
91 | - <img src="__TMPL__/public/assets/images/18.png" alt=""> | ||
92 | - <p>我的</p> | ||
93 | - </li> | 86 | + <a href="{:url('Shopcart/shop_cart')}"> |
87 | + <li> | ||
88 | + <img src="__TMPL__/public/assets/images/17.png" alt=""> | ||
89 | + <p>购物车</p> | ||
90 | + </li> | ||
91 | + </a> | ||
92 | + <a href="{:url('Personalcenter/Personal_center')}"> | ||
93 | + <li> | ||
94 | + <img src="__TMPL__/public/assets/images/18.png" alt=""> | ||
95 | + <p>我的</p> | ||
96 | + </li> | ||
97 | + </a> | ||
94 | </ul> | 98 | </ul> |
95 | </div> | 99 | </div> |
96 | </div> | 100 | </div> |
@@ -20,44 +20,86 @@ | @@ -20,44 +20,86 @@ | ||
20 | </div> | 20 | </div> |
21 | <div class="invitation_Box"> | 21 | <div class="invitation_Box"> |
22 | <ul class="tationCon1"> | 22 | <ul class="tationCon1"> |
23 | - <volist name="student" id="vo"> | ||
24 | - <li> | ||
25 | - <div class="tation_one"> | ||
26 | - <div class="tationCon1_left"> | ||
27 | - <div class="tationCon1_Img"> | ||
28 | - <img src="{$vo.avatar}" alt=""> | 23 | + <if condition="$type eq 3"> |
24 | + <volist name="student" id="vo"> | ||
25 | + <li> | ||
26 | + <div class="tation_one"> | ||
27 | + <div class="tationCon1_left"> | ||
28 | + <div class="tationCon1_Img"> | ||
29 | + <img src="{$vo.avatar}" alt=""> | ||
30 | + </div> | ||
31 | + <p class="tationCon1_Txt1 one-txt-cut">{$vo.user_nickname}</p> | ||
29 | </div> | 32 | </div> |
30 | - <p class="tationCon1_Txt1 one-txt-cut">{$vo.user_nickname}</p> | ||
31 | - </div> | ||
32 | - <div class="tationCon1_right"> | ||
33 | - <p class="tationCon1_Txt2">累计购买 ¥{$vo.cumulative_money}</p> | ||
34 | - <div class="tationCon1_Img2"> | ||
35 | - <img src="__TMPL__/public/assets/images/down.png" alt=""> | 33 | + <div class="tationCon1_right"> |
34 | + <p class="tationCon1_Txt2">累计购买 ¥{$vo.cumulative_money}</p> | ||
35 | + <div class="tationCon1_Img2"> | ||
36 | + <img src="__TMPL__/public/assets/images/down.png" alt=""> | ||
37 | + </div> | ||
36 | </div> | 38 | </div> |
37 | </div> | 39 | </div> |
38 | - </div> | ||
39 | - <div class="tation_tow"> | ||
40 | - <!-- 列表 --> | ||
41 | - <volist name="vo.indent" id="val"> | ||
42 | - <div class="tation_towLi"> | ||
43 | - <div class="tation_towTxt"> | ||
44 | - <p class="tation_towTxt1 one-txt-cut"></p> | ||
45 | - <p class="recordNum">佣金+{$val.total_money}</p> | 40 | + <div class="tation_tow"> |
41 | + <!-- 列表 --> | ||
42 | + <volist name="vo.indent" id="val"> | ||
43 | + <div class="tation_towLi"> | ||
44 | + <div class="tation_towTxt"> | ||
45 | + <p class="tation_towTxt1 one-txt-cut"></p> | ||
46 | + <p class="recordNum">佣金+{$val.total_money}</p> | ||
47 | + </div> | ||
48 | + <div class="tation_towTxt"> | ||
49 | + <if condition="$val.indent_type eq 1"> | ||
50 | + <p class="recordTxt2">平台订单</p> | ||
51 | + </if> | ||
52 | + <if condition="$val.indent_type eq 2"> | ||
53 | + <p class="recordTxt2">业务员订单</p> | ||
54 | + </if> | ||
55 | + <p class="recordTxt3">{$val.create_time|date="Y-m-d H:i:s",###}</p> | ||
56 | + </div> | ||
46 | </div> | 57 | </div> |
47 | - <div class="tation_towTxt"> | ||
48 | - <if condition="$val.indent_type eq 1"> | ||
49 | - <p class="recordTxt2">平台订单</p> | ||
50 | - </if> | ||
51 | - <if condition="$val.indent_type eq 2"> | ||
52 | - <p class="recordTxt2">业务员订单</p> | ||
53 | - </if> | ||
54 | - <p class="recordTxt3">{$val.create_time|date="Y-m-d H:i:s",###}</p> | 58 | + </volist> |
59 | + </div> | ||
60 | + </li> | ||
61 | + </volist> | ||
62 | + </if> | ||
63 | + <if condition="$type eq 2"> | ||
64 | + <volist name="teacher" id="vo"> | ||
65 | + <li> | ||
66 | + <div class="tation_one"> | ||
67 | + <div class="tationCon1_left"> | ||
68 | + <div class="tationCon1_Img"> | ||
69 | + <img src="{$vo.avatar}" alt=""> | ||
55 | </div> | 70 | </div> |
71 | + <p class="tationCon1_Txt1 one-txt-cut">{$vo.user_nickname}</p> | ||
56 | </div> | 72 | </div> |
57 | - </volist> | ||
58 | - </div> | ||
59 | - </li> | ||
60 | - </volist> | 73 | + <div class="tationCon1_right"> |
74 | + <p class="tationCon1_Txt2">累计购买 ¥{$vo.cumulative_money}</p> | ||
75 | + <div class="tationCon1_Img2"> | ||
76 | + <img src="__TMPL__/public/assets/images/down.png" alt=""> | ||
77 | + </div> | ||
78 | + </div> | ||
79 | + </div> | ||
80 | + <div class="tation_tow"> | ||
81 | + <!-- 列表 --> | ||
82 | + <volist name="vo.indent" id="val"> | ||
83 | + <div class="tation_towLi"> | ||
84 | + <div class="tation_towTxt"> | ||
85 | + <p class="tation_towTxt1 one-txt-cut"></p> | ||
86 | + <p class="recordNum">佣金+{$val.total_money}</p> | ||
87 | + </div> | ||
88 | + <div class="tation_towTxt"> | ||
89 | + <if condition="$val.indent_type eq 1"> | ||
90 | + <p class="recordTxt2">平台订单</p> | ||
91 | + </if> | ||
92 | + <if condition="$val.indent_type eq 2"> | ||
93 | + <p class="recordTxt2">业务员订单</p> | ||
94 | + </if> | ||
95 | + <p class="recordTxt3">{$val.create_time|date="Y-m-d H:i:s",###}</p> | ||
96 | + </div> | ||
97 | + </div> | ||
98 | + </volist> | ||
99 | + </div> | ||
100 | + </li> | ||
101 | + </volist> | ||
102 | + </if> | ||
61 | 103 | ||
62 | </ul> | 104 | </ul> |
63 | </div> | 105 | </div> |
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | </div> | 90 | </div> |
91 | </div> | 91 | </div> |
92 | </a> | 92 | </a> |
93 | - <a href="w_mention.html"> | 93 | + <a href="{:url('Personalcenter/withdrawal_subsidiary')}"> |
94 | <div class="log_nine_list_one"> | 94 | <div class="log_nine_list_one"> |
95 | <div class="log_nine_list_one_left"> | 95 | <div class="log_nine_list_one_left"> |
96 | <div class="log_nine_list_one_left_img"> | 96 | <div class="log_nine_list_one_left_img"> |
@@ -122,21 +122,6 @@ | @@ -122,21 +122,6 @@ | ||
122 | </div> | 122 | </div> |
123 | </a> | 123 | </a> |
124 | </if> | 124 | </if> |
125 | - <a href="{:url('Personalcenter/income_record')}"> | ||
126 | - <div class="log_nine_list_one"> | ||
127 | - <div class="log_nine_list_one_left"> | ||
128 | - <div class="log_nine_list_one_left_img"> | ||
129 | - <img src="__TMPL__/public/assets/images/65.png" alt="" /> | ||
130 | - </div> | ||
131 | - <div class="log_nine_list_one_left_title"> | ||
132 | - 收益记录 | ||
133 | - </div> | ||
134 | - </div> | ||
135 | - <div class="log_nine_list_one_right"> | ||
136 | - <img src="__TMPL__/public/assets/images/29.png" alt="" /> | ||
137 | - </div> | ||
138 | - </div> | ||
139 | - </a> | ||
140 | <if condition="$status eq 2"> | 125 | <if condition="$status eq 2"> |
141 | <a href="log_ten.html"> | 126 | <a href="log_ten.html"> |
142 | <div class="log_nine_list_one"> | 127 | <div class="log_nine_list_one"> |
@@ -75,7 +75,7 @@ | @@ -75,7 +75,7 @@ | ||
75 | </div> | 75 | </div> |
76 | </div> | 76 | </div> |
77 | </a> | 77 | </a> |
78 | - <a href="log_nine.html"> | 78 | + <a href="{:url('Personalcenter/my_wallet')}"> |
79 | <div class="log_one_list_one"> | 79 | <div class="log_one_list_one"> |
80 | <div class="log_one_list_left"> | 80 | <div class="log_one_list_left"> |
81 | <div class="log_one_list_img"> | 81 | <div class="log_one_list_img"> |
@@ -13,21 +13,25 @@ | @@ -13,21 +13,25 @@ | ||
13 | <body> | 13 | <body> |
14 | <!-- 顶部 --> | 14 | <!-- 顶部 --> |
15 | <div class="order_top"> | 15 | <div class="order_top"> |
16 | - <img src="img/left.png" alt=""> | 16 | + <a href="javascript:history.go(-1)"> |
17 | + <img src="__TMPL__/public/assets/images/left.png" alt=""> | ||
18 | + </a> | ||
17 | <p>提现记录</p> | 19 | <p>提现记录</p> |
18 | </div> | 20 | </div> |
19 | <div class="mention_Box"> | 21 | <div class="mention_Box"> |
20 | <ul> | 22 | <ul> |
23 | + <volist name="data" id="vo"> | ||
21 | <li> | 24 | <li> |
22 | <div class="mention_con"> | 25 | <div class="mention_con"> |
23 | <p class="mention_Txt1">提现</p> | 26 | <p class="mention_Txt1">提现</p> |
24 | - <p class="mention_Txt1">-100.00</p> | 27 | + <p class="mention_Txt1">-{$vo.money}</p> |
25 | </div> | 28 | </div> |
26 | <div class="mention_con"> | 29 | <div class="mention_con"> |
27 | - <p class="mention_Txt2">2019-01-01</p> | 30 | + <p class="mention_Txt2">{$vo.create_time|date="Y-m-d H:i:s",###}</p> |
28 | <p class="mention_Txt2">交易成功</p> | 31 | <p class="mention_Txt2">交易成功</p> |
29 | </div> | 32 | </div> |
30 | </li> | 33 | </li> |
34 | + </volist> | ||
31 | </ul> | 35 | </ul> |
32 | </div> | 36 | </div> |
33 | <script src="__TMPL__/public/assets/js/base.js"></script> | 37 | <script src="__TMPL__/public/assets/js/base.js"></script> |
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | + | ||
4 | +<head> | ||
5 | + <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | ||
6 | + <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /> | ||
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
8 | + <title>学考无忧-添加商品</title> | ||
9 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css" /> | ||
10 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.picker.min.css" /> | ||
11 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" /> | ||
12 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/log.css" /> | ||
13 | +</head> | ||
14 | + | ||
15 | +<body> | ||
16 | +<div class="log_top_co"> | ||
17 | + <!-- 顶部 --> | ||
18 | + <div class=" order_top log_top_co"> | ||
19 | + <a href="javascript:history.back(-1)"> | ||
20 | + <img src="__TMPL__/public/assets/images/left.png" alt="" /> | ||
21 | + </a> | ||
22 | + <p>添加商品</p> | ||
23 | + </div> | ||
24 | +</div> | ||
25 | +<!-- 添加照片 --> | ||
26 | +<div class="log_six_add_photo"> | ||
27 | + <div class="log_six_add_img"> | ||
28 | + <img src="__TMPL__/public/assets/images/camera.png" id="img" alt="" /> | ||
29 | + </div> | ||
30 | + <div class="log_six_add_title"> | ||
31 | + 添加照片 | ||
32 | + </div> | ||
33 | + <div class="input_file"> | ||
34 | + <input type="file" id="img1_file" /> | ||
35 | + </div> | ||
36 | +</div> | ||
37 | +<div class="log_six_wire"></div> | ||
38 | +<!-- 输入框 --> | ||
39 | +<div class="log_six_input"> | ||
40 | + <div class="log_two_input"> | ||
41 | + <div class="log_two_input_one "> | ||
42 | + <div class="log_two_input_title"> | ||
43 | + 书籍 | ||
44 | + </div> | ||
45 | + <div class="log_two_input_contant"> | ||
46 | + <input type="text" placeholder="请输入书籍名称" /> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="log_two_input_one "> | ||
50 | + <div class="log_two_input_title"> | ||
51 | + 佣金 | ||
52 | + </div> | ||
53 | + <div class="log_two_input_contant"> | ||
54 | + <input type="text" placeholder="请输入下级推广佣金" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="log_two_input_one"> | ||
58 | + <div class="log_two_input_title"> | ||
59 | + 售价 | ||
60 | + </div> | ||
61 | + <div class="log_two_input_contant"> | ||
62 | + <input type="text" placeholder="输入售价" /> | ||
63 | + </div> | ||
64 | + </div> | ||
65 | + <div class="log_two_input_one"> | ||
66 | + <div class="log_two_input_title"> | ||
67 | + 定价 | ||
68 | + </div> | ||
69 | + <div class="log_two_input_contant"> | ||
70 | + <input type="text" placeholder="输入定价" /> | ||
71 | + </div> | ||
72 | + </div> | ||
73 | + <div class="log_six_input_one"> | ||
74 | + <div class="log_two_input_title" style="margin-top: 0.09rem;"> | ||
75 | + 商品说明 | ||
76 | + </div> | ||
77 | + <div class="log_six_input_contant"> | ||
78 | + <textarea name="" id="" cols="20" rows="3" placeholder="在此填写您的留言"></textarea> | ||
79 | + </div> | ||
80 | + </div> | ||
81 | + <div class="log_two_input_one"> | ||
82 | + <div class="log_two_input_title"> | ||
83 | + 书号 | ||
84 | + </div> | ||
85 | + <div class="log_two_input_contant"> | ||
86 | + <input type="text" placeholder="请输入书号" /> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | + <div class="log_two_input_one"> | ||
90 | + <div class="log_two_input_title"> | ||
91 | + 作者 | ||
92 | + </div> | ||
93 | + <div class="log_two_input_contant"> | ||
94 | + <input type="text" placeholder="请输入作者名称" /> | ||
95 | + </div> | ||
96 | + </div> | ||
97 | + <div class="log_two_input_one"> | ||
98 | + <div class="log_two_input_title"> | ||
99 | + 出版社 | ||
100 | + </div> | ||
101 | + <div class="log_two_input_contant"> | ||
102 | + <input type="text" placeholder="请输入出版社名称" /> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | + <div class="log_two_input_one"> | ||
106 | + <div class="log_two_input_title"> | ||
107 | + 出版时间 | ||
108 | + </div> | ||
109 | + <div class="log_two_input_contant"> | ||
110 | + <input type="text" placeholder="请输入作者名称" /> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | + </div> | ||
114 | +</div> | ||
115 | +<div class="log_six_wire"></div> | ||
116 | +<!-- 套装 --> | ||
117 | +<div class="log_six_select"> | ||
118 | + <div class="log_six_select_contant"> | ||
119 | + <div class="log_six_select_top"> | ||
120 | + <div class="log_six_select_left"> | ||
121 | + <div class="log_six_select_one"> | ||
122 | + 套装 | ||
123 | + </div> | ||
124 | + <div class="log_six_select_two"> | ||
125 | + 请选择 | ||
126 | + </div> | ||
127 | + </div> | ||
128 | + <div class="log_six_select_three"> | ||
129 | + <img src="__TMPL__/public/assets/images/29.png" alt="" /> | ||
130 | + </div> | ||
131 | + </div> | ||
132 | + <div class="log_six_select_top"> | ||
133 | + <div class="log_six_select_left"> | ||
134 | + <div class="log_six_select_one"> | ||
135 | + 适合年级 | ||
136 | + </div> | ||
137 | + <div class="log_six_select_two"> | ||
138 | + 请选择 | ||
139 | + </div> | ||
140 | + </div> | ||
141 | + <div class="log_six_select_three"> | ||
142 | + <img src="__TMPL__/public/assets/images/29.png" alt="" /> | ||
143 | + </div> | ||
144 | + </div> | ||
145 | + </div> | ||
146 | +</div> | ||
147 | +<div class="log_six_wire"></div> | ||
148 | +<div class="log_two_picture"> | ||
149 | + <div class="log_two_picture_title"> | ||
150 | + 商品详情 | ||
151 | + </div> | ||
152 | + <div class="log_six_file_picture"> | ||
153 | + <div class="log_six_picture"> | ||
154 | + <div class="log_six_picture_one"> | ||
155 | + <div class="log_six_pictyre_img"> | ||
156 | + <img src="__TMPL__/public/assets/images/jiahao.png" alt="" /> | ||
157 | + </div> | ||
158 | + <div class="log_six_pictyre_title"> | ||
159 | + 添加图片 | ||
160 | + </div> | ||
161 | + <div class="input_files"> | ||
162 | + <input type="file" id="img2_file"/> | ||
163 | + </div> | ||
164 | + </div> | ||
165 | + </div> | ||
166 | + <div class="log_six_picture"> | ||
167 | + <div class="log_six_picture_one"> | ||
168 | + <div class="log_six_pictyre_img"> | ||
169 | + <img src="__TMPL__/public/assets/images/jiahao.png" alt="" id="imgtwo" /> | ||
170 | + </div> | ||
171 | + <div class="log_six_pictyre_title"> | ||
172 | + 添加图片 | ||
173 | + </div> | ||
174 | + <div class="input_files"> | ||
175 | + <input type="file" id="img3_file" /> | ||
176 | + </div> | ||
177 | + </div> | ||
178 | + </div> | ||
179 | + </div> | ||
180 | +</div> | ||
181 | +<!-- 保存 --> | ||
182 | +<div class="log_two_bottom_btn"> | ||
183 | + 确定添加 | ||
184 | +</div> | ||
185 | +<script src="__TMPL__/public/assets/js/jquery.js"></script> | ||
186 | +<script src="__TMPL__/public/assets/js/base.js"></script> | ||
187 | +<script src="__TMPL__/public/assets/js/mui.min.js"></script> | ||
188 | +<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script> | ||
189 | +<script src="__TMPL__/public/assets/js/city.data-3.js"></script> | ||
190 | +<script> | ||
191 | + //上传图片 | ||
192 | + | ||
193 | + $(function() { | ||
194 | + $("#img1_file").on("change", function() { | ||
195 | + var img_size = $("input[type=file]").get(0).files[0].size; | ||
196 | + if(img_size > 1024000) { | ||
197 | + mask("上传图片过大,请上传小于1M的图片"); | ||
198 | + } else { | ||
199 | + $.ajaxFileUpload({ | ||
200 | + url: '/portal/login/updateAvatar', //用于文件上传的服务器端请求地址 | ||
201 | + secureuri: false, //是否需要安全协议,一般设置为false | ||
202 | + fileElementId: 'personal-photo', //文件上传域的ID | ||
203 | + dataType: 'json', //返回值类型 一般设置为json | ||
204 | + success: function(data) { //服务器成功响应处理函数 | ||
205 | + mask(data.msg); | ||
206 | + window.location.href = '/'; | ||
207 | + } | ||
208 | + }); | ||
209 | + } | ||
210 | + }); | ||
211 | + $("#img2_file").on("change", function() { | ||
212 | + var img_size = $("input[type=file]").get(0).files[0].size; | ||
213 | + if(img_size > 1024000) { | ||
214 | + mask("上传图片过大,请上传小于1M的图片"); | ||
215 | + } else { | ||
216 | + $.ajaxFileUpload({ | ||
217 | + url: '/portal/login/updateAvatar', //用于文件上传的服务器端请求地址 | ||
218 | + secureuri: false, //是否需要安全协议,一般设置为false | ||
219 | + fileElementId: 'personal-photo', //文件上传域的ID | ||
220 | + dataType: 'json', //返回值类型 一般设置为json | ||
221 | + success: function(data) { //服务器成功响应处理函数 | ||
222 | + mask(data.msg); | ||
223 | + window.location.href = '/'; | ||
224 | + } | ||
225 | + }); | ||
226 | + } | ||
227 | + }); | ||
228 | + $("#img3_file").on("change", function() { | ||
229 | + var img_size = $("input[type=file]").get(0).files[0].size; | ||
230 | + if(img_size > 1024000) { | ||
231 | + mask("上传图片过大,请上传小于1M的图片"); | ||
232 | + } else { | ||
233 | + $.ajaxFileUpload({ | ||
234 | + url: '/portal/login/updateAvatar', //用于文件上传的服务器端请求地址 | ||
235 | + secureuri: false, //是否需要安全协议,一般设置为false | ||
236 | + fileElementId: 'personal-photo', //文件上传域的ID | ||
237 | + dataType: 'json', //返回值类型 一般设置为json | ||
238 | + success: function(data) { //服务器成功响应处理函数 | ||
239 | + mask(data.msg); | ||
240 | + window.location.href = '/'; | ||
241 | + } | ||
242 | + }); | ||
243 | + } | ||
244 | + }); | ||
245 | + }); | ||
246 | +</script> | ||
247 | +</body> | ||
248 | + | ||
249 | +</html> |
@@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
108 | </volist> | 108 | </volist> |
109 | </div> | 109 | </div> |
110 | <div class="log_seven_btn log_seven_btn9"> | 110 | <div class="log_seven_btn log_seven_btn9"> |
111 | - <a href="{:url('/')}"> | 111 | + <a href="{:url('Salesmangoods/Salesman_goods_add')}"> |
112 | <div class="log_seven_btn_contant"> | 112 | <div class="log_seven_btn_contant"> |
113 | 新增商品 | 113 | 新增商品 |
114 | </div> | 114 | </div> |
-
请 注册 或 登录 后发表评论