Merge pull request '手机号' (#334) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/334
This commit is contained in:
commit
b38a2b8103
@ -12,7 +12,7 @@
|
||||
</u-radio-group>
|
||||
</view>
|
||||
<view class="invoice-list" v-if="currentList.length">
|
||||
<u-radio-group v-model="invoice" @change="selectInvoice" active-color="#FF780F" icon-size="12" size="30" :wrap="true">
|
||||
<u-radio-group v-model="invoice" @change="selectInvoice" active-color="#FF780F" icon-size="22" size="30" :wrap="true">
|
||||
<u-radio
|
||||
v-for="(item, index) in currentList" :key="index"
|
||||
:name="item.invoice_id"
|
||||
|
@ -59,7 +59,6 @@ export default {
|
||||
height: 140rpx;
|
||||
border-radius: 70rpx;
|
||||
margin-bottom: 29rpx;
|
||||
background-color: aqua;
|
||||
}
|
||||
.name {
|
||||
font-size: 28rpx;
|
||||
@ -124,7 +123,6 @@ export default {
|
||||
width: 239rpx;
|
||||
height: 170rpx;
|
||||
flex-shrink: 0;
|
||||
background-color: aqua;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
</view>
|
||||
<view>
|
||||
<label for="phone">手机号:</label>
|
||||
<input type="number" id="phone" v-model="phone" maxlength="11" placeholder="请输入手机号" />
|
||||
<input type="number" id="phone" ref='phone' maxlength="11" placeholder="请输入手机号" />
|
||||
</view>
|
||||
<view @click="show=true">
|
||||
<label for="address">居住地址:</label>
|
||||
@ -121,11 +121,11 @@ export default {
|
||||
this.$u.toast('姓名不能为空');
|
||||
return false;
|
||||
}
|
||||
if(this.$u.test.isEmpty(this.phone)) {
|
||||
if(this.$u.test.isEmpty(this.$refs.phone.valueSync)) {
|
||||
this.$u.toast('手机号不能为空');
|
||||
return false;
|
||||
}
|
||||
if(!this.$u.test.mobile(this.phone)) {
|
||||
if(!this.$u.test.mobile(this.$refs.phone.valueSync)) {
|
||||
this.$u.toast('手机号错误');
|
||||
return false;
|
||||
}
|
||||
@ -153,7 +153,7 @@ export default {
|
||||
this.isSubmit = false;
|
||||
this.$u.api.applyExpert({
|
||||
name: this.name,
|
||||
mobile: this.phone,
|
||||
mobile: this.$refs.phone.valueSync,
|
||||
address: this.address + this.details,
|
||||
industry: this.checkedIndustryList,
|
||||
hobby: this.checkedHobbyList,
|
||||
|
@ -22,6 +22,7 @@
|
||||
:header="header"
|
||||
:form-data="formData"
|
||||
:name="fileName"
|
||||
:size-type="['original']"
|
||||
@on-list-change="setImageList"
|
||||
>
|
||||
<view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
|
||||
@ -33,6 +34,7 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'CommonView',
|
||||
data() {
|
||||
return {
|
||||
count: 3,
|
||||
|
Loading…
Reference in New Issue
Block a user