| | |
| | | <div flex="wrap:wrap cross:center" style="margin-bottom: 15px;"> |
| | | <div>卡号</div> |
| | | <div class="input-item" style="width: 230px"> |
| | | <el-input maxlength="20" size="small" placeholder="请输入卡号" v-model="cardKeyword" > |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | <div flex="wrap:wrap cross:center" style="margin-bottom: 15px;"> |
| | | <div>密码</div> |
| | | <div class="input-item" style="width: 230px"> |
| | | <el-input maxlength="12" @keyup.enter.native="toSearch" size="small" placeholder="请输入密码" v-model="keyword" clearable @clear="toSearch"> |
| | | <el-input maxlength="20" size="small" placeholder="请输入卡号" @keyup.enter.native="toSearch" v-model="cardKeyword" clearable @clear="toSearch"> |
| | | <el-button slot="append" icon="el-icon-search" @click="toSearch"></el-button> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | <el-form v-show="form.rewards.length > 0" @submit.native.prevent size="small" ref="form" :model="form" label-width="80px"> |
| | | <div flex="wrap:wrap cross:center" style="margin-bottom: 15px;"> |
| | | <div>密码</div> |
| | | <div class="input-item" style="width: 230px"> |
| | | <el-input maxlength="12" size="small" aria-readonly="true" placeholder="请输入密码" v-model="form.keyword"> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | <el-form-item label="兑换用户" prop="user"> |
| | | <div flex="dir:left cross:center"> |
| | | <div v-if="form.user && form.user.id > 0" flex="dir:left cross:center" style="margin-right: 15px;"> |
| | |
| | | let that = this; |
| | | that.form.rewards = []; |
| | | that.msg = ''; |
| | | if(!that.keyword || !that.cardKeyword) { |
| | | if(!that.cardKeyword) { |
| | | return false |
| | | } |
| | | that.loading = true; |