zs vor 1 Jahr
Ursprung
Commit
70d07d1d6d
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      pages/register/index.vue

+ 3 - 1
pages/register/index.vue

@@ -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({