作者 王晓刚

筛选学校问题

@@ -619,6 +619,8 @@ @@ -619,6 +619,8 @@
619 'data': {'school': school, 'grade': grade, 'state': state, 'is_courier': is_courier}, 619 'data': {'school': school, 'grade': grade, 'state': state, 'is_courier': is_courier},
620 'success': (function (data) { 620 'success': (function (data) {
621 var index = $('.log_three_tab_top div').index($('.aaa')); 621 var index = $('.log_three_tab_top div').index($('.aaa'));
  622 + console.log(3333);
  623 + console.log(data);
622 if (data.code == 1) { 624 if (data.code == 1) {
623 var result = data.data; 625 var result = data.data;
624 if(result == 0){ 626 if(result == 0){
@@ -667,7 +669,7 @@ @@ -667,7 +669,7 @@
667 " " + indent_goods_data[i3].book_name + "\n" + 669 " " + indent_goods_data[i3].book_name + "\n" +
668 " </div>\n" + 670 " </div>\n" +
669 " <div class=\"log_three_center_two\">×" + indent_goods_data[i3].number + "</div>\n" + 671 " <div class=\"log_three_center_two\">×" + indent_goods_data[i3].number + "</div>\n" +
670 - " <div class=\"log_three_center_three\"><span>¥</span>" + indent_goods_data[i3].price * indent_goods_data[i3].number + "</div>\n" + 672 + " <div class=\"log_three_center_three\"><span>¥</span>" + indent_goods_data[i3].price + "</div>\n" +
671 " </div>\n" + 673 " </div>\n" +
672 " </div>"; 674 " </div>";
673 } 675 }
@@ -758,7 +760,7 @@ @@ -758,7 +760,7 @@
758 }) 760 })
759 }) 761 })
760 $('.search').click(function () { 762 $('.search').click(function () {
761 - search() 763 + search();
762 }); 764 });
763 //发货 765 //发货
764 $("body").on('click', '.send', function () { 766 $("body").on('click', '.send', function () {
@@ -880,7 +882,7 @@ @@ -880,7 +882,7 @@
880 882
881 function update() { 883 function update() {
882 var is_courier = $('#is_courier').val(); 884 var is_courier = $('#is_courier').val();
883 - var index = $('.log_three_tab_top div').index($('.aaa')); 885 + var index = $('.log_three_tab_top').children('.aaa').index();
884 if (is_courier == 1 && index == 0) { 886 if (is_courier == 1 && index == 0) {
885 $('.log_three_list_fixed').show(); 887 $('.log_three_list_fixed').show();
886 } else if (is_courier == 2 || index != 0) { 888 } else if (is_courier == 2 || index != 0) {
@@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController @@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
204 */ 204 */
205 public function checkWeChatUserLogin() 205 public function checkWeChatUserLogin()
206 { 206 {
207 - /*$user = Db::name('user')->where('id',5)->find();  
208 - cmf_update_current_user($user);*/ 207 + $user = Db::name('user')->where('id',5)->find();
  208 + cmf_update_current_user($user);
209 $userId = cmf_get_current_user_id(); 209 $userId = cmf_get_current_user_id();
210 if (empty($userId)) { 210 if (empty($userId)) {
211 $config = [ 211 $config = [