商品详情
商品详情页逻辑 |
销售状态(approve_status)
商品详情
展示only_show(仅展示)
price/图片
不可销售instock(暂不销售)
可线下销售offline_sale(已下架)
在售onsale
多规格
活动
秒杀(seckill)
价格act_price
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
拼团(group)
价格act_price
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
限时销售(limited_time_sale)
价格act_price
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
无活动
普通商品(normal)
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
非会员
<view wx:else class="goodsdetail-content-now {{current.vipgrade_guide_title?'color-000':''}}">
<text>{{cursymbol}}</text>{{current.price/100}}
</view>
会员
<view wx:if="{{current.member_price&&!current.is_vip_grade}}" class="goodsdetail-content-now {{current.vipgrade_guide_title?'color-000':''}}">
<text>{{cursymbol}}</text>{{current.member_price/100}}
</view>
付费会员
普通会员
单规格
活动
秒杀(seckill)
价格act_price
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
拼团(group)
价格act_price
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
限时销售(limited_time_sale)
价格act_price
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
普通商品(normal)
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
非会员
<view wx:else class="goodsdetail-content-now {{current.vipgrade_guide_title?'color-000':''}}">
<text>{{cursymbol}}</text>{{current.price/100}}
</view>
会员
<view wx:if="{{current.member_price&&!current.is_vip_grade}}" class="goodsdetail-content-now {{current.vipgrade_guide_title?'color-000':''}}">
<text>{{cursymbol}}</text>{{current.member_price/100}}
</view>
付费会员
普通会员
无活动
普通商品(normal)
原价(market_price)
<view wx:if="{{current.approve_status !== 'only_show' && current.market_price}}" class="goodsdetail-content-old">
原价:<text>{{cursymbol}}{{current.market_price/100}}</text>
</view>
非会员
<view wx:else class="goodsdetail-content-now {{current.vipgrade_guide_title?'color-000':''}}">
<text>{{cursymbol}}</text>{{current.price/100}}
</view>
会员
<view wx:if="{{current.member_price&&!current.is_vip_grade}}" class="goodsdetail-content-now {{current.vipgrade_guide_title?'color-000':''}}">
<text>{{cursymbol}}</text>{{current.member_price/100}}
</view>
付费会员
普通会员