|
|
@ -121,7 +121,7 @@ if(!function_exists('goods_imgs_upload')){
|
|||
}
|
||||
if($inequality_img){
|
||||
foreach ($inequality_img as $key1=> $v1){
|
||||
$mag=Db::table('yo_mall_image')->where('id',$key1)->delete();
|
||||
$mag=Db::table('mall_image')->where('id',$key1)->delete();
|
||||
if($mag){
|
||||
$ori_image_del=Env::get('root_path').'public'.$goods_imgs[$key1]['ori_image'];
|
||||
if(file_exists($ori_image_del))
|
||||
|
|
|
|||
|
|
@ -21,12 +21,23 @@ class ShopConfigController extends Controller
|
|||
$param = $request->param();
|
||||
ShopConfig::set('policy', 'procedure', $param['procedure']);
|
||||
ShopConfig::set('policy', 'rule', $param['rule']);
|
||||
|
||||
ShopConfig::set('policy', 'contactus', $param['contactus']);
|
||||
ShopConfig::set('policy', 'community', $param['community']);
|
||||
ShopConfig::set('policy', 'privacy', $param['privacy']);
|
||||
ShopConfig::set('policy', 'clause', $param['clause']);
|
||||
ShopConfig::set('policy', 'consignment', $param['consignment']);
|
||||
$url = URL_RELOAD;
|
||||
return success('添加成功',$url);
|
||||
}
|
||||
$config = [
|
||||
'procedure' => ShopConfig::get('policy', 'procedure'),
|
||||
'rule' => ShopConfig::get('policy', 'rule'),
|
||||
'contactus' => ShopConfig::get('policy', 'contactus'),
|
||||
'community' => ShopConfig::get('policy', 'community'),
|
||||
'privacy' => ShopConfig::get('policy', 'privacy'),
|
||||
'clause' => ShopConfig::get('policy', 'clause'),
|
||||
'consignment' => ShopConfig::get('policy', 'consignment'),
|
||||
];
|
||||
$this->assign([
|
||||
'config' => $config,
|
||||
|
|
@ -69,6 +80,11 @@ class ShopConfigController extends Controller
|
|||
ShopConfig::set('website', 'size', $param['size']);
|
||||
ShopConfig::set('website', 'size_img', $param['size_img']);
|
||||
ShopConfig::set('website', 'channel', $param['channel']);
|
||||
ShopConfig::set('website', 'jmnum', $param['jmnum']);
|
||||
|
||||
ShopConfig::set('website', 'MCHID', $param['MCHID']);
|
||||
ShopConfig::set('website', 'WXPAYKEY', $param['WXPAYKEY']);
|
||||
ShopConfig::set('website', 'notify_url', $param['notify_url']);
|
||||
$url = URL_RELOAD;
|
||||
return success('添加成功',$url);
|
||||
}
|
||||
|
|
@ -79,6 +95,10 @@ class ShopConfigController extends Controller
|
|||
'size' => ShopConfig::get('website', 'size'),
|
||||
'size_img' => ShopConfig::get('website', 'size_img'),
|
||||
'channel' => ShopConfig::get('website', 'channel'),
|
||||
'jmnum' => ShopConfig::get('website', 'jmnum'),
|
||||
'MCHID' => ShopConfig::get('website', 'MCHID'),
|
||||
'WXPAYKEY' => ShopConfig::get('website', 'WXPAYKEY'),
|
||||
'notify_url' => ShopConfig::get('website', 'notify_url'),
|
||||
];
|
||||
$this->assign([
|
||||
'config' => $config,
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@
|
|||
<div class="width-160">{$detail.mobile}</div>
|
||||
<label class="layui-form-label ">取货地址:</label>
|
||||
<div class="width-160">{$detail.address}</div>
|
||||
<label class="layui-form-label ">取货时间:</label>
|
||||
<div class="width-160">{$detail.takeparts_time}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<fieldset class="layui-elem-field layui-field-title">
|
||||
|
|
@ -152,10 +154,10 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:{$goods.goods_price}</p>
|
||||
<p>尺寸:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.item_value}</p>
|
||||
<p>品类:{$goods.item_value}</p>
|
||||
<p>品相:{$goods.item_value}</p>
|
||||
<p>购买渠道:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.brand_name}</p>
|
||||
<p>品类:{$goods.class_name}</p>
|
||||
<p>品相:{$goods.phase_name}</p>
|
||||
<p>购买渠道:{$goods.channel_name}</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@
|
|||
<div class="width-160">{$detail.mobile}</div>
|
||||
<label class="layui-form-label ">取货地址:</label>
|
||||
<div class="width-160">{$detail.address}</div>
|
||||
<label class="layui-form-label ">取货时间:</label>
|
||||
<div class="width-160">{$detail.takeparts_time}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<fieldset class="layui-elem-field layui-field-title">
|
||||
|
|
@ -116,15 +118,15 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:{$goods.goods_price}</p>
|
||||
<p>尺寸:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.item_value}</p>
|
||||
<p>品类:{$goods.item_value}</p>
|
||||
<p>品相:{$goods.item_value}</p>
|
||||
<p>购买渠道:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.brand_name}</p>
|
||||
<p>品类:{$goods.class_name}</p>
|
||||
<p>品相:{$goods.phase_name}</p>
|
||||
<p>购买渠道:{$goods.channel_name}</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{if condition="$goods.refund_status=='0'"}
|
||||
{if condition="$goods.refund_status=='0' && $goods.is_confirm=='1'"}
|
||||
<button type="submit" class="layui-btn layui-btn-sm layui-btn-normal width_160 agree" goods_id="{$goods.id}">同意</button>
|
||||
<button type="submit" class="layui-btn layui-btn-sm layui-btn-danger width_160 refuse" goods_id="{$goods.id}">拒绝</button>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@
|
|||
<div class="width-160">{$detail.mobile}</div>
|
||||
<label class="layui-form-label ">取货地址:</label>
|
||||
<div class="width-160">{$detail.address}</div>
|
||||
<label class="layui-form-label ">取货时间:</label>
|
||||
<div class="width-160">{$detail.takeparts_time}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<fieldset class="layui-elem-field layui-field-title">
|
||||
|
|
@ -85,6 +87,7 @@
|
|||
<col width="200">
|
||||
<col width="200">
|
||||
<col width="100">
|
||||
<col width="100">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -92,6 +95,7 @@
|
|||
<th>商品名称</th>
|
||||
<th>商品信息</th>
|
||||
<th>估价</th>
|
||||
<th>状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -116,21 +120,26 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:{$goods.goods_price}</p>
|
||||
<p>尺寸:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.item_value}</p>
|
||||
<p>品类:{$goods.item_value}</p>
|
||||
<p>品相:{$goods.item_value}</p>
|
||||
<p>购买渠道:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.brand_name}</p>
|
||||
<p>品类:{$goods.class_name}</p>
|
||||
<p>品相:{$goods.phase_name}</p>
|
||||
<p>购买渠道:{$goods.channel_name}</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<th>
|
||||
<div style="text-align: left">
|
||||
{$goods.evaluation_price}
|
||||
</div>
|
||||
</th>
|
||||
<td>
|
||||
{if condition="$goods.refund_status=='0'"}
|
||||
{if condition="$goods.is_confirm=='1'"}
|
||||
<div style="text-align: left">
|
||||
审核中
|
||||
已同意估价
|
||||
</div>
|
||||
{elseif condition="$goods.refund_status=='1'"/}
|
||||
{elseif condition="$goods.is_confirm=='0'"/}
|
||||
<div style="text-align: left">
|
||||
商品估计:¥{$goods.evaluation_price}
|
||||
未同意估价
|
||||
</div>
|
||||
{else condition="$goods.refund_status=='2'"/}
|
||||
<div style="text-align: left">
|
||||
|
|
@ -138,6 +147,7 @@
|
|||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@
|
|||
<div class="width-160">{$detail.mobile}</div>
|
||||
<label class="layui-form-label ">取货地址:</label>
|
||||
<div class="width-160">{$detail.address}</div>
|
||||
<label class="layui-form-label ">取货时间:</label>
|
||||
<div class="width-160">{$detail.takeparts_time}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<fieldset class="layui-elem-field layui-field-title">
|
||||
|
|
@ -116,10 +118,10 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:{$goods.goods_price}</p>
|
||||
<p>尺寸:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.item_value}</p>
|
||||
<p>品类:{$goods.item_value}</p>
|
||||
<p>品相:{$goods.item_value}</p>
|
||||
<p>购买渠道:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.brand_name}</p>
|
||||
<p>品类:{$goods.class_name}</p>
|
||||
<p>品相:{$goods.phase_name}</p>
|
||||
<p>购买渠道:{$goods.channel_name}</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -83,10 +83,10 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:{$goods.goods_price}</p>
|
||||
<p>尺寸:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.item_value}</p>
|
||||
<p>品类:{$goods.item_value}</p>
|
||||
<p>品相:{$goods.item_value}</p>
|
||||
<p>购买渠道:{$goods.item_value}</p>
|
||||
<p>品牌:{$goods.brand_name}</p>
|
||||
<p>品类:{$goods.class_name}</p>
|
||||
<p>品相:{$goods.phase_name}</p>
|
||||
<p>购买渠道:{$goods.channel_name}</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@
|
|||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">寄卖流程</li>
|
||||
<li>寄卖规则</li>
|
||||
<li>联系我们</li>
|
||||
<li>社群与交流</li>
|
||||
<li>隐私政策</li>
|
||||
<li>条款与条件</li>
|
||||
<li>寄卖成功提醒</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
|
|
@ -47,6 +52,89 @@
|
|||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="contactus" name="contactus" type="text/plain">{$config.contactus|raw|default=''}</script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('contactus');
|
||||
var ue2 = UE.getEditor('contactus',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue2.ready(function() {
|
||||
ue2.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="community" name="community" type="text/plain">{$config.community|raw|default=''}</script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('community');
|
||||
var ue3 = UE.getEditor('community',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue3.ready(function() {
|
||||
ue3.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="privacy" name="privacy" type="text/plain">{$config.privacy|raw|default=''}</script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('privacy');
|
||||
var ue4 = UE.getEditor('privacy',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue4.ready(function() {
|
||||
ue4.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="clause" name="clause" type="text/plain">{$config.clause|raw|default=''}</script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('clause');
|
||||
var ue5 = UE.getEditor('clause',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue5.ready(function() {
|
||||
ue5.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="consignment" name="consignment" type="text/plain">{$config.consignment|raw|default=''}</script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('consignment');
|
||||
var ue6 = UE.getEditor('consignment',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue6.ready(function() {
|
||||
ue6.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ ul.albums li a.btn-fm_z{
|
|||
<!-- 表单 -->
|
||||
<form id="dataForm" class="form-horizontal dataForm" action="" method="post" enctype="multipart/form-data">
|
||||
<!-- 表单字段区域 -->
|
||||
<div class="box-body" style="height: 500px;">
|
||||
<div class="box-body" style="min-height: 500px;">
|
||||
<div class="form-group">
|
||||
<label for="APPID" class="col-sm-2 control-label">AppID</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
@ -74,6 +74,26 @@ ul.albums li a.btn-fm_z{
|
|||
<input id="APPSECRET" name="APPSECRET" value="{$config.APPSECRET|default=''}" placeholder="请输入AppSecret" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="MCHID" class="col-sm-2 control-label">商户号</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="MCHID" name="MCHID" value="{$config.MCHID|default=''}" placeholder="请输入AppSecret" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="WXPAYKEY" class="col-sm-2 control-label">支付密钥</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="WXPAYKEY" name="WXPAYKEY" value="{$config.WXPAYKEY|default=''}" placeholder="请输入支付密钥" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="notify_url" class="col-sm-2 control-label">回调地址</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="notify_url" name="notify_url" value="{$config.notify_url|default=''}" placeholder="请输入回调地址" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="img_url" class="col-sm-2 control-label">图片访问地址</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
@ -87,6 +107,13 @@ ul.albums li a.btn-fm_z{
|
|||
<span id="min_withdraw-error" class="help-block">多个购买渠道请用英文逗号分隔</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="jmnum" class="col-sm-2 control-label">寄卖数量限制</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="jmnum" name="jmnum" value="{$config.jmnum|default=''}" placeholder="寄卖数量限制" type="text" class="form-control field-text">
|
||||
<span id="min_withdraw-error" class="help-block">寄卖满XX件才可下单</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="size" class="col-sm-2 control-label">尺码</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
|
|||
|
|
@ -4,18 +4,27 @@
|
|||
namespace app\api\controller;
|
||||
|
||||
use app\common\model\Order;
|
||||
use app\common\model\ConsignmentOrder;
|
||||
use app\common\model\ConsignmentOrderGoods;
|
||||
use app\common\model\ShopConfig;
|
||||
use app\common\model\PhaseConfig;
|
||||
use app\common\model\ConsignmentOrderLog;
|
||||
use Exception;
|
||||
use think\Request;
|
||||
use think\response\Json;
|
||||
use tools\Crypt;
|
||||
use tools\WxxiaopayApi;
|
||||
use think\facade\Env;
|
||||
|
||||
class OrderController extends Controller
|
||||
{
|
||||
protected $authExcept = [
|
||||
'consignment_config','icon'
|
||||
];
|
||||
|
||||
//下单接口
|
||||
public function buy(Request $request)
|
||||
{
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
|
|
@ -38,5 +47,376 @@ class OrderController extends Controller
|
|||
}
|
||||
return success($order['data']['order_sn'],'下单成功,正在调取支付');
|
||||
}
|
||||
|
||||
|
||||
//下单接口
|
||||
public function consignment_buy(Request $request)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$json_value = $param['json_value'];
|
||||
if (!$json_value) {
|
||||
return client_error('商品信息不存在');
|
||||
}
|
||||
$json_value=json_decode($json_value,true);
|
||||
$info = ConsignmentOrder::info($json_value, $user_id);
|
||||
if (!$info) {
|
||||
return client_error('商品信息不存在');
|
||||
}
|
||||
if($info['code'] == 0) {
|
||||
return client_error($info['msg']);
|
||||
}
|
||||
$order = ConsignmentOrder::add($user_id, $info['data']);
|
||||
if($order['code']==0){
|
||||
return client_error($order['msg']);
|
||||
}
|
||||
$order_id=Crypt::encrypt($order['data']['order_id']);
|
||||
return success($order_id,'寄卖订单已提交');
|
||||
}
|
||||
|
||||
//寄卖参数
|
||||
public function consignment_config(Request $request)
|
||||
{
|
||||
//寄卖流程
|
||||
$procedure =ShopConfig::get('policy', 'procedure');
|
||||
//寄卖规则
|
||||
$rule =ShopConfig::get('policy', 'rule');
|
||||
//寄卖成功提醒
|
||||
$consignment =ShopConfig::get('policy', 'consignment');
|
||||
//品相
|
||||
$phaseconfig =PhaseConfig::field('name')->select();
|
||||
//购买渠道
|
||||
$channel =ShopConfig::get('website', 'channel');
|
||||
$channel=explode(',',$channel);
|
||||
//寄卖数量限制
|
||||
$jmnum =ShopConfig::get('website', 'jmnum');
|
||||
$data=array(
|
||||
'procedure'=>$procedure,
|
||||
'rule'=>$rule,
|
||||
'consignment'=>$consignment,
|
||||
'phaseconfig'=>$phaseconfig,
|
||||
'channel'=>$channel,
|
||||
'jmnum'=>$jmnum,
|
||||
);
|
||||
return success($data);
|
||||
}
|
||||
|
||||
//上传图片
|
||||
public function icon(Request $request)
|
||||
{
|
||||
$param = $request->param();
|
||||
$file = request()->file('image');
|
||||
if($file){
|
||||
$info = $file->validate(['size'=>10*1024*1024,'ext'=>'jpg,png,gif'])->move(Env::get('root_path').'public/uploads/attachment');
|
||||
if($info){
|
||||
$data['avatar_logo']='/uploads/attachment/'.$info->getSaveName();
|
||||
$data['avatar']=$this->img_url.$data['avatar_logo'];
|
||||
return success($data);
|
||||
}else{
|
||||
// 上传失败获取错误信息
|
||||
return client_error($file->getError());
|
||||
}
|
||||
}else{
|
||||
return client_error('请上传图片');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//寄卖订单列表(审核中,待上架,已上架,取消/退回)
|
||||
public function consignment_list(Request $request,ConsignmentOrder $model)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$where[] = ['o.user_id', '=', $user_id];
|
||||
//订单类型
|
||||
if ($param['status'] == '1') {
|
||||
$where[] = ['o.order_status', 'in','0'];
|
||||
}
|
||||
if ($param['status'] == '2') {
|
||||
$where[] = ['o.order_status', 'in',"1,3,4,5,6"];
|
||||
}
|
||||
if ($param['status'] == '3') {
|
||||
$where[] = ['o.order_status', 'in','2'];
|
||||
}
|
||||
if ($param['status'] == '4') {
|
||||
$where[] = ['o.order_status', 'in','7,8'];
|
||||
}
|
||||
$size=$param['size']>0?$param['size']:12;
|
||||
$page_l=$param['page']>1?$param['page']:1;
|
||||
$page=$size * ($page_l - 1);
|
||||
$order_count = $model
|
||||
->alias('o')
|
||||
->join('consignment_order_goods g', 'g.order_id = o.id')
|
||||
->with(['consignment_order_goods'])
|
||||
->where($where)
|
||||
->order('o.id desc')
|
||||
->group('o.id')
|
||||
->count();
|
||||
$totalPages = ceil($order_count / $size);
|
||||
$order_list = $model
|
||||
->alias('o')
|
||||
->field('o.order_sn,o.order_status,o.id')
|
||||
->join('consignment_order_goods g', 'g.order_id = o.id')
|
||||
->with(['consignment_order_goods'])
|
||||
->where($where)
|
||||
->order('o.id desc')
|
||||
->group('o.id')
|
||||
->limit($page, $size)
|
||||
->select();
|
||||
if (!$order_list) {
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
foreach ($order_list as $k1 => $v1) {
|
||||
$order_list[$k1]['order_id'] = Crypt::encrypt($v1['id']);
|
||||
$order_list[$k1]['order_status_text'] = $v1['order_status_text'];
|
||||
unset($v1['id']);
|
||||
foreach ($v1['consignment_order_goods'] as &$order_goods){
|
||||
$order_goods['goods_img']=$this->img_url.$order_goods['goods_img'];
|
||||
$order_goods['refund_status_text'] = $order_goods['refund_status_text'];
|
||||
unset($order_goods['id'],$order_goods['goods_id'],$order_goods['order_id']);
|
||||
}
|
||||
}
|
||||
$page=array(
|
||||
'count'=>$order_count,
|
||||
'num'=>$page_l,
|
||||
'size'=>$size,
|
||||
'page'=>$totalPages
|
||||
);
|
||||
return success(array('list'=>$order_list,'page'=>$page));
|
||||
}
|
||||
|
||||
//寄卖订单列表(已售出)
|
||||
public function consignment_sold(Request $request,ConsignmentOrderGoods $cogmodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$where[] = ['o.user_id', '=', $user_id];
|
||||
$size=$param['size']>0?$param['size']:12;
|
||||
$page_l=$param['page']>1?$param['page']:1;
|
||||
$page=$size * ($page_l - 1);
|
||||
$order_count = $cogmodel
|
||||
->alias('cog')
|
||||
->join('consignment_order co', 'cog.order_id = co.id and co.order_status=2')
|
||||
->join('order_goods og', 'og.goods_id = cog.goods_id')
|
||||
->join('order o', 'og.order_id = o.id and o.order_status in (1,2,3)')
|
||||
->where($where)
|
||||
->order('o.id desc')
|
||||
->group('o.id')
|
||||
->count();
|
||||
$totalPages = ceil($order_count / $size);
|
||||
$order_list = $cogmodel
|
||||
->alias('cog')
|
||||
->field('cog.item_value,cog.goods_name,cog.goods_img,cog.goods_price,cog.brand_name,cog.phase_name,cog.class_name,cog.channel_name')
|
||||
->join('consignment_order co', 'cog.order_id = co.id and co.order_status=2')
|
||||
->join('order_goods og', 'og.goods_id = cog.goods_id')
|
||||
->join('order o', 'og.order_id = o.id and o.order_status in (1,2,3)')
|
||||
->where($where)
|
||||
->order('cog.id desc')
|
||||
->limit($page, $size)
|
||||
->select();
|
||||
if (!$order_list) {
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
foreach ($order_list as $k1 => $v1) {
|
||||
$order_list[$k1]['goods_img'] = $this->img_url.$v1['goods_img'];
|
||||
}
|
||||
$page=array(
|
||||
'count'=>$order_count,
|
||||
'num'=>$page_l,
|
||||
'size'=>$size,
|
||||
'page'=>$totalPages
|
||||
);
|
||||
return success(array('list'=>$order_list,'page'=>$page));
|
||||
}
|
||||
|
||||
|
||||
//寄卖订单详情
|
||||
public function consignment_detail(Request $request,ConsignmentOrder $model)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$order_id = $param['order_id']?Crypt::decrypt($param['order_id']):'';
|
||||
if(!$order_id){
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$where[] = ['o.user_id', '=', $user_id];
|
||||
$where[] = ['o.id', '=', $order_id];
|
||||
$order_info = $model
|
||||
->alias('o')
|
||||
// ->field('o.order_sn,o.order_status,o.id,o.pay_time,total_amount,shipping_time,invoice_name,invoice_no,transaction_id,user_remark,confirm_take_time,cancel_time,o.create_time,province,city,district,address,mobile,consignee')
|
||||
->with(['consignment_order_goods','logs'])
|
||||
->where($where)
|
||||
->find();
|
||||
if (!$order_info) {
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$order_info['order_id'] = Crypt::encrypt($order_info['id']);
|
||||
$order_info['order_status_text'] = $order_info['order_status_text'];
|
||||
foreach ($order_info['consignment_order_goods'] as &$order_goods){
|
||||
$order_goods['goods_img']=$this->img_url.$order_goods['goods_img'];
|
||||
$order_goods['id'] = Crypt::encrypt($order_goods['id']);
|
||||
$order_goods['refund_status_text'] = $order_goods['refund_status_text'];
|
||||
unset($order_goods['goods_id'],$order_goods['order_id']);
|
||||
}
|
||||
foreach ($order_info['logs'] as &$logs){
|
||||
unset($logs['id'],$logs['order_id']);
|
||||
}
|
||||
unset($order_info['id'],$order_info['user_id'],$order_info['update_time'],$order_info['delete_time']);
|
||||
return success($order_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 取消寄卖订单
|
||||
* @param $order_id
|
||||
* @param $user_id
|
||||
*/
|
||||
public static function consignment_cancel(Request $request,ConsignmentOrder $model)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$order_id = $param['order_id']?Crypt::decrypt($param['order_id']):'';
|
||||
if(!$order_id){
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$order = ConsignmentOrder::get([
|
||||
'user_id' => $user_id,
|
||||
'id' => $order_id
|
||||
]);
|
||||
if (!$order || ($order['order_status']!='0' && $order['order_status']!='3')) {
|
||||
return client_error('很抱歉!订单无法取消');
|
||||
}
|
||||
$model->startTrans();
|
||||
try {
|
||||
//取消订单
|
||||
$update = [
|
||||
'cancel_time' => time(),
|
||||
'order_status' => 8,
|
||||
];
|
||||
$model->where(['id' => $order_id])->update($update);
|
||||
//记录日志
|
||||
ConsignmentOrderLog::record(
|
||||
$order_id,
|
||||
'寄卖订单已取消'
|
||||
);
|
||||
$model->commit();
|
||||
} catch (Exception $e) {
|
||||
$model->rollback();
|
||||
return client_error($e->getMessage());
|
||||
}
|
||||
return success('','取消成功');
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 确认估价
|
||||
* @param $order_id
|
||||
* @param $user_id
|
||||
*/
|
||||
public static function consignment_confirm(Request $request,ConsignmentOrder $model,ConsignmentOrderGoods $cogmodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$order_id = $param['order_id']?Crypt::decrypt($param['order_id']):'';
|
||||
if(!$order_id){
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$goods_id = $param['goods_id']?$param['goods_id']:'';
|
||||
if(!$goods_id){
|
||||
return client_error('请选择确认估价商品');
|
||||
}
|
||||
$is_return = $param['is_return'];
|
||||
$consignee = $param['consignee']?$param['consignee']:'';
|
||||
$address = $param['address']?$param['address']:'';
|
||||
$mobile = $param['mobile']?$param['mobile']:'';
|
||||
if(!$consignee || !$address || !$mobile){
|
||||
return client_error('请选择取货地址');
|
||||
}
|
||||
$th_consignee = $param['th_consignee']?$param['th_consignee']:'';
|
||||
$th_address = $param['th_address']?$param['th_address']:'';
|
||||
$th_mobile = $param['th_mobile']?$param['th_mobile']:'';
|
||||
if($is_return==1 && (!$th_consignee || !$th_address || !$th_mobile)){
|
||||
return client_error('请选择退回地址');
|
||||
}
|
||||
$takeparts_time = $param['takeparts_time']?$param['takeparts_time']:'';
|
||||
if(!$takeparts_time){
|
||||
return client_error('请选择取件时间');
|
||||
}
|
||||
$goods_id=json_decode($goods_id,true);
|
||||
//寄卖数量限制
|
||||
$jmnum =ShopConfig::get('website', 'jmnum');
|
||||
if($jmnum>count($goods_id)){
|
||||
return client_error('寄卖满'.$jmnum.'件才可下单');
|
||||
}
|
||||
$goods_ids=array();
|
||||
foreach ($goods_id as $key => $value) {
|
||||
$goods_id=Crypt::decrypt($value);
|
||||
if($goods_id>0){
|
||||
$goods_ids[]=$goods_id;
|
||||
}
|
||||
}
|
||||
//寄卖数量限制
|
||||
$jmnum =ShopConfig::get('website', 'jmnum');
|
||||
if($jmnum>count($goods_ids)){
|
||||
return client_error('寄卖满'.$jmnum.'件才可下单');
|
||||
}
|
||||
$order = ConsignmentOrder::get([
|
||||
'user_id' => $user_id,
|
||||
'id' => $order_id
|
||||
]);
|
||||
if (!$order || $order['order_status']!='3') {
|
||||
return client_error('很抱歉!订单无法进行确认估价');
|
||||
}
|
||||
|
||||
$model->startTrans();
|
||||
try {
|
||||
//确认订单
|
||||
$update = [
|
||||
'update_time' => time(),
|
||||
'order_status' => 4,
|
||||
'is_return' => $is_return,
|
||||
'consignee' => $consignee,
|
||||
'address' => $address,
|
||||
'mobile' => $mobile,
|
||||
'th_consignee' => $th_consignee,
|
||||
'th_address' => $th_address,
|
||||
'th_mobile' => $th_mobile,
|
||||
'takeparts_time'=>$takeparts_time
|
||||
];
|
||||
$model->where(['id' => $order_id])->update($update);
|
||||
|
||||
$update_goods = [
|
||||
'is_confirm' => 1,
|
||||
];
|
||||
$where_goods[]=array('id','in',$goods_ids);
|
||||
$cogmodel->where($where_goods)->update($update_goods);
|
||||
|
||||
//记录日志
|
||||
ConsignmentOrderLog::record(
|
||||
$order_id,
|
||||
'您确认评估价格进行寄卖'
|
||||
);
|
||||
$model->commit();
|
||||
} catch (Exception $e) {
|
||||
$model->rollback();
|
||||
return client_error($e->getMessage());
|
||||
}
|
||||
return success('','确认成功');
|
||||
}
|
||||
}
|
||||
|
|
@ -12,11 +12,50 @@ use app\common\model\AccountLog;
|
|||
use app\common\model\WithdrawApply;
|
||||
use app\common\model\WithdrawAccount;
|
||||
use app\common\model\Notice;
|
||||
use app\common\model\GoodsCollect;
|
||||
use think\Request;
|
||||
use tools\Crypt;
|
||||
|
||||
|
||||
class UserController extends Controller
|
||||
{
|
||||
|
||||
//个人中心
|
||||
public function center(Request $request,GoodsCollect $gcmodel){
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$user = User::where('id',$user_id)->field('avatar,nickname,user_money')->find();
|
||||
//消息数量
|
||||
$user->notice_num = Notice::unRead($user_id) ? 1 : 0;
|
||||
$goods_list=$gcmodel
|
||||
->alias('gc')
|
||||
->field("mi.thumb_image as img, g.name,g.price,g.id as goods_id,gb.name as brand_name")
|
||||
->join('goods g', 'g.id = gc.goods_id')
|
||||
->join('mall_image mi', 'mi.union_id= gc.goods_id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->join('goods_brand gb', 'gb.id = g.brand_id')
|
||||
->where(array('user_id'=>$user_id))
|
||||
->limit(3)
|
||||
->order('g.sort_number asc')
|
||||
->select();
|
||||
foreach ($goods_list as $k1 => $v1) {
|
||||
$goods_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$goods_list[$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
$user->collect =$goods_list;
|
||||
//联系我们
|
||||
$user->contactus =ShopConfig::get('policy', 'contactus');
|
||||
//社群与交流
|
||||
$user->community =ShopConfig::get('policy', 'community');
|
||||
//隐私政策
|
||||
$user->privacy =ShopConfig::get('policy', 'privacy');
|
||||
//条款与条件
|
||||
$user->clause =ShopConfig::get('policy', 'clause');
|
||||
return success($user);
|
||||
}
|
||||
|
||||
//我的消息
|
||||
public function notice(Request $request,Notice $nmodel)
|
||||
{
|
||||
|
|
@ -44,6 +83,8 @@ class UserController extends Controller
|
|||
if (!$notice_list) {
|
||||
return success(array('list'=>[]));
|
||||
}
|
||||
$where1[]=array('user_id','=',$user_id);
|
||||
Notice::setRead($where1);
|
||||
$page=array(
|
||||
'count'=>$notice_count,
|
||||
'num'=>$page_l,
|
||||
|
|
@ -187,6 +228,46 @@ class UserController extends Controller
|
|||
return success('','取消成功');
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 确认收货
|
||||
* @param $order_id
|
||||
* @param $user_id
|
||||
*/
|
||||
public static function orderconfirm(Request $request,Order $model)
|
||||
{
|
||||
$param = $request->param();
|
||||
$user_id = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$user_id){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$order_id = $param['order_id']?Crypt::decrypt($param['order_id']):'';
|
||||
if(!$order_id){
|
||||
return client_error('该订单不存在');
|
||||
}
|
||||
$order = Order::get([
|
||||
'user_id' => $user_id,
|
||||
'id' => $order_id
|
||||
]);
|
||||
if (!$order || $order['order_status']!='2') {
|
||||
return client_error('很抱歉!订单未发货');
|
||||
}
|
||||
|
||||
$model->startTrans();
|
||||
try {
|
||||
//确认订单
|
||||
$update = [
|
||||
'confirm_take_time' => time(),
|
||||
'order_status' => 3,
|
||||
];
|
||||
$model->where(['id' => $order_id])->update($update);
|
||||
$model->commit();
|
||||
} catch (Exception $e) {
|
||||
$model->rollback();
|
||||
return client_error($e->getMessage());
|
||||
}
|
||||
return success('','确认成功');
|
||||
}
|
||||
|
||||
|
||||
|
||||
//收益统计
|
||||
|
|
@ -372,33 +453,6 @@ class UserController extends Controller
|
|||
return success(array('list'=>$user_list,'page'=>$page,'extension_rule'=>$extension_rule));
|
||||
}
|
||||
|
||||
//用户中心
|
||||
public function userhome(Request $request,User $umodel,Order $omodel)
|
||||
{
|
||||
$param = $request->param();
|
||||
$uid = $param['uid']?Crypt::decrypt($param['uid']):'';
|
||||
if(!$uid){
|
||||
return unauthorized('请先授权');
|
||||
}
|
||||
$user_info=$umodel->field('avatar,nickname,user_level_id as level,integral,mobile')->where(array('id'=>$uid))->find();
|
||||
if($user_info['level']==2){
|
||||
$time=time();
|
||||
$order_count=$omodel->where('end_time>='.$time.' and user_id='.$uid)->count();
|
||||
if($order_count==0){
|
||||
$user_info['level']=1;
|
||||
}
|
||||
}
|
||||
$user_info['avatar'] =$this->img_url.$user_info['avatar'];
|
||||
//联系电话
|
||||
$tel =ShopConfig::get('website', 'tel');
|
||||
$data=array(
|
||||
'user_info'=>$user_info,
|
||||
'tel'=>$tel
|
||||
);
|
||||
return success($data);
|
||||
}
|
||||
|
||||
|
||||
//提现账户列表
|
||||
public function account_list(Request $request,WithdrawAccount $wamodel)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,4 +56,186 @@ class ConsignmentOrder extends Model
|
|||
{
|
||||
return $this->hasMany('consignment_order_log', 'order_id', 'id')->order('id desc');
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 结算详情
|
||||
* @param $json_value
|
||||
* @param $user_id
|
||||
* @return array
|
||||
*/
|
||||
public static function info($json_value, $user_id)
|
||||
{
|
||||
try{
|
||||
$goods_lists = array();
|
||||
$total_num = 0;//商品总数量
|
||||
foreach ($json_value as $good) {
|
||||
$goods_lists[] = $good;
|
||||
//订单汇总信息
|
||||
$total_num ++;
|
||||
}
|
||||
if (empty($goods_lists)) {
|
||||
$data=[
|
||||
'code' =>0,
|
||||
'msg' =>'无商品',
|
||||
'data' =>'',
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
//寄卖数量限制
|
||||
$jmnum =ShopConfig::get('website', 'jmnum');
|
||||
if($jmnum>$total_num){
|
||||
$data=[
|
||||
'code' =>0,
|
||||
'msg' =>'寄卖满'.$jmnum.'件才可下单',
|
||||
'data' =>'',
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
$result = [
|
||||
'goods_lists' => array_values($goods_lists),
|
||||
];
|
||||
$data=[
|
||||
'code' =>1,
|
||||
'msg' =>'',
|
||||
'data' =>$result,
|
||||
];
|
||||
return $data;
|
||||
} catch (Exception $e) {
|
||||
$data=[
|
||||
'code' =>0,
|
||||
'msg' =>$e->getMessage(),
|
||||
'data' =>'',
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notes: 添加订单
|
||||
* @param $user_id
|
||||
* @param $data
|
||||
* @param $post
|
||||
*/
|
||||
public static function add($user_id, $data)
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
$goods_lists = $data['goods_lists'];
|
||||
if (empty($data['goods_lists'])) {
|
||||
$data=[
|
||||
'code' =>0,
|
||||
'msg' =>'无商品',
|
||||
'data' =>'',
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
$order = self::addOrder($user_id, $data);
|
||||
$order_id = $order['order_id'];
|
||||
$addOrderGoods=self::addOrderGoods($order_id, $goods_lists);
|
||||
if($addOrderGoods['code']==0){
|
||||
return $addOrderGoods;
|
||||
}
|
||||
self::addOrderAfter($order_id, $user_id, $data);
|
||||
Db::commit();
|
||||
$data=[
|
||||
'code' =>1,
|
||||
'msg' =>'',
|
||||
'data' =>$order,
|
||||
];
|
||||
return $data;
|
||||
} catch (Exception $e) {
|
||||
Db::rollback();
|
||||
$data=[
|
||||
'code' =>0,
|
||||
'msg' =>$e->getMessage(),
|
||||
'data' =>'',
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notes: 添加订单记录
|
||||
* @param $user_id
|
||||
* @param $data
|
||||
* @param $user_address
|
||||
* @param array $extra
|
||||
*/
|
||||
public static function addOrder($user_id, $data)
|
||||
{
|
||||
|
||||
$order_data = [
|
||||
'order_sn' => createSn('order', 'order_sn', '', 4),
|
||||
'user_id' => $user_id,
|
||||
'order_status' =>0,
|
||||
'create_time' => time(),
|
||||
];
|
||||
$order_id = Db::name('consignment_order')->insertGetId($order_data);
|
||||
return [
|
||||
'order_id' => $order_id,
|
||||
'order_sn' => $order_data['order_sn'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notes: 添加订单商品记录
|
||||
* @param $order_id
|
||||
* @param $goods_lists
|
||||
*/
|
||||
public static function addOrderGoods($order_id, $goods_lists)
|
||||
{
|
||||
foreach ($goods_lists as $k1 => $good) {
|
||||
$goods_data = [
|
||||
'order_id' => $order_id,
|
||||
'item_value' => $good['item_value'],
|
||||
'goods_name' => $good['goods_name'],
|
||||
'item_value' => $good['item_value'],
|
||||
'goods_price' => $good['goods_price'],
|
||||
'goods_img' => $good['img'][0],
|
||||
'brand_name' => $good['brand_name'],
|
||||
'phase_name' => $good['phase_name'],
|
||||
'class_name' => $good['class_name'],
|
||||
'channel_name' => $good['channel_name'],
|
||||
'create_time' => time(),
|
||||
];
|
||||
$goods_id = Db::name('consignment_order_goods')->insertGetId($goods_data);
|
||||
foreach ($good['img'] as $key => $value) {
|
||||
$goods_img[] = [
|
||||
'type' =>2,
|
||||
'union_id' => $goods_id,
|
||||
'thumb_image' => $value,
|
||||
'ori_image' => $value,
|
||||
'create_time' => time(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Db::name('mall_image')->insertAll($goods_img);
|
||||
$data=[
|
||||
'code' =>1,
|
||||
'msg' =>'',
|
||||
'data' =>'',
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notes: 下单后操作
|
||||
* @param $order_id
|
||||
* @param $user_id
|
||||
* @param $type
|
||||
* @param $data
|
||||
*/
|
||||
public static function addOrderAfter($order_id, $user_id, $data)
|
||||
{
|
||||
//记录日志
|
||||
ConsignmentOrderLog::record(
|
||||
$order_id,
|
||||
'寄卖下单成功',
|
||||
'24小时内平台估价'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class Model extends \think\Model
|
|||
//订单状态
|
||||
const ORDER_TEXT = [0 => '待付款', 1=> '待发货',2=> '待收货',3=> '已完成',4=> '已取消'];
|
||||
//寄卖状态
|
||||
const JMORDER_TEXT = [0 => '审核中', 1=> '待上架',2=> '已上架',3=> '待客户确认',4=> '客户已确认',5=> '已取货',6=> '部分退回','7'=>'全部退回'];
|
||||
const JMORDER_TEXT = [0 => '审核中', 1=> '待上架',2=> '已上架',3=> '待客户确认',4=> '客户已确认',5=> '已取货',6=> '部分退回','7'=>'全部退回','8'=>'已取消'];
|
||||
//寄卖商品信息
|
||||
const JMORDER_GOODS_TEXT = [0 => '审核中', 1=> '同意',2=> '驳回',3=> '退还','4'=>'上架'];
|
||||
|
||||
|
|
|
|||
|
|
@ -56,11 +56,6 @@ class Notice extends Model
|
|||
/**
|
||||
* Notes: 拼装额外参数
|
||||
* @param $params
|
||||
* @author 段誉(2021/4/28 18:21)
|
||||
* @return mixed
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @throws \think\exception\DbException
|
||||
*/
|
||||
public static function mergeParams($params)
|
||||
{
|
||||
|
|
@ -177,4 +172,27 @@ class Notice extends Model
|
|||
return NoticeSetting::NOTICE_OTHER;
|
||||
}
|
||||
}
|
||||
|
||||
//更新为已读
|
||||
public static function setRead($where)
|
||||
{
|
||||
//进入列表后全部已读
|
||||
Db::name('notice')
|
||||
->where($where)
|
||||
->where('read','<>', 1)
|
||||
->update(['read' => 1]);
|
||||
}
|
||||
|
||||
//是否有未读的消息
|
||||
public static function unRead($user_id)
|
||||
{
|
||||
$un_read = Db::name('notice')
|
||||
->where(['user_id' => $user_id, 'read' => 0])
|
||||
->where(['send_type' =>1])
|
||||
->find();
|
||||
if ($un_read){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,6 +125,8 @@ class Order extends Model
|
|||
$total_goods_price = 0;//商品总金额
|
||||
foreach ($goods as $good) {
|
||||
$good['sub_price'] = round($good['goods_price'] * $good['goods_num'], 2);
|
||||
$goods_item=Db::name('goods_item')->where(array('spec_value'=>$good['item_value'],'goods_id'=>$good['goods_id']))->find();
|
||||
$good['stock'] =$goods_item['stock'];
|
||||
$goods_lists[] = $good;
|
||||
//订单汇总信息
|
||||
$total_num += $good['goods_num'];
|
||||
|
|
@ -138,7 +140,6 @@ class Order extends Model
|
|||
];
|
||||
return $data;
|
||||
}
|
||||
|
||||
//用户地址
|
||||
$user_address = UserAddress::getOrderUserAddress($post, $user_id);
|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 237 KiB |
|
After Width: | Height: | Size: 237 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 237 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 237 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
|
@ -54,10 +54,29 @@ Route::domain('dgg-jimai-api', function () {
|
|||
//支付回调
|
||||
Route::rule('order-wxnotify','api/payment/wxnotify');
|
||||
|
||||
//寄卖流程参数
|
||||
Route::rule('order-consignment_config','api/order/consignment_config');
|
||||
//上传图片
|
||||
Route::rule('icon','api/order/icon');
|
||||
//提交寄卖单
|
||||
Route::rule('order-consignment_buy','api/order/consignment_buy');
|
||||
|
||||
//寄卖订单列表(审核中,待上架,已上架,取消/退回)
|
||||
Route::rule('order-consignment_list','api/order/consignment_list');
|
||||
//寄卖订单列表(已售出)
|
||||
Route::rule('order-consignment_sold','api/order/consignment_sold');
|
||||
//寄卖订单详情
|
||||
Route::rule('order-consignment_detail','api/order/consignment_detail');
|
||||
//寄卖订单取消
|
||||
Route::rule('order-consignment_cancel','api/order/consignment_cancel');
|
||||
//寄卖订单确认估价
|
||||
Route::rule('order-consignment_confirm','api/order/consignment_confirm');
|
||||
|
||||
|
||||
//授权登陆
|
||||
Route::rule('login','api/auth/login');
|
||||
|
||||
//用户中心
|
||||
Route::rule('u-center','api/user/center');
|
||||
//我的消息
|
||||
Route::rule('u-notice','api/user/notice');
|
||||
//我的订单列表
|
||||
|
|
@ -66,6 +85,8 @@ Route::domain('dgg-jimai-api', function () {
|
|||
Route::rule('u-orderdetail','api/user/orderdetail');
|
||||
//取消我的订单
|
||||
Route::rule('u-ordercancel','api/user/ordercancel');
|
||||
//我的订单确认收货
|
||||
Route::rule('u-orderconfirm','api/user/orderconfirm');
|
||||
|
||||
|
||||
//我的地址列表
|
||||
|
|
|
|||
|
|
@ -0,0 +1,230 @@
|
|||
---------------------------------------------------------------
|
||||
|
||||
[2021-12-16T18:46:10+08:00] 127.0.0.1 POST dgg-jimai-api.dggjimai.com/order-consignment_buy
|
||||
[运行时间:0.810450s] [吞吐率:1.23req/s] [内存消耗:4,423.88kb] [文件加载:184]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggjimai/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'order-consignment_buy',
|
||||
'route' => 'api/order/consignment_buy',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-jimai-api.dggjimai.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '1980',
|
||||
'accept' => 'application/json, text/javascript, */*; q=0.01',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
'accept-language' => 'zh-CN',
|
||||
'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundary1sTAMuLUq0iAw4o9',
|
||||
'origin' => 'http://dgg-jimai-api.dggjimai.com',
|
||||
'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn',
|
||||
'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiI4NTIyYTY5NzJkNWI2NTczMTNmZDJjYjRiNmJlMjg1YSIsImlhdCI6MTYzOTUzOTYyNCwibmJmIjoxNjM5NTM5NjI0LCJleHAiOjE2NDIxMzE2MjQsInVpZCI6MX0.KOQXmww0gDTxwVPGLGU7JnhaAxk8t0VxLlUgl2SpXQU',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
'uid' => '465f91fejJh/L7IqfSBww3ddZHHvH5mUS5mw6qGbVWkN',
|
||||
'json_value' => '[{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]},{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]},{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]}]',
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.123005s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_jimai;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.084538s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.080117s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'jmnum' LIMIT 1 [ RunTime:0.081181s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `order` [ RunTime:0.083016s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `order` WHERE `order_sn` = '202112161846102690' LIMIT 1 [ RunTime:0.081488s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `order` (`order_sn` , `user_id` , `order_status` , `create_time`) VALUES ('202112161846102690' , 1 , 0 , 1639651570) [ RunTime:0.079454s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `order_goods` [ RunTime:0.082236s ]
|
||||
[ error ] [0]数据表字段不存在:[phase_name][/Library/WebServer/Documents/dggxiangmu/dggjimai/thinkphp/library/think/db/Builder.php:138]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2021-12-16T18:47:06+08:00] 127.0.0.1 POST dgg-jimai-api.dggjimai.com/order-consignment_buy
|
||||
[运行时间:1.534142s] [吞吐率:0.65req/s] [内存消耗:4,393.77kb] [文件加载:182]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggjimai/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'order-consignment_buy',
|
||||
'route' => 'api/order/consignment_buy',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-jimai-api.dggjimai.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '1980',
|
||||
'accept' => 'application/json, text/javascript, */*; q=0.01',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
'accept-language' => 'zh-CN',
|
||||
'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundaryYkxAKgjgVuznCJTe',
|
||||
'origin' => 'http://dgg-jimai-api.dggjimai.com',
|
||||
'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn',
|
||||
'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiI4NTIyYTY5NzJkNWI2NTczMTNmZDJjYjRiNmJlMjg1YSIsImlhdCI6MTYzOTUzOTYyNCwibmJmIjoxNjM5NTM5NjI0LCJleHAiOjE2NDIxMzE2MjQsInVpZCI6MX0.KOQXmww0gDTxwVPGLGU7JnhaAxk8t0VxLlUgl2SpXQU',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
'uid' => '465f91fejJh/L7IqfSBww3ddZHHvH5mUS5mw6qGbVWkN',
|
||||
'json_value' => '[{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]},{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]},{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]}]',
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.119350s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_jimai;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.081110s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.078863s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'jmnum' LIMIT 1 [ RunTime:0.078452s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `order` [ RunTime:0.085192s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `order` WHERE `order_sn` = '202112161847050200' LIMIT 1 [ RunTime:0.081372s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order` [ RunTime:0.081693s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order` (`order_sn` , `user_id` , `order_status` , `create_time`) VALUES ('202112161847050200' , 1 , 0 , 1639651625) [ RunTime:0.079684s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order_goods` [ RunTime:0.082936s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_goods` (`order_id` , `item_value` , `goods_name` , `goods_price` , `brand_name` , `phase_name` , `class_name` , `channel_name` , `create_time`) VALUES (5 , 'M' , '寄卖A' , '100' , '耐克' , '全新' , '大衣' , '淘宝' , 1639651625) [ RunTime:0.080834s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_goods` (`order_id` , `item_value` , `goods_name` , `goods_price` , `brand_name` , `phase_name` , `class_name` , `channel_name` , `create_time`) VALUES (5 , 'M' , '寄卖A' , '100' , '耐克' , '全新' , '大衣' , '淘宝' , 1639651626) [ RunTime:0.079334s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_goods` (`order_id` , `item_value` , `goods_name` , `goods_price` , `brand_name` , `phase_name` , `class_name` , `channel_name` , `create_time`) VALUES (5 , 'M' , '寄卖A' , '100' , '耐克' , '全新' , '大衣' , '淘宝' , 1639651626) [ RunTime:0.078556s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `mall_image` [ RunTime:0.082425s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `mall_image` (`type` , `union_id` , `thumb_image` , `ori_image` , `create_time`) VALUES ( 2,8,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,8,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,8,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,8,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,8,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,8,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,9,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,9,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,9,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,9,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,9,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,9,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,10,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,10,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,10,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,10,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,10,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) , ( 2,10,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639651626 ) [ RunTime:0.083777s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order_log` [ RunTime:0.081813s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_log` (`order_id` , `remark` , `extra` , `create_time`) VALUES (5 , '寄卖下单成功' , '24小时内平台估价' , 1639651626) [ RunTime:0.079446s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2021-12-16T18:50:34+08:00] 127.0.0.1 GET www.dggjimai.com/admin/consignment_order/index.html?_pjax=%23pjax-container
|
||||
[运行时间:1.113060s] [吞吐率:0.90req/s] [内存消耗:4,874.18kb] [文件加载:188]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggjimai/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'www.dggjimai.com',
|
||||
'connection' => 'keep-alive',
|
||||
'accept' => 'text/html, */*; q=0.01',
|
||||
'x-requested-with' => 'XMLHttpRequest',
|
||||
'x-pjax' => 'true',
|
||||
'x-pjax-container' => '#pjax-container',
|
||||
'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36',
|
||||
'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8',
|
||||
'referer' => 'http://www.dggjimai.com/admin/shop_config/website.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
'accept-language' => 'zh-CN,zh;q=0.9',
|
||||
'cookie' => 'PHPSESSID=cbaedf47b288e8595509392b9b5ab3de',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
'_pjax' => '#pjax-container',
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ info ] [ VIEW ] /Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/index.html [ array (
|
||||
0 => '_pjax',
|
||||
1 => 'data',
|
||||
2 => 'page',
|
||||
3 => 'total',
|
||||
4 => 'debug',
|
||||
5 => 'cookie_prefix',
|
||||
6 => 'admin',
|
||||
) ]
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.117232s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_jimai;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `admin_user` [ RunTime:0.079983s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `admin_user` WHERE ( `id` = 1 ) AND `admin_user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.077445s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `admin_menu` [ RunTime:0.080041s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `admin_menu` WHERE `url` = 'admin/consignment_order/index' LIMIT 1 [ RunTime:0.079167s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order` [ RunTime:0.082025s ]
|
||||
[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM ( SELECT count(*) AS think_count FROM `consignment_order` `o` INNER JOIN `user` `u` ON `u`.`id`=`o`.`user_id` INNER JOIN `consignment_order_goods` `g` ON `g`.`order_id`=`o`.`id` WHERE `o`.`delete_time` = 0 GROUP BY `o`.`id` ) `_group_count_` [ RunTime:0.077829s ]
|
||||
[ sql ] [ SQL ] SELECT `o`.*,`u`.`mobile`,`u`.`nickname`,`u`.`sn`,`u`.`avatar` FROM `consignment_order` `o` INNER JOIN `user` `u` ON `u`.`id`=`o`.`user_id` INNER JOIN `consignment_order_goods` `g` ON `g`.`order_id`=`o`.`id` WHERE `o`.`delete_time` = 0 GROUP BY `o`.`id` ORDER BY `o`.`id` DESC,`id` DESC LIMIT 0,10 [ RunTime:0.080512s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order_goods` [ RunTime:0.081205s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `consignment_order_goods` WHERE ( `order_id` IN (5,4,3,2,1) ) AND `consignment_order_goods`.`delete_time` = 0 [ RunTime:0.080425s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2021-12-16T18:50:38+08:00] 127.0.0.1 GET www.dggjimai.com/admin/consignment_order/detail.html?id=5
|
||||
[运行时间:1.626987s] [吞吐率:0.61req/s] [内存消耗:5,151.95kb] [文件加载:192]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggjimai/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'www.dggjimai.com',
|
||||
'connection' => 'keep-alive',
|
||||
'upgrade-insecure-requests' => '1',
|
||||
'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36',
|
||||
'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
|
||||
'referer' => 'http://www.dggjimai.com/admin/consignment_order/index.html',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
'accept-language' => 'zh-CN,zh;q=0.9',
|
||||
'cookie' => 'PHPSESSID=cbaedf47b288e8595509392b9b5ab3de',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
'id' => '5',
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ info ] [ VIEW ] /Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/detail.html [ array (
|
||||
0 => 'detail',
|
||||
1 => 'debug',
|
||||
2 => 'cookie_prefix',
|
||||
3 => 'admin',
|
||||
) ]
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.123895s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_jimai;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `admin_user` [ RunTime:0.086185s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `admin_user` WHERE ( `id` = 1 ) AND `admin_user`.`delete_time` = 0 LIMIT 1 [ RunTime:0.079778s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `admin_menu` [ RunTime:0.083683s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `admin_menu` WHERE `url` = 'admin/consignment_order/detail' LIMIT 1 [ RunTime:0.079925s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order` [ RunTime:0.085166s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `consignment_order` WHERE ( `id` = 5 ) AND `consignment_order`.`delete_time` = 0 LIMIT 1 [ RunTime:0.080815s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `user` [ RunTime:0.083231s ]
|
||||
[ sql ] [ SQL ] SELECT `id`,`sn`,`nickname`,`avatar`,`mobile`,`create_time` FROM `user` WHERE ( `id` = 1 ) AND `user`.`delete_time` = 0 [ RunTime:0.080313s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order_goods` [ RunTime:0.083761s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `consignment_order_goods` WHERE ( `order_id` = 5 ) AND `consignment_order_goods`.`delete_time` = 0 [ RunTime:0.081180s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order_log` [ RunTime:0.082640s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `consignment_order_log` WHERE `order_id` = 5 ORDER BY `id` DESC [ RunTime:0.080813s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `mall_image` [ RunTime:0.081562s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `mall_image` WHERE ( `union_id` = 8 AND `type` = 2 ) AND `mall_image`.`delete_time` = 0 [ RunTime:0.079885s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `mall_image` WHERE ( `union_id` = 9 AND `type` = 2 ) AND `mall_image`.`delete_time` = 0 [ RunTime:0.079923s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `mall_image` WHERE ( `union_id` = 10 AND `type` = 2 ) AND `mall_image`.`delete_time` = 0 [ RunTime:0.080731s ]
|
||||
[ sql ] [ SQL ] SELECT `id`,`parent_id`,`name`,`url`,`icon`,`sort_id` FROM `admin_menu` WHERE `is_show` = 1 ORDER BY `sort_id` ASC,`id` ASC [ RunTime:0.080212s ]
|
||||
---------------------------------------------------------------
|
||||
|
||||
[2021-12-16T18:55:11+08:00] 127.0.0.1 POST dgg-jimai-api.dggjimai.com/order-consignment_buy
|
||||
[运行时间:1.687120s] [吞吐率:0.59req/s] [内存消耗:4,393.82kb] [文件加载:182]
|
||||
[ info ] [ LANG ] /Library/WebServer/Documents/dggxiangmu/dggjimai/thinkphp/lang/zh-cn.php
|
||||
[ info ] [ ROUTE ] array (
|
||||
'rule' => 'order-consignment_buy',
|
||||
'route' => 'api/order/consignment_buy',
|
||||
'option' =>
|
||||
array (
|
||||
'merge_rule_regex' => false,
|
||||
),
|
||||
'var' =>
|
||||
array (
|
||||
),
|
||||
)
|
||||
[ info ] [ HEADER ] array (
|
||||
'host' => 'dgg-jimai-api.dggjimai.com',
|
||||
'connection' => 'keep-alive',
|
||||
'content-length' => '1980',
|
||||
'accept' => 'application/json, text/javascript, */*; q=0.01',
|
||||
'accept-encoding' => 'gzip, deflate',
|
||||
'accept-language' => 'zh-CN',
|
||||
'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundary2bEkvLnduzsPF562',
|
||||
'origin' => 'http://dgg-jimai-api.dggjimai.com',
|
||||
'user-agent' => 'ApiPOST Runtime +https://www.apipost.cn',
|
||||
'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3MiLCJhdWQiOiJhdWQiLCJqdGkiOiI4NTIyYTY5NzJkNWI2NTczMTNmZDJjYjRiNmJlMjg1YSIsImlhdCI6MTYzOTUzOTYyNCwibmJmIjoxNjM5NTM5NjI0LCJleHAiOjE2NDIxMzE2MjQsInVpZCI6MX0.KOQXmww0gDTxwVPGLGU7JnhaAxk8t0VxLlUgl2SpXQU',
|
||||
)
|
||||
[ info ] [ PARAM ] array (
|
||||
'uid' => '465f91fejJh/L7IqfSBww3ddZHHvH5mUS5mw6qGbVWkN',
|
||||
'json_value' => '[{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]},{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]},{"goods_name":"寄卖A","goods_price":"100","item_value":"M","brand_name":"耐克","phase_name":"全新","class_name":"大衣","channel_name":"淘宝","img":["/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png","/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png"]}]',
|
||||
)
|
||||
[ info ] [ DB ] INIT mysql
|
||||
[ sql ] [ DB ] CONNECT:[ UseTime:0.124066s ] mysql:host=114.215.82.135;port=3306;dbname=dgg_jimai;charset=utf8mb4
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `shop_config` [ RunTime:0.083631s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'img_url' LIMIT 1 [ RunTime:0.080818s ]
|
||||
[ sql ] [ SQL ] SELECT `value` FROM `shop_config` WHERE `type` = 'website' AND `name` = 'jmnum' LIMIT 1 [ RunTime:0.082393s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `order` [ RunTime:0.084299s ]
|
||||
[ sql ] [ SQL ] SELECT * FROM `order` WHERE `order_sn` = '202112161855109302' LIMIT 1 [ RunTime:0.083621s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order` [ RunTime:0.084125s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order` (`order_sn` , `user_id` , `order_status` , `create_time`) VALUES ('202112161855109302' , 1 , 0 , 1639652110) [ RunTime:0.080443s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order_goods` [ RunTime:0.085428s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_goods` (`order_id` , `item_value` , `goods_name` , `goods_price` , `brand_name` , `phase_name` , `class_name` , `channel_name` , `create_time`) VALUES (6 , 'M' , '寄卖A' , '100' , '耐克' , '全新' , '大衣' , '淘宝' , 1639652110) [ RunTime:0.081239s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_goods` (`order_id` , `item_value` , `goods_name` , `goods_price` , `brand_name` , `phase_name` , `class_name` , `channel_name` , `create_time`) VALUES (6 , 'M' , '寄卖A' , '100' , '耐克' , '全新' , '大衣' , '淘宝' , 1639652111) [ RunTime:0.081173s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_goods` (`order_id` , `item_value` , `goods_name` , `goods_price` , `brand_name` , `phase_name` , `class_name` , `channel_name` , `create_time`) VALUES (6 , 'M' , '寄卖A' , '100' , '耐克' , '全新' , '大衣' , '淘宝' , 1639652111) [ RunTime:0.081557s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `mall_image` [ RunTime:0.082786s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `mall_image` (`type` , `union_id` , `thumb_image` , `ori_image` , `create_time`) VALUES ( 2,11,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,11,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,11,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,11,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,11,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,11,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,12,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,12,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,12,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,12,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,12,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,12,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,13,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,13,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,13,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,13,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,13,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) , ( 2,13,'/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png','/uploads/attachment/20211216/f88f74e24ae17b5531117197aa2070fb.png',1639652111 ) [ RunTime:0.082183s ]
|
||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `consignment_order_log` [ RunTime:0.084148s ]
|
||||
[ sql ] [ SQL ] INSERT INTO `consignment_order_log` (`order_id` , `remark` , `extra` , `create_time`) VALUES (6 , '寄卖下单成功' , '24小时内平台估价' , 1639652111) [ RunTime:0.083320s ]
|
||||
|
|
@ -0,0 +1,422 @@
|
|||
<?php /*a:9:{s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/finance/lists.html";i:1639103368;s:88:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/base.html";i:1639103368;s:92:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_css.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_js.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/header.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/sidebar.html";i:1639103368;s:98:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/content_header.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/footer.html";i:1639103368;s:99:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/control_sidebar.html";i:1639103368;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="renderer" content="webkit">
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<title><?php echo htmlentities((isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin')); ?> | <?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Admin')); ?></title>
|
||||
|
||||
|
||||
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!--头部css-->
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-switch/css/bootstrap-switch.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/font-awesome/css/font-awesome.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/iconpicker/css/iconpicker.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/select2/css/select2.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/fileinput/css/fileinput.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/AdminLTE.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/_all-skins.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/css/skins.css" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/nprogress/nprogress.css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!--头部js-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<script type="text/javascript" src="/static/admin/plugins/js-cookie/js.cookie-2.2.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-ui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/layer/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/laydate/laydate.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/localization/messages_zh.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-number/bootstrap-number.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/fastclick/fastclick.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/select2/js/select2.full.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/nprogress/nprogress.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/iconpicker/js/iconpicker.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/ueditor/lang/zh-cn/zh-cn.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/clipboard/clipboard.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/viewer/viewer.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/plugins/viewer/jquery-viewer.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/tag/jquery.tag-editor.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/js/tag/jquery.tag-editor.css" />
|
||||
<script src="https://www.layuicdn.com/layui/layui.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css">
|
||||
<!--勿必把地图api key更换成自己的-->
|
||||
<script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.15&key=cccf8ea926e153be0a013d55edd47c11&plugin=AMap.ToolBar'></script>
|
||||
<!-- UI组件库 1.0 -->
|
||||
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
|
||||
<script>
|
||||
//是否为debug模式
|
||||
var adminDebug = <?php echo htmlentities($debug); ?>;
|
||||
//cookie前缀
|
||||
var cookiePrefix = '<?php echo htmlentities($cookie_prefix); ?>';
|
||||
//UEditor server地址
|
||||
var UEServer = "<?php echo url('editor/server'); ?>";
|
||||
//列表页当前选择的ID
|
||||
var dataSelectIds = [];
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/demo.js"></script>
|
||||
<script type="text/javascript" src="/static/admin/js/app.js"></script>
|
||||
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 顶部 -->
|
||||
|
||||
<!--网页头部-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<header class="main-header">
|
||||
<a class="logo">
|
||||
<span class="logo-mini"><?php echo htmlentities((isset($admin['short_name']) && ($admin['short_name'] !== '')?$admin['short_name']:'Backend')); ?></span>
|
||||
<span class="logo-lg"><?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Backend')); ?></span>
|
||||
</a>
|
||||
<nav class="navbar navbar-static-top">
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle ReloadButton" title="刷新页面" data-toggle="dropdown">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="user-image" alt="用户头像">
|
||||
<span class="hidden-xs"><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="user-header">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="img-circle" alt="用户头像">
|
||||
<p>
|
||||
<?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?>
|
||||
<small><?php echo htmlentities((isset($admin['user']['username']) && ($admin['user']['username'] !== '')?$admin['user']['username']:'')); ?></small>
|
||||
</p>
|
||||
</li>
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="<?php echo url('admin_user/profile'); ?>" class="btn btn-default btn-flat">个人资料</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo url('auth/logout'); ?>" class="btn btn-default btn-flat">退出</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- 左侧 -->
|
||||
|
||||
<!--左侧菜单-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<aside class="main-sidebar">
|
||||
<section class="sidebar">
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'__BACKEND_IMAGES__/avatar.png')); ?>" class="img-circle" alt="用户头像">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></p>
|
||||
<a><i class="fa fa-circle text-success"></i> 在线</a>
|
||||
</div>
|
||||
</div>
|
||||
<form method="get" class="sidebar-form" id="sidebar-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="q" class="form-control" placeholder="搜索菜单" id="search-input">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<ul class="sidebar-menu" data-widget="tree">
|
||||
<li class="header">导航菜单</li>
|
||||
<?php echo (isset($admin['menu']) && ($admin['menu'] !== '')?$admin['menu']:''); ?>
|
||||
</ul>
|
||||
</section>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 内容 -->
|
||||
<div class="content-wrapper" id="pjax-container">
|
||||
|
||||
<!--内容头部-->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'admin'); ?>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo url('index/index'); ?>"><i class="fa fa-dashboard"></i> 主页</a></li>
|
||||
<li class="active"><?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin'); ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<?php if(app('session')->get('error_message')): ?>
|
||||
<!--如果有错误或者成功的消息-->
|
||||
<script>
|
||||
layer.msg('<?php echo htmlentities(app('session')->get('error_message')); ?>',{icon:2});
|
||||
$.pjax({
|
||||
url: "<?php echo htmlentities(app('session')->get('url')); ?>",
|
||||
container: '#pjax-container'
|
||||
});
|
||||
</script>
|
||||
<?php endif; if(app('session')->get('success_message')): ?>
|
||||
<script>
|
||||
layer.msg('<?php echo htmlentities(app('session')->get('success_message')); ?>',{icon:1});
|
||||
$.pjax({
|
||||
url: '<?php echo htmlentities(app('session')->get('url')); ?>',
|
||||
container: '#pjax-container'
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
.layui-card .header-title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.layui-card .header-title::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 4px;
|
||||
height: 18px;
|
||||
vertical-align: -4px;
|
||||
margin-right: 5px;
|
||||
background: #3A91FB;
|
||||
}
|
||||
.layui-card .survey-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.layui-card .survey-list .item {
|
||||
width: 20%;
|
||||
min-width: 200px;
|
||||
}
|
||||
.layui-card .survey-list .item .title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.layui-card .survey-list .item .title img {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
.layui-card .survey-list .item .layuiadmin-big-font {
|
||||
margin-left: 42px;
|
||||
color: #333;
|
||||
font-size: 25px;
|
||||
}
|
||||
</style>
|
||||
<section class="content">
|
||||
<!-- 订单-->
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">
|
||||
<div class="header-title">订单概况</div>
|
||||
</div>
|
||||
<div class="layui-card-body layuiadmin-card-list survey-list">
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/month_order_amount.png" alt="">
|
||||
<div>本月订单金额(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/total_order_amount.png" alt="">
|
||||
<div>订单总金额(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/order_num.png" alt="">
|
||||
<div>订单总数(笔)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/refund_amount.png" alt="">
|
||||
<div>退款订单总额(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/refund_num.png" alt="">
|
||||
<div>退款订单总数(笔)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--会员-->
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">
|
||||
<div class="header-title">会员概况</div>
|
||||
</div>
|
||||
<div class="layui-card-body layuiadmin-card-list survey-list">
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/total_user_money.png" alt="">
|
||||
<div>会员余额(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/total_user_integral.png" alt="">
|
||||
<div>会员积分 </div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/able_earnings.png" alt="">
|
||||
<div>会员可提现佣金(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/have_withdraw_earnings.png" alt="">
|
||||
<div>会员已提现佣金(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--分销-->
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">
|
||||
<div class="header-title">分销概况</div>
|
||||
</div>
|
||||
<div class="layui-card-body layuiadmin-card-list survey-list">
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/month_earnings.png" alt="">
|
||||
<div>本月分销佣金(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/distribution_earnings.png" alt="">
|
||||
<div>分销总佣金(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/wait_earnings.png" alt="">
|
||||
<div>提现中佣金(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title">
|
||||
<img class="icon" src="__PUBLIC__/static/common/image/finance/distribution_have_withdraw.png" alt="">
|
||||
<div>已提现佣金(元)</div>
|
||||
</div>
|
||||
|
||||
<p class="layuiadmin-big-font">1</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!--页面底部-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> <?php echo htmlentities((isset($admin['version']) && ($admin['version'] !== '')?$admin['version']:'1.0')); ?>
|
||||
</div>
|
||||
<strong>Copyright © 2020 <a href="<?php echo htmlentities((isset($admin['link']) && ($admin['link'] !== '')?$admin['link']:'#')); ?>"><?php echo htmlentities((isset($admin['author']) && ($admin['author'] !== '')?$admin['author']:'admin')); ?></a>.</strong> All rights
|
||||
reserved.
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<!--侧边栏-->
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane" id="control-sidebar-home-tab">
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="control-sidebar-bg"></div>
|
||||
<?php endif; if(!$admin['pjax']): ?>
|
||||
</div>
|
||||
<?php endif; if(!$admin['pjax']): ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php endif; ?>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:2:{s:101:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/detail.html";i:1639369488;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php /*a:2:{s:101:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/detail.html";i:1639743549;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -104,6 +104,8 @@
|
|||
<div class="width-160"><?php echo htmlentities($detail['mobile']); ?></div>
|
||||
<label class="layui-form-label ">取货地址:</label>
|
||||
<div class="width-160"><?php echo htmlentities($detail['address']); ?></div>
|
||||
<label class="layui-form-label ">取货时间:</label>
|
||||
<div class="width-160"><?php echo htmlentities($detail['takeparts_time']); ?></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<fieldset class="layui-elem-field layui-field-title">
|
||||
|
|
@ -173,10 +175,10 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:<?php echo htmlentities($goods['goods_price']); ?></p>
|
||||
<p>尺寸:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['brand_name']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['class_name']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['phase_name']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['channel_name']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:2:{s:101:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/pickup.html";i:1639366791;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php /*a:2:{s:101:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/pickup.html";i:1639744094;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -72,6 +72,8 @@
|
|||
<div class="width-160"><?php echo htmlentities($detail['mobile']); ?></div>
|
||||
<label class="layui-form-label ">取货地址:</label>
|
||||
<div class="width-160"><?php echo htmlentities($detail['address']); ?></div>
|
||||
<label class="layui-form-label ">取货时间:</label>
|
||||
<div class="width-160"><?php echo htmlentities($detail['takeparts_time']); ?></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<fieldset class="layui-elem-field layui-field-title">
|
||||
|
|
@ -106,6 +108,7 @@
|
|||
<col width="200">
|
||||
<col width="200">
|
||||
<col width="100">
|
||||
<col width="100">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -113,6 +116,7 @@
|
|||
<th>商品名称</th>
|
||||
<th>商品信息</th>
|
||||
<th>估价</th>
|
||||
<th>状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -137,21 +141,26 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:<?php echo htmlentities($goods['goods_price']); ?></p>
|
||||
<p>尺寸:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['brand_name']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['class_name']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['phase_name']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['channel_name']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<th>
|
||||
<div style="text-align: left">
|
||||
<?php echo htmlentities($goods['evaluation_price']); ?>
|
||||
</div>
|
||||
</th>
|
||||
<td>
|
||||
<?php if($goods['refund_status']=='0'): ?>
|
||||
<?php if($goods['is_confirm']=='1'): ?>
|
||||
<div style="text-align: left">
|
||||
审核中
|
||||
已同意估价
|
||||
</div>
|
||||
<?php elseif($goods['refund_status']=='1'): ?>
|
||||
<?php elseif($goods['is_confirm']=='0'): ?>
|
||||
<div style="text-align: left">
|
||||
商品估计:¥<?php echo htmlentities($goods['evaluation_price']); ?>
|
||||
未同意估价
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div style="text-align: left">
|
||||
|
|
@ -159,6 +168,7 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:95:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/shop_config/policy.html";i:1639203025;s:88:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/base.html";i:1639103368;s:92:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_css.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_js.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/header.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/sidebar.html";i:1639103368;s:98:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/content_header.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/footer.html";i:1639103368;s:99:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/control_sidebar.html";i:1639103368;}*/ ?>
|
||||
<?php /*a:9:{s:95:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/shop_config/policy.html";i:1639643349;s:88:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/base.html";i:1639103368;s:92:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_css.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_js.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/header.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/sidebar.html";i:1639103368;s:98:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/content_header.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/footer.html";i:1639103368;s:99:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/control_sidebar.html";i:1639103368;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -226,6 +226,11 @@
|
|||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">寄卖流程</li>
|
||||
<li>寄卖规则</li>
|
||||
<li>联系我们</li>
|
||||
<li>社群与交流</li>
|
||||
<li>隐私政策</li>
|
||||
<li>条款与条件</li>
|
||||
<li>寄卖成功提醒</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
|
|
@ -260,6 +265,89 @@
|
|||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="contactus" name="contactus" type="text/plain"><?php echo (isset($config['contactus']) && ($config['contactus'] !== '')?$config['contactus']:''); ?></script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('contactus');
|
||||
var ue2 = UE.getEditor('contactus',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue2.ready(function() {
|
||||
ue2.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="community" name="community" type="text/plain"><?php echo (isset($config['community']) && ($config['community'] !== '')?$config['community']:''); ?></script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('community');
|
||||
var ue3 = UE.getEditor('community',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue3.ready(function() {
|
||||
ue3.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="privacy" name="privacy" type="text/plain"><?php echo (isset($config['privacy']) && ($config['privacy'] !== '')?$config['privacy']:''); ?></script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('privacy');
|
||||
var ue4 = UE.getEditor('privacy',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue4.ready(function() {
|
||||
ue4.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="clause" name="clause" type="text/plain"><?php echo (isset($config['clause']) && ($config['clause'] !== '')?$config['clause']:''); ?></script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('clause');
|
||||
var ue5 = UE.getEditor('clause',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue5.ready(function() {
|
||||
ue5.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<script id="consignment" name="consignment" type="text/plain"><?php echo (isset($config['consignment']) && ($config['consignment'] !== '')?$config['consignment']:''); ?></script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
UE.delEditor('consignment');
|
||||
var ue6 = UE.getEditor('consignment',{
|
||||
serverUrl :UEServer,
|
||||
});
|
||||
ue6.ready(function() {
|
||||
ue6.setHeight(250); //设置高度
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:2:{s:102:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/shelves.html";i:1639372532;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php /*a:2:{s:102:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/shelves.html";i:1639651799;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -104,10 +104,10 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:<?php echo htmlentities($goods['goods_price']); ?></p>
|
||||
<p>尺寸:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['brand_name']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['class_name']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['phase_name']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['channel_name']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:2:{s:102:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/examine.html";i:1639369686;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php /*a:2:{s:102:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/consignment_order/examine.html";i:1639743771;s:84:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/layout1.html";i:1639291789;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -72,6 +72,8 @@
|
|||
<div class="width-160"><?php echo htmlentities($detail['mobile']); ?></div>
|
||||
<label class="layui-form-label ">取货地址:</label>
|
||||
<div class="width-160"><?php echo htmlentities($detail['address']); ?></div>
|
||||
<label class="layui-form-label ">取货时间:</label>
|
||||
<div class="width-160"><?php echo htmlentities($detail['takeparts_time']); ?></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<fieldset class="layui-elem-field layui-field-title">
|
||||
|
|
@ -137,15 +139,15 @@
|
|||
<div class="layui-col-md9">
|
||||
<p style="margin-top: 10px">购买价格:<?php echo htmlentities($goods['goods_price']); ?></p>
|
||||
<p>尺寸:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['item_value']); ?></p>
|
||||
<p>品牌:<?php echo htmlentities($goods['brand_name']); ?></p>
|
||||
<p>品类:<?php echo htmlentities($goods['class_name']); ?></p>
|
||||
<p>品相:<?php echo htmlentities($goods['phase_name']); ?></p>
|
||||
<p>购买渠道:<?php echo htmlentities($goods['channel_name']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if($goods['refund_status']=='0'): ?>
|
||||
<?php if($goods['refund_status']=='0' && $goods['is_confirm']=='1'): ?>
|
||||
<button type="submit" class="layui-btn layui-btn-sm layui-btn-normal width_160 agree" goods_id="<?php echo htmlentities($goods['id']); ?>">同意</button>
|
||||
<button type="submit" class="layui-btn layui-btn-sm layui-btn-danger width_160 refuse" goods_id="<?php echo htmlentities($goods['id']); ?>">拒绝</button>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:96:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/shop_config/website.html";i:1639276085;s:88:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/base.html";i:1639103368;s:92:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_css.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_js.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/header.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/sidebar.html";i:1639103368;s:98:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/content_header.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/footer.html";i:1639103368;s:99:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/control_sidebar.html";i:1639103368;}*/ ?>
|
||||
<?php /*a:9:{s:96:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/shop_config/website.html";i:1639646189;s:88:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/base.html";i:1639103368;s:92:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_css.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/head_js.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/header.html";i:1639103368;s:91:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/sidebar.html";i:1639103368;s:98:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/content_header.html";i:1639103368;s:90:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/footer.html";i:1639103368;s:99:"/Library/WebServer/Documents/dggxiangmu/dggjimai/application/admin/view/public/control_sidebar.html";i:1639103368;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -274,7 +274,7 @@ ul.albums li a.btn-fm_z{
|
|||
<!-- 表单 -->
|
||||
<form id="dataForm" class="form-horizontal dataForm" action="" method="post" enctype="multipart/form-data">
|
||||
<!-- 表单字段区域 -->
|
||||
<div class="box-body" style="height: 500px;">
|
||||
<div class="box-body" style="min-height: 500px;">
|
||||
<div class="form-group">
|
||||
<label for="APPID" class="col-sm-2 control-label">AppID</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
@ -287,6 +287,26 @@ ul.albums li a.btn-fm_z{
|
|||
<input id="APPSECRET" name="APPSECRET" value="<?php echo htmlentities((isset($config['APPSECRET']) && ($config['APPSECRET'] !== '')?$config['APPSECRET']:'')); ?>" placeholder="请输入AppSecret" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="MCHID" class="col-sm-2 control-label">商户号</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="MCHID" name="MCHID" value="<?php echo htmlentities((isset($config['MCHID']) && ($config['MCHID'] !== '')?$config['MCHID']:'')); ?>" placeholder="请输入AppSecret" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="WXPAYKEY" class="col-sm-2 control-label">支付密钥</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="WXPAYKEY" name="WXPAYKEY" value="<?php echo htmlentities((isset($config['WXPAYKEY']) && ($config['WXPAYKEY'] !== '')?$config['WXPAYKEY']:'')); ?>" placeholder="请输入支付密钥" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="notify_url" class="col-sm-2 control-label">回调地址</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="notify_url" name="notify_url" value="<?php echo htmlentities((isset($config['notify_url']) && ($config['notify_url'] !== '')?$config['notify_url']:'')); ?>" placeholder="请输入回调地址" type="text" class="form-control field-text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="img_url" class="col-sm-2 control-label">图片访问地址</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
@ -300,6 +320,13 @@ ul.albums li a.btn-fm_z{
|
|||
<span id="min_withdraw-error" class="help-block">多个购买渠道请用英文逗号分隔</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="jmnum" class="col-sm-2 control-label">寄卖数量限制</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input id="jmnum" name="jmnum" value="<?php echo htmlentities((isset($config['jmnum']) && ($config['jmnum'] !== '')?$config['jmnum']:'')); ?>" placeholder="寄卖数量限制" type="text" class="form-control field-text">
|
||||
<span id="min_withdraw-error" class="help-block">寄卖满XX件才可下单</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="size" class="col-sm-2 control-label">尺码</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
|
|||