<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <meta name="keywords" content="{$keywords}" />
    <meta name="description" content="{$description}" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no">
    <meta name="apple-mobile-web-app-title" content="{$site_name}" />
    <meta name="generator" content="openwbs {$version}" />
    <meta name="author" content="openwbs team" />
    <meta name="copyright" content="2019-2039 OpenWBS Inc." />
    <!--#include file="include.css.html"-->
    <script type="text/javascript" src="../js/touchslide.1.1.js"></script>
    <link rel="stylesheet" href="../css/om.shop.goods.detail.css?v={$version_sn}" />
</head>
<body>
<!--头部-->
<section class="mbody">
    <div class="om-goods-detail">
        <div class="preview">
            <div id="gallery" class="gallery">
                <div class="header"><ul></ul></div>
                <div class="section">
                    <ul name="photo_gallery" data-pswp-uid="1">{%=OW.echoImages("{$goods:images}","<li><figure><span><a href='{$url}'><img src='{$url}' alt='{$name}' title='{$name}' /></a></span></figure></li>")%}</ul>
                </div>
            </div>
            {if:OW.isNotNul("{$goods:video_url}")}
            <div class="video"><a href="javascript:;" id="video_url"><i></i>视频</a></div>
            {/if}
        </div>
        <a class="goback" href="javascript:OW.goBack();"><i></i></a>
        <div class="goods-property">
            {if:OW.int("{$goods:is_valid_seckill}")=1}
            <div class="activity-banner">
                <div class="activity-type"><i class="seckilling"></i><strong>限时秒杀</strong></div>
                <div class="activity-message"><span class="timetip" id="seckill_time" seckill_starttime="{$goods:seckill_starttime}" seckill_endtime="{$goods:seckill_endtime}"></span></div>
            </div>
            {elseif:OW.int("{$goods:is_groupbuy}")=1}
            <div class="activity-banner">
                <div class="activity-type"><i class="sprite-seckilling"></i><strong>精选拼团</strong></div>
                <div class="activity-message">{$goods:groupbuy_num}人成团</div>
            </div>
            {elseif:OW.int("{$goods:is_book}")=1}
            <div class="activity-banner">
                <div class="activity-type"><i class="sprite-seckilling"></i><strong>预订</strong></div>
                <div class="activity-message"></div>
            </div>
            {/if}
            <div class="price">
                <div class="section">
                    {if:OW.int("{$config(is_member_price_show)}")=1}
                    <a href="javascript:;" class="get-member-price" name="get_member_price" onClick="OW.shop.getMGPrices()">查看会员价</a>
                    {/if}
                    {if:OW.int("{$goods:point_set}")=1 and OW.int("{$goods:point_pay_amount}")>0}
                    <dl class="point"><dt>只需</dt><dd><b>{$goods:point_pay_amount}</b><em><%=OS.lang(200)%></em><i id="pointplus">+</i></dd></dl>
                    {/if}
                    <dl id="my_price" class="my-price" style="display:none;">
                        <dt>我的{if:OW.int("{$goods:is_groupbuy}")=1}拼团{/if}{if:OW.int("{$goods:is_valid_seckill}")=1}秒杀{/if}会员价</dt>
                        <dd><span class="money"><em>{$moneysb}</em><b name="my_price">{$goods:price}</b></span></dd>
                    </dl>
                    <dl id="goods_price">
                        <dt>{if:OW.int("{$goods:is_valid_seckill}")=1}秒杀价{elseif:OW.int("{$goods:is_groupbuy}")=1}拼团价{else}价格{/if}</dt>
                        <dd><span class="money"><em>{$moneysb}</em><b name="price">{$goods:price}</b></span></dd>
                    </dl>
                    {if:OW.parseMoney("{$goods:market_price}")>0}
                    <dl id="makprice" class="makprice">
                        <dt>原价</dt>
                        <dd><span class="money"><em>{$moneysb}</em><b name="market_price">{$goods:market_price}</b></span></dd>
                    </dl>
                    {/if}
                    <div class="member-price" name="member_group_prices" gid="{$goods:gid}" pid="{$goods:pid}"></div>
                    <div class="clear"></div>
                    
                </div>
            </div>
            <div class="book-money" name="book_price_section" is_book="{$goods:is_book}" book_front_money_rate="{$goods:book_front_money_rate}" book_price_discount="{$goods:book_price_discount}" style="display:none;">
                <div class="section">
                    {if:OW.parseMoney("{$goods:book_price_discount}")>0}
                    <dl class="book-discount" name="book_price_discount_box"><dt>预订立减<span class="dis-name">(优惠金额)</span></dt><dd><span class="money"><em>{$moneysb}</em><b name="book_price_discount">{$goods:book_price_discount}</b></span></dd></dl>
                    {/if}
                    {if:OW.parseMoney("{$goods:book_front_money_rate}")>0}
                    <dl class="book-front-money" name="book_front_money_box"><dt>预订只需支付预付款</dt><dd><span class="money"><em>{$moneysb}</em><b name="book_front_money"></b></span></dd></dl>
                    {/if}
                </div>
            </div>
            <div class="book-time" name="book_time_section" is_book="{$goods:is_book}" book_final_pay_day="{$goods:book_final_pay_day}" is_book_timelimit="{$goods:is_book_timelimit}" book_starttime="{$goods:book_starttime}" book_endtime="{$goods:book_endtime}" style="display:none;"></div>
            <div class="goods-name">
                <div class="colleft">
                    <h1 class="title">{$goods:title}</h1>
                    {if:OW.trim("{$goods:subtitle}")<>""}
                    <h2 class="subtitle">{$goods:subtitle}</h2>
                    {/if}
                </div>
                <div class="colright">
                    {if:OS.SHOP.isGoodsFavorited("{$goods:gid}")}
                    <a href="javascript:;" class="favorite favorited" onClick="OW.shop.addToFavorite({$goods:gid})"><i class="icon"></i><span>已关注</span></a>
                    {else}
                    <a href="javascript:;" class="favorite" onClick="OW.shop.addToFavorite({$goods:gid})"><i class="icon"></i><span>关注</span></a>
                    {/if}
                </div>
            </div>
            <div class="sales"><span>销量：</span><b><%=OW.int("{$goods:virtual_sales}")+OW.int("{$goods:sales}")%></b></div>
            <div class="goods-sn">商品编号：{$goods:goods_sn}</div>
            <div class="goods-product-sn">商品货号：<span id="goods_product_sn">{$goods:product_sn}</span></div>
            <div class="promotion" id="goods_promotion">
                <div class="dt">优惠</div>
                <div class="dd">
                    {if:OW.parseMoney("{$config(shopping_free_freight_amount)}")>0}
                    <div class="prom-item" name="prom_item"><em class="red-i">满免</em><em class="text">满<b>{$config(shopping_free_freight_amount)}元</b>免运费</em></div>
                    {/if}
                    {if:OW.int("{$goods:free_freight_unit}")>0}
                    <div class="prom-item" name="prom_item"><em class="red-i">满免</em><em class="text">满<b>{$goods:free_freight_unit}件</b>免运费</em></div>
                    {/if}
                    <div class="prom-item coupons" name="prom_item"><%=OS.SHOP.goodsCouponsListHtml("{$goods:gid}")%></div>
                </div>
            </div>
            <div class="spec">
                <div class="header">请选择您要购买的商品规格</div>
                <div class="spec-section" name="goods_spec" spec_id="{$goods:spec_id}" data='{$goods:spec_data}'></div>
                <div class="footer" name="selected_spec_display"><dl><dt>您已选择</dt><dd name="selected_spec_value"></dd></dl></div>
            </div>
            {if:OW.int("{$config(is_point_open)}")=1}
            {if:OW.int("{$goods:point_set}")=0}
            <div class="goods-point" id="ow_goods_get_point" point_get_type="{$goods:point_get_type}" shopping_point_rate="{$config(shopping_point_rate)}" point_get_amount="{$goods:point_get_amount}">购买此商品可获得<b name="point"></b>积分</div>
            {/if}
            {/if}
            <div class="om-amount">
                <div class="section">
                    <dl>
                        <dt>购买数量<span class="stock" name="stock">(剩余库存<b class="stock-amount" name="stock_amount">0</b>件)</span></dt>
                        <dd><a href="javascript:;" class="amount-do amount-decrease" name="amount_decrease">-</a><input type="number" class="text text-amount" min="1" name="amount_input" value="1"><a href="javascript:;" class="amount-do amount-increase" name="amount_increase">+</a></dd>
                    </dl>
                </div>
                <div class="stock-tip"><span name="stock_tip"></span></div>
            </div>
        </div>
        <!--正在拼团-->
        {if:OW.int("{$goods:is_groupbuy}")=1}
        <%=OS.SHOP.getGroupbuyingList(V("gid"))%>
        {/if}
        <!--优惠套装-->
        {if:OS.isValidGoodsMemberInTpl("{$goods:gid}")}
        <div id="suits" is_book="{$goods:is_book}"></div>
        {/if}
        <div id="details_section">
            <div class="om-goods-details-tab" id="tab_header">
                <ul class="tabbar" id="goods_tab">
                    <li name="tab" tab="1"><a href="javascript:;">商品详情</a></li>
                    {if:OW.int("{$config(is_goods_comments_show)}")=1}
                    <li name="tab" tab="2"><a href="javascript:;">评价<span id="goods_comment_count"></span></a></li>
                    {/if}
                    {if:OW.int("{$config(is_buy_record_show)}")=1}
                    <li name="tab" tab="3"><a href="javascript:;">成交记录<span id="buyrecord_count"></span></a></li>
                    {/if}
                    {if:OW.int("{$config(is_goods_consultation_show)}")=1}
                    <li name="tab" tab="4"><a href="javascript:;">咨询<span id="goods_consultation_count"></span></a></li>
                    {/if}
                </ul>
            </div>
            <div class="clear"></div>
            <div class="om-goods-details">
                <div id="goods_tab_content">
                    <div class="content-section-item" is_tab="true" tab="1">
                        {if:OW.int("{$goods:type_id}")>0}
                        <div class="om-goods-typeattr">{$goods:typeattr}</div>
                        {/if}
                        <div class="om-goods-content" name="photo_gallery" data-pswp-uid="2">{$goods:mob_content}</div>
                        <div class="om-goods-tags" id="tags">标签：
                        {tags gid="{$goods:gid}"}{tags:loop}<a href="[tags:link]" title="[tags:tag]" target="_blank">[tags:tag]</a>{/tags:loop}{/tags}
                        </div>
                    </div>
                    {if:OW.int("{$config(is_goods_comments_show)}")=1}
                    <div class="content-section-item" is_tab="true" tab="2">
                        <div class="om-goods-comment">
                            <div class="header">商品评价</div>
                            <div class="list-section" id="goods_comment_list"></div>
                            <div class="pager-section pager" id="goods_comment_pager"></div>
                        </div>
                    </div>
                    {/if}
                    {if:OW.int("{$config(is_buy_record_show)}")=1}
                    <div class="content-section-item" is_tab="true" tab="3">
                        <div class="om-buyrecord">
                            <div class="hd">最新成交记录</div>
                            <div class="buyrecord-list" id="buyrecord_list"></div>
                            <div class="pager" id="buyrecord_pager"></div>
                        </div>
                    </div>
                    {/if}
                    {if:OW.int("{$config(is_goods_consultation_show)}")=1}
                    <div class="content-section-item" is_tab="true" tab="4">
                        <div class="om-goods-consultation">
                            <div class="section post-section" id="consultation_post_form">
                                <div class="section">
                                    <dl><dt>咨询类型</dt><dd><label><input type="radio" name="consult_type" checked="checked" value="0">商品咨询</label><label><input type="radio" name="consult_type" value="1">库存及配送</label><label><input type="radio" name="consult_type" value="2">支付问题</label><label><input type="radio" name="consult_type" value="3">发票及保修</label><label><input type="radio" name="consult_type" value="4">促销及赠品 </label></dd></dl>
                                    <dl><dt>咨询内容<span name="t_consult_content" class="t-normal ml8"></span></dt><dd><textarea class="textarea" name="consult_content"></textarea></dd></dl>
                                    <dl><dt>我的称呼<span name="t_consult_author" class="t-normal ml8"></span></dt><dd><input type="text" class="text" name="consult_author" value=""></dd></dl>
                                    <dl><dt>验证码</dt><dd><input type="text" class="text verifycode-value" name="verifycode_value" placeholder="验证码" ><span class="verifycode" name="verifycode"></span></dd></dl>
                                </div>
                                <div class="footer"><button type="button" class="btn btn-primary" name="btn_consult_submit">提交咨询</button></div>
                            </div>
                            <div class="hd" id="consultation">问题咨询</div>
                            <div class="list-section" id="goods_consultation_list"></div>
                            <div class="pager-section pager" id="goods_consultation_pager"></div>
                        </div>
                    </div>
                    {/if}
                </div>
            </div>
            <div class="om-goods-related-content" id="om_related_content">
                <h2 class="header">相关内容</h2>
                <div class="section">
                    {content top="100" related_gid="{$goods:gid}"}
                    <ul>
                        {content:loop}
                        <li><a href="[content:link]">[content:title]</a></li>
                        {/content:loop}
                    </ul>
                    {/content}
                </div>
            </div>
            <div class="om-related-goods" id="om_related_goods">
                <h2 class="header">相关推荐</h2>
                <div class="section">
                    <ul class="om-goods-vertilist">
                        {goods top="30" related_gid="{$goods:gid}"}
                        {goods:loop}
                        <li>
                            <a href="[goods:link]">
                            <div class="thumb"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]" /></div>
                            <div class="info">
                                <h3 class="title">[goods:title]</h3>
                                <div class="subtitle">[goods:subtitle]</div>
                                <div class="price">{if:OW.int("[goods:point_set]")=1}<span class="point"><b>[goods:point_pay_amount]</b><em>积分</em><i>+</i></span>{/if}<span class="money"><em>{$moneysb}</em><b><%=OW.parsePrice("[goods:price]")%></b></span></div>
                            </div>
                            </a>
                        </li>
                        {/goods:loop}
                        {/goods}
                    </ul>
                </div>
            </div>
            <div class="om-latestview-goods" id="om_latestview_goods">
                <h2 class="header">您最近浏览过的</h2>
                <div class="section">
                    <ul class="om-goods-vertilist">
                    {goods top="7" latestview="true"}
                    {goods:loop}
                        {if:OW.int("[goods:gid]")<>OW.int("{$goods:gid}")}
                        <li>
                            <a href="[goods:link]">
                            <div class="thumb"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]" /></div>
                            <div class="info">
                                <h3 class="title">[goods:title]</h3>
                                <div class="subtitle">[goods:subtitle]</div>
                                <div class="price">{if:OW.int("[goods:point_set]")=1}<span class="point"><b>[goods:point_pay_amount]</b><em>积分</em><i>+</i></span>{/if}<span class="money"><em>{$moneysb}</em><b><%=OW.parsePrice("[goods:price]")%></b></span></div>
                            </div>
                            </a>
                        </li>
                        {/if}
                    {/goods:loop}
                    {/goods}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>

<div class="om-buy-section">
    <div class="action">
        <a href="{$site_url}" class="btn-home"><i></i><span>首页</span></a>
        {if:OW.cbool("{$goods:is_fenxiao_valid}")}
        <a href="javascript:;" class="btn-fenxiao" id="btn_fenxiao"><i></i><span>分销</span></a>
        {/if}
        <a href="{$shop_cart_url}" class="btn-mycart"><i><em name="cart_amount"></em></i><span>购物车</span></a>
        {if:OS.isValidGoodsMemberInTpl("{$goods:gid}")}
            {if:OW.int("{$goods:status}")=1}<button type="button" class="btn-buy disabled">商品已下架</button>{else}{if:OW.int("{$goods:is_book}")=1}<button type="button" class="btn-book" name="btn_book">立即预订</button>{else}{if:OW.int("{$goods:point_set}")=1}<button type="button" class="btn-exchange" name="btn_buy">立即兑换</button>{else}{if:OW.int("{$goods:is_groupbuy}")=1}<button type="button" class="btn-ungroupbuy" name="btn_buy"><span class="money"><em>{$moneysb}</em><b id="ungroupbuy_price"></b></span>单独购买</button><button type="button" class="btn-groupbuy" name="btn_groupbuy"><span class="money"><em>{$moneysb}</em><b id="groupbuy_price"></b></span>我要开团</button>{else}<button type="button" class="btn-tocart" name='{if:OW.int("{$config(is_goods_buy_cart_skip)}")=1}btn_buy_cart{else}btn_cart{/if}'>加入购物车</button><button type="button" class="btn-buy" name="btn_buy">立即购买</button>{/if}{/if}{/if}{/if}
        {else}
            <div class="om-cannot-buy"><span class="tip-text">温馨提示：很抱歉，您现在的会员级别不能购买此商品。</span></div>
        {/if}
    </div>
</div>
{if:OW.isNotNul("{$goods:video_url}")}
<div class="om-goods-video" id="video">
    <div class="video-inner" id="video_inner">
        <video src="{$goods:video_url}" controls="controls"></video>
    </div>
    <a class="close" id="video_close" href="javascript:;"><i></i></a>
</div>
{/if}
<div class="om-goods-fenxiao" style="display:none;">
    <a href="javascript::" class="close"></a>
    <dl class="qrcode-grid">
        <dt>商品分销二维码</dt>
        <dd><div class="qrcode" id="qrcode"></div></dd>
    </dl>
    <dl class="mytlink-grid">
        <dt>商品分销链接</dt>
        <dd><input type="text" class="myrlink" name="myrlink" readonly="readonly" value="" /></dd>
    </dl>
    <div class="tip">将以上二维码或链接分享到微信群和朋友圈，即可坐享佣金！</div>
</div>
{if:OW.int("{$config(is_goods_photoswipe)}")=1}
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="pswp__bg"></div>
    <div class="pswp__scroll-wrap">
        <div class="pswp__container"><div class="pswp__item"></div><div class="pswp__item"></div><div class="pswp__item"></div></div>
        <div class="pswp__ui pswp__ui--hidden">
            <div class="pswp__top-bar">
                <div class="pswp__counter"></div>
                <button class="pswp__button pswp__button--close" title="关闭"></button><button class="pswp__button pswp__button--fs" title="全屏"></button><button class="pswp__button pswp__button--zoom" title="放大/缩小"></button>
                <div class="pswp__preloader"><div class="pswp__preloader__icn"><div class="pswp__preloader__cut"><div class="pswp__preloader__donut"></div></div></div></div>
            </div>
            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"><div class="pswp__share-tooltip"></div> </div>
            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>
            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>
            <div class="pswp__caption"><div class="pswp__caption__center"></div></div>
        </div>
    </div>
</div>
{/if}
<!--底部-->
<!--#include file="include.footer.goods.html"-->
<script type="text/javascript" src="../js/goods.js"></script>
{if:OW.int("{$config(is_goods_photoswipe)}")=1}
<link rel="stylesheet prefetch" href="../css/photoswipe/photoswipe.all.css?v={$version_sn}" />
<script type="text/javascript" src="../js/photoswipe.min.js"></script>
<script type="text/javascript" src="../js/photoswipe-ui-default.min.js"></script>
<script type="text/javascript" src="../js/photoswipe.js"></script>
{/if}
<script type="text/javascript">
function changeGoodsImages(data){
	var i,data = OW.rep(data,"&quot;",'"'),
	jn         = OW.JSON.parse(data),
	$ul        = $("#gallery").find("ul");
	if(jn.length>0){
		OW.appendToString = "";
		for(i=0;i<jn.length;i++){
			{if:OW.int("{$config(is_goods_photoswipe)}")=1}
			OW.append('<li><figure><span><a href="'+ jn[i].url +'"><img src="'+ jn[i].url +'" alt="'+ jn[i].name +'" title="'+ jn[i].name +'" /></a></span></figure></li>');
			{else}
			OW.append('<li><figure><span><a href="javascript:;"><img src="'+ jn[i].url +'" alt="'+ jn[i].name +'" title="'+ jn[i].name +'" /></a></span></figure></li>');
			{/if}
		};
		$("#gallery").html('<div class="header"><ul></ul></div><div class="section"><ul name="photo_gallery" data-pswp-uid="1">'+OW.appendToString+'</ul></div>');
		if(jn.length>1){
			TouchSlide({
				slideCell:"#gallery",
				titCell:".header ul",
				mainCell:".section ul",
				effect:"leftLoop",
				autoPage:true,
				autoPlay:true,
				interTime:5000
			});
		};
	};
};
$(document).ready(function(){
	{if:OW.int("{$config(is_goods_photoswipe)}")=1}
	$(".om-goods-content").find("img").each(function(){
		$(this).wrap("<figure><span><a href='"+$(this).attr("src")+"'></a></span></figure>");
	});
	{/if}
	//商品图片组
	if(OW.int($("#gallery").find("img").length)>1){
		TouchSlide({
			slideCell:"#gallery",
			titCell:".header ul",
			mainCell:".section ul",
			effect:"leftLoop",
			autoPage:true,
			autoPlay:true,
			interTime:5000
		});
	};
	//商品初始化
	OW.shop.pointSet          = "{$goods:point_set}";
	OW.shop.pointPayAmount    = "{$goods:point_pay_amount}";
	OW.shop.isValidSeckill    = {$goods:is_valid_seckill};
	OW.shop.isSeckilling      = {$goods:is_seckilling};
	OW.shop.isGroupbuy        = {$goods:is_groupbuy};
	OW.shop.groupbuyUum       = "{$goods:groupbuy_num}";
	OW.shop.groupbuyValidtime = "{$goods:groupbuy_validtime}";
	OW.shop.goodsInit({
		priceSection:$("[name='price']"),
		marketPriceSection:$("[name='market_price']"),
		myPriceSection:$("#my_price"),
		bookPriceSection:$("div[name='book_price_section']"),
		bookTimeSection:$("div[name='book_time_section']"),
		amountInput:$("input[name='amount_input']"),
		amountDecrease:$("a[name='amount_decrease']"),
		amountIncrease:$("a[name='amount_increase']"),
		specSection:$("div[name='goods_spec']"),
		stockTipSection:$("span[name='stock_tip']"),
		btnBook:$("[name='btn_book']"),
		btnBuy:$("[name='btn_buy']"),
		btnGroupbuy:$("[name='btn_groupbuy']"),
		btnBuyCart:$("[name='btn_buy_cart']"),
		btnCart:$("[name='btn_cart']"),
		specImagesFun:function(imagesData){
			changeGoodsImages(imagesData);
			{if:OW.int("{$config(is_goods_photoswipe)}")=1}
			initPhotoSwipeFromDOM("[name='photo_gallery']");
			{/if}
		}
	});
	goodsPageInit();
	//图片放大
	{if:OW.int("{$config(is_goods_photoswipe)}")=1}
	initPhotoSwipeFromDOM("[name='photo_gallery']");
	{/if}
});
</script>
<script type="text/javascript" src="../js/qrcode.js"></script>
<script type="text/javascript">
$(window).ready(function(){
	var $btnFenxiao = $("#btn_fenxiao"),
	$fenxiaoFrid    = $(".om-goods-fenxiao"),
	fenxiaoURL      = OW.currentURL();
	var $qrcode = new QRCode(document.getElementById("qrcode"),{width:200,height:200});
	$qrcode.makeCode(fenxiaoURL);
	$fenxiaoFrid.find(".close").click(function(){$fenxiaoFrid.hide();});
	$fenxiaoFrid.find("input[name='myrlink']").focus(function(){$(this).select();}).val(fenxiaoURL);
	OW.valignCenter($fenxiaoFrid);
	$fenxiaoFrid.css("top",48+'px');
	$btnFenxiao.click(function(){$fenxiaoFrid.show();});
});
</script>
<% if OS.isWeixinShare then %>
<%=OS.getWXShareTicket%>
<script type="text/javascript">
wx.config({
   debug:false,appId:'<%=OS.wxShareAppid%>',timestamp:'<%=OS.wxShareTimestamp%>',nonceStr:'<%=OS.wxShareNonceStr%>',signature:'<%=OS.wxShareSignature%>',jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareQZone']
});
wx.ready(function(){
	var wxTitle = '{$title}',
	wxDesc      = '{$description}'
	wxLink      = OW.currentURL(),
	wxImgUrl    = '<%=OW.validImageUrl("{$goods:thumbnail}")%>';
	wx.onMenuShareTimeline({
		title:wxTitle,link:wxLink,imgUrl:wxImgUrl
	});
	wx.onMenuShareAppMessage({
		title:wxTitle,desc:wxDesc,link:wxLink,imgUrl:wxImgUrl
	});
	wx.onMenuShareQQ({
		title:wxTitle,desc:wxDesc,link:wxLink,imgUrl:wxImgUrl
	});
	wx.onMenuShareQZone({
		title:wxTitle,desc:wxDesc,link:wxLink,imgUrl:wxImgUrl
	});
});
</script>
<% end if %>
</body>
</html>
