diff --git a/src/apis.js b/src/apis.js
index 9c47724..2ec8229 100644
--- a/src/apis.js
+++ b/src/apis.js
@@ -8,7 +8,7 @@ try {
switch (envVersion) {
case "develop": // 开发版
- // BASE_URL = "http://192.168.1.2:8000/api/shoot";
+ // BASE_URL = "http://192.168.1.30:8000/api/shoot";
BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";
break;
case "trial": // 体验版
@@ -233,6 +233,12 @@ export const checkUserBindAPI = async (code) => {
});
};
+export const tempBindOrgAPI = (scene) => {
+ return request("POST", "/user/org/device/tempBind", {
+ scene,
+ });
+};
+
export const bindDeviceAPI = (device) => {
return request("POST", "/user/device/bindDevice", {
device,
diff --git a/src/components/Signin.vue b/src/components/Signin.vue
index 277075f..f938c1a 100644
--- a/src/components/Signin.vue
+++ b/src/components/Signin.vue
@@ -32,6 +32,10 @@ const props = defineProps({
type: Function,
default: () => {},
},
+ onSuccess: {
+ type: Function,
+ default: () => {},
+ },
});
const agree = ref(false);
const phone = ref("");
@@ -127,6 +131,7 @@ async function doLogin() {
clearDevice();
}
props.onClose();
+ await props.onSuccess();
} catch (error) {
console.log("login error", error);
} finally {
diff --git a/src/pages.json b/src/pages.json
index 5b11d63..5489311 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1,11 +1,14 @@
{
"pages": [
- {
- "path": "pages/index"
- },
- {
- "path": "pages/friend-battle"
- },
+ {
+ "path": "pages/index"
+ },
+ {
+ "path": "pages/org-bind"
+ },
+ {
+ "path": "pages/friend-battle"
+ },
{
"path": "pages/point-book"
},
diff --git a/src/pages/org-bind.vue b/src/pages/org-bind.vue
new file mode 100644
index 0000000..e8b17a4
--- /dev/null
+++ b/src/pages/org-bind.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+ 机构设备绑定
+
+
+ 正在绑定
+ 正在绑定机构设备,请稍候……
+
+
+
+ 请先登录
+
+ {{
+ errorMessage ||
+ "登录后即可绑定当前机构设备。关闭登录窗口后,也可以再次点击下方按钮继续。"
+ }}
+
+
+ 立即登录
+
+
+
+
+ 绑定成功
+
+ 您的账号已成功绑定机构设备,请返回 iPad 继续操作。
+
+
+
+
+ 绑定失败
+ {{ errorMessage }}
+
+ 重新绑定
+
+
+
+
+ 二维码无效
+ 请重新扫描机构设备上的小程序码。
+
+
+
+
+
+
+
+
diff --git a/src/websocket.js b/src/websocket.js
index 73e7132..9fe5576 100644
--- a/src/websocket.js
+++ b/src/websocket.js
@@ -24,8 +24,8 @@ function createWebSocket(token, onMessage) {
switch (envVersion) {
case "develop": // 开发版
- // url = "ws://192.168.1.2:8000/socket";
- url = "wss://apitest.shelingxingqiu.com/socket";
+ // url = "ws://192.168.1.30:8000/socket";
+ // url = "wss://apitest.shelingxingqiu.com/socket";
break;
case "trial": // 体验版
url = "wss://apitest.shelingxingqiu.com/socket";