| xqd
@@ -1,4 +1,4 @@
|
|
|
-<template>
|
|
|
+ <template>
|
|
|
<app-layout>
|
|
|
<view class="app-view">
|
|
|
<!-- 自动识别功能 -->
|
| xqd
@@ -9,32 +9,32 @@
|
|
|
</view> -->
|
|
|
|
|
|
<view class="app-line app-border main-between cross-center">
|
|
|
- <text class="app-text box-grow-0">参训人</text>
|
|
|
+ <text class="app-text box-grow-0">参训人:</text>
|
|
|
<input class="address-input" type="text" v-model="form.name" />
|
|
|
</view>
|
|
|
<view class="app-line app-border main-between cross-center">
|
|
|
- <text class="app-text box-grow-0">性别</text>
|
|
|
- <input class="address-input" type="text" v-model="form.name" />
|
|
|
+ <text class="app-text box-grow-0">性别:</text>
|
|
|
+ <input class="address-input" type="text" v-model="form.sex" placeholder="1: 男, 2: 女, 0: 未知"/>
|
|
|
</view>
|
|
|
<view class="app-line app-border main-between cross-center">
|
|
|
- <text class="app-text box-grow-0">联系电话</text>
|
|
|
+ <text class="app-text box-grow-0">联系电话:</text>
|
|
|
<input class="address-input" type="number" v-model="form.mobile" />
|
|
|
</view>
|
|
|
<view class="app-line app-border main-between cross-center">
|
|
|
- <text class="app-text box-grow-0">年龄</text>
|
|
|
- <input class="address-input" type="number" v-model="form.mobile" />
|
|
|
+ <text class="app-text box-grow-0">年龄:</text>
|
|
|
+ <input class="address-input" type="number" v-model="form.age" />
|
|
|
</view>
|
|
|
<view class="app-line app-border main-between cross-center">
|
|
|
- <text class="app-text box-grow-0">体重</text>
|
|
|
- <input class="address-input" type="number" v-model="form.mobile" />
|
|
|
+ <text class="app-text box-grow-0">体重:</text>
|
|
|
+ <input class="address-input" type="number" v-model="form.weight" placeholder="kg"/>
|
|
|
</view>
|
|
|
<view class="app-line app-border main-between cross-center">
|
|
|
- <text class="app-text box-grow-0">身高</text>
|
|
|
- <input class="address-input" type="number" v-model="form.mobile" />
|
|
|
+ <text class="app-text box-grow-0">身高:</text>
|
|
|
+ <input class="address-input" type="number" v-model="form.height" placeholder="cm"/>
|
|
|
</view>
|
|
|
<view class="app-line app-border main-between cross-center">
|
|
|
- <text class="app-text box-grow-0">身份证号码</text>
|
|
|
- <input class="address-input" type="number" v-model="form.mobile" />
|
|
|
+ <text class="app-text box-grow-0">身份证号码:</text>
|
|
|
+ <input class="address-input" type="number" v-model="form.idcard" placeholder="17或18位身份证号"/>
|
|
|
</view>
|
|
|
<!-- <view class="app-line app-border main-between cross-center">
|
|
|
<text class="app-text box-grow-0">所在地区</text>
|
| xqd
@@ -282,12 +282,18 @@
|
|
|
if (this.submit_status) return;
|
|
|
let content;
|
|
|
|
|
|
- if (!this.form.detail) {
|
|
|
- content = '详细地址不能为空';
|
|
|
- }
|
|
|
- if (!this.form.province_id) {
|
|
|
- content = '地区不能为空';
|
|
|
- }
|
|
|
+ // if (!this.form.detail) {
|
|
|
+ // content = '详细地址不能为空';
|
|
|
+ // }
|
|
|
+ // if (!this.form.province_id) {
|
|
|
+ // content = '地区不能为空';
|
|
|
+ // }
|
|
|
+ if(!this.form.weight){
|
|
|
+ content = '体重不能为空';
|
|
|
+ }
|
|
|
+ if(!this.form.age){
|
|
|
+ content = '年龄不能为空';
|
|
|
+ }
|
|
|
if (!this.form.mobile) {
|
|
|
content = '联系方式不能为空';
|
|
|
}
|
| xqd
@@ -310,18 +316,27 @@
|
|
|
if (this.is_refund_address > 0) {
|
|
|
|
|
|
url = this.$api.app_admin.refund_address_edit;
|
|
|
- let {id, name, mobile, detail} = this.form;
|
|
|
-
|
|
|
+ // let {id, name, mobile, detail} = this.form;
|
|
|
+ let { name, mobile, sex, age, weight, height, idcard} = this.form
|
|
|
para = {
|
|
|
- form: JSON.stringify({
|
|
|
- id,
|
|
|
- name,
|
|
|
- mobile,
|
|
|
- address_detail: detail,
|
|
|
- address: this.list,
|
|
|
- is_default: 0,
|
|
|
- remark: ''
|
|
|
- })
|
|
|
+ // form: JSON.stringify({
|
|
|
+ // id,
|
|
|
+ // name,
|
|
|
+ // mobile,
|
|
|
+ // address_detail: detail,
|
|
|
+ // address: this.list,
|
|
|
+ // is_default: 0,
|
|
|
+ // remark: ''
|
|
|
+ // })
|
|
|
+ form:JSON.stringify({
|
|
|
+ name,
|
|
|
+ mobile,
|
|
|
+ sex,
|
|
|
+ age,
|
|
|
+ weight,
|
|
|
+ height,
|
|
|
+ idcard
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|