Commit 3f732f13 by 谢中龙

优化商品详情缓存信息

parent c895812f
...@@ -191,6 +191,8 @@ wxService.page({ ...@@ -191,6 +191,8 @@ wxService.page({
if(data){ if(data){
this.data.productInfo.stock = data.stock; this.data.productInfo.stock = data.stock;
this.data.productInfo.productSku = data.productSku; this.data.productInfo.productSku = data.productSku;
this.data.productInfo.productStatus = data.productStatus;
this.data.productInfo.productStatusDesc = data.productStatus == 1 ? '已下架' : (data.productStatus == 2 ? '已上架' : '已删除');
if (data.descHtml){ if (data.descHtml){
this.data.productInfo.descHtml = data.descHtml; this.data.productInfo.descHtml = data.descHtml;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment