File:cn/goods-details.htm
Method:query(*table,*app,*connect)
default.item
对像不存在
themes/theme/cn/xmls/goods.xmls
...[Pic];
}
}
@rowGoods[Pic]=@Pic;
//安全图片
@GHS=$string(@rowGoods[GHScode]);
@gimg=$string();
@GHSs=@GHS.split(\,);
@GHSs.foreach(){
@var=$var[value];
$if(@var){
@gimg.append(["<img src='../files/GHS/{@var}.jpg' class='Ghs'/>"]);
}
}
@queryGoods[GoodsId]=@rowGoods[GoodsId];
@queryGoods.setField($field(Click,Click+1,object));
@queryGoods.update();
@rowGoods[Gimg]=@gimg;
$shell.put(@rowGoods);
$return($empty);
}


//规格
$sub formatGoodsItem(format){
@UserId=$session[UserId];
@
queryItem=$query(item,goods);
@queryIte=$query(goods,goods);
@gocd=$argv(0,$null);
@queryItem[GoodsCode]=@gocd;
@tableItem=@queryItem.table(*,['{*GoodsCode =}'],['Grade desc,ItemId desc']);
@body=@tableItem.format(@format){
$if(@UserId){
@Goodsmprice();
}
$else{
@price=$var[Price];
}

@Price=$number.round(@price,2);
@Pricee=$number.round(@price,0);
$if(@Price==0.00){
@Price=询价;
}
}
$return(@body);
}

//询价
$ajax indexinquer(){
@call=$call(public.xmls);
@call.load();
@que...