|
@@ -32,6 +32,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import moment from 'moment';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -143,10 +144,11 @@
|
|
|
const that = this;
|
|
|
that.$set(that.form, `community`, community);
|
|
|
},
|
|
|
- // 登录
|
|
|
+ // 注册
|
|
|
submit(ref) {
|
|
|
const that = this;
|
|
|
that.$refs[ref].validate().then(async params => {
|
|
|
+ that.form.create_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
|
const res = await that.$api(`/User`, 'POST', that.form);
|
|
|
if (res.errcode == '0') {
|
|
|
uni.showToast({
|