Sanakey
2021-04-30 8724a444c8a1d09dc8f9efd005e8443aad8df1ab
pages/liveRoomGoods/liveRoomGoods.wxml
@@ -1,60 +1,24 @@
<view >
  <view class="container" >
    <van-checkbox-group value="{{ result }}" bind:change="onChange">
      <van-cell-group>
        <block wx:for="{{goodsList}}" wx:key="key">
          <van-card
            custom-class="van-card"
            thumb-mode="aspectFill"
            desc="{{item.MatCode}}"
            desc-class="desc-class"
            title="{{item.MatName}}"
            thumb="{{item.PhotoPath}}"
            bind:tap="goGoodsDetail"
            data-url="{{item.Url}}"
          >
            <view slot="price" class="price">
            {{item.CurrencySign}}{{item.Price}}
<view class="has-footer">
  <view wx:if="{{goodsList.length>0}}">
    <my-entry-cell wx:for="{{goodsList}}" wx:key="key" list-item="{{item}}"  is-go-details="{{false}}" title-width="600rpx" data-index="{{ index }}">
      <view class="right-view text-center flex-row space-around relative my-entry-cell-right">
        <view class="theme-font-color font-size-14 padding-lr-5" data-index="{{ index }}" data-goodsid="{{item.goodsId}}" data-on-sale="{{item.onSale?'0':'1'}}" bind:tap="updateGoods" >
          {{item.onSale?'下架':'上架'}}
            </view>
            <view slot="footer" catch:tap="catchClick">
              <van-cell
              border="{{false}}"
              custom-class="van-cell"
              title=" "
              clickable="{{!item.isAddedToRoom}}"
              title-class="title-class"
              data-name="{{item.MatCode}}"
              bind:click="checkboxToggle"
              data-index="{{index}}"
              >
                <van-checkbox disabled="{{item.isAddedToRoom}}" slot="right-icon" class="checkboxes-{{index}}" catch:tap="noop" name="{{item.GoodsId}}" />
              </van-cell>
        <view class="theme-font-color font-size-14 padding-lr-5" data-index="{{ index }}" data-goodsid="{{item.goodsId}}" bind:tap="deleteGoodsInRoom" >删除</view>
            </view>
          </van-card>
        </block>
      </van-cell-group>
    </van-checkbox-group>
    </my-entry-cell>
    <van-divider contentPosition="center">没有更多了</van-divider>
  </view>
  <view wx:if="{{goodsList.length<1}}" class="vertical-horizontal-center">
    <van-empty image="" description="当前直播间并未上架商品" />
  </view>
</view>
<view class="footer-btn">
      <van-button
      type="default"
      bind:click="cancle"
      custom-class="btn"
    >
    取消
    </van-button>
      <van-button
      type="info"
      disabled="{{result.length<1}}"
      bind:click="enter"
      custom-class="btn"
    >
    确定({{result.length}})
    </van-button>
<view class="fixed-footer fixed-footer-button text-center">
  <navigator class="padding" url="../liveRoomGoodsSelect/liveRoomGoodsSelect?from=myLive&roomid={{roomid}}">
    <van-button type="warning" class="theme-button btn-padding" block >添加直播商品</van-button>
  </navigator>
  </view>