Sfoglia il codice sorgente

切换正式的appid

xyh 5 mesi fa
parent
commit
b3a14b8919
3 ha cambiato i file con 13 aggiunte e 6 eliminazioni
  1. 3 3
      src/manifest.json
  2. 7 3
      src/pages/login/wxLogin.vue
  3. 3 0
      src/points/home/index.vue

+ 3 - 3
src/manifest.json

@@ -63,14 +63,14 @@
                 },
                 "oauth" : {
                     "weixin" : {
-                        "appid" : "wxa72f643173a90106",
+                        "appid" : "wx9dc677bd41e82569",
                         "UniversalLinks" : ""
                     }
                 },
                 "payment" : {
                     "weixin" : {
                         "__platform__" : [ "ios", "android" ],
-                        "appid" : "wxa72f643173a90106",
+                        "appid" : "wx9dc677bd41e82569",
                         "UniversalLinks" : ""
                     }
                 }
@@ -81,7 +81,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wxa72f643173a90106",
+        "appid" : "wx9dc677bd41e82569",
         "setting" : {
             "urlCheck" : false,
             "es6" : true

+ 7 - 3
src/pages/login/wxLogin.vue

@@ -51,9 +51,13 @@
 			},
 			login() {
 				if (this.look) {
-					// let ruri = encodeURIComponent('https://test.baoxianzhanggui.com/nightFragrance')
-					let ruri = encodeURIComponent('https://test.baoxianzhanggui.com/fragrance/')
-				 	window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa72f643173a90106&redirect_uri=${ruri}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
+          // 测试
+					// let ruri = encodeURIComponent('https://test.baoxianzhanggui.com/fragrance/');
+          // let appid = 'wxa72f643173a90106';
+          // 正式
+          let ruri = encodeURIComponent('https://city.baoxianzhanggui.com/fragrance/');
+          let appid = 'wx9dc677bd41e82569'
+				 	window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${ruri}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
 				 	// window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa72f643173a90106&redirect_uri=${ruri}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
 					// 正式——广誉源
 				 	// window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx9dc677bd41e82569&redirect_uri=https://city.baoxianzhanggui.com/fragrance/&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'

+ 3 - 0
src/points/home/index.vue

@@ -47,6 +47,9 @@ export default {
 
   },
   onReady() {
+
+  },
+  onShow(){
     // 初始化数据
     this.initData();
     // 绑定滚动事件