作者 anyv
1 个管道 的构建 通过 耗费 2 秒

Merge branch 'master' of http://114.215.101.231:8099/anyv/xkeasy

@@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
9 namespace app\portal\controller; 9 namespace app\portal\controller;
10 10
11 11
  12 +use app\portal\model\AddressModel;
12 use app\portal\model\IndentGoodsModel; 13 use app\portal\model\IndentGoodsModel;
13 use app\portal\model\IndentModel; 14 use app\portal\model\IndentModel;
14 use cmf\controller\WeChatBaseController; 15 use cmf\controller\WeChatBaseController;
@@ -171,6 +172,11 @@ class OrderSalesmanController extends WeChatBaseController @@ -171,6 +172,11 @@ class OrderSalesmanController extends WeChatBaseController
171 } 172 }
172 $indentGoodsModel = new IndentGoodsModel(); 173 $indentGoodsModel = new IndentGoodsModel();
173 $indent_goods = $indentGoodsModel->selectData(['indent_id'=>$indent['id']]); 174 $indent_goods = $indentGoodsModel->selectData(['indent_id'=>$indent['id']]);
  175 + if(!empty($indent['indent_address'])){
  176 + $addressModel = new AddressModel();
  177 + $indent_address = $addressModel->findData(['id'=>$indent['indent_address']]);
  178 + $indent['indent_address'] = $indent_address;
  179 + }
174 $indent['indent_goods'] = $indent_goods; 180 $indent['indent_goods'] = $indent_goods;
175 $this->assign('data',$indent); 181 $this->assign('data',$indent);
176 return $this->fetch(); 182 return $this->fetch();
@@ -123,58 +123,106 @@ @@ -123,58 +123,106 @@
123 <div class="log_four_input_title" style="margin-bottom: 0.2rem;"> 123 <div class="log_four_input_title" style="margin-bottom: 0.2rem;">
124 地址信息 124 地址信息
125 </div> 125 </div>
126 - <div class="log_four_input_one">  
127 - <div class="log_four_input_one_left">  
128 - 地区  
129 - </div>  
130 - <div class="log_four_input_one_center">  
131 - <div id="city_text">{$data.region}</div>  
132 - </div>  
133 - <div class="log_four_input_one_right">  
134 - <img src="__TMPL__/public/assets/images/29.png" alt=""/>  
135 - </div>  
136 - </div>  
137 - <div class="log_four_input_one">  
138 - <div class="log_four_input_one_left">  
139 - 学校  
140 - </div>  
141 - <div class="log_four_input_one_center">  
142 - <div id="city_text">{$data.school}</div>  
143 - </div>  
144 - <div class="log_four_input_one_right">  
145 - <img src="__TMPL__/public/assets/images/29.png" alt=""/> 126 + <if condition="$data.is_courier eq 2">
  127 + <div class="log_four_input_one">
  128 + <div class="log_four_input_one_left">
  129 + 姓名
  130 + </div>
  131 + <div class="log_four_input_one_center">
  132 + <div id="city_text">{$data.indent_address.name}</div>
  133 + </div>
  134 + <div class="log_four_input_one_right">
  135 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  136 + </div>
146 </div> 137 </div>
147 - </div>  
148 - <div class="log_four_input_one">  
149 - <div class="log_four_input_one_left">  
150 - 班级 138 + <div class="log_four_input_one">
  139 + <div class="log_four_input_one_left">
  140 + 电话
  141 + </div>
  142 + <div class="log_four_input_one_center">
  143 + <div id="city_text">{$data.indent_address.phone}</div>
  144 + </div>
  145 + <div class="log_four_input_one_right">
  146 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  147 + </div>
151 </div> 148 </div>
152 - <div class="log_four_input_one_center">  
153 - <div id="city_text">{$data.grade}-{$data.class}</div> 149 + <div class="log_four_input_one">
  150 + <div class="log_four_input_one_left">
  151 + 地址
  152 + </div>
  153 + <div class="log_four_input_one_center">
  154 + <div id="city_text">{$data.indent_address.region}</div>
  155 + </div>
  156 + <div class="log_four_input_one_right">
  157 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  158 + </div>
154 </div> 159 </div>
155 - <div class="log_four_input_one_right">  
156 - <img src="__TMPL__/public/assets/images/29.png" alt=""/> 160 + <div class="log_four_input_one">
  161 + <div class="log_four_input_one_left">
  162 + 详细地址
  163 + </div>
  164 + <div class="log_four_input_one_center">
  165 + <div id="city_text">{$data.indent_address.detailed}</div>
  166 + </div>
  167 + <div class="log_four_input_one_right">
  168 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  169 + </div>
157 </div> 170 </div>
158 - </div>  
159 - <div class="log_four_input_one">  
160 - <div class="log_four_input_one_left">  
161 - 姓名 171 + <else />
  172 + <div class="log_four_input_one">
  173 + <div class="log_four_input_one_left">
  174 + 地区
  175 + </div>
  176 + <div class="log_four_input_one_center">
  177 + <div id="city_text">{$data.region}</div>
  178 + </div>
  179 + <div class="log_four_input_one_right">
  180 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  181 + </div>
162 </div> 182 </div>
163 - <div class="log_four_input_one_center">  
164 - <div id="city_text">{$data.name}</div> 183 + <div class="log_four_input_one">
  184 + <div class="log_four_input_one_left">
  185 + 学校
  186 + </div>
  187 + <div class="log_four_input_one_center">
  188 + <div id="city_text">{$data.school}</div>
  189 + </div>
  190 + <div class="log_four_input_one_right">
  191 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  192 + </div>
165 </div> 193 </div>
166 - <div class="log_four_input_one_right">  
167 - <img src="__TMPL__/public/assets/images/29.png" alt=""/> 194 + <div class="log_four_input_one">
  195 + <div class="log_four_input_one_left">
  196 + 班级
  197 + </div>
  198 + <div class="log_four_input_one_center">
  199 + <div id="city_text">{$data.grade}-{$data.class}</div>
  200 + </div>
  201 + <div class="log_four_input_one_right">
  202 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  203 + </div>
168 </div> 204 </div>
169 - </div>  
170 - <div class="log_four_input_one">  
171 - <div class="log_four_input_one_left">  
172 - 手机号 205 + <div class="log_four_input_one">
  206 + <div class="log_four_input_one_left">
  207 + 姓名
  208 + </div>
  209 + <div class="log_four_input_one_center">
  210 + <div id="city_text">{$data.name}</div>
  211 + </div>
  212 + <div class="log_four_input_one_right">
  213 + <img src="__TMPL__/public/assets/images/29.png" alt=""/>
  214 + </div>
173 </div> 215 </div>
174 - <div class="log_four_input_one_center">  
175 - <div id="city_text">{$data.phone}</div> 216 + <div class="log_four_input_one">
  217 + <div class="log_four_input_one_left">
  218 + 手机号
  219 + </div>
  220 + <div class="log_four_input_one_center">
  221 + <div id="city_text">{$data.phone}</div>
  222 + </div>
176 </div> 223 </div>
177 - </div> 224 + </if>
  225 +
178 226
179 </div> 227 </div>
180 <!-- 订单信息 --> 228 <!-- 订单信息 -->
@@ -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',2)->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 = [