lhl vor 1 Jahr
Ursprung
Commit
e6b7e49533
2 geänderte Dateien mit 10 neuen und 8 gelöschten Zeilen
  1. 3 2
      manifest.json
  2. 7 6
      pages/public/register.vue

+ 3 - 2
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "博晟美业",
-    "appid" : "__UNI__E0158B1",
+    "appid" : "__UNI__5B3B6E0",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",
@@ -80,7 +80,8 @@
                         "/api" : "" // rewrite path
                     }
                 }
-            }
+            },
+            "https" : false
         }
     }
 }

+ 7 - 6
pages/public/register.vue

@@ -21,13 +21,13 @@
 				<view class="login_img"><image src="/static/icon/img07.png"></image></view>
 				<view class="login_name"><input class="uni-input" type="text" v-model="invitation" focus placeholder="请输入邀请码" /></view>
 			</view>
-			<view class="login_input flex">
+			<!-- <view class="login_input flex">
 				<view class="login_img"><image src="/static/icon/img06.png"></image></view>
 				<view class="login_name flex">
 					<input class="uni-input width" v-model="code" focus placeholder="请输入验证码" />
 					<view class="code" @click="verification">{{ countDown == 0 ? '验证码' : countDown }}</view>
 				</view>
-			</view>
+			</view> -->
 			<view><button type="green" @click="register" class="uni-button uni-button-green">注册账号</button></view>
 			<view><button class="uni-button uni-button-green uni-button-green-plain" type="green" plain="true" hover-class="none" @click="login">返回登录</button></view>
 		</view>
@@ -87,10 +87,11 @@ export default {
 			// 	obj.$api.msg('请输入邀请码');
 			// 	return;
 			// }
-			// if (obj.code == '') {
-			// 	obj.$api.msg('请输入验证码');
-			// 	return;
-			// }
+			if (obj.code == '') {
+				// obj.$api.msg('请输入验证码');
+				obj.code = '123456'
+				return;
+			}
 			register({
 				account: obj.phone, //账号
 				captcha: obj.code, //验证码