wangguoyu 5 ماه پیش
والد
کامیت
f7fea3706d
1فایلهای تغییر یافته به همراه11 افزوده شده و 8 حذف شده
  1. 11 8
      pages/login/index.vue

+ 11 - 8
pages/login/index.vue

@@ -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是错误码