Parcourir la source

Merge branch '2024鹅状元' of https://gogs.mtavip.com/wangguoyu/uniProject into 2024鹅状元

tanxue il y a 5 mois
Parent
commit
6349fc70b9
2 fichiers modifiés avec 21 ajouts et 11 suppressions
  1. 11 8
      pages/login/index.vue
  2. 10 3
      pages/my/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是错误码

+ 10 - 3
pages/my/index.vue

@@ -139,7 +139,9 @@
 	}
 	
 	// 订单
-	function orderClick(){
+	function orderClick(){
+		toast("功能暂未开放!")
+		return false
 		if(loginFlag.value){
 			uni.redirectTo({
 				url: '/pages/pay/order'
@@ -180,7 +182,9 @@
 		}
 	}
 	// 会员权益按钮
-	function hyqyBtn(index){
+	function hyqyBtn(index){
+		toast("功能暂未开放!")
+		return false
 		/* index为学科 1数学 2英语 */
 		if(loginFlag.value){
 			// 非游客
@@ -266,7 +270,10 @@
 		}
 	})
 
-  function checkWrong() {
+  function checkWrong() {
+	  
+	  toast("功能暂未开放!")
+	  return false
 	if(loginFlag.value){
 		const AuthCode = getUserIdentity();
 		if (AuthCode == 'Visitor') {