<nav type="back" background-color="#46a9a4" title="商品管理" />
<view class="page-section">
  <view class="add-customer" bind:tap="addRoom">
    <van-icon class="add-icon" name="https://file-cloud.fmode.cn/sHNeVwSaAg/20220418/qn1d5i021341.png?imageView2/1/w/200/h/200" color="#3d88ff" />
    <text class="text" style="color:#3d88ff;" data-url="/nova-tourism/pages/my/merchant/good/good-edit/index" bindtap="tourl">添加商品</text>
  </view>
</view>

<block wx:for="{{goodList}}" wx:key="index">
  <view class="good">
    <image class="image" src="{{item.image||'https://file-cloud.fmode.cn/EbxZUK5lBI/20250321/vdq1j1110711455.jpg'}}" mode="widthFix" />
    <view class="info">
      <view class="up">
        <view class="name">{{item.name||''}}</view>
        <view class="tag">
          <text wx:for="{{item.specMap.specList}}" wx:for-item="spec" wx:key="spec">{{spec}}</text>
        </view>
      </view>
      <view class="down">
        <view class="price">￥<text>{{item.price||0}}</text></view>
        <view class="btn"><button data-url="/nova-tourism/pages/my/merchant/good/good-edit/index?gid={{item.objectId}}" bindtap="tourl">编 辑 详 情</button></view>
      </view>
    </view>
  </view>
</block>
<view style="height: 50rpx;"></view>