Sanakey
2021-06-05 61abc9b654f78019a974c68916eb5718bc1c2992
components/store-edit/index.wxml
@@ -1,53 +1,37 @@
<view>
  <view class="text-center padding border-bottom">选择营销人员</view>
  <view class="text-center padding border-bottom">选择门店(选填)</view>
<!--  <van-radio-group value="{{ radio }}" bind:change="onChange">-->
<!--    <van-cell-group>-->
<!--      <van-cell title="单选框 1" clickable data-name="1" bind:click="onClick">-->
<!--        <van-radio slot="right-icon" name="1" />-->
<!--      </van-cell>-->
<!--      <van-cell title="单选框 2" clickable data-name="2" bind:click="onClick">-->
<!--        <van-radio slot="right-icon" name="2" />-->
<!--      </van-cell>-->
<!--    </van-cell-group>-->
<!--  </van-radio-group>-->
  <van-radio-group value="{{ selectedSeller }}" bind:change="selectSeller">
    <van-cell-group>
      <van-cell
          wx:for="{{ selectedSellerList }}"
          wx:key="index"
          value-class="value-class"
          clickable
          center
          data-name="{{ item.sellerId }}"
          data-index="{{ index }}"
          bind:click="onSelect"
          use-label-slot
          title-width="450rpx"
      >
        <view class="flex-row space-around">
          <text>设为默认</text>
          <van-radio
              bind:tap="toggle2"
              class="checkboxes"
              name="{{ item.sellerId }}"
          />
  <van-cell-group>
    <van-cell
        wx:for="{{ selectedStoreList }}"
        wx:key="index"
        value-class="value-class"
        clickable
        center
        data-name="{{ item.docCode }}"
        data-index="{{ index }}"
        use-label-slot
        title-width="550rpx"
    >
      <view slot="icon" class="margin-right-5 flex-row flex-center">
        <van-image fit="cover" width="110rpx" height="110rpx" class="img" radius="12rpx" src="{{item.imagesUrl[0].url}}"></van-image>
      </view>
      <view slot="title">
        <view class="font-size-16 font-bold">{{ item.address }}</view>
        <view class="desc">
          <text class="iconfont icon-weizhi"></text>
          <text class="desc">{{item.addressName}}</text>
        </view>
        <view slot="title">
          <view>{{ item.sellerName }}</view>
          <view class="desc">{{item.telephone}}</view>
        </view>
      </van-cell>
    </van-cell-group>
  </van-radio-group>
      </view>
    </van-cell>
  </van-cell-group>
  <van-cell-group class="my-cell-group">
    <van-cell class="my-cell" bind:tap="addSeller" border="{{false}}" >
      <view slot="title"  class="theme-font-color {{sellerList.length>4?'disabled-color':''}}">
    <van-cell class="my-cell" bind:tap="addStore" title-width="160rpx" border="{{false}}" >
      <view slot="title"  class="theme-font-color">
        <van-icon name="plus" /> 选择
      </view>
      <view class="font-size-12">非认证会员最多选择5人,认证会员不限制</view>
      <view class="font-size-12">非认证会员只能添加1个门店,认证会员不限制</view>
    </van-cell>
  </van-cell-group>
</view>