You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1573 lines
75 KiB
1573 lines
75 KiB
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:80:"/www/wwwroot/stationery/public/../application/index/view/wanlshop/goods/add.html";i:1731323822;s:67:"/www/wwwroot/stationery/application/index/view/layout/wanlshop.html";i:1731323822;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo (isset($title) && ($title !== '')?$title:'卖家控制台'); ?></title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
<meta name="renderer" content="webkit">
|
|
<meta name="author" content="FastAdmin">
|
|
<link rel="shortcut icon" href="/assets/img/favicon.ico" />
|
|
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
|
|
<link rel="stylesheet" href="/assets/css/skins/skin-red-light.css" type="text/css">
|
|
<link rel="stylesheet" href="/assets/addons/wanlshop/css/chat.css" type="text/css">
|
|
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
|
|
<!--[if lt IE 9]>
|
|
<script src="/assets/js/html5shiv.js"></script>
|
|
<script src="/assets/js/respond.min.js"></script>
|
|
<![endif]-->
|
|
<script type="text/javascript">
|
|
var require = {config: <?php echo json_encode($config ?? ''); ?>};
|
|
</script>
|
|
<style type="text/css">
|
|
@media (max-width: 767px) {
|
|
.fixed .content-wrapper,
|
|
.fixed .right-side {
|
|
padding-top: 50px;
|
|
}
|
|
}
|
|
#main {
|
|
height: 100%;
|
|
background: #f1f4f6;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
.skin-red-light .treeview-menu>li.active>a {
|
|
color: #e74c3c;
|
|
}
|
|
[v-cloak] {
|
|
display: none !important;
|
|
}
|
|
.text-cut {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
/* 修改默认样式 */
|
|
.bootstrap-table .table:not(.table-condensed),
|
|
.bootstrap-table .table:not(.table-condensed)>tbody>tr>td,
|
|
.bootstrap-table .table:not(.table-condensed)>tbody>tr>th,
|
|
.bootstrap-table .table:not(.table-condensed)>tfoot>tr>td,
|
|
.bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,
|
|
.bootstrap-table .table:not(.table-condensed)>thead>tr>td {
|
|
padding: 10px 8px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<?php if(!IS_DIALOG): ?>
|
|
<!-- <body class="skin-green sidebar-mini fixed" id="tabs"> -->
|
|
<body class="sidebar-mini fixed skin-red-light" id="tabs">
|
|
<div class="wrapper">
|
|
<aside class="main-sidebar">
|
|
<!-- 左侧菜单栏 -->
|
|
<div class="slimScrollDiv">
|
|
<section class="sidebar">
|
|
<!-- 管理员信息 -->
|
|
<div class="user-panel hidden-xs">
|
|
<div class="pull-left image">
|
|
<a href="<?php echo url('index/wanlshop.shop/profile'); ?>"><img src="<?php echo htmlentities(cdnurl($shop['avatar'] ?? '') ?? ''); ?>" class="img-circle"></a>
|
|
</div>
|
|
<div class="pull-left info">
|
|
<p><?php echo $shop['shopname']; ?></p>
|
|
<div v-cloak>
|
|
<span v-if="shopOnline == 1"><i class="fa fa-circle text-success margin-r-5"></i> IM在线</span>
|
|
<span v-else><i class="fa fa-circle text-gray margin-r-5"></i> IM连接异常</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 菜单搜索 -->
|
|
<form action="" method="get" class="sidebar-form" onsubmit="return false;">
|
|
<div class="input-group">
|
|
<input type="text" name="q" class="form-control" placeholder="搜索菜单">
|
|
<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 class="menuresult list-group sidebar-form hide" style="width: 210px;">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<!-- 移动端一级菜单 -->
|
|
<div class="mobilenav visible-xs"> </div>
|
|
<!--如果想始终显示子菜单,则给ul加上show-submenu类即可,当multiplenav开启的情况下默认为展开-->
|
|
<ul class="sidebar-menu ">
|
|
<li class="treeview <?php echo in_array($config['controllername'],['wanlshop.console'])?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.console/index'); ?>">
|
|
<i class="fa fa-dashboard fa-fw"></i> <span>控制台</span>
|
|
<span class="pull-right-container"><small class="label pull-right bg-blue">hot</small></span>
|
|
</a>
|
|
</li>
|
|
<li class="treeview <?php echo in_array($config['controllername'],['wanlshop.order','wanlshop.refund','wanlshop.groupsorder'])?'active':''; ?>">
|
|
<a href="javascript:;">
|
|
<i class="fa fa-leaf fa-fw"></i> <span>交易管理</span>
|
|
<span class="pull-right-container"><i class="fa fa-angle-left"></i></span>
|
|
</a>
|
|
<ul class="treeview-menu <?php echo in_array($config['controllername'],['wanlshop.order','wanlshop.refund','wanlshop.groupsorder'])?'menu-open':''; ?>"
|
|
style="display: <?php echo in_array($config['controllername'],['wanlshop.order','wanlshop.refund','wanlshop.groupsorder'])?'block':'none'; ?>;">
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.order.index'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.order/index'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>商品订单</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.groupsorder.index'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.groupsorder/index'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>拼团订单</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.order.comment'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.order/comment'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>评论管理</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.refund.index'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.refund/index'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>退款管理</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="treeview <?php echo in_array($config['controllername'],['wanlshop.goods'])?'active':''; ?>">
|
|
<a href="javascript:;">
|
|
<i class="fa fa-shopping-bag fa-fw"></i> <span>宝贝管理</span>
|
|
<span class="pull-right-container"><i class="fa fa-angle-left"></i> </span>
|
|
</a>
|
|
<ul class="treeview-menu <?php echo in_array($config['controllername'],['wanlshop.goods'])?'menu-open':''; ?>" style="display: <?php echo in_array($config['controllername'],['wanlshop.goods'])?'block':'none'; ?>;">
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.goods.add'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.goods/add'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>发布宝贝</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.goods.index'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.goods/index'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>出售中的宝贝</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.goods.stock'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.goods/stock'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>仓库中的宝贝</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="treeview <?php echo $config['controllername']==='wanlshop.shopsort'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop/shopsort'); ?>">
|
|
<i class="fa fa-th-list fa-fw"></i> <span>类目管理</span>
|
|
<span class="pull-right-container"> </span>
|
|
</a>
|
|
</li>
|
|
<li class="treeview <?php echo $config['controllername']==='wanlshop.shop'?'active':''; ?>">
|
|
<a href="javascript:;">
|
|
<i class="fa fa-archive fa-fw"></i> <span>店铺管理</span>
|
|
<span class="pull-right-container"><i class="fa fa-angle-left"></i> </span>
|
|
</a>
|
|
<ul class="treeview-menu <?php echo $config['controllername']==='wanlshop.shop'?'menu-open' : ''; ?>"
|
|
style="display: <?php echo $config['controllername']==='wanlshop.shop'?'block' : 'none'; ?>;">
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.shop.index'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.shop/index'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>装修店铺</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.shop.attachment'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.shop/attachment'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>图片空间</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.shop.brand'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.shop/brand'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>品牌管理</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.shop.profile'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.shop/profile'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>店铺资料</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="treeview <?php echo $config['controllername']==='wanlshop.groups'?'active':''; ?>">
|
|
<a href="javascript:;">
|
|
<i class="fa fa-users fa-fw"></i> <span>阶梯拼团</span>
|
|
<span class="pull-right-container"><i class="fa fa-angle-left"></i> </span>
|
|
</a>
|
|
<ul class="treeview-menu <?php echo $config['controllername']==='wanlshop.groups'?'menu-open' : ''; ?>" style="display: <?php echo $config['controllername']==='wanlshop.groups'?'block' : 'none'; ?>;">
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.groups.goods'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.groups/goods'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>商品列表</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.groups.groups'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.groups/groups'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>拼团管理</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.groupsorder.index'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.groupsorder/index'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>订单管理</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="treeview <?php echo $config['controllername']==='wanlshop.find'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop/find'); ?>">
|
|
<i class="fa fa-video-camera fa-fw"></i> <span>种草短视频</span>
|
|
<span class="pull-right-container"><small class="label pull-right bg-red">new</small></span>
|
|
</a>
|
|
</li>
|
|
<li class="treeview <?php echo $config['controllername']==='wanlshop.coupon'?'active':''; ?>">
|
|
<a href="javascript:;">
|
|
<i class="fa fa-cloud fa-fw"></i> <span>营销活动</span>
|
|
<span class="pull-right-container"><i class="fa fa-angle-left"></i> </span>
|
|
</a>
|
|
<ul class="treeview-menu <?php echo $config['controllername']==='wanlshop.coupon'?'menu-open' : ''; ?>"
|
|
style="display: <?php echo $config['controllername']==='wanlshop.coupon'?'block' : 'none'; ?>;">
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.coupon.index'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop/coupon'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>满折减包邮券</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="treeview <?php echo in_array($config['controllername'],['wanlshop.logistics']) ?'active':''; ?>">
|
|
<a href="javascript:;">
|
|
<i class="fa fa-truck fa-fw"></i> <span>物流运费</span>
|
|
<span class="pull-right-container"><i class="fa fa-angle-left"></i> </span>
|
|
</a>
|
|
<ul class="treeview-menu <?php echo in_array($config['controllername'],['wanlshop.logistics']) ?'menu-open':''; ?>" style="display: <?php echo in_array($config['controllername'],['wanlshop.logistics']) ?'block':'none'; ?>;">
|
|
<!-- <li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.logistics.deliver'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.logistics/deliver'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>发货</span>
|
|
</a>
|
|
</li> -->
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.logistics.template'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.logistics/template'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>运费模板</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="treeview <?php echo in_array($config['controllername'],['wanlshop.finance']) ?'active':''; ?>">
|
|
<a href="javascript:;">
|
|
<i class="fa fa-paypal fa-fw"></i> <span>财务管理</span>
|
|
<span class="pull-right-container"><i class="fa fa-angle-left"></i> </span>
|
|
</a>
|
|
<ul class="treeview-menu <?php echo in_array($config['controllername'],['wanlshop.finance']) ?'menu-open':''; ?>" style="display: <?php echo in_array($config['controllername'],['wanlshop.finance']) ?'block':'none'; ?>;">
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.finance.bill'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.finance/bill'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>商家对账单</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php echo $config['controllername'].'.'.$config['actionname']=='wanlshop.finance.withdraw'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop.finance/withdraw'); ?>">
|
|
<i class="fa fa-circle-o fa-fw"></i><span>商家提现</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
|
|
<li class="treeview <?php echo $config['controllername']==='wanlshop.config'?'active':''; ?>">
|
|
<a href="<?php echo url('index/wanlshop/config'); ?>">
|
|
<i class="fa fa-cog fa-fw"></i> <span>店铺配置</span>
|
|
<span class="pull-right-container"> </span>
|
|
</a>
|
|
</li>
|
|
<li class="header">相关链接</li>
|
|
<?php if(empty($config['document']) || (($config['document'] instanceof \think\Collection || $config['document'] instanceof \think\Paginator ) && $config['document']->isEmpty())): ?>
|
|
<li><a href="javascript:;" onclick="layer.msg('平台尚未配置官方文档')"><i class="fa fa-list text-red"></i> <span>官方文档</span></a></li>
|
|
<?php else: ?>
|
|
<li><a href="<?php echo $config['document']; ?>" target="_blank"><i class="fa fa-list text-red"></i> <span>官方文档</span></a></li>
|
|
<?php endif; if(empty($config['qun']) || (($config['qun'] instanceof \think\Collection || $config['qun'] instanceof \think\Paginator ) && $config['qun']->isEmpty())): ?>
|
|
<li><a href="javascript:;" onclick="layer.msg('平台尚未配置QQ交流群')"><i class="fa fa-qq text-aqua"></i> <span>QQ交流群</span></a></li>
|
|
<?php else: ?>
|
|
<li><a href="<?php echo $config['qun']; ?>" target="_blank"><i class="fa fa-qq text-aqua"></i> <span>QQ交流群</span></a></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</section>
|
|
<div class="slimScrollBar" style="background: rgba(0, 0, 0, 0.2); width: 8px; position: absolute; top: 0px; opacity: 0.4; display: none; border-radius: 7px; z-index: 99; right: 1px; height: 897px;"></div>
|
|
<div class="slimScrollRail" style="width: 8px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51); opacity: 0.2; z-index: 90; right: 1px;"></div>
|
|
</div>
|
|
</aside>
|
|
<div id="wanlchat">
|
|
<!-- 头部区域 -->
|
|
<header id="header" class="main-header">
|
|
<a href="javascript:;" class="logo">
|
|
<!-- 迷你模式下Logo的大小为50X50 -->
|
|
<span class="logo-mini">商家</span>
|
|
<!-- 普通模式下Logo -->
|
|
<span class="logo-lg">商家后台</span>
|
|
</a>
|
|
<!-- 顶部通栏样式 -->
|
|
<nav class="navbar navbar-static-top">
|
|
<!--第一级菜单-->
|
|
<div id="firstnav">
|
|
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
|
<span class="sr-only"><?php echo __('Toggle navigation'); ?></span><!-- 边栏切换按钮-->
|
|
</a>
|
|
<div class="navbar-custom-menu">
|
|
<ul class="nav navbar-nav">
|
|
<!-- <li> <a href="<?php echo url('index/wanlshop.console/index'); ?>"><i class="fa fa-home" style="font-size:14px;"></i></a> </li> -->
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-paper-plane margin-r-5"></i>
|
|
</a>
|
|
<ul class="dropdown-menu wipecache">
|
|
<li><a href="<?php echo url('index/wanlshop.goods/add'); ?>"><i class="fa fa-circle-o"></i> 发布宝贝</a></li>
|
|
<li class="divider"></li>
|
|
<li><a href="javascript:;" @click="toFind('video')"><i class="fa fa-video-camera"></i> 发布 短视频</a></li>
|
|
<li><a href="javascript:;" @click="toFind('new')"><i class="fa fa-hacker-news"></i> 发布 宝贝上新</a></li>
|
|
<li><a href="javascript:;" @click="toFind('want')"><i class="fa fa-heartbeat"></i> 发布 种草</a></li>
|
|
<li><a href="javascript:;" @click="toFind('show')"><i class="fa fa-users"></i> 发布 买家秀</a></li>
|
|
</ul>
|
|
</li>
|
|
<!-- 即时通讯 open-->
|
|
<li class="dropdown messages-menu" v-cloak>
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
|
|
<i class="fa fa-comments margin-r-5"></i>
|
|
<span class="label label-success" v-if="count > 0">{{count}}</span>
|
|
</a>
|
|
<div class="dropdown-menu wanl-chat-list">
|
|
<div class="head">
|
|
<div class="title">
|
|
<div>
|
|
<h3>{{shop.shopname}}</h3>
|
|
<span v-if="shopOnline == 1"><i class="fa fa-circle text-success margin-r-5"></i> H5在线</span>
|
|
<span v-else><i class="fa fa-circle text-gray margin-r-5"></i> IM连接异常</span>
|
|
</div>
|
|
<div style="font-size: 14px;">
|
|
<span class="active" @click="onAudio" v-if="isAudio"><i class="fa fa-volume-up text-red"></i></span>
|
|
<span v-else @click="onAudio"><i class="fa fa-volume-off text-gray"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="list">
|
|
<div class="empty" v-if="chatlist.length == 0">
|
|
<div class="main">
|
|
<img src="/assets/addons/wanlshop/img/default/find_default3x.png">
|
|
<p>没有找到任何联系人</p>
|
|
</div>
|
|
</div>
|
|
<div class="item" v-for="(item, index) in chatlist" :key="index" @click="otChat(index, 'main')">
|
|
<div class="portrait">
|
|
<img :src="cdnurl(item.avatar)">
|
|
<span class="online">
|
|
<i class="fa fa-circle text-success" v-if="item.isOnline == 1"></i>
|
|
<i class="fa fa-circle text-gray" v-else></i>
|
|
</span>
|
|
</div>
|
|
<div class="main">
|
|
<div class="user">
|
|
<span class="username text-cut">{{item.nickname}}</span>
|
|
<span class="time">{{timefriendly(item.createtime)}}</span>
|
|
</div>
|
|
<div class="info text-cut">
|
|
<span v-if="item.count > 0">
|
|
[未读{{item.count}}条]
|
|
</span>
|
|
<span v-html="item.content"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
|
|
<!-- 账号信息下拉框 -->
|
|
<li class="dropdown user user-menu">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
<img src="<?php echo htmlentities(cdnurl($user['avatar'] ?? '') ?? ''); ?>" class="user-image" alt="<?php echo $user['username']; ?>">
|
|
<span class="hidden-xs"><?php echo htmlentities($user['username'] ?? ''); ?></span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<!-- User image -->
|
|
<li class="user-header">
|
|
<img src="<?php echo htmlentities(cdnurl($user['avatar'] ?? '') ?? ''); ?>" class="img-circle" alt="<?php echo $user['username']; ?>">
|
|
<p>
|
|
<?php echo htmlentities($user['username'] ?? ''); ?>
|
|
<small><?php echo date("Y-m-d H:i:s",$user['logintime']); ?></small>
|
|
</p>
|
|
</li>
|
|
<!-- Menu Body -->
|
|
<li class="user-body">
|
|
<div class="row">
|
|
<div class="col-xs-4 text-center">余额:<?php echo htmlentities($user['money'] ?? ''); ?></div>
|
|
<div class="col-xs-4 text-center">积分:<?php echo htmlentities($user['score'] ?? ''); ?></div>
|
|
<div class="col-xs-4 text-center">登录<?php echo htmlentities($user['successions'] ?? ''); ?>次</div>
|
|
</div>
|
|
</li>
|
|
<!-- Menu Footer-->
|
|
<li class="user-footer">
|
|
<div class="pull-left">
|
|
<a href="<?php echo url('index/user/profile'); ?>" class="btn btn-primary"><i class="fa fa-user"></i> <?php echo __('Profile'); ?></a>
|
|
</div>
|
|
<div class="pull-left" style="margin-left: 10px;">
|
|
<a href="<?php echo url('index/wanlshop.shop/profile'); ?>" class="btn btn-primary"><i class="fa fa-user"></i>
|
|
<?php echo __('店铺资料'); ?></a>
|
|
</div>
|
|
<div class="pull-right">
|
|
<a href="<?php echo url('index/user/logout'); ?>" class="btn btn-danger"><i class="fa fa-sign-out"></i> <?php echo __('Logout'); ?></a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
<!-- 聊天窗口 -->
|
|
<div class="wanl-chat" :class="{full: onFull}" :style="{left:screenWidth+'px', top:screenHeight+'px'}" ref="moveBtn" v-show="chatWindow" v-cloak>
|
|
<div class="list">
|
|
<ul>
|
|
<li v-for="(item, index) in wanlchat" :key="index" :class="{checked: chatSelect == index}" @click="onChat(index)">
|
|
<div class="portrait">
|
|
<img :src="cdnurl(item.avatar)">
|
|
<span class="badge bg-red" v-if="item.count > 0">{{item.count}}</span>
|
|
</div>
|
|
<div class="user-msg">
|
|
<p>{{item.nickname}}</p>
|
|
<div class="text-cut" v-html="item.content"></div>
|
|
</div>
|
|
<div class="list-close" @click.stop="delChat(index)">
|
|
<div class="hover">
|
|
<span class="fa fa-times-circle"></span>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="main" v-if="chatSelect != null">
|
|
<div class="msgHead" @mousedown="down" @touchstart="down" @mousemove="move" @touchmove="move" @mouseup="end" @touchend="end" @touchcancel="end">
|
|
<img :src="cdnurl(wanlchat[chatSelect].avatar)">
|
|
<div>
|
|
<span class="name">{{wanlchat[chatSelect].nickname}}</span>
|
|
<p v-if="wanlchat[chatSelect].isOnline == 1"><i class="fa fa-circle text-success"></i> 在线</p>
|
|
<p v-else><i class="fa fa-circle text-gray"></i> 离线</p>
|
|
</div>
|
|
<!-- 窗口操作 -->
|
|
<span class="layui-layer-setwin">
|
|
<block v-if="onFull">
|
|
<a class="layui-layer-ico layui-layer-max layui-layer-maxmin" href="javascript:;" @click="full"></a>
|
|
</block>
|
|
<block v-else>
|
|
<a class="layui-layer-min" href="javascript:;" @click="miniChat"><cite></cite></a>
|
|
<a class="layui-layer-ico layui-layer-max" href="javascript:;" @click="full"></a>
|
|
</block>
|
|
<a class="layui-layer-ico layui-layer-close layui-layer-close1" href="javascript:;" @click="closeChat"></a>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="msgList" id="talk">
|
|
<ul>
|
|
<li :class="{my: item.form.id == shop.user_id}" v-for="(item, index) in chatContent" :key="index">
|
|
<div class="chat-user">
|
|
<img :src="cdnurl(item.form.id == shop.user_id ? shop.avatar : item.form.avatar)">
|
|
<cite>
|
|
<span>{{timefriendly(item.createtime)}}</span>
|
|
</cite>
|
|
</div>
|
|
<!-- 文字消息 -->
|
|
<div class="chat-text" v-if="item.message.type == 'text'" v-html="item.message.content.text"></div>
|
|
<!-- 语音消息 -->
|
|
<div class="chat-voice" v-if="item.message.type == 'voice'" @click="playVoice(item.message.content.url)">
|
|
<span :style="{marginRight: item.message.content.length * 8 +'px'}"></span>{{item.message.content.length}} ”
|
|
</div>
|
|
<!-- 图片消息 -->
|
|
<div class="chat-img" v-if="item.message.type == 'img'">
|
|
<a :href="item.message.content.url" target="_blank"><img :src="cdnurl(item.message.content.url)" data-tips-image></a>
|
|
</div>
|
|
<!-- 商品消息 -->
|
|
<div class="chat-goods" v-if="item.message.type == 'goods'">
|
|
<img :src="cdnurl(item.message.content.image)">
|
|
<div class="price text-orange">
|
|
¥ <span>{{item.message.content.price}}</span>
|
|
</div>
|
|
<div class="title">
|
|
{{item.message.content.title}}
|
|
</div>
|
|
</div>
|
|
<!-- 订单消息 -->
|
|
<div class="chat-order" v-if="item.message.type == 'order'" @click="onOrder(item.message.content.id)">
|
|
<div> 订单详情:</div>
|
|
<div class="product">
|
|
<div class="item" v-for="(order, index) in item.message.content.goods" :key="index">
|
|
<img :src="cdnurl(order.image)"></img>
|
|
<div class="details">
|
|
<div>
|
|
<span>{{order.title}}</span>
|
|
</div>
|
|
<div class="attribute">
|
|
<div class="text-orange">
|
|
¥ {{order.price * order.number}}
|
|
</div>
|
|
<div>
|
|
<span>{{order.difference}} x {{order.number}}</span>
|
|
<span v-if="item.refund_status > 0">({{refundStatusText[item.refund_status]}})</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="describe">
|
|
<div> <span>{{stateText[item.message.content.state-1]}}</span> </div>
|
|
<div> <span>ID:</span> <span>{{item.message.content.order_no}}</span> </div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<form class="inputBox" id="form">
|
|
<div class="tool">
|
|
<span class="fa fa-smile-o" @click="toggleBox"></span>
|
|
<label for="upImage" class="fa fa-picture-o upImage"></label>
|
|
<input type="file" id="upImage" @change="chatImage" style="display:none">
|
|
</div>
|
|
<div class="input">
|
|
<textarea id="content" placeholder="请输入消息" v-model="textarea" @keyup.ctrl.enter="submit" autofocus></textarea>
|
|
</div>
|
|
<div class="operation">
|
|
<button type="button" class="btn btn-danger" @click="submit">发送 Ctrl+Enter</button>
|
|
</div>
|
|
</form>
|
|
<div class="box-container" v-if="showBox" @click.self="toggleBox"> </div>
|
|
<div class="wanl-emoji" v-if="showBox">
|
|
<div class="title">
|
|
<div> {{TabCur}} </div>
|
|
</div>
|
|
<div class="subject" v-for="(emoji, groups) in emojiList.groups" :key="groups" v-if="TabCur == groups">
|
|
<div class="item">
|
|
<span v-for="(item, index) in emoji" :key="index" @click="addEmoji(item.value)">
|
|
<img :src="item.url" >
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="emojiNav">
|
|
<div :class="item == TabCur ? 'emojibg' : ''" class="item" v-for="(item, index) in emojiList.categories" :key="index" :data-id="item" @click="tabSelect" >
|
|
<img :src="emojiList.groups[item][0].url" >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 客服按钮 -->
|
|
<div class="wanl-chat-mini" v-if="chatMiniWindow" @click="miniChat" v-cloak>
|
|
<div class="water0"></div>
|
|
<div class="water1"></div>
|
|
<div class="water2"></div>
|
|
<div class="water3"></div>
|
|
</div>
|
|
</div>
|
|
<div class="content-wrapper tab-content tab-addtabs">
|
|
<div class="tab-pane active">
|
|
<div id="main" role="main">
|
|
<div class="tab-content tab-addtabs">
|
|
<div id="content">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
|
|
<!-- RIBBON -->
|
|
<div id="ribbon">
|
|
<ol class="breadcrumb pull-left">
|
|
<li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> 控制台</a></li>
|
|
</ol>
|
|
<ol class="breadcrumb pull-right">
|
|
<li><a href="javascript:;"><?php echo (isset($title) && ($title !== '')?$title:''); ?></a></li>
|
|
</ol>
|
|
</div>
|
|
|
|
<!-- END RIBBON -->
|
|
<div class="content">
|
|
<style>
|
|
#cxselect-example .form-group {
|
|
margin: 10px 0;
|
|
}
|
|
[v-cloak] {display: none;}
|
|
.wanl-specs .add-option{
|
|
width: 250px;
|
|
margin-bottom: 17px;
|
|
}
|
|
.wanl-specs .add-option .input-group-addon{
|
|
color: #fff;
|
|
background-color: #2c3e50;
|
|
}
|
|
.wanl-specs .panel .row{
|
|
margin: 5px 0;
|
|
}
|
|
.wanl-specs .panel .remove {
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 2;
|
|
width: 18px;
|
|
height: 18px;
|
|
font-size: 14px;
|
|
line-height: 16px;
|
|
color: #fff;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
background: rgba(0,0,0,.3);
|
|
border-radius: 50%;
|
|
}
|
|
.wanl-specs .panel .panel-heading {
|
|
position: relative;
|
|
}
|
|
.wanl-specs .panel .panel-heading .remove {
|
|
right: 10px;
|
|
top: 10px;
|
|
}
|
|
.wanl-specs .panel .panel-heading:hover .remove {
|
|
display:block;
|
|
}
|
|
.wanl-specs .panel .wanl-specs-tag{
|
|
background-color: #f8f8f8;
|
|
position: relative;
|
|
padding: 6px 10px;
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
text-align: center;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
}
|
|
.wanl-specs .panel .wanl-specs-tag .remove {
|
|
top: -5px;
|
|
right: -5px;
|
|
}
|
|
.wanl-specs .panel .wanl-specs-tag:hover .remove{
|
|
display:block;
|
|
}
|
|
|
|
.wanl-specs .batch .input-group{
|
|
margin: 15px 0;
|
|
width: 66%;
|
|
}
|
|
.sp_result_area{
|
|
z-index: 10000;
|
|
}
|
|
.form-inline .form-control{
|
|
padding-right: 100px;
|
|
}
|
|
.input-sm{
|
|
padding: 5px 0;
|
|
text-align: center;
|
|
}
|
|
.sp_container {
|
|
margin-right: 3px;
|
|
}
|
|
.panel-intro > .panel-heading {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 9999;
|
|
}
|
|
.wanl-attribute {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
background: #f5f5f5;
|
|
border: 1px solid #ddd;
|
|
border-radius: 3px;
|
|
}
|
|
.wanl-attribute>div{
|
|
width: 50%;
|
|
}
|
|
/* 1.0.8升级 */
|
|
.wanl_sku_img{
|
|
margin-bottom: 0;
|
|
border: 1px solid #d2d6de;
|
|
}
|
|
.wanl_sku_img img{
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
.wanl_sku_img .skuUpload{
|
|
width: 28px;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
text-align: center;
|
|
}
|
|
.wanl_sku_img .skuUpload i{
|
|
color: #777;
|
|
}
|
|
</style>
|
|
<?php if(($row['brand'] == 0) OR ($row['shopsort'] == 0) OR ($row['freight'] == 0) OR empty($row['config']['sendPhoneNum']) OR empty($row['config']['returnPhoneNum'])): ?>
|
|
<div class="alert alert-danger-light">
|
|
<strong>暂不可发布商品:</strong>
|
|
<?php if(in_array(($row['brand']), explode(',',"0"))): ?><p> 系统中没有任何品牌,请到【总后台】> 多用户商城 > 商品管理 > 品牌管理添加。</p><?php endif; if(in_array(($row['shopsort']), explode(',',"0"))): ?><p> 尚未创建 “店铺分类”,请 <a class="btn-shopsort" href="#">点击创建</a>。</p><?php endif; if(in_array(($row['freight']), explode(',',"0"))): ?><p> 尚未创建 “运费模板”,请 <a class="btn-freight" href="#">点击创建</a>。</p><?php endif; if(empty($row['config']['sendPhoneNum']) || (($row['config']['sendPhoneNum'] instanceof \think\Collection || $row['config']['sendPhoneNum'] instanceof \think\Paginator ) && $row['config']['sendPhoneNum']->isEmpty())): ?><p> 尚未填写完整 “寄件人信息”,请 <a class="btn-send" href="#">点击填写</a> 寄件人信息。</p><?php endif; if(empty($row['config']['returnPhoneNum']) || (($row['config']['returnPhoneNum'] instanceof \think\Collection || $row['config']['returnPhoneNum'] instanceof \think\Paginator ) && $row['config']['returnPhoneNum']->isEmpty())): ?><p> 尚未填写完整 “退货信息”,请 <a class="btn-return" href="#">点击填写</a> 退货信息。</p><?php endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="panel panel-default panel-intro">
|
|
<div class="panel-heading">
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a href="#basics">基础信息</a></li>
|
|
<li><a href="#sale">销售信息</a></li>
|
|
<li><a href="#wanlinfo">图文描述</a></li>
|
|
<li><a href="#payment">支付信息</a></li>
|
|
<li><a href="#logistics">物流信息</a></li>
|
|
<li><a href="#service">售后信息</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div id="myTabContent" class="tab-content">
|
|
<div class="tab-pane fade active in" id="one">
|
|
<div class="widget-body no-padding" id="cxselect-example">
|
|
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
|
|
<div id="app" v-cloak>
|
|
<div class="row" id="basics">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">基础信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Title'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" placeholder="请输入宝贝标题">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Category_id'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="form-inline">
|
|
<select id="c-category_1" data-rule="required" v-model="categoryOne" class="form-control" @change="getCategory(1)">
|
|
<option :value="key" v-for="(item,key) in categoryList" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_2" data-rule="required" v-if="categoryOne != null && categoryList[categoryOne].childlist.length != 0" v-model="categoryTwo" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_3" data-rule="required" v-if="categoryTwo != null && categoryList[categoryOne].childlist[categoryTwo].childlist.length != 0" v-model="categoryThree" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist[categoryTwo].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_4" data-rule="required" v-if="categoryThree != null && categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist.length != 0" v-model="categoryFour" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_5" data-rule="required" v-if="categoryFour != null && categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist[categoryFour].childlist.length != 0" v-model="categoryFive" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist[categoryFour].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<input class="form-control" name="row[category_id]" type="hidden" :value="categoryId">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('宝贝品牌'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-brand_id" data-rule="required"
|
|
data-source="wanlshop/brand/selectpage"
|
|
class="form-control selectpage"
|
|
name="row[brand_id]"
|
|
type="text" placeholder="点击获取品牌列表">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" class="btn btn-danger btn-brand" ><?php echo __('申请品牌'); ?></button></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" v-if="attributeData.length != 0">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('类目属性'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="wanl-attribute">
|
|
<div class="form-group" v-for="(item,index) in attributeData" :key="index">
|
|
<label for="inputPassword" class="col-sm-3 control-label">{{item.name}}</label>
|
|
<div class="col-sm-9">
|
|
<select :id="'c-attribute_' + item.name" :name="'row[attribute]['+item.name+']'" data-rule="required" class="form-control">
|
|
<option :value="data.name" v-for="(data,key) in item.value" :key="key">{{data.name}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" id="sale">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">销售信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group wanl-specs">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('产品属性'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group add-option">
|
|
<input type="text" class="form-control" ref="specs-name" placeholder="多个产品属性以空格隔开">
|
|
<span class="input-group-addon pointer" @click="spuAdd">新增属性</span>
|
|
</div>
|
|
|
|
<div class="panel panel-default" v-for="(item, i) in spu" :key="i">
|
|
<header class="panel-heading">
|
|
<b>{{item}}</b>
|
|
<span class="remove" title="移除" @click="spuRemove(i)">×</span>
|
|
</header>
|
|
<div class="row">
|
|
<div class="col-md-5 col-sm-5 col-xs-5">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" :ref="'specs-name-' + i" placeholder="多规格以空格隔开">
|
|
<span class="input-group-addon pointer" @click="skuAdd(i)"><i class="fa fa-plus"></i></span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-7 col-sm-7 col-xs-7">
|
|
<div class="wanl-specs-tag" v-for="(v, j) in spuItem[i]" :key="j">
|
|
{{v}}<span class="remove" title="移除" @click="skuRemove(i, j)">×</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div v-for="itemm in sku">
|
|
<input type="hidden" name="row[sku][]" v-model="itemm" />
|
|
</div>
|
|
<input type="hidden" name="row[spu]" v-model="spu" />
|
|
<div v-for="items in spuItem">
|
|
<input type="hidden" name="row[spuItem][]" v-model="items" />
|
|
</div>
|
|
</div>
|
|
<div class="row" v-show="sku.length">
|
|
<div class="col-md-12">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr class="info text-info">
|
|
<th v-for="item in spu"> {{item}} </th>
|
|
<th width="40">图片</th>
|
|
<th width="80">原价</th>
|
|
<th width="80">现价</th>
|
|
<th width="80">库存</th>
|
|
<th width="80">重量(k)</th>
|
|
<th width="80">编码</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="(item, index) in sku" :key="index">
|
|
<td v-for="v in item">{{v}}</td>
|
|
<td>
|
|
<input type="hidden" name="row[thumbnail][]" v-model="skuImg[index]" v-if="skuImg[index]">
|
|
<input type="file" :id="'skuImg' + index" accept="image/*" @change="changeImage($event, index)" style="display:none" >
|
|
<label :for="'skuImg' + index" class="wanl_sku_img">
|
|
<img :src="cdnurl(skuImg[index])" v-if="skuImg[index]">
|
|
<div class="skuUpload" v-else>
|
|
<i class="fa fa-picture-o"></i>
|
|
</div>
|
|
</label>
|
|
</td>
|
|
<td> <input type="number" data-rule="required" name="row[market_price][]" class="input-sm form-control wanl-market_price"> </td>
|
|
<td> <input type="number" data-rule="required" name="row[price][]" class="input-sm form-control wanl-price"> </td>
|
|
<td> <input type="number" data-rule="required" name="row[stocks][]" class="input-sm form-control wanl-stock"></td>
|
|
<td> <input type="number" name="row[weigh][]" class="input-sm form-control wanl-weigh"></td>
|
|
<td> <input type="text" name="row[sn][]" class="input-sm form-control wanl-sn"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div @click="skuBatch()">
|
|
<span v-if="batch == 0">
|
|
是否要批量设置?
|
|
</span>
|
|
<span v-else>
|
|
取消批量设置?
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="batch" v-show="batch == 1">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">原价 ¥</div>
|
|
<input type="number" class="form-control" id="batch-market_price" placeholder="一键设置原价">
|
|
<div class="input-group-addon" onclick="batchSet('market_price')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">现价 ¥</div>
|
|
<input type="number" class="form-control" id="batch-price" placeholder="一键设置现价">
|
|
<div class="input-group-addon" onclick="batchSet('price')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">库存</div>
|
|
<input type="number" class="form-control" id="batch-stock" placeholder="一键设置库存">
|
|
<div class="input-group-addon" onclick="batchSet('stock')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">重量</div>
|
|
<input type="number" class="form-control" id="batch-weigh" placeholder="一键设置重量">
|
|
<div class="input-group-addon" onclick="batchSet('weigh')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">编码</div>
|
|
<input type="text" class="form-control" id="batch-sn" placeholder="一键设置编码">
|
|
<div class="input-group-addon" onclick="batchSet('sn')">批量设置</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" id="wanlinfo">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">图文描述</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" placeholder="请上传宝贝主图">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
|
|
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
|
|
</div>
|
|
<span class="msg-box n-right" for="c-image"></span>
|
|
</div>
|
|
<ul class="row list-inline plupload-preview" id="p-image"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Images'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" placeholder="请上传宝贝相册">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
|
|
<span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
|
|
</div>
|
|
<span class="msg-box n-right" for="c-images"></span>
|
|
</div>
|
|
<ul class="row list-inline plupload-preview" id="p-images"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-description" data-rule="required" class="form-control" name="row[description]" type="text" placeholder="请输入宝贝描述">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Content'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('店铺中分类'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-shop_category_id" data-rule="required"
|
|
data-source="wanlshop/shopsort"
|
|
data-params='{"isTree":1}'
|
|
data-multiple="true"
|
|
data-pagination="true"
|
|
data-page-size="1"
|
|
class="form-control selectpage"
|
|
name="row[shop_category_id]"
|
|
type="text"
|
|
placeholder="点击选择店铺分类">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" class="btn btn-danger btn-shopsort" ><?php echo __('新建分类'); ?></button></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="payment">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">支付信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Stock'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<select id="c-stock" data-rule="required" class="form-control selectpicker" name="row[stock]">
|
|
<?php if(is_array($stockList) || $stockList instanceof \think\Collection || $stockList instanceof \think\Paginator): if( count($stockList)==0 ) : echo "" ;else: foreach($stockList as $key=>$vo): ?>
|
|
<option value="<?php echo $key; ?>"><?php echo $vo; ?></option>
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="logistics">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">物流信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Freight_id'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-freight_id" data-rule="required" data-source="wanlshop/freight" class="form-control selectpage" name="row[freight_id]" type="text" placeholder="点击选择运费模板">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" class="btn btn-danger btn-freight" ><?php echo __('新建模板'); ?></button></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="service">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">售后信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="radio">
|
|
<?php if(is_array($statusList) || $statusList instanceof \think\Collection || $statusList instanceof \think\Paginator): if( count($statusList)==0 ) : echo "" ;else: foreach($statusList as $key=>$vo): ?>
|
|
<label for="row[status]-<?php echo $key; ?>"><input id="row[status]-<?php echo $key; ?>" name="row[status]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"normal"))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group layer-footer">
|
|
<div class="col-xs-12 col-sm-8">
|
|
<button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
|
|
<button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/assets/js/require.min.js" data-main="/assets/js/require-wanlshop.min.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
|
|
</body>
|
|
<?php else: ?>
|
|
<body class="inside-header inside-aside is-dialog">
|
|
<div id="main" role="main">
|
|
<div class="tab-content tab-addtabs">
|
|
<div id="content">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
<div class="content">
|
|
<style>
|
|
#cxselect-example .form-group {
|
|
margin: 10px 0;
|
|
}
|
|
[v-cloak] {display: none;}
|
|
.wanl-specs .add-option{
|
|
width: 250px;
|
|
margin-bottom: 17px;
|
|
}
|
|
.wanl-specs .add-option .input-group-addon{
|
|
color: #fff;
|
|
background-color: #2c3e50;
|
|
}
|
|
.wanl-specs .panel .row{
|
|
margin: 5px 0;
|
|
}
|
|
.wanl-specs .panel .remove {
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 2;
|
|
width: 18px;
|
|
height: 18px;
|
|
font-size: 14px;
|
|
line-height: 16px;
|
|
color: #fff;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
background: rgba(0,0,0,.3);
|
|
border-radius: 50%;
|
|
}
|
|
.wanl-specs .panel .panel-heading {
|
|
position: relative;
|
|
}
|
|
.wanl-specs .panel .panel-heading .remove {
|
|
right: 10px;
|
|
top: 10px;
|
|
}
|
|
.wanl-specs .panel .panel-heading:hover .remove {
|
|
display:block;
|
|
}
|
|
.wanl-specs .panel .wanl-specs-tag{
|
|
background-color: #f8f8f8;
|
|
position: relative;
|
|
padding: 6px 10px;
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
text-align: center;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
}
|
|
.wanl-specs .panel .wanl-specs-tag .remove {
|
|
top: -5px;
|
|
right: -5px;
|
|
}
|
|
.wanl-specs .panel .wanl-specs-tag:hover .remove{
|
|
display:block;
|
|
}
|
|
|
|
.wanl-specs .batch .input-group{
|
|
margin: 15px 0;
|
|
width: 66%;
|
|
}
|
|
.sp_result_area{
|
|
z-index: 10000;
|
|
}
|
|
.form-inline .form-control{
|
|
padding-right: 100px;
|
|
}
|
|
.input-sm{
|
|
padding: 5px 0;
|
|
text-align: center;
|
|
}
|
|
.sp_container {
|
|
margin-right: 3px;
|
|
}
|
|
.panel-intro > .panel-heading {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 9999;
|
|
}
|
|
.wanl-attribute {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
background: #f5f5f5;
|
|
border: 1px solid #ddd;
|
|
border-radius: 3px;
|
|
}
|
|
.wanl-attribute>div{
|
|
width: 50%;
|
|
}
|
|
/* 1.0.8升级 */
|
|
.wanl_sku_img{
|
|
margin-bottom: 0;
|
|
border: 1px solid #d2d6de;
|
|
}
|
|
.wanl_sku_img img{
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
.wanl_sku_img .skuUpload{
|
|
width: 28px;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
text-align: center;
|
|
}
|
|
.wanl_sku_img .skuUpload i{
|
|
color: #777;
|
|
}
|
|
</style>
|
|
<?php if(($row['brand'] == 0) OR ($row['shopsort'] == 0) OR ($row['freight'] == 0) OR empty($row['config']['sendPhoneNum']) OR empty($row['config']['returnPhoneNum'])): ?>
|
|
<div class="alert alert-danger-light">
|
|
<strong>暂不可发布商品:</strong>
|
|
<?php if(in_array(($row['brand']), explode(',',"0"))): ?><p> 系统中没有任何品牌,请到【总后台】> 多用户商城 > 商品管理 > 品牌管理添加。</p><?php endif; if(in_array(($row['shopsort']), explode(',',"0"))): ?><p> 尚未创建 “店铺分类”,请 <a class="btn-shopsort" href="#">点击创建</a>。</p><?php endif; if(in_array(($row['freight']), explode(',',"0"))): ?><p> 尚未创建 “运费模板”,请 <a class="btn-freight" href="#">点击创建</a>。</p><?php endif; if(empty($row['config']['sendPhoneNum']) || (($row['config']['sendPhoneNum'] instanceof \think\Collection || $row['config']['sendPhoneNum'] instanceof \think\Paginator ) && $row['config']['sendPhoneNum']->isEmpty())): ?><p> 尚未填写完整 “寄件人信息”,请 <a class="btn-send" href="#">点击填写</a> 寄件人信息。</p><?php endif; if(empty($row['config']['returnPhoneNum']) || (($row['config']['returnPhoneNum'] instanceof \think\Collection || $row['config']['returnPhoneNum'] instanceof \think\Paginator ) && $row['config']['returnPhoneNum']->isEmpty())): ?><p> 尚未填写完整 “退货信息”,请 <a class="btn-return" href="#">点击填写</a> 退货信息。</p><?php endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="panel panel-default panel-intro">
|
|
<div class="panel-heading">
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a href="#basics">基础信息</a></li>
|
|
<li><a href="#sale">销售信息</a></li>
|
|
<li><a href="#wanlinfo">图文描述</a></li>
|
|
<li><a href="#payment">支付信息</a></li>
|
|
<li><a href="#logistics">物流信息</a></li>
|
|
<li><a href="#service">售后信息</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div id="myTabContent" class="tab-content">
|
|
<div class="tab-pane fade active in" id="one">
|
|
<div class="widget-body no-padding" id="cxselect-example">
|
|
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
|
|
<div id="app" v-cloak>
|
|
<div class="row" id="basics">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">基础信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Title'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" placeholder="请输入宝贝标题">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Category_id'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="form-inline">
|
|
<select id="c-category_1" data-rule="required" v-model="categoryOne" class="form-control" @change="getCategory(1)">
|
|
<option :value="key" v-for="(item,key) in categoryList" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_2" data-rule="required" v-if="categoryOne != null && categoryList[categoryOne].childlist.length != 0" v-model="categoryTwo" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_3" data-rule="required" v-if="categoryTwo != null && categoryList[categoryOne].childlist[categoryTwo].childlist.length != 0" v-model="categoryThree" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist[categoryTwo].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_4" data-rule="required" v-if="categoryThree != null && categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist.length != 0" v-model="categoryFour" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<select id="c-category_5" data-rule="required" v-if="categoryFour != null && categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist[categoryFour].childlist.length != 0" v-model="categoryFive" class="form-control" @change="getCategory()">
|
|
<option :value="key" v-for="(item,key) in categoryList[categoryOne].childlist[categoryTwo].childlist[categoryThree].childlist[categoryFour].childlist" :key="item.id">{{item.name}}</option>
|
|
</select>
|
|
<input class="form-control" name="row[category_id]" type="hidden" :value="categoryId">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('宝贝品牌'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-brand_id" data-rule="required"
|
|
data-source="wanlshop/brand/selectpage"
|
|
class="form-control selectpage"
|
|
name="row[brand_id]"
|
|
type="text" placeholder="点击获取品牌列表">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" class="btn btn-danger btn-brand" ><?php echo __('申请品牌'); ?></button></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" v-if="attributeData.length != 0">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('类目属性'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="wanl-attribute">
|
|
<div class="form-group" v-for="(item,index) in attributeData" :key="index">
|
|
<label for="inputPassword" class="col-sm-3 control-label">{{item.name}}</label>
|
|
<div class="col-sm-9">
|
|
<select :id="'c-attribute_' + item.name" :name="'row[attribute]['+item.name+']'" data-rule="required" class="form-control">
|
|
<option :value="data.name" v-for="(data,key) in item.value" :key="key">{{data.name}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" id="sale">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">销售信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group wanl-specs">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('产品属性'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group add-option">
|
|
<input type="text" class="form-control" ref="specs-name" placeholder="多个产品属性以空格隔开">
|
|
<span class="input-group-addon pointer" @click="spuAdd">新增属性</span>
|
|
</div>
|
|
|
|
<div class="panel panel-default" v-for="(item, i) in spu" :key="i">
|
|
<header class="panel-heading">
|
|
<b>{{item}}</b>
|
|
<span class="remove" title="移除" @click="spuRemove(i)">×</span>
|
|
</header>
|
|
<div class="row">
|
|
<div class="col-md-5 col-sm-5 col-xs-5">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" :ref="'specs-name-' + i" placeholder="多规格以空格隔开">
|
|
<span class="input-group-addon pointer" @click="skuAdd(i)"><i class="fa fa-plus"></i></span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-7 col-sm-7 col-xs-7">
|
|
<div class="wanl-specs-tag" v-for="(v, j) in spuItem[i]" :key="j">
|
|
{{v}}<span class="remove" title="移除" @click="skuRemove(i, j)">×</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div v-for="itemm in sku">
|
|
<input type="hidden" name="row[sku][]" v-model="itemm" />
|
|
</div>
|
|
<input type="hidden" name="row[spu]" v-model="spu" />
|
|
<div v-for="items in spuItem">
|
|
<input type="hidden" name="row[spuItem][]" v-model="items" />
|
|
</div>
|
|
</div>
|
|
<div class="row" v-show="sku.length">
|
|
<div class="col-md-12">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr class="info text-info">
|
|
<th v-for="item in spu"> {{item}} </th>
|
|
<th width="40">图片</th>
|
|
<th width="80">原价</th>
|
|
<th width="80">现价</th>
|
|
<th width="80">库存</th>
|
|
<th width="80">重量(k)</th>
|
|
<th width="80">编码</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="(item, index) in sku" :key="index">
|
|
<td v-for="v in item">{{v}}</td>
|
|
<td>
|
|
<input type="hidden" name="row[thumbnail][]" v-model="skuImg[index]" v-if="skuImg[index]">
|
|
<input type="file" :id="'skuImg' + index" accept="image/*" @change="changeImage($event, index)" style="display:none" >
|
|
<label :for="'skuImg' + index" class="wanl_sku_img">
|
|
<img :src="cdnurl(skuImg[index])" v-if="skuImg[index]">
|
|
<div class="skuUpload" v-else>
|
|
<i class="fa fa-picture-o"></i>
|
|
</div>
|
|
</label>
|
|
</td>
|
|
<td> <input type="number" data-rule="required" name="row[market_price][]" class="input-sm form-control wanl-market_price"> </td>
|
|
<td> <input type="number" data-rule="required" name="row[price][]" class="input-sm form-control wanl-price"> </td>
|
|
<td> <input type="number" data-rule="required" name="row[stocks][]" class="input-sm form-control wanl-stock"></td>
|
|
<td> <input type="number" name="row[weigh][]" class="input-sm form-control wanl-weigh"></td>
|
|
<td> <input type="text" name="row[sn][]" class="input-sm form-control wanl-sn"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div @click="skuBatch()">
|
|
<span v-if="batch == 0">
|
|
是否要批量设置?
|
|
</span>
|
|
<span v-else>
|
|
取消批量设置?
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="batch" v-show="batch == 1">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">原价 ¥</div>
|
|
<input type="number" class="form-control" id="batch-market_price" placeholder="一键设置原价">
|
|
<div class="input-group-addon" onclick="batchSet('market_price')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">现价 ¥</div>
|
|
<input type="number" class="form-control" id="batch-price" placeholder="一键设置现价">
|
|
<div class="input-group-addon" onclick="batchSet('price')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">库存</div>
|
|
<input type="number" class="form-control" id="batch-stock" placeholder="一键设置库存">
|
|
<div class="input-group-addon" onclick="batchSet('stock')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">重量</div>
|
|
<input type="number" class="form-control" id="batch-weigh" placeholder="一键设置重量">
|
|
<div class="input-group-addon" onclick="batchSet('weigh')">批量设置</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-group-addon">编码</div>
|
|
<input type="text" class="form-control" id="batch-sn" placeholder="一键设置编码">
|
|
<div class="input-group-addon" onclick="batchSet('sn')">批量设置</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" id="wanlinfo">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">图文描述</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" placeholder="请上传宝贝主图">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
|
|
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
|
|
</div>
|
|
<span class="msg-box n-right" for="c-image"></span>
|
|
</div>
|
|
<ul class="row list-inline plupload-preview" id="p-image"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Images'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" placeholder="请上传宝贝相册">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
|
|
<span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
|
|
</div>
|
|
<span class="msg-box n-right" for="c-images"></span>
|
|
</div>
|
|
<ul class="row list-inline plupload-preview" id="p-images"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-description" data-rule="required" class="form-control" name="row[description]" type="text" placeholder="请输入宝贝描述">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Content'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('店铺中分类'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-shop_category_id" data-rule="required"
|
|
data-source="wanlshop/shopsort"
|
|
data-params='{"isTree":1}'
|
|
data-multiple="true"
|
|
data-pagination="true"
|
|
data-page-size="1"
|
|
class="form-control selectpage"
|
|
name="row[shop_category_id]"
|
|
type="text"
|
|
placeholder="点击选择店铺分类">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" class="btn btn-danger btn-shopsort" ><?php echo __('新建分类'); ?></button></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="payment">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">支付信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Stock'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<select id="c-stock" data-rule="required" class="form-control selectpicker" name="row[stock]">
|
|
<?php if(is_array($stockList) || $stockList instanceof \think\Collection || $stockList instanceof \think\Paginator): if( count($stockList)==0 ) : echo "" ;else: foreach($stockList as $key=>$vo): ?>
|
|
<option value="<?php echo $key; ?>"><?php echo $vo; ?></option>
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="logistics">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">物流信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Freight_id'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-freight_id" data-rule="required" data-source="wanlshop/freight" class="form-control selectpage" name="row[freight_id]" type="text" placeholder="点击选择运费模板">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" class="btn btn-danger btn-freight" ><?php echo __('新建模板'); ?></button></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="service">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">售后信息</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="radio">
|
|
<?php if(is_array($statusList) || $statusList instanceof \think\Collection || $statusList instanceof \think\Paginator): if( count($statusList)==0 ) : echo "" ;else: foreach($statusList as $key=>$vo): ?>
|
|
<label for="row[status]-<?php echo $key; ?>"><input id="row[status]-<?php echo $key; ?>" name="row[status]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"normal"))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group layer-footer">
|
|
<div class="col-xs-12 col-sm-8">
|
|
<button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
|
|
<button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/assets/js/require.min.js" data-main="/assets/js/require-wanlshop.min.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
|
|
</body>
|
|
<?php endif; ?>
|
|
|
|
</html>
|
|
|