@@ -0,0 +1,287 @@
|
||||
{php include pubTemplate("header")}
|
||||
<div class="container">
|
||||
<nav aria-label="breadcrumb" class="position-relative">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('shop')}">商店</a></li>
|
||||
|
||||
<li class="breadcrumb-item active" aria-current="page">{$strshop[title]}</li>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:94px;background-color:#FF9933" href="{tsUrl('shop','cart')}">购物车</a>
|
||||
<a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('shop','myorder')}">我的订单</a>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-8">
|
||||
|
||||
{if $strshop['tags']}
|
||||
<div class="mb-3 mt-3">
|
||||
{loop $strshop[tags] $key $strshop}
|
||||
<a class="badge badge-secondary fw300 mr-2" href="{tsUrl('shop','tag',array('id'=>$strshop['tagname']))}">{$strshop[tagname]}</a>
|
||||
{/loop}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{/if}
|
||||
|
||||
|
||||
<hr />
|
||||
<form action="{tsUrl('shop','buy')}" method="post">
|
||||
<div class="media mt-3 mb-3">
|
||||
<input name="ts" value="cheack" hidden></input>
|
||||
<input name="shopid" value="{$strshop[shopid]}" hidden></input>
|
||||
<div>
|
||||
<a href="/uploadfile/shop/{$strshop[photo]}"><img class="mw100" src="{if $strshop[photo] == ''}{SITE_URL}app/{$app}/skins/{$skin}/photo_album.png{else}{php echo tsXimg($strshop[photo],'shop',320,'320',$strshop[path],1)}{/if}"></img></a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div><h1 class="h3 pb-3 fw400">{$strshop[title]}</h1></div>
|
||||
<div class="h5"> 价格:{$strshop[pay]} {if $strshop[pay_type] == '1'}积分{/if}</div>
|
||||
<div class="h5"> 库存:{$strshop[stock]} </div>
|
||||
<div><a href="javascript:void('0');" onclick="jian('{$strshop[shopid]}')">-</a> <input id="number_{$strshop[shopid]}" style="width:50px;" name="much" value="1"> <a href="javascript:void('0');" onclick="jia('{$strshop[shopid]}')">+</a></div><br />
|
||||
{if $strshop[type]==1}<button class="btn btn-sm btn-info position-absolute" style="background-color:#999999" disabled="value">虚拟产品</button>{/if}
|
||||
|
||||
<br /><br />
|
||||
{if $strshop[stock]!=0}
|
||||
<button name="buy" value="1" class="btn btn-sm btn-info position-absolute" style="background-color:#F77F0D" type="submit">购买</button>
|
||||
{else}
|
||||
<button class="btn btn-sm btn-info position-absolute" style="background-color:#999999" disabled="value">库存不足</button>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
|
||||
|
||||
|
||||
<div>{php doAction('group_topic_footer')}</div>
|
||||
|
||||
|
||||
|
||||
<hr />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header">卖家信息</div>
|
||||
<div class="card-body">
|
||||
<div class="facebox">
|
||||
<div class="face">
|
||||
<a href="{tsUrl('user','space',array('id'=>$arrshopuser['userid']))}"><img class="rounded-circle" title="{$arrshopuser[username]}" alt="{$arrshopuser[username]}" src="{$arrshopuser[face]}" width="36" height="36"></a>
|
||||
</div>
|
||||
<div class="info">
|
||||
{$arrshopuser[username]}
|
||||
<div>
|
||||
<a class="fs12 text-info" href="{tsUrl('shop','shop',array('id'=>$arrshopuser['userid']))}"><i class="far fa-user-circle"></i>进入ta的店铺</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<ul class="other">
|
||||
<div class="mt-2 text-right">
|
||||
{if $arrshopuser[userid] != $TS_USER[userid]}
|
||||
{if $arrshopuser[isfollow]}
|
||||
<a class="btn btn-outline-secondary btn-sm" href="javascript:void('0');" onclick="unfollow('{$arrshopuser['userid']}','{$_SESSION['token']}');">取消关注</a>
|
||||
{else}
|
||||
<a class="btn btn-info btn-sm" href="javascript:void('0')" onclick="follow('{$arrshopuser['userid']}','{$_SESSION['token']}');">关注</a>
|
||||
{/if}
|
||||
<a href="{tsUrl('user','message',array(ts=>add,touserid=>$arrshopuser[userid]))}" rel="nofollow" class="btn btn-outline-secondary btn-sm">联系卖家</a>
|
||||
{/if}
|
||||
</div>
|
||||
</ul>
|
||||
<ul class="other"></ul>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-header">商品详细</div>
|
||||
{if $TS_USER[isadmin]==1 || $TS_USER['userid']==$strshop['userid']}
|
||||
<div class="float-right text-right">
|
||||
|
||||
<a class="btn btn-outline-secondary btn-sm" href="{tsUrl('shop','edit',array('shopid'=>$strshop[shopid]))}"><i class="far fa-edit"></i> 修改</a>
|
||||
<a onclick="return confirm('确定删除?')" class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=shop&ac=delete&shopid={$strshop[shopid]}&token={$_SESSION['token']}"><i class="far fa-trash-alt"></i> 删除</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="shop_show_content lh30 common-content">
|
||||
|
||||
<!---视频处理开始--->
|
||||
{if $TS_APP['isshopvideo']}
|
||||
|
||||
{if $arrVideo}
|
||||
<div class="shop_video pb-0">
|
||||
{loop $arrVideo $key $strshop}
|
||||
<div>
|
||||
{if $strshop['siteid']==1 || $strshop['siteid']==2 || $strshop['siteid']==3}
|
||||
<iframe frameborder="0" src="{$strshop['iframe']}" allowFullScreen="true"></iframe>
|
||||
{if $TS_USER['userid']==$strshop['userid'] || $TS_USER['isadmin']==1}
|
||||
<div class="text-right mb-2"><a class="btn btn-outline-info btn-sm" onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=shop&ac=delete&ts=video&shopid={$shopid}&videoid={$strshop['videoid']}">删除</a></div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/loop}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $TS_USER['userid']==$strshop['userid'] || $TS_USER['isadmin']==1}
|
||||
<div class="shop_video">
|
||||
<div class="text-center"><a class="btn btn-link" href="{tsUrl('video','upload',array('ts'=>'network','shopid'=>$shopid))}"> <i class="fas fa-plus-circle"></i> 插入视频</a></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{php
|
||||
doAction('gobad','content_top')
|
||||
}
|
||||
{$strshop[content]}
|
||||
|
||||
{$tpUrl}
|
||||
|
||||
<div class="fs12 c9">{php doAction('gobad','468')
|
||||
}</div>
|
||||
<div class="of mt-3">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{if $TS_USER[isadmin]==1 || $TS_USER['userid']==$strshop['userid']}
|
||||
<div class="float-right text-right">
|
||||
|
||||
<a class="btn btn-outline-secondary btn-sm" href="{tsUrl('shop','edit',array('shopid'=>$strshop[shopid]))}"><i class="far fa-edit"></i> 修改</a>
|
||||
<a onclick="return confirm('确定删除?')" class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=shop&ac=delete&shopid={$strshop[shopid]}&token={$_SESSION['token']}"><i class="far fa-trash-alt"></i> 删除</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header">买家评论</div>
|
||||
<div class="card-body">
|
||||
|
||||
{if $arrComment}
|
||||
<div class="comment">
|
||||
<ul>
|
||||
{loop $arrComment $key $strshop}
|
||||
<li class="clearfix">
|
||||
<div class="user-face">
|
||||
<a href="{tsUrl('user','space',array('id'=>$strshop[user][userid]))}"><img class="rounded-circle" title="{$strshop[user][username]}" alt="{$strshop[user][username]}" src="{$strshop[user][face]}" width="48" /></a>
|
||||
</div>
|
||||
<div class="reply-doc">
|
||||
<h4>
|
||||
|
||||
<a class="c9" href="{tsUrl('user','space',array('id'=>$strshop[userid]))}">{$strshop[user][username]}</a>
|
||||
</h4>
|
||||
<p>{$strshop[content]}</p>
|
||||
<h4>{php echo date('Y-m-d H:i:s',$strshop[addtime])}</h4>
|
||||
{if $TS_USER[userid] == $strshop[userid] ||
|
||||
$TS_USER['isadmin']==1}
|
||||
<div class="mb-2 text-right">
|
||||
<a class="fs12 text-secondary" href="{SITE_URL}index.php?app=shop&ac=comment&ts=delete&commentid={$strshop['commentid']}"><i class="far fa-trash-alt"></i> 删除</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</li> {/loop}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="page">{$pageUrl}</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<div>
|
||||
{if intval($TS_USER[userid])==0}
|
||||
<div class="pd20 tac">
|
||||
<a href="{tsUrl('user','login')}">登录</a> | <a href="{tsUrl('user','register')}">注册</a>
|
||||
</div>
|
||||
{else}
|
||||
<form method="POST" action="{SITE_URL}index.php?app=shop&ac=comment&ts=do">
|
||||
|
||||
|
||||
<div id="tseditor"></div>
|
||||
|
||||
<div style="display: none"><textarea name="content"></textarea></div>
|
||||
|
||||
|
||||
|
||||
<div class="mt-2 of">
|
||||
|
||||
|
||||
<div class="float-left">
|
||||
{if $TS_SITE['isauthcode']}
|
||||
验证码:<input name="authcode" />
|
||||
<img align="absmiddle" src="{tsUrl('pubs','code')}" onclick="javascript:newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="cursor:pointer;"/>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="float-right">
|
||||
<input type="hidden" name="shopid" value="{$strshop[shopid]}" />
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
|
||||
<button class="btn btn-sm btn-info" type="submit">评论</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{php doAction('tseditor','mini')}
|
||||
{php include pubTemplate("footer")}
|
||||
<script>
|
||||
|
||||
function jia(shopid){
|
||||
var sl=$('#number_'+shopid).val();
|
||||
if(sl)
|
||||
{
|
||||
sl=parseInt(sl)+1;
|
||||
$('#number_'+shopid).val(sl);
|
||||
}else
|
||||
{
|
||||
$('#number_'+shopid).val(0);
|
||||
}
|
||||
}
|
||||
|
||||
function jian(shopid){
|
||||
var sl=$('#number_'+shopid).val();
|
||||
if (sl>1){
|
||||
sl=parseInt(sl)-1;
|
||||
$('#number_'+shopid).val(sl);
|
||||
}else
|
||||
{
|
||||
$('#number_'+shopid).val(1);
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user