File:goods-offer.html
Method:query(table,*app,*connect)
default.para
对像不存在
xmls/goods.xmls
...ass="offerShop-txt">
<a href="{~goods-offer.html&crid=*GoodsId}?tplx=1">相似</a>
<a href="{~goods-offer.html&crid=*GoodsId}?tplx=2">同款</a>
</div>
</li>#];
@queryman=$query(manufactor,user);
@nowTime=$datetime.now();
@plist=@table.format(@format){
$if(@scataid==364){
@BrandName=$var[BrandName];
@str=$string(@BrandName);
$if(@str.length()>4){
@BrandName=@str.substring(1,4);
}
@Shopprice=议价;
@querypara=$query(para,goods);
@querypara[GoodsId]=$var[GoodsId];
@ParaMap=@querypara.map(['ParaId,ParaType'],['GoodsId={*GoodsId} and Status=1'],['ParaId asc']);
$if(@ParaMap==$null){
@ParaMap=$map();
$if($var[GoodsTypeId]==2){
@Shopprice=议价;
}
}
$else{
@queryitem=$query(item,goods);
@queryitem[GoodsId]=$var[GoodsId];
@queryitem[ParaId]=@ParaMap[ParaId];
@itemtRow=@queryitem.map(['isnull(min(Price),0) MinPrice,isnull(max(Price),0) MaxPrice'],['GoodsId={*GoodsId} and ParaId={*ParaId}...