| | |
| | | use app\api\model\supplier\Category as CategoryModel; |
| | | use app\common\model\user\Sms as SmsModel; |
| | | use app\common\model\supplier\Area as AreaModel; |
| | | use app\common\enum\supplier\SupplierType; |
| | | |
| | | /** |
| | | * 商户申请 |
| | |
| | | //店铺分类 |
| | | public function category() |
| | | { |
| | | $list = CategoryModel::getALL(); |
| | | //供应商类型列表 |
| | | $typeList = SupplierType::getTypeName(); |
| | | //是否需要短信验证 |
| | | $sms_open = Setting::getItem('store')['sms_open']; |
| | | return $this->renderSuccess('', compact('list', 'sms_open')); |
| | | $list=[]; |
| | | foreach ($typeList as $key => $value) { |
| | | $list[$key] = CategoryModel::getALL(['category_type'=>$key]); |
| | | } |
| | | return $this->renderSuccess('', compact('list', 'sms_open','typeList')); |
| | | } |
| | | //店铺区域 |
| | | public function area() |