<view><view class="flex padding bg-white"><image style="width:200rpx;height:200rpx;border-radius:10rpx;" src="{{dataCentre.goodsCover}}"></image><view class="flex flex-direction justify-between margin-left"><view class="text-black text-bold text-lg">{{dataCentre.goodsName}}</view><view class="flex"><block wx:for="{{dataCentre.goodsLabel1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{$root.g0>0}}"><view class="btn margin-right-xs">{{item}}</view></block></block></view><block wx:if="{{type==1}}"><view>{{"库存："+(dataCentre.inventory?dataCentre.inventory:0)}}</view></block><view class="text-lg text-red"><text class="text-sm">¥</text>{{dataCentre.goodsMoney}}</view></view></view><view class="padding bg-white"><text class="text-bold text-black text-lg">商品介绍</text><u-parse class="margin-top" vue-id="17369136-1" html="{{dataCentre.goodsDescribe}}" bind:__l="__l"></u-parse></view><view class="padding margin-top-sm bg-white"><view class="text-bold text-black text-lg">其他信息</view><view class="flex justify-between align-center margin-tb-sm"><view style="font-size:30rpx;color:#999999;">商品售价</view><view class="text-black">{{dataCentre.goodsMoney?dataCentre.goodsMoney:'暂无'}}</view></view><view class="flex justify-between align-center margin-tb-sm"><view style="font-size:30rpx;color:#999999;">打包费</view><view class="text-black">{{dataCentre.packMoney?dataCentre.packMoney:'0'}}</view></view><view class="flex justify-between align-center margin-tb-sm"><view style="font-size:30rpx;color:#999999;">标签</view><view class="text-black">{{dataCentre.goodsLabel?dataCentre.goodsLabel:'暂无'}}</view></view><view class="flex justify-between align-center margin-tb-sm"><view style="font-size:30rpx;color:#999999;">创建时间</view><view class="text-black">{{dataCentre.createTime}}</view></view></view><block wx:if="{{type==1}}"><view class="padding margin-top-sm bg-white"><view class="text-bold text-black text-lg">其他设置</view><view class="flex justify-between align-center margin-tb-sm"><view>商品状态</view><u-switch vue-id="17369136-2" active-color="#FFCC00" value="{{checked}}" data-event-opts="{{[['^change',[['change']]],['^input',[['__set_model',['','checked','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-switch></view><view class="flex justify-between align-center margin-tb-sm"><view>库存编辑</view><input style="text-align:right;" type="number" placeholder="请输入修改库存数" data-event-opts="{{[['input',[['__set_model',['','inventory','$event',[]]]]]]}}" value="{{inventory}}" bindinput="__e"/></view></view></block><block wx:if="{{type==1}}"><view data-event-opts="{{[['tap',[['save']]]]}}" class="addgood" bindtap="__e">保存</view></block><block wx:if="{{type==2}}"><view data-event-opts="{{[['tap',[['goAdd',['$0'],['dataCentre.goodsId']]]]]}}" class="addgood" bindtap="__e">修改商品</view></block><block wx:if="{{type==1}}"><view data-event-opts="{{[['tap',[['del']]]]}}" class="addgood" bindtap="__e">删除</view></block></view>