112 lines
3.7 KiB
XML
112 lines
3.7 KiB
XML
<!-- index.wxml -->
|
|
<view class="page-body">
|
|
<block wx:if="{{!!userEntityGrantId}}">
|
|
<l-notice-bar
|
|
front-icon-name="notification"
|
|
show="{{true}}"
|
|
>
|
|
请通过分享或者截屏二维码方式分享权限
|
|
</l-notice-bar>
|
|
<view class="ueg-container">
|
|
<userEntityGrant-detail
|
|
oakId="{{userEntityGrantId}}"
|
|
oakAutoUnmount="{{true}}"
|
|
oakPath="$userRelation/upsert/byUserEntityGrant-userEntityGrant/detail"
|
|
/>
|
|
<view
|
|
class="share"
|
|
>
|
|
<l-button
|
|
size="medium"
|
|
type="success"
|
|
open-type="share"
|
|
>
|
|
分享
|
|
</l-button>
|
|
</view
|
|
</view>
|
|
</block>
|
|
<block wx:else>
|
|
<view class="list-item">
|
|
<view class="label">权限:</view>
|
|
<view class="value">
|
|
<l-radio-group
|
|
placement="row"
|
|
l-class="radio-container"
|
|
bind:linchange="setRelationMp"
|
|
current="{{userEntityGrant.relationId}}"
|
|
>
|
|
<l-radio
|
|
wx:for-items="{{relations}}"
|
|
wx:key="index"
|
|
key="{{item.id}}"
|
|
l-class="radio"
|
|
size="48rpx"
|
|
>
|
|
{{item.display || t(entity + ':r.' + item.name)}}
|
|
</l-radio>
|
|
</l-radio-group>
|
|
</view>
|
|
</view>
|
|
<view class="list-item">
|
|
<view class="label">人次:</view>
|
|
<view class="value">
|
|
<l-radio-group
|
|
placement="row"
|
|
l-class="radio-container"
|
|
bind:linchange="setNumberMp"
|
|
current="{{userEntityGrant.number}}"
|
|
>
|
|
<l-radio
|
|
wx:key="1"
|
|
key="1"
|
|
size="48rpx"
|
|
l-class="radio"
|
|
>
|
|
单人次
|
|
</l-radio>
|
|
<l-radio
|
|
wx:key="10000"
|
|
key="10000"
|
|
size="48rpx"
|
|
>
|
|
不限人次
|
|
</l-radio>
|
|
</l-radio-group>
|
|
</view>
|
|
</view>
|
|
<view class="list-item">
|
|
<view class="label">有效期:</view>
|
|
<view class="value-period">
|
|
<l-counter
|
|
count="{{userEntityGrant.period}}"
|
|
max="{{ maxes[unit] }}"
|
|
min="1"
|
|
round-float="{{true}}"
|
|
bind:linchange="setPeriodMp"
|
|
/>
|
|
<!-- <view style="margin-left: 30rpx">
|
|
分钟
|
|
</view> -->
|
|
<picker range="{{unitArr}}" range-key="label" value="{{unitIndex}}" bind:change="setUnitMp">
|
|
<view class="unit-box">
|
|
<view class="unit">
|
|
{{unitArr[unitIndex].label}}
|
|
</view>
|
|
|
|
<l-icon l-class="icon" name="down" size="18" />
|
|
</view>
|
|
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view style="flex: 1" />
|
|
<l-button
|
|
size="long"
|
|
type="default"
|
|
bind:lintap="confirm"
|
|
>
|
|
确定
|
|
</l-button>
|
|
</block>
|
|
</view> |