| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -56,7 +56,7 @@ class StoreController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // ->image('',50);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->cash_code_img->display(function($appletImg){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $id = $this->id; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $oldPath = 'https://img.lanzu.vip/addons/zh_cjdianc/data/code_pay_img/wx_pay_'.$id.'.jpg'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $oldPath = 'https://img.lanzu.vip/addons/zh_cjdianc/data/code_pay_img/wx_pay_'.$id.'.jpg'.config('filesystems.disks.oss.store_image_resize'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $path = empty($appletImg) ? $oldPath : config('filesystems.disks.oss.img_host').'/'.$appletImg; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $img = "<img src='$path' style='width:50px;' data-action='preview-img' style='max-width:50px;max-height:200px;cursor:pointer' class='img img-thumbnail'/>"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -122,6 +122,31 @@ class StoreController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->width(6)->business_license->image(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->width(6)->zm_img->image(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->width(6)->fm_img->image(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $id = 380; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $storeAppletImg = '380'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $oldPath = 'https://img.lanzu.vip/addons/zh_cjdianc/data/code_store_img/wx_store_'.$id.'.jpg'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $path = empty($storeAppletImg) ? $oldPath : config('filesystems.disks.oss.img_host').'/'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // $img = "<img src='$path' style='width:50px;' data-action='preview-img' style='max-width:50px;max-height:200px;cursor:pointer' class='img img-thumbnail'/>";
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->store_applet_img->image($path); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // ->as(function($appletImg){
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //     $id = $this->id;
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //     $oldPath = 'https://img.lanzu.vip/addons/zh_cjdianc/data/code_store_img/wx_store_'.$id.'.jpg';
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //     $path = empty($appletImg) ? $oldPath : config('filesystems.disks.oss.img_host').'/'.$appletImg;
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //     $img = "<img src='$path' style='width:50px;' data-action='preview-img' style='max-width:50px;max-height:200px;cursor:pointer' class='img img-thumbnail'/>";
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //     return $img;
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // });
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $cashCodeImg = ''; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->cash_code_img->as(function($appletImg){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $id = $this->id; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $oldPath = 'https://img.lanzu.vip/addons/zh_cjdianc/data/code_pay_img/wx_pay_'.$id.'.jpg'.config('filesystems.disks.oss.store_image_resize'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $path = empty($appletImg) ? $oldPath : config('filesystems.disks.oss.img_host').'/'.$appletImg; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $img = "<img src='$path' style='width:50px;' data-action='preview-img' style='max-width:50px;max-height:200px;cursor:pointer' class='img img-thumbnail'/>"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    return $img; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->width(6)->tel; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->width(6)->link_name; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $show->width(6)->link_tel; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -268,10 +293,10 @@ class StoreController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    // 保存图片
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $store->store_applet_img = $sRes['status'] ? $sRes['path'] : ''; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $store->cash_code_img = $pRes['status'] ? $pRes['path'] : ''; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $cashImg =  $pRes['status'] ? $pRes['path'] : ''; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    // 保存剪裁图片
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $store->cash_code_img = $cashImg.config('filesystems.disks.oss.store_image_resize'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $store->save(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    // 剪裁图片
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    // $form->image('cash_code_img')->crop(270, 270, [5, 5])->uniqueName();
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //店长账号
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    $storeUsersInfo = StoreUsersModel::where('store_id',$id)->where('user_category',1)->first(); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |