Jelajahi Sumber

域名证书签名

John-Hong 2 tahun lalu
induk
melakukan
f3a4c0576e

+ 8 - 0
nginx_parking.conf

@@ -7,6 +7,13 @@ server {
         index  index.html index.htm;
 	try_files $uri $uri/ router;
     }
+
+    location /TmXne3Z1gY.txt {
+        default_type text/html;
+        return 200 'TmXne3Z1gY.txt';
+    }
+
+
     location router {
         rewrite ^.*$ /index.html last;
     }
@@ -24,6 +31,7 @@ server {
     }
 
 
+
     error_page   500 502 503 504  /50x.html;
     location = /50x.html {
         root   /usr/share/nginx/html;

+ 1 - 0
public/MP_verify_ZlDO9qUqFIe2bqrN.txt

@@ -0,0 +1 @@
+ZlDO9qUqFIe2bqrN

+ 1 - 0
public/TmXne3Z1gY.txt

@@ -0,0 +1 @@
+5502f2268a4087961af8bcbaacda0190

+ 3 - 5
src/App.vue

@@ -63,10 +63,11 @@ export default {
       this.$store.commit('SET_GROUP_ID', query.groupId);
       this.$store.commit('SET_MALL_ID', query.mallid);
       console.log(65, kipAccessToken);
-      if (platform === 'micromessenger' && !kipAccessToken) {
+      // TODO true 需要取消
+      if (platform === 'micromessenger' && !kipAccessToken || true) {
         // 如果用户没有登录的话,我们需要让用户完成授权拿到 openid
         const openid = uni.getStorageSync('openid');
-        if (!openid) {
+        if (!openid && false) {
           // 当进入其他页面时,需要先打开路由展示
           this.isInit = true;
           // 前往授权页面
@@ -78,10 +79,7 @@ export default {
         }
         // 初始化微信
         initWxJsSdkConfig(['chooseWXPay']);
-        
         // 如果用户不选择登录,则不走登录逻辑
-        // const passLogin = uni.getStorageSync('passLogin');
-        console.log(82, { passLogin });
         this.isInit = true;
         this.$router.replace({
             path: '/login',

+ 30 - 24
src/pages/login/login.vue

@@ -396,6 +396,7 @@ export default {
           .then((result) => {
             uni.hideLoading();
             // const result = resp.data;
+            console.log(399, result);
             if (result.code == '000000' && result.data) {
               log.info(`手机号登录成功:保存授权信息`);
               const authInfo = result.data;
@@ -418,6 +419,8 @@ export default {
               // }
               _this.saveAgreementAction();
               _this.queryMember();
+              // 返回首页
+              _this.$router.replace({ path: '/' });
             } else {
               log.warn(`手机号登录请求成功: 未获取到授权信息`);
               uni.showModal({
@@ -559,18 +562,20 @@ export default {
         mask: true,
       });
       const newGroupId = uni.getStorageSync('groupId');
-      const newMallid = uni.getStorageSync('mallid');
+      const newMallid = uni.getStorageSync('mallId');
       const params = {
         groupId: newGroupId,
         kipUserId: kipMemberInfo.id,
         mallId: newMallid,
       };
       crmQueryMemberInfo(params)
-        .then((resp) => {
+        .then((result) => {
           uni.hideLoading();
           log.info(`获取crm会员请求失败`);
-          const result = resp.data;
+          // const result = resp.data;
           if (result && result.code == '0') {
+
+
             const member = result.data;
             const optionsQuery = uni.getStorageSync('options_query') || {};
             if (member) {
@@ -579,28 +584,29 @@ export default {
                 '==>这里走埋点--手机号码---crmQueryMemberInfo',
                 member
               );
+              uni.setStorageSync()
               // TODO: 埋点公共属性重新赋值
-              _this.$sensors.registerApp({
-                $open_id: _this.globalData?.member?.openId || '',
-                $profile_id:
-                  _this.globalData?.member?.kipUserId ||
-                  member?.kipUserId ||
-                  '',
-                $member_id: _this.globalData?.member?.id || member?.id || '',
-                $union_id: _this.globalData?.member?.unionid || '',
-                // $location: _this.globalData?.mallid,
-                // $brand_id: _this.globalData?.groupId,
-                // $utm_source: JSON.stringify(uni.getStorageSync('options_query')) || '',
-                // $channel: optionsQuery?.channel || '',
-                $utm_lbs: optionsQuery?.utm_lbs || '',
-                // $utm_channel: optionsQuery?.utm_channel || '',
-                // $utm_method: optionsQuery?.utm_method || '',
-                // $utm_source: optionsQuery?.utm_source || '',
-                // $utm_function: optionsQuery?.utm_function || '',
-                // $utm_user: optionsQuery?.utm_user || '',
-              });
-              MemberCacheTool.setMemberInfoCache(app, member, kipMemberInfo);
-              _this.checkIsNewUser();
+              // _this.$sensors.registerApp({
+              //   $open_id: _this.globalData?.member?.openId || '',
+              //   $profile_id:
+              //     _this.globalData?.member?.kipUserId ||
+              //     member?.kipUserId ||
+              //     '',
+              //   $member_id: _this.globalData?.member?.id || member?.id || '',
+              //   $union_id: _this.globalData?.member?.unionid || '',
+              //   // $location: _this.globalData?.mallid,
+              //   // $brand_id: _this.globalData?.groupId,
+              //   // $utm_source: JSON.stringify(uni.getStorageSync('options_query')) || '',
+              //   // $channel: optionsQuery?.channel || '',
+              //   $utm_lbs: optionsQuery?.utm_lbs || '',
+              //   // $utm_channel: optionsQuery?.utm_channel || '',
+              //   // $utm_method: optionsQuery?.utm_method || '',
+              //   // $utm_source: optionsQuery?.utm_source || '',
+              //   // $utm_function: optionsQuery?.utm_function || '',
+              //   // $utm_user: optionsQuery?.utm_user || '',
+              // });
+              // MemberCacheTool.setMemberInfoCache(app, member, kipMemberInfo);
+              // _this.checkIsNewUser();
             } else {
               uni.hideLoading();
               log.error(`获取crm会员请求失败`);

+ 4 - 4
src/utils/member-cache-tool.js

@@ -68,12 +68,12 @@ export default {
 	setKipMember (app, kipMember) {
 		if (kipMember) {
 			// app.globalData.kipMember = kipMember
-			app.globalData.openId = kipMember.openId;
+			// app.globalData.openId = kipMember.openId;
 			uni.setStorageSync('kipMember', kipMember)
 			uni.setStorageSync("openId", kipMember.openId);
-			Monitor.setConfig({
-				c1: kipMember.id
-			})
+			// Monitor.setConfig({
+			// 	c1: kipMember.id
+			// })
 		}
 	},
 	getKipMember () {