// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\api\controller; use think\response\Json; use app\api\model\Retail as RetailModel; use app\api\model\RetailOrder as RetailOrderModel; use app\api\model\Agreement as AgreementModel; use app\common\model\RetailDescribe as RetailDescribeModel; use app\api\service\order\Checkout as CheckoutService; use app\api\service\Retail as RetailService; use app\api\service\User as UserService; use app\common\enum\RetailDescribeEnum; class Retail extends Controller { /** * 获取零售批发会员列表 * @param int $retailType * @return Json */ public function list(int $retailType): Json { $list = RetailModel::withoutGlobalScope()->where('retail_type',$retailType)->where('retail_status',10) ->order(['sort' => 'asc','create_time' => 'asc'])->select();; return $this->renderSuccess(compact('list')); } /** * 获取软件付费协议 * @return Json */ public function getSoftAgreement(): Json { $params = $this->request->param(); if (empty($params['type'])) { return $this->renderSuccess("参数错误"); } $detail = AgreementModel::detail(['type' => $params['type']]); if (!empty($detail->content)) { $detail->content = str_ireplace('nowrap', 'inherit', $detail->content); } return $this->renderSuccess(compact('detail')); } /** * 获取零售批发会员列表 * @param int $retailType * @return Json */ public function retailPayList(): Json { $client = $this->request->post(); if (!$client['client']) { return $this->renderError('客户端不能为空'); } $model =new \app\api\service\Retail(); $list = $model->userCenter($client); $list['retail'] = '
1-客户直接在商城查看价格,快速比价、下单
2-所有会员、分销数字化管理
3-所有订单,调货记录,物流状态实时查询
4-供应链资源快速对接
5-商品数据快速上架,商城之间数据实时传输
6-商品市场价实时自动更新
7-货款到账时间支持当天或隔天,支付费率低
至千分之2.x
8-支持到店自提、同城闪送
9-促进清洗、安装、维修、回收、租赁服务与产品销售一体化
10-促进本地商家联盟数字化平台化发展
'; $list['wholesale'] = '1-采购代发商家实名注册认证,在线直接下单
2-认证商家、服务商数字化管理
3-所有订单,发货记录,物流状态实时查询
4-所有调货记录在线实时查看
5-审单实时做电话、地址校验比对,避免平台单
6-供应链资源快速对接
7-商品数据快速上架,商城之间商品数据实时传输
8-商品市场价实时自动更新
9-货款到账时间支持当天或隔天,支付费率低 至千分之 2.x
10-供应商、服务商入驻,销售和推广效益提升