From d6255d59aac4c33de561e11387b1f462de56dbaf Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期四, 19 九月 2024 20:34:09 +0800
Subject: [PATCH] feat(支付): 云闪付

---
 App.vue |   34 ++++++++++------------------------
 1 files changed, 10 insertions(+), 24 deletions(-)

diff --git a/App.vue b/App.vue
index eee314a..d313404 100644
--- a/App.vue
+++ b/App.vue
@@ -1,31 +1,13 @@
 <script>
-import {
-  config,
-} from 'common/config.js';
-import {
-  getPlat
-} from 'common/util.js';
+import Vconsole from 'vconsole';
 	export default {
 		onLaunch: function(opt) {
-      /*console.log(opt)
-      let platform = 2
-      const redirect_uri = encodeURIComponent(`${config.webURL}/pay/scanpay?cid=${opt.query.cid}`)
-      console.log('OPENID'+platform,!!uni.getStorageSync('OPENID'+platform))
-      if(!!uni.getStorageSync('OPENID'+platform)){
-        window.location.href = redirect_uri
-        return
+      if(opt.query?.debug){
+        uni.setStorageSync('DEBUG', opt.query?.debug == 'true');
       }
-      return
-      if(!opt.query.code && !opt.query.auth_code){
-        console.log('auth',platform, !opt.query.code && !opt.query.auth_code)
-        if (platform == 2) {
-          window.location.href =redirect_uri+'&code=sadfkhnadsmuk'
-              //`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.wx_appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
-        } else if (platform == 5) {
-          window.location.href =redirect_uri
-              //`https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=${config.ali_appid}&scope=auth_base&redirect_uri=${redirect_uri}&state=STATE`
-        }
-      }*/
+      if (uni.getStorageSync('DEBUG')) {
+        new Vconsole();
+      }
 		},
 		onShow: function() {
 			console.log('App Show')
@@ -71,6 +53,10 @@
 		color: #DE2D35;
 	}
 
+	.color-green {
+		color: #3fde2d;
+	}
+
 	.font-bold {
 		font-weight: bolder;
 	}

--
Gitblit v1.9.1