瀏覽代碼

微信、支付宝登录

lihongxiao 7 月之前
父節點
當前提交
1ae5ac7490
共有 4 個文件被更改,包括 9 次插入10 次删除
  1. 1 2
      components/modules/my/my-list-item.vue
  2. 2 2
      config/baseUrl.js
  3. 2 2
      manifest.json
  4. 4 4
      pages/login/login.vue

+ 1 - 2
components/modules/my/my-list-item.vue

@@ -118,13 +118,12 @@
 
 			zhofubaobindother() {
 				let urls =
-					'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004153668213&scope=auth_user&redirect_uri=https://test.baoxianzhanggui.com/partnerPay/';
+					'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004193614682&scope=auth_user&redirect_uri=https://test.baoxianzhanggui.com/partnerPay/';
 				urls = encodeURIComponent(urls); //将地址编码成浏览器访问的格式
 				plus.runtime.openURL(
 					'alipays://platformapi/startapp?appId=20000067&url=' + urls,
 					res => {
 						//这里写打开URL地址失败后的处理0
-						console.log(res);
 						uni.showModal({
 							content: '本机未检测到对应客户端,是否打开浏览器访问页面?',
 							success: function(res) {

+ 2 - 2
config/baseUrl.js

@@ -5,8 +5,8 @@ if (process.env.NODE_ENV === 'development') {
 	// 开发环境
 	// baseUrl = "http://192.168.0.106:8080"; //屈晨
 	// baseUrl = "http://192.168.0.55:8080"; //蔡雅茹
-	// baseUrl = "http://192.168.0.52:8080"; //贺礼霄
-	baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试
+	baseUrl = "http://192.168.0.52:8080"; //贺礼霄
+	// baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试
 	h5BaseUrl = "https://test.baoxianzhanggui.com/copartnerH5";
 	// baseUrl = "https://pre.baoxianzhanggui.com/web-api"; //预生产
 	// h5BaseUrl = "https://pre.baoxianzhanggui.com/h5";

+ 2 - 2
manifest.json

@@ -9,8 +9,8 @@
             "src" : "图片路径"
         }
     ],
-    "versionName" : "1.1.3",
-    "versionCode" : 113,
+    "versionName" : "1.1.4",
+    "versionCode" : 114,
     "app-plus" : {
         "error" : {
             "url" : "hybrid/html/error.html"

+ 4 - 4
pages/login/login.vue

@@ -254,7 +254,7 @@
 				var authCode = args.split("=")[1];
 				if (authCode != undefined && authCode != "" && authCode != null) {
 					this.$login({
-						url: "/alipay/login",
+						url: "/APPPartner/loginAlipay",
 						data: {
 							code: authCode,
 						}
@@ -546,8 +546,8 @@
 			},
 			onzfbAppLogin() {
 				let urls =
-					'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004153668213&scope=auth_user&redirect_uri=https://test.baoxianzhanggui.com/pay/';
-				urls = encodeURIComponent(urls); //将地址编码成浏览器访问的格式
+					'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004193614682&scope=auth_user&redirect_uri=https://test.baoxianzhanggui.com/partnerPay/';
+					urls = encodeURIComponent(urls); //将地址编码成浏览器访问的格式
 				plus.runtime.openURL(
 					'alipays://platformapi/startapp?appId=20000067&url=' + urls,
 					res => {
@@ -566,7 +566,7 @@
 			},
 			codeRes(code) {
 				this.$login({
-					url: "/wechat/login",
+					url: "/APPPartner/loginWechat",
 					data: {
 						code: code,
 					}