81 lines
3.0 KiB
Plaintext
81 lines
3.0 KiB
Plaintext
<!--packageI/personRed/personRedIssue/personRedIssue.wxml-->
|
|
<view class="grant-form">
|
|
<view class="gift-type" bindtap="showSheet">
|
|
<text wx:if="{{form.redpack_type == 1}}">拼手气红包</text>
|
|
<text wx:if="{{form.redpack_type == 0}}">固定金额红包</text>
|
|
<van-icon name="arrow-down" />
|
|
</view>
|
|
<view class="input-item">
|
|
<van-field value="{{form.number}}" type="number" label="红包个数" border="{{ false }}" placeholder="请输入红包个数" input-align="right" bind:change="inpNumber" data-params="number">
|
|
<view slot="button" class="input-right-text">个</view>
|
|
</van-field>
|
|
</view>
|
|
<view class="input-item">
|
|
<van-field
|
|
wx:if="{{form.redpack_type == 1}}"
|
|
value="{{form.amount_total}}" type="number"
|
|
border="{{ false }}" placeholder="请输入红包总金额"
|
|
input-align="right" bind:change="inpTotal" data-params="amount_total"
|
|
>
|
|
<view slot="label" >
|
|
<text class="ping-icon" >拼</text>
|
|
<text>总金额</text>
|
|
</view>
|
|
<view slot="button" class="input-right-text">{{customBalance}}</view>
|
|
</van-field>
|
|
|
|
<van-field
|
|
wx:else
|
|
value="{{form.unit_amount}}" type="number"
|
|
border="{{ false }}" placeholder="请输入红包金额"
|
|
input-align="right" bind:change="inpUnit" data-params="unit_amount"
|
|
>
|
|
<view slot="label" >
|
|
<text>单个金额</text>
|
|
</view>
|
|
<view slot="button" class="input-right-text">{{customBalance}}</view>
|
|
</van-field>
|
|
</view>
|
|
<view class="input-item inp-timer">
|
|
<van-field value="{{valid_hours}}" label="红包时间" input-align="right" >
|
|
<!-- <view slot="button" class="input-right-text">小时</view> -->
|
|
</van-field>
|
|
</view>
|
|
<view class="tip-timer">红包有效时长 {{valid_hours}}</view>
|
|
<view class="input-item">
|
|
<van-field value="{{form.title}}" type="textarea" placeholder="红包来袭~" autosize custom-style="height: 140rpx;"
|
|
bind:change="inpTitle" data-params="title"
|
|
>
|
|
</van-field>
|
|
</view>
|
|
|
|
<view class="upLoadImg">
|
|
<view style="font-size: 30rpx;padding-left:15rpx;">红包图标(选填)</view>
|
|
<van-uploader file-list="{{ fileList }}" bind:after-read="upLoadImg" deletable="{{ true }}" bind:delete="deletaLoadImg" max-count="1">
|
|
<van-icon name="plus" style="font-size: 150rpx;background:#ffffff;color: #eee;"/>
|
|
<text class="tip-upLoadImg">尺寸为正方形,未上传则默认图标</text>
|
|
</van-uploader>
|
|
</view>
|
|
|
|
<view class="check-btn" wx:if="{{setting_child_receive}}">
|
|
<van-checkbox value="{{ form.child_receive }}" bind:change="checkChange">只限团队成员可领</van-checkbox>
|
|
</view>
|
|
|
|
<view class="total-balance">
|
|
<view>总金额</view>
|
|
<view class="moeny">¥{{form.amount_total ? form.amount_total : '0.00'}}</view>
|
|
</view>
|
|
|
|
|
|
<view class="btn-grant-gift" bindtap="grantGift">发红包</view>
|
|
</view>
|
|
|
|
|
|
<van-action-sheet
|
|
show="{{ showSheet }}"
|
|
actions="{{ actions }}"
|
|
bind:close="closeSheet"
|
|
bind:select="checkGiftType"
|
|
/>
|
|
|