|
@@ -46,11 +46,14 @@
|
|
|
import agreeDialog from './agreeDialog.vue'
|
|
|
import {
|
|
|
wxLogin,
|
|
|
- } from "@/api/login.js"
|
|
|
- import {
|
|
|
- toast,getUserIdentity
|
|
|
+ } from "@/api/login.js"
|
|
|
+ import {
|
|
|
+ toast,
|
|
|
+ getUserIdentity
|
|
|
} from "@/utils/common";
|
|
|
-import { error } from "uview-plus";
|
|
|
+ import {
|
|
|
+ error
|
|
|
+ } from "uview-plus";
|
|
|
let indexData = reactive({
|
|
|
phoneNumber: null,
|
|
|
clearTelIcon: false,
|
|
@@ -123,7 +126,7 @@ import { error } from "uview-plus";
|
|
|
}
|
|
|
|
|
|
const wxLoginClick = () => {
|
|
|
- toast("暂无此功能")
|
|
|
+ toast("功能暂未开放!")
|
|
|
return false
|
|
|
uni.login({
|
|
|
"provider": "weixin",
|
|
@@ -140,11 +143,11 @@ import { error } from "uview-plus";
|
|
|
}
|
|
|
wxLogin(req).then(res => {
|
|
|
console.log(res);
|
|
|
- }).catch((error)=>{
|
|
|
- console.log(error);
|
|
|
+ }).catch((error) => {
|
|
|
+ console.log(error);
|
|
|
})
|
|
|
},
|
|
|
- fail: function(err) {
|
|
|
+ fail: function(err) {
|
|
|
console.log(err);
|
|
|
// 登录授权失败
|
|
|
// err.code是错误码
|