提交 f6d358ef 编写于 作者: fxy060608's avatar fxy060608

Merge branches 'dev' and 'dev' of https://github.com/dcloudio/uni-app into dev

...@@ -4,6 +4,6 @@ module.exports = { ...@@ -4,6 +4,6 @@ module.exports = {
file: 'packages/uni-stat/dist/index.js', file: 'packages/uni-stat/dist/index.js',
format: 'es' format: 'es'
}, },
external: ['vue', '@dcloudio/uni-stat/package.json'], external: ['vue', '../package.json'],
plugins: [] plugins: []
} }
...@@ -36,6 +36,7 @@ const { ...@@ -36,6 +36,7 @@ const {
const { const {
getFlexDirection, getFlexDirection,
getPlatformProject, getPlatformProject,
isSupportFilters,
isSupportSubPackages, isSupportSubPackages,
getPlatforms, getPlatforms,
getPlatformGlobal, getPlatformGlobal,
...@@ -83,6 +84,7 @@ module.exports = { ...@@ -83,6 +84,7 @@ module.exports = {
runByHBuilderX, runByHBuilderX,
isInHBuilderX, isInHBuilderX,
isInHBuilderXAlpha, isInHBuilderXAlpha,
isSupportFilters,
isSupportSubPackages, isSupportSubPackages,
getPlatforms, getPlatforms,
getFlexDirection, getFlexDirection,
......
...@@ -80,6 +80,7 @@ const PLATFORMS = { ...@@ -80,6 +80,7 @@ const PLATFORMS = {
vue: '@dcloudio/vue-cli-plugin-uni/packages/h5-vue', vue: '@dcloudio/vue-cli-plugin-uni/packages/h5-vue',
compiler: false, compiler: false,
megalo: false, megalo: false,
filters: true,
subPackages: false, subPackages: false,
cssVars: { cssVars: {
'--status-bar-height': '0px' '--status-bar-height': '0px'
...@@ -107,11 +108,13 @@ const PLATFORMS = { ...@@ -107,11 +108,13 @@ const PLATFORMS = {
global: 'wx', global: 'wx',
exts: { exts: {
style: '.wxss', style: '.wxss',
template: '.wxml' template: '.wxml',
filter: '.wxs'
}, },
vue: mpvueRuntime, vue: mpvueRuntime,
compiler: mpvueCompiler, compiler: mpvueCompiler,
megalo: false, megalo: false,
filters: true,
subPackages: false, subPackages: false,
cssVars: { cssVars: {
'--window-top': '0px', '--window-top': '0px',
...@@ -134,11 +137,13 @@ const PLATFORMS = { ...@@ -134,11 +137,13 @@ const PLATFORMS = {
global: 'wx', global: 'wx',
exts: { exts: {
style: '.qss', style: '.qss',
template: '.qml' template: '.qml',
filter: '.wxs'
}, },
vue: mpvueRuntime, vue: mpvueRuntime,
compiler: mpvueCompiler, compiler: mpvueCompiler,
megalo: false, megalo: false,
filters: true,
subPackages: true, subPackages: true,
cssVars: { cssVars: {
'--status-bar-height': '25px', '--status-bar-height': '25px',
...@@ -159,11 +164,13 @@ const PLATFORMS = { ...@@ -159,11 +164,13 @@ const PLATFORMS = {
global: 'wx', global: 'wx',
exts: { exts: {
style: '.wxss', style: '.wxss',
template: '.wxml' template: '.wxml',
filter: '.wxs'
}, },
vue: mpvueRuntime, vue: mpvueRuntime,
compiler: mpvueCompiler, compiler: mpvueCompiler,
megalo: false, megalo: false,
filters: true,
subPackages: true, subPackages: true,
cssVars: { cssVars: {
'--status-bar-height': '25px', '--status-bar-height': '25px',
...@@ -194,11 +201,13 @@ const PLATFORMS = { ...@@ -194,11 +201,13 @@ const PLATFORMS = {
global: 'swan', global: 'swan',
exts: { exts: {
style: '.css', style: '.css',
template: '.swan' template: '.swan',
filter: '.filter.js'
}, },
vue: megaloRuntime, vue: megaloRuntime,
compiler: megaloCompiler, compiler: megaloCompiler,
megalo: 'swan', megalo: 'swan',
filters: true,
subPackages: true, subPackages: true,
cssVars: { cssVars: {
'--status-bar-height': '25px', '--status-bar-height': '25px',
...@@ -219,11 +228,13 @@ const PLATFORMS = { ...@@ -219,11 +228,13 @@ const PLATFORMS = {
global: 'my', global: 'my',
exts: { exts: {
style: '.acss', style: '.acss',
template: '.axml' template: '.axml',
filter: '.sjs'
}, },
vue: megaloRuntime, vue: megaloRuntime,
compiler: megaloCompiler, compiler: megaloCompiler,
megalo: 'alipay', megalo: 'alipay',
filters: true,
subPackages: false, subPackages: false,
cssVars: { cssVars: {
'--status-bar-height': '25px', '--status-bar-height': '25px',
...@@ -429,6 +440,9 @@ module.exports = { ...@@ -429,6 +440,9 @@ module.exports = {
type: 'html', type: 'html',
context: nvuePreprocessContext context: nvuePreprocessContext
}, },
isSupportFilters () {
return platform.filters
},
isSupportSubPackages () { isSupportSubPackages () {
return platform.subPackages return platform.subPackages
}, },
......
import { version } from '@dcloudio/uni-stat/package.json'; import { version } from '../package.json';
const STAT_VERSION = version; const STAT_VERSION = version;
const STAT_URL = 'https://tongji.dcloud.net.cn/uni/stat'; const STAT_URL = 'https://tongji.dcloud.net.cn/uni/stat';
...@@ -18,7 +18,6 @@ function getUuid() { ...@@ -18,7 +18,6 @@ function getUuid() {
} catch (e) { } catch (e) {
uuid = ''; uuid = '';
} }
uni.setStorageSync(UUID_KEY, uuid);
return uuid return uuid
} }
...@@ -505,7 +504,7 @@ class Util { ...@@ -505,7 +504,7 @@ class Util {
key = '', key = '',
value = "" value = ""
} = {}) { } = {}) {
const route = getPageRoute(this); const route = this._lastPageRoute;
let options = { let options = {
ak: this.statData.ak, ak: this.statData.ak,
uuid: this.statData.uuid, uuid: this.statData.uuid,
......
{ {
"name": "@dcloudio/uni-stat", "name": "@dcloudio/uni-stat",
"version": "0.0.105", "version": "0.0.108",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
import { import {
version version
} from '@dcloudio/uni-stat/package.json' } from '../package.json'
export const STAT_VERSION = version export const STAT_VERSION = version
export const STAT_URL = 'https://tongji.dcloud.net.cn/uni/stat' export const STAT_URL = 'https://tongji.dcloud.net.cn/uni/stat'
export const STAT_H5_URL = 'https://tongji.dcloud.net.cn/uni/stat.gif' export const STAT_H5_URL = 'https://tongji.dcloud.net.cn/uni/stat.gif'
......
...@@ -14,7 +14,6 @@ export function getUuid() { ...@@ -14,7 +14,6 @@ export function getUuid() {
} catch (e) { } catch (e) {
uuid = ''; uuid = '';
} }
uni.setStorageSync(UUID_KEY, uuid);
return uuid return uuid
} }
......
...@@ -239,7 +239,7 @@ class Util { ...@@ -239,7 +239,7 @@ class Util {
key = '', key = '',
value = "" value = ""
} = {}) { } = {}) {
const route = getPageRoute(this); const route = this._lastPageRoute;
let options = { let options = {
ak: this.statData.ak, ak: this.statData.ak,
uuid: this.statData.uuid, uuid: this.statData.uuid,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册