1 |
- <view data-event-opts="{{[['tap',[['$emit',['toDetail','$0'],['itemInfo']]]]]}}" class="detail data-v-5cb20660" style="{{(isPadding)}}" bindtap="__e"><view class="content data-v-5cb20660"><image class="content-img data-v-5cb20660" src="{{itemInfo.goods.image}}" mode></image><block wx:if="{{!downOrGrounding}}"><view class="mask data-v-5cb20660"><view class="text-1 data-v-5cb20660">已下架</view></view></block><view class="content-right data-v-5cb20660"><view class="goods-title data-v-5cb20660"><block wx:if="{{itemInfo.goods.source==2}}"><view class="_label data-v-5cb20660">供应商</view></block><block wx:if="{{itemInfo.goods.source==1}}"><view class="_label data-v-5cb20660" style="background-color:#f83224;">自营</view></block><block wx:if="{{itemInfo.goods.source==0}}"><view class="_label data-v-5cb20660">团长</view></block><block wx:if="{{productAndCommodity=='product'}}"><view class="title data-v-5cb20660">{{''+itemInfo.name_cn+''}}</view></block><block wx:else><view class="title data-v-5cb20660">{{itemInfo.goods.name_cn}}</view></block></view><block wx:if="{{productAndCommodity}}"><view class="inventory data-v-5cb20660"><text class="data-v-5cb20660">库存:</text><text class="data-v-5cb20660">{{itemInfo.goods.stock}}</text></view></block><block wx:else><view class="inventory data-v-5cb20660"><text class="data-v-5cb20660">{{$root.g0+''}}</text></view></block><view class="price data-v-5cb20660"><view class="commodity-price data-v-5cb20660"><text style="font-size:20rpx;" class="data-v-5cb20660">¥</text><text class="data-v-5cb20660">{{$root.g1[0]}}</text>.<text style="font-size:20rpx;" class="data-v-5cb20660">{{$root.g2[1]}}</text></view><block wx:if="{{itemInfo.goods.price!=itemInfo.goods.discount_price}}"><view class="discount_price data-v-5cb20660">{{'¥'+itemInfo.goods.price}}</view></block></view></view></view><block wx:if="{{!batch&&productAndCommodity=='commodity'}}"><view class="btn-list data-v-5cb20660"><block wx:if="{{downOrGrounding}}"><button data-event-opts="{{[['tap',[['$emit',['openDiscountsPopup','$0'],['itemInfo']]]]]}}" class="btn-1 data-v-5cb20660" catchtap="__e">我要打折</button></block><block wx:if="{{downOrGrounding}}"><button data-event-opts="{{[['tap',[['$emit',['addAndRemove','$0','down'],['itemInfo']]]]]}}" class="btn-1 data-v-5cb20660" catchtap="__e">下架</button></block><block wx:if="{{!downOrGrounding}}"><button data-event-opts="{{[['tap',[['$emit',['deleteGoods','$0'],['itemInfo']]]]]}}" class="btn-1 data-v-5cb20660" catchtap="__e">删除</button></block><block wx:if="{{!downOrGrounding}}"><button data-event-opts="{{[['tap',[['$emit',['addAndRemove','$0','normal'],['itemInfo']]]]]}}" class="btn-1 data-v-5cb20660" catchtap="__e">上架</button></block></view></block></view>
|