| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640 |
- @extends('layouts.base')
- @section('content')
- @section('title', trans('商品详情'))
- <script type="text/javascript">
- window.type = "{{$goods['type']}}";
- window.virtual = "{{$goods['virtual']}}";
- $(function () {
- $(':radio[name=type]').click(function () {
- window.type = $("input[name='type']:checked").val();
- window.virtual = $("#virtual").val();
- if (window.type == '1') {
- $('#dispatch_info').show();
- } else {
- $('#dispatch_info').hide();
- }
- if (window.type == '3') {
- if ($('#virtual').val() == '0') {
- $('.choosetemp').show();
- }
- }
- })
- $("input[name='back']").click(function () {
- location.href = "{!! yzWebUrl('plugin.Appointment.admin.goods.index') !!}";
- });
- })
- window.optionchanged = false;
- require(['bootstrap'], function () {
- $('#myTab a').click(function (e) {
- e.preventDefault();
- $(this).tab('show');
- })
- });
- require(['util'], function (u) {
- $('#cp').each(function () {
- u.clip(this, $(this).text());
- });
- })
- function formcheck() {
- window.type = $("input[name='goods[type]']:checked").val();
- window.virtual = $("#virtual").val();
- var reg = /(^[-+]?[1-9]\d*(\.\d{1,2})?$)|(^[-+]?[0]{1}(\.\d{1,2})?$)/; //金额字段验证,后两位小数
- var numerictype = /^(0|[1-9]\d*)$/; //整数验证
- var thumb = /\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/;
- var datetime = /(\d{2}|\d{4})(?:\-)?([0]{1}\d{1}|[1]{1}[0-2]{1})(?:\-)?([0-2]{1}\d{1}|[3]{1}[0-1]{1})(?:\s)?([0-1]{1}\d{1}|[2]{1}[0-3]{1})(?::)?([0-5]{1}\d{1})(?::)?([0-5]{1}\d{1})/;
- if ($(':input[name="goods[title]"]').val() == '') {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus("#goodsname", "请输入商品名称!");
- return false;
- }
- if ($(':input[name="goods[title]"]').val().length >= '40') {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus("#goodsname", "商品名称不能超过40个字符!");
- return false;
- }
- if ($(':input[name="category[parentid]"]').val() == 0) {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="category[parentid]"]', "请选择一级分类!");
- return false;
- }
- if ($(':input[name="category[childid]"]').val() == 0) {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="category[childid]"]', "请选择二级分类!");
- return false;
- }
- @if($shopset['cat_level'] == 3)
- if ($(':input[name="category[thirdid]"]').val() == 0) {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="category[thirdid]"]', "请选择三级分类!");
- return false;
- }
- @endif
- if ($(':input[name="goods[sku]"]').val() == '') {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="goods[sku]"]', "请输入商品单位!");
- return false;
- }
- @if (empty($id))
- if ($.trim($(':input[name="goods[thumb]"]').val()) == '') {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="goods[thumb]"]', '请上传缩略图.');
- return false;
- } else {
- if (!thumb.test($.trim($(':input[name="goods[thumb]"]').val()))) {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="goods[thumb]"]', '图片类型必须是.gif,jpeg,jpg,png中的一种.');
- return false;
- }
- }
- @endif
- // if ($.trim($(':input[name="goods[price]"]').val()) == '') {
- // $('#myTab a[href="#tab_basic"]').tab('show');
- // Tip.focus(':input[name="goods[price]"]', '请填写价格.');
- // return false;
- // } else {
- // if (!reg.test($(':input[name="goods[price]"]').val())) {
- // $('#myTab a[href="#tab_basic"]').tab('show');
- // Tip.focus(':input[name="goods[price]"]', '价格格式错误,最多两位小数.');
- // return false;
- // }
- // }
- // if ($.trim($(':input[name="goods[market_price]"]').val()) == '') {
- // $('#myTab a[href="#tab_basic"]').tab('show');
- // Tip.focus(':input[name="goods[market_price]"]', '请填写价格.');
- // return false;
- // } else {
- // if (!reg.test($(':input[name="goods[market_price]"]').val())) {
- // $('#myTab a[href="#tab_basic"]').tab('show');
- // Tip.focus(':input[name="goods[market_price]"]', '价格格式错误,最多两位小数.');
- // return false;
- // }
- // }
- // if ($.trim($(':input[name="goods[cost_price]"]').val()) == '') {
- // $('#myTab a[href="#tab_basic"]').tab('show');
- // Tip.focus(':input[name="goods[cost_price]"]', '请填写价格.');
- // return false;
- // } else {
- // if (!reg.test($(':input[name="goods[cost_price]"]').val())) {
- // $('#myTab a[href="#tab_basic"]').tab('show');
- // Tip.focus(':input[name="goods[cost_price]"]', '价格格式错误,最多两位小数.');
- // return false;
- // }
- // }
- if ($(':input[name="goods[stock]"]').val() == '') {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="goods[stock]"]', "请输入库存!");
- return false;
- } else {
- if (!numerictype.test($(':input[name="goods[stock]"]').val())) {
- $('#myTab a[href="#tab_basic"]').tab('show');
- Tip.focus(':input[name="goods[stock]"]', '库存格式错误,只能为非负整数.');
- return false;
- }
- }
- @section('widget_js')
- if (!numerictype.test($(':input[name="widgets[sale][max_point_deduct]"]').val()) && $(':input[name="widgets[sale][max_point_deduct]"]').val() != '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][max_point_deduct]"]', '最大积分抵扣格式错误,只能为非负整数或空.');
- return false;
- }
- if (!numerictype.test($(':input[name="widgets[sale][min_point_deduct]"]').val()) && $(':input[name="widgets[sale][min_point_deduct]"]').val() != '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][min_point_deduct]"]', '最少积分抵扣格式错误,只能为非负整数或空.');
- return false;
- }
- // if (!numerictype.test($(':input[name="widgets[sale][award_balance]"]').val()) || $(':input[name="widgets[sale][award_balance]"]').val() == '') {
- // $('#myTab a[href="#tab_sale"]').tab('show');
- // Tip.focus(':input[name="widgets[sale][award_balance]"]', '余额赠送格式错误,只能为非负整数或空.');
- // return false;
- // }
- /*if ($(':input[name="widgets[sale][max_point_deduct]"]').val() == '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][max_point_deduct]"]', "请输入积分抵扣!");
- return false;
- } else {
- if (!numerictype.test($(':input[name="widgets[sale][max_point_deduct]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][max_point_deduct]"]', '积分抵扣格式错误,只能为非负整数.');
- return false;
- }
- }*/
- /*if ($(':input[name="widgets[sale][max_balance_deduct]"]').val() == '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][max_balance_deduct]"]', "请输入余额抵扣!");
- return false;
- } else {
- if (!reg.test($(':input[name="widgets[sale][max_balance_deduct]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][max_balance_deduct]"]', '余额抵扣格式错误,最多两位小数.');
- return false;
- }
- }*/
- if ($(':input[name="widgets[sale][ed_full]"]').val() != '' && !reg.test($(':input[name="widgets[sale][ed_full]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][ed_full]"]', '满额立减金额格式错误,最多两位小数.');
- return false;
- }
- if ($(':input[name="widgets[sale][ed_reduction]"]').val() != '' && !reg.test($(':input[name="widgets[sale][ed_reduction]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][ed_reduction]"]', '满额立减金额格式错误,最多两位小数.');
- return false;
- }
- /*if ($(':input[name="widgets[sale][ed_num]"]').val() == '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][ed_num]"]', "请输入单品满件包邮!");
- return false;
- } else {
- if (!numerictype.test($(':input[name="widgets[sale][ed_num]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][ed_num]"]', '单品满件包邮格式错误,只能为非负整数.');
- return false;
- }
- }*/
- /*if ($(':input[name="widgets[sale][ed_money]"]').val() == '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][ed_money]"]', "请输入单品满额包邮!");
- return false;
- } else {
- if (!reg.test($(':input[name="widgets[sale][ed_money]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][ed_money]"]', '单品满额包邮格式错误,最多两位小数.');
- return false;
- }
- }*/
- /*if ($(':input[name="widgets[sale][point]"]').val() == '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][point]"]', "请输入赠送积分!");
- return false;
- } else {
- if (!numerictype.test($(':input[name="widgets[sale][point]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][point]"]', '赠送积分格式错误,只能为非负整数.');
- return false;
- }
- }*/
- /*if ($(':input[name="widgets[sale][bonus]"]').val() == '') {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][bonus]"]', "请输入红包金额!");
- return false;
- } else {
- if (!reg.test($(':input[name="widgets[sale][bonus]"]').val())) {
- $('#myTab a[href="#tab_sale"]').tab('show');
- Tip.focus(':input[name="widgets[sale][bonus]"]', '红包金额格式错误,最多两位小数.');
- return false;
- }
- }*/
- if ($.trim($(':input[name="widgets[share][share_thumb]"]').val()) != '' && !thumb.test($.trim($(':input[name="widgets[share][share_thumb]"]').val()))) {
- $('#myTab a[href="#tab_share"]').tab('show');
- Tip.focus(':input[name="widgets[share][share_thumb]"]', '图片类型必须是.gif,jpeg,jpg,png中的一种.');
- return false;
- }
- if ($(':input[name="widgets[privilege][once_buy_limit]"]').val() == '') {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][once_buy_limit]"]', "请输入每次限购数量!");
- return false;
- } else {
- if (!numerictype.test($(':input[name="widgets[privilege][once_buy_limit]"]').val())) {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][once_buy_limit]"]', '每次限购数量格式错误,只能为非负整数.');
- return false;
- }
- }
- if ($(':input[name="widgets[privilege][total_buy_limit]"]').val() == '') {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][total_buy_limit]"]', "请输入会员限购总数!");
- return false;
- } else {
- if (!numerictype.test($(':input[name="widgets[privilege][total_buy_limit]"]').val())) {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][total_buy_limit]"]', '会员限购总数格式错误,只能为非负整数.');
- return false;
- }
- }
- /*if ($(':input[name="widgets[privilege][time_begin_limit]"]').val() == '') {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][time_begin_limit]"]', "请输入限购起始时间!");
- return false;
- } else {
- if (!datetime.test($(':input[name="widgets[privilege][time_begin_limit]"]').val())) {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][time_begin_limit]"]', '限购起始时间格式错误,只能0000-00-00 00:00:00格式.');
- return false;
- }
- }*/
- /*if ($(':input[name="widgets[privilege][time_end_limit]"]').val() == '') {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][time_end_limit]"]', "请输入限购结束时间!");
- return false;
- } else {
- if (!datetime.test($(':input[name="widgets[privilege][time_end_limit]"]').val())) {
- $('#myTab a[href="#tab_privilege"]').tab('show');
- Tip.focus(':input[name="widgets[privilege][time_end_limit]"]', '限购结束时间格式错误,只能0000-00-00 00:00:00格式.');
- return false;
- }
- }*/
- if ($('.discounts_value').val()) {
- if (!reg.test($('.discounts_value').val())) {
- $('#myTab a[href="#tab_discount"]').tab('show');
- Tip.focus('.discounts_value', '折扣或固定金额数值格式错误,最多两位小数.');
- return false;
- }
- }
- // if ($(':input[name="widgets[single_return][return_rate]"]').val() == '') {
- // $('#myTab a[href="#tab_single_return"]').tab('show');
- // Tip.focus(':input[name="widgets[single_return][return_rate]"]', "请输返现比例!");
- // return false;
- // }
- @show
- if ($(':input[name="widgets[dispatch][dispatch_price]"]').val() == '') {
- $('#myTab a[href="#tab_dispatch"]').tab('show');
- Tip.focus(':input[name="widgets[dispatch][dispatch_price]"]', "请输入统一邮费金额!");
- return false;
- } else {
- if (!reg.test($(':input[name="widgets[dispatch][dispatch_price]"]').val())) {
- $('#myTab a[href="#tab_dispatch"]').tab('show');
- Tip.focus(':input[name="widgets[dispatch][dispatch_price]"]', '统一邮费金额数值格式错误,最多两位小数.');
- return false;
- }
- }
- if ($(':input[name="widgets[area_dividend][has_dividend]"]').get(0) != undefined && $(':input[name="widgets[area_dividend][has_dividend]"]').get(0).checked) {
- if ($(':input[name="widgets[area_dividend][has_dividend_price]"]').val() == '') {
- $('#myTab a[href="#tab_area_dividend"]').tab('show');
- Tip.focus(':input[name="widgets[area_dividend][has_dividend_price]"]', "独立分红金额!");
- return false;
- }
- }
- var full = true;
- if (window.type == '3') {
- if (window.virtual != '0') { //如果单规格,不能有规格
- if ($('#hasoption').get(0).checked) {
- $('#myTab a[href="#tab_option"]').tab('show');
- util.message('您的商品类型为:虚拟物品(卡密)的单规格形式,需要关闭商品规格!');
- return false;
- }
- }
- else {
- var has = false;
- $('.spec_item_virtual').each(function () {
- has = true;
- if ($(this).val() == '' || $(this).val() == '0') {
- $('#myTab a[href="#tab_option"]').tab('show');
- Tip.focus($(this).next(), '请选择虚拟物品模板!');
- full = false;
- return false;
- }
- });
- if (!has) {
- $('#myTab a[href="#tab_option"]').tab('show');
- util.message('您的商品类型为:虚拟物品(卡密)的多规格形式,请添加规格!');
- return false;
- }
- }
- }
- if (!full) {
- return false;
- }
- full = checkoption();
- if (!full) {
- return false;
- }
- if (optionchanged) {
- $('#myTab a[href="#tab_option"]').tab('show');
- alert('规格数据有变动,请重新点击 [刷新规格项目表] 按钮!');
- return false;
- }
- var discountway = $('input:radio[name=discountway]:checked').val();
- var discounttype = $('input:radio[name=discounttype]:checked').val();
- var returntype = $('input:radio[name=returntype]:checked').val();
- var marketprice = $('input:text[name=marketprice]').val();
- var isreturn = false;
- // Tip.focus("#goodsname", "请输入商品名称!");
- // return false;
- if (discountway == 1) {
- if (discounttype == 1) {
- $(".discounts").each(function () {
- if (parseFloat($(this).val()) <= 0 || parseFloat($(this).val()) >= 10) {
- $(this).val('');
- isreturn = true;
- alert('请输入正确折扣!');
- return false;
- }
- });
- } else {
- $(".discounts2").each(function () {
- if (parseFloat($(this).val()) <= 0 || parseFloat($(this).val()) >= 10) {
- $(this).val('');
- isreturn = true;
- alert('请输入正确折扣!');
- return false;
- }
- });
- }
- } else {
- if (discounttype == 1) {
- $(".discounts").each(function () {
- if (parseFloat($(this).val()) < 0 || parseFloat($(this).val()) >= parseFloat(marketprice)) {
- $(this).val('');
- isreturn = true;
- alert('请输入正确折扣金额!');
- return false;
- }
- });
- } else {
- $(".discounts2").each(function () {
- if (parseFloat($(this).val()) < 0 || parseFloat($(this).val()) >= parseFloat(marketprice)) {
- $(this).val('');
- isreturn = true;
- alert('请输入正确折扣金额!');
- return false;
- }
- });
- }
- }
- if (returntype == 1) {
- $(".returns").each(function () {
- if (parseFloat($(this).val()) < 0 || parseFloat($(this).val()) >= parseFloat(marketprice)) {
- $(this).val('');
- isreturn = true;
- alert('请输入正确返现金额!');
- return false;
- }
- });
- } else {
- $(".returns2").each(function () {
- if (parseFloat($(this).val()) < 0 || parseFloat($(this).val()) >= parseFloat(marketprice)) {
- $(this).val('');
- isreturn = true;
- alert('请输入正确返现金额!');
- return false;
- }
- });
- }
- if (isreturn) {
- return false;
- }
- return true;
- }
- function checkoption() {
- var full = true;
- if ($("#hasoption").get(0).checked) {
- $(".spec_title").each(function (i) {
- if ($(this).val() == '') {
- $('#myTab a[href="#tab_option"]').tab('show');
- Tip.focus(".spec_title:eq(" + i + ")", "请输入规格名称!", "top");
- full = false;
- return false;
- }
- });
- $(".spec_item_title").each(function (i) {
- if ($(this).val() == '') {
- $('#myTab a[href="#tab_option"]').tab('show');
- Tip.focus(".spec_item_title:eq(" + i + ")", "请输入规格项名称!", "top");
- full = false;
- return false;
- }
- });
- }
- if (!full) {
- return false;
- }
- return full;
- }
- </script>
- <script type="text/javascript">
- //鼠标划过显示商品链接二维码
- $('.umphp').hover(function () {
- var url = $(this).attr('data-url');
- var goodsid = $(this).attr('data-goodsid');
- $.post("{!! yzWebUrl('shop.goods') !!}"
- , {'op': 'goods_qrcode', id: goodsid, url: url}
- , function (qr) {
- if (qr.img) {
- var goodsqr = qr.img;
- var element = document.getElementById(goodsid);
- element.src = goodsqr;
- }
- }
- , "json"
- );
- $(this).addClass("selected");
- },
- function () {
- $(this).removeClass("selected");
- })
- function fastChange(id, type, value) {
- $.ajax({
- url: "{!! yzWebUrl('shop.goods') !!}",
- type: "post",
- data: {op: 'change', id: id, type: type, value: value},
- cache: false,
- success: function () {
- location.reload();
- }
- })
- }
- $(function () {
- $("form").keypress(function (e) {
- if (e.which == 13) {
- return false;
- }
- });
- $('.tdedit input').keydown(function (event) {
- if (event.keyCode == 13) {
- var group = $(this).closest('.input-group');
- var type = group.find('button').data('type');
- var goodsid = group.find('button').data('goodsid');
- var val = $.trim($(this).val());
- if (type == 'title' && val == '') {
- return;
- }
- group.prev().show().find('span').html(val);
- group.hide();
- fastChange(goodsid, type, val);
- }
- })
- $('.tdedit').mouseover(function () {
- $(this).find('.fa-pencil').show();
- }).mouseout(function () {
- $(this).find('.fa-pencil').hide();
- });
- $('.fa-edit-item').click(function () {
- var group = $(this).closest('span').hide().next();
- group.show().find('button').unbind('click').click(function () {
- var type = $(this).data('type');
- var goodsid = $(this).data('goodsid');
- var val = $.trim(group.find(':input').val());
- if (type == 'title' && val == '') {
- Tip.show(group.find(':input'), '请输入名称!');
- return;
- }
- group.prev().show().find('span').html(val);
- group.hide();
- fastChange(goodsid, type, val);
- });
- })
- })
- function setProperty(obj, id, type) {
- $(obj).html($(obj).html() + "...");
- $.post("{!! yzWebUrl('goods.goods.index') !!}"
- , {'op': 'setgoodsproperty', id: id, type: type, plugin: "", data: obj.getAttribute("data")}
- , function (d) {
- $(obj).html($(obj).html().replace("...", ""));
- if (type == 'type') {
- $(obj).html(d.data == '1' ? '实体物品' : '虚拟物品');
- }
- if (type == 'status') {
- $(obj).html(d.data == '1' ? '{{$lang['putaway']}}' : '{{$lang['soldout']}}');
- }
- $(obj).attr("data", d.data);
- if (d.result == 1) {
- $(obj).toggleClass("label-info text-pinfo");
- }
- }
- , "json"
- );
- }
- </script>
- <link rel="stylesheet" type="text/css" href="{{static_url('css/font-awesome.min.css')}}">
- <link href="{{static_url('yunshop/goods/goods.css')}}" media="all" rel="stylesheet" type="text/css"/>
- <div class="right-titpos">
- <ul class="add-snav">
- <li class="active"><a href="#">商品编辑</a></li>
- </ul>
- </div>
- {{--<div class="main rightlist">--}}
- <form id="goods-edit" action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
- <div class="panel-default panel-center">
- <!-- <div class="panel-heading">
- {if empty($goods['id'])}添加商品{else}编辑商品{/if}
- </div> -->
- <div class="top">
- <ul class="add-shopnav" id="myTab">
- <li class="active"><a href="#tab_basic">基本信息</a></li>
- <li><a href="#tab_des">{{$lang['shopdesc']}}</a></li>
- <li><a href="#tab_param">属性</a></li>
- <li><a href="#tab_option">{{$lang['shopoption']}}</a></li>
- <li><a href="#tab_store_appointment">预约</a></li>
- @section('goods_widget_title')
- @foreach(\app\common\modules\widget\Widget::current()->getItem('goods') as $key=>$value)
- <li><a href="#{{$key}}">{{$value['title']}}</a></li>
- @endforeach
- @show
- </ul>
- </div>
- <div class="info">
- <div class="panel-body">
- <div class="tab-content">
- <div class="tab-pane active" id="tab_basic">@include('Yunshop\Appointment::admin.goods.tabs.basic')</div>
- <div class="tab-pane" id="tab_des">@include('goods.des')</div>
- <div class="tab-pane" id="tab_param">@include('goods.tpl.param')</div>
- <div class="tab-pane" id="tab_option">@include('goods.tpl.option')</div>
- <div class="tab-pane" id="tab_store_appointment">{!! widget('Yunshop\Appointment\widgets\AppointmentGoodsWidget', ['goods_id'=> $goods->id])!!}</div>
- @section('goods_widget_view')
- @foreach(\app\common\modules\widget\Widget::current()->getItem('goods') as $key=>$value)
- <div class="tab-pane"
- id="{{$key}}">{!! widget($value['class'], ['goods_id'=> $goods->id])!!}</div>
- @endforeach
- @show
- </div>
- <div class="form-group col-sm-12 mrleft40 border-t">
- <input type="submit" name="submit" value="{{$lang['shopsubmit']}}" class="btn btn-success"
- onclick="return formcheck()"/>
- <input type="hidden" name="token" value="{{$var['token']}}"/>
- <input type="button" name="back" onclick='history.back()' style=''
- value="返回列表"
- class="btn btn-default back"/>
- </div>
- </div>
- </div>
- </div>
- </form>
- {{--</div>--}}
- @endsection('content')
|