wangsaitao hace 1 año
padre
commit
69c267767c
Se han modificado 2 ficheros con 6 adiciones y 5 borrados
  1. 5 4
      application/controllers/Home.php
  2. 1 1
      application/views/index.php

+ 5 - 4
application/controllers/Home.php

@@ -82,14 +82,15 @@ class Home extends MyBaseController {
 		header('Content-Type:application/json; charset=utf-8');
 		exit($ret);
 	}
-	public function conveyXqTime(){
-		$url = $this->config->item('api_url2')."api/v1/server/ConveyCate/getXqTime";
+
+	public function updateOrderModeByUser(){
+		$url = $this->config->item('api_url2')."api/v1/server/Orders/updateOrderModeByUser";
 		$ret = curl_post($url,$_POST);
 		header('Content-Type:application/json; charset=utf-8');
 		exit($ret);
 	}
-	public function updateOrderModeByUser(){
-		$url = $this->config->item('api_url2')."api/v1/server/Orders/updateOrderModeByUser";
+	public function conveyXqTime(){
+		$url = $this->config->item('api_url2')."api/v1/server/ConveyCate/getXqTime";
 		$ret = curl_post($url,$_POST);
 		header('Content-Type:application/json; charset=utf-8');
 		exit($ret);

+ 1 - 1
application/views/index.php

@@ -545,6 +545,7 @@
 				var that = this;
 				this.cates.forEach((item) => {
 					if(item.id.toString() == this.form.cate.toString()){
+						this.form.end = item.ends.length == 1?item.ends[0].id:'';
 						var pp = that.commonparam;
 						pp.cateId=  item.id;
 						$.ajax({
@@ -568,7 +569,6 @@
 
 							}
 						});
-						this.form.end = item.ends.length == 1?item.ends[0].id:'';
 						this.form.priority = item.priority > 0?item.priority:'';
 						if(item.cate == 1){
 							this.brShow = true;