This commit is contained in:
2025-11-25 05:36:02 +08:00
parent 8e036cc171
commit b10e4b4336
65 changed files with 2672 additions and 2270 deletions
+12 -15
View File
@@ -27,7 +27,7 @@
</u-form>
<view class="btn">
<u-button :loading="loading" type="primary" @click="doNext">
进入OpenIM
进入{{config.name}}
</u-button>
</view>
</view>
@@ -36,12 +36,9 @@
<script>
import md5 from "md5";
import MyAvatar from "@/components/MyAvatar/index.vue";
import {
businessRegister
} from "@/api/login";
import {
checkLoginError
} from "@/util/common";
import { mapGetters } from "vuex";
import { businessRegister } from "@/api/login";
import { checkLoginError } from "@/util/common";
export default {
components: {
MyAvatar,
@@ -100,19 +97,19 @@
},
};
},
computed:{
...mapGetters(["config"]),
},
onLoad(options) {
const {
userInfo,
codeValue
} = options;
const {userInfo,codeValue} = options;
this.userInfo = {
...this.userInfo,
...JSON.parse(userInfo),
};
this.codeValue = codeValue;
if(process.env.NODE_ENV == 'development'){
this.userInfo.email = "commiu@outlook.com";
this.userInfo.nickname = "commiu";
//this.userInfo.email = "commiu@outlook.com";
this.userInfo.nickname = "";
this.userInfo.password = "qwe123";
this.userInfo.confirmPassword = "qwe123";
}
@@ -135,12 +132,12 @@
this.loading = true;
const options = {
code: this.codeValue,
platform: uni.$u.os() === "ios" ? 1 : 2,
platform: uni.$u.os(),
autoLogin: true,
...this.userInfo,
areaCode: `+${this.userInfo.areaCode}`,
password: md5(this.userInfo.password),
mobile: `+${this.userInfo.phoneNumber}`,
mobile: this.userInfo.phoneNumber
};
try {
await businessRegister(options);