nieyuge před 2 roky
rodič
revize
3349df026b

+ 2 - 0
src/pages/nft/add.vue

@@ -382,7 +382,9 @@ onMounted(() => {
                         position: absolute;
                         top: 11px;
                         left: 11px;
+                        width: 228px;
                         font-size: 12px;
+                        text-align: left;
                         font-weight: 800;
                         line-height: 13px;
                     }

+ 3 - 1
src/static/http/index.ts

@@ -1,7 +1,7 @@
 // http封装库
 import axios from 'axios';
 import { removeStorage, storageKey } from '../utils/storage'
-import { getEnvConfig, getMid, getUserInfo, appVersionCode, } from '../utils';
+import { getEnvConfig, getMid, getUserInfo, appVersionCode, appType } from '../utils';
 // 测试数据(需手动开启关闭)
 // import '../mockjs/index';
 
@@ -38,8 +38,10 @@ export const postRequest = (url: string, params = {}, config = null) => {
     params = Object.assign({
         baseInfo: {
             mid: getMid(),
+            machineCode: getMid(),
             loginUid: userInfo && userInfo.uid || '',
             token: userInfo && userInfo.accessToken || '',
+            appType,
             appVersionCode,
         },
     }, params);

+ 4 - 1
src/static/report/index.ts

@@ -1,6 +1,6 @@
 import axios from 'axios';
 import { logType } from './enum';
-import { getBrowser, getEnvConfig, getMid, getUserInfo, appVersionCode } from '../utils';
+import { getBrowser, getEnvConfig, getMid, getUserInfo, appVersionCode, appType } from '../utils';
 
 const { logHost } = getEnvConfig();
 const logAPIUrl = logHost + '/log-center';
@@ -18,13 +18,16 @@ export function Report(params: any) {
         url: location.href,
         browser,
         platform,
+        twitterId: userInfo && userInfo.nickName || '',
         ...eventData,
     }
     eventData = wrapObject(extData)
     params.baseInfo = {
         mid: getMid(),
+        machineCode: getMid(),
         loginUid: userInfo && userInfo.uid || '',
         token: userInfo && userInfo.accessToken || '',
+        appType,
         appVersionCode,
         ...baseInfo,
     }

+ 1 - 1
src/static/utils/index.ts

@@ -2,7 +2,7 @@
 import Cookie from 'js-cookie';
 import { getStorage, storageKey } from './storage'
 
-export const appVersionCode = 12;
+export const appVersionCode = 16;
 export const appType = 1;
 // @ts-ignore
 export const callBackUrl = process.env.NODE_ENV === `production` ? `https://denet.me/close` : `https://test.denet.me/close`