154 lines
7.5 KiB
Plaintext
154 lines
7.5 KiB
Plaintext
<view class="Permissions">
|
|
<view class="power_box">
|
|
<view class="member_power ul">
|
|
<view class="li">
|
|
<view class="span">会员等级浏览权限:</view>
|
|
<van-field readonly type="text" value="{{hyll_Model}}" placeholder="请选择" border="{{ false }}" data-index="1" catchtap="showPopup" />
|
|
<van-icon name="arrow" class="fa fa-angle-right" />
|
|
</view>
|
|
<view class="li">
|
|
<view class="span">会员等级购买权限:</view>
|
|
<van-field readonly type="text" value="{{hygm_Model}}" placeholder="请选择" border="{{ false }}" data-index="2" catchtap="showPopup" />
|
|
<van-icon name="arrow" class="fa fa-angle-right" />
|
|
</view>
|
|
<view class="li">
|
|
<view class="span">会员组浏览权限:</view>
|
|
<van-field readonly type="text" value="{{hyzll_Model}}" placeholder="请选择" border="{{ false }}" data-index="3" catchtap="showPopup" />
|
|
<van-icon name="arrow" class="fa fa-angle-right" />
|
|
</view>
|
|
<view class="li">
|
|
<view class="span">会员组购买权限:</view>
|
|
<van-field readonly type="text" value="{{hyzgm_Model}}" placeholder="请选择" border="{{ false }}" data-index="4" catchtap="showPopup" />
|
|
<van-icon name="arrow" class="fa fa-angle-right" />
|
|
</view>
|
|
</view>
|
|
<view class="number_power ul">
|
|
<view class="li">
|
|
<view class="span">每次限购数量:</view>
|
|
<van-field type="text" value="{{once_buy_limit}}" placeholder="请输入每次下单限购数量" border="{{ false }}" bind:blur="onChangenum" />
|
|
</view>
|
|
<view class="li">
|
|
<view class="span">会员限购总数:</view>
|
|
<van-field type="text" value="{{total_buy_limit}}" placeholder="请输入会员限购的总数" border="{{ false }}" bind:blur="onChangetoaut" />
|
|
</view>
|
|
<view class="li">
|
|
<view class="span">会员每天限购总数:</view>
|
|
<van-field type="text" value="{{day_buy_limit}}" placeholder="请输入会员每天限购数量" border="{{ false }}" bind:blur="onChangebuy" />
|
|
</view>
|
|
<view class="li">
|
|
<view class="span">会员每周期限购数量:</view>
|
|
<van-field type="text" value="{{week_buy_limit}}" placeholder="请输入会员每周期限购数量" border="{{ false }}" bind:blur="onChangeweek" />
|
|
</view>
|
|
<view class="li">
|
|
<view class="span">会员每月限购数量:</view>
|
|
<van-field type="text" value="{{month_buy_limit}}" placeholder="请输入会员每月限购数" border="{{ false }}" bind:blur="onChangemonth" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 弹窗 -->
|
|
<van-popup show="{{show1}}" position="bottom" bind:click-overlay="isCoverLayer">
|
|
<view class="select_box">
|
|
<view class="title">
|
|
<view class="h2">会员等级浏览权限</view>
|
|
<icon class="iconfont icon-guanbi" catchtap="showPopup"></icon>
|
|
</view>
|
|
<view class="list">
|
|
<van-cell-group>
|
|
<van-cell title="全选" clickable bind:click="toggle">
|
|
<van-checkbox value="{{ show_levels_CheckedAll }}" checked-color="#f15353" shape="round" wx:if="{{levelsList.length}}" bind:change="checkAll" />
|
|
</van-cell>
|
|
</van-cell-group>
|
|
<van-checkbox-group value="{{ show_levels }}" bind:change="change">
|
|
<van-checkbox wx:for="{{ levelsList }}" checked-color="#f15353" wx:key="index" name="{{ item.level_name }}">
|
|
<view style="height: 50px;line-height: 50px;">{{item.level_name}}</view>
|
|
</van-checkbox>
|
|
</van-checkbox-group>
|
|
<view class="h2" wx:if="{{!levelsList.length}}" style="text-align:center;margin:15px 0">
|
|
暂无数据
|
|
</view>
|
|
</view>
|
|
<view class="select_btn" catchtap="showPopup">
|
|
<button type="button">完成</button>
|
|
</view>
|
|
</view>
|
|
<!-- </yd-popup> -->
|
|
</van-popup>
|
|
<van-popup show="{{show2}}" position="bottom" bind:click-overlay="isCoverLayer">
|
|
<view class="select_box">
|
|
<view class="title">
|
|
<view class="h2">会员等级购买权限</view>
|
|
<icon class="iconfont icon-guanbi" catchtap="showPopup"></icon>
|
|
</view>
|
|
<view class="list">
|
|
<van-cell-group>
|
|
<van-cell title="全选" clickable bind:click="toggle">
|
|
<van-checkbox value="{{ buy_levels_CheckedAll }}" checked-color="#f15353" shape="round" wx:if="{{levelsList.length}}" bind:change="checkAllBuyLevels" />
|
|
</van-cell>
|
|
</van-cell-group>
|
|
<van-checkbox-group value="{{ buy_levels }}" bind:change="listCheckAllChange">
|
|
<van-checkbox wx:for="{{ levelsList }}" checked-color="#f15353" wx:key="index" name="{{ item.level_name }}">
|
|
<view style="height: 50px;line-height: 50px;">{{item.level_name}}</view>
|
|
</van-checkbox>
|
|
</van-checkbox-group>
|
|
<view class="h2" wx:if="{{!levelsList.length}}" style="text-align:center;margin:15px 0">
|
|
暂无数据
|
|
</view>
|
|
</view>
|
|
<view class="select_btn" catchtap="showPopup">
|
|
<button type="button">完成</button>
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
<van-popup show="{{show3}}" position="bottom" bind:click-overlay="isCoverLayer">
|
|
<view class="select_box">
|
|
<view class="title">
|
|
<view class="h2">会员组浏览权限</view>
|
|
<icon class="iconfont icon-guanbi" catchtap="showPopup"></icon>
|
|
</view>
|
|
<view class="list">
|
|
<van-cell-group>
|
|
<van-cell title="全选" clickable bind:click="toggle">
|
|
<van-checkbox value="{{ show_groups_CheckedAll }}" checked-color="#f15353" shape="round" wx:if="{{groupsList.length}}" bind:change="checkAllShowGroups" />
|
|
</van-cell>
|
|
</van-cell-group>
|
|
<van-checkbox-group value="{{ show_groups }}" wx:if="{{show_levels}}" bind:change="showGroupsChange">
|
|
<van-checkbox wx:for="{{ groupsList }}" checked-color="#f15353" wx:key="index" name="{{ item.group_name }}">
|
|
<view style="height: 50px;line-height: 50px;">{{item.group_name}}</view>
|
|
</van-checkbox>
|
|
</van-checkbox-group>
|
|
<view class="h2" wx:if="{{!groupsList.length}}" style="text-align:center;margin:15px 0">
|
|
暂无数据
|
|
</view>
|
|
</view>
|
|
<view class="select_btn" catchtap="showPopup">
|
|
<button type="button">完成</button>
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
<van-popup show="{{show4}}" position="bottom" bind:click-overlay="isCoverLayer">
|
|
<view class="select_box">
|
|
<view class="title">
|
|
<view class="h2">会员组购买权限</view>
|
|
<icon class="iconfont icon-guanbi" catchtap="showPopup"></icon>
|
|
</view>
|
|
<view class="list">
|
|
<van-cell-group>
|
|
<van-cell title="全选" clickable bind:click="toggle">
|
|
<van-checkbox value="{{ buy_groups_CheckedAll }}" checked-color="#f15353" shape="round" wx:if="{{groupsList.length}}" bind:change="checkAllBuyGroups" />
|
|
</van-cell>
|
|
</van-cell-group>
|
|
<van-checkbox-group value="{{ buy_groups }}" bind:change="buyGroupsChange">
|
|
<van-checkbox wx:for="{{ groupsList }}" checked-color="#f15353" wx:key="index" name="{{ item.group_name }}">
|
|
<view style="height: 50px;line-height: 50px;">{{item.group_name}}</view>
|
|
</van-checkbox>
|
|
</van-checkbox-group>
|
|
<view class="h2" wx:if="{{!groupsList.length}}" style="text-align:center;margin:15px 0">
|
|
暂无数据
|
|
</view>
|
|
</view>
|
|
<view class="select_btn" catchtap="showPopup">
|
|
<button type="button">完成</button>
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
</view> |