|
@@ -1400,7 +1400,7 @@ function initData(vueOptions, context) {
|
|
|
try {
|
|
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
|
|
} catch (e) {
|
|
|
- if (Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"NODE_ENV":"development","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
|
}
|
|
|
}
|
|
@@ -3569,7 +3569,55 @@ module.exports = __webpack_require__(/*! regenerator-runtime */ 21);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 205:
|
|
|
+/***/ 21:
|
|
|
+/*!************************************************************!*\
|
|
|
+ !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
|
|
|
+ \************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+/**
|
|
|
+ * Copyright (c) 2014-present, Facebook, Inc.
|
|
|
+ *
|
|
|
+ * This source code is licensed under the MIT license found in the
|
|
|
+ * LICENSE file in the root directory of this source tree.
|
|
|
+ */
|
|
|
+
|
|
|
+// This method of obtaining a reference to the global object needs to be
|
|
|
+// kept identical to the way it is obtained in runtime.js
|
|
|
+var g = (function() {
|
|
|
+ return this || (typeof self === "object" && self);
|
|
|
+})() || Function("return this")();
|
|
|
+
|
|
|
+// Use `getOwnPropertyNames` because not all browsers support calling
|
|
|
+// `hasOwnProperty` on the global `self` object in a worker. See #183.
|
|
|
+var hadRuntime = g.regeneratorRuntime &&
|
|
|
+ Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
|
|
|
+
|
|
|
+// Save the old regeneratorRuntime in case it needs to be restored later.
|
|
|
+var oldRuntime = hadRuntime && g.regeneratorRuntime;
|
|
|
+
|
|
|
+// Force reevalutation of runtime.js.
|
|
|
+g.regeneratorRuntime = undefined;
|
|
|
+
|
|
|
+module.exports = __webpack_require__(/*! ./runtime */ 22);
|
|
|
+
|
|
|
+if (hadRuntime) {
|
|
|
+ // Restore the original runtime.
|
|
|
+ g.regeneratorRuntime = oldRuntime;
|
|
|
+} else {
|
|
|
+ // Remove the global property added by runtime.js.
|
|
|
+ try {
|
|
|
+ delete g.regeneratorRuntime;
|
|
|
+ } catch(e) {
|
|
|
+ g.regeneratorRuntime = undefined;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+
|
|
|
+/***/ 213:
|
|
|
/*!**************************************************************************************!*\
|
|
|
!*** E:/fp/md/mdapp/uni_modules/vk-uview-ui/components/u-parse/libs/MpHtmlParser.js ***!
|
|
|
\**************************************************************************************/
|
|
@@ -3584,8 +3632,8 @@ module.exports = __webpack_require__(/*! regenerator-runtime */ 21);
|
|
|
|
|
|
|
|
|
|
|
|
-var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 206));
|
|
|
-var _CssHandler = _interopRequireDefault(__webpack_require__(/*! ./CssHandler.js */ 207));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /**
|
|
|
+var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 214));
|
|
|
+var _CssHandler = _interopRequireDefault(__webpack_require__(/*! ./CssHandler.js */ 215));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /**
|
|
|
* html 解析器
|
|
|
* @tutorial https://github.com/jin-yufeng/Parser
|
|
|
* @version 20201029
|
|
@@ -4162,7 +4210,7 @@ MpHtmlParser;exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 206:
|
|
|
+/***/ 214:
|
|
|
/*!********************************************************************************!*\
|
|
|
!*** E:/fp/md/mdapp/uni_modules/vk-uview-ui/components/u-parse/libs/config.js ***!
|
|
|
\********************************************************************************/
|
|
@@ -4253,7 +4301,7 @@ cfg;exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 207:
|
|
|
+/***/ 215:
|
|
|
/*!************************************************************************************!*\
|
|
|
!*** E:/fp/md/mdapp/uni_modules/vk-uview-ui/components/u-parse/libs/CssHandler.js ***!
|
|
|
\************************************************************************************/
|
|
@@ -4261,7 +4309,7 @@ cfg;exports.default = _default;
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
-Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 206));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
|
|
+Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 214));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
|
|
var isLetter = function isLetter(c) {return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';};
|
|
|
|
|
|
function CssHandler(tagStyle) {
|
|
@@ -4362,54 +4410,6 @@ parser.prototype.Content = function () {
|
|
|
this.state = this.Space;
|
|
|
};
|
|
|
|
|
|
-/***/ }),
|
|
|
-
|
|
|
-/***/ 21:
|
|
|
-/*!************************************************************!*\
|
|
|
- !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
|
|
|
- \************************************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-/**
|
|
|
- * Copyright (c) 2014-present, Facebook, Inc.
|
|
|
- *
|
|
|
- * This source code is licensed under the MIT license found in the
|
|
|
- * LICENSE file in the root directory of this source tree.
|
|
|
- */
|
|
|
-
|
|
|
-// This method of obtaining a reference to the global object needs to be
|
|
|
-// kept identical to the way it is obtained in runtime.js
|
|
|
-var g = (function() {
|
|
|
- return this || (typeof self === "object" && self);
|
|
|
-})() || Function("return this")();
|
|
|
-
|
|
|
-// Use `getOwnPropertyNames` because not all browsers support calling
|
|
|
-// `hasOwnProperty` on the global `self` object in a worker. See #183.
|
|
|
-var hadRuntime = g.regeneratorRuntime &&
|
|
|
- Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
|
|
|
-
|
|
|
-// Save the old regeneratorRuntime in case it needs to be restored later.
|
|
|
-var oldRuntime = hadRuntime && g.regeneratorRuntime;
|
|
|
-
|
|
|
-// Force reevalutation of runtime.js.
|
|
|
-g.regeneratorRuntime = undefined;
|
|
|
-
|
|
|
-module.exports = __webpack_require__(/*! ./runtime */ 22);
|
|
|
-
|
|
|
-if (hadRuntime) {
|
|
|
- // Restore the original runtime.
|
|
|
- g.regeneratorRuntime = oldRuntime;
|
|
|
-} else {
|
|
|
- // Remove the global property added by runtime.js.
|
|
|
- try {
|
|
|
- delete g.regeneratorRuntime;
|
|
|
- } catch(e) {
|
|
|
- g.regeneratorRuntime = undefined;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 22:
|
|
@@ -5206,7 +5206,65 @@ timeFormat;exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 236:
|
|
|
+/***/ 24:
|
|
|
+/*!************************************************************************!*\
|
|
|
+ !*** E:/fp/md/mdapp/uni_modules/vk-uview-ui/libs/function/timeFrom.js ***!
|
|
|
+ \************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ../../libs/function/timeFormat.js */ 23));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 时间戳转为多久之前
|
|
|
+ * @param String timestamp 时间戳
|
|
|
+ * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
|
|
|
+ * 如果为布尔值false,无论什么时间,都返回多久以前的格式
|
|
|
+ */
|
|
|
+function timeFrom() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
|
|
|
+ // 如果为null,则格式化当前时间
|
|
|
+ if (!dateTime) dateTime = Number(new Date());
|
|
|
+ // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
|
|
|
+ if (dateTime.toString().length == 10) dateTime *= 1000;
|
|
|
+ var timestamp = +new Date(Number(dateTime));
|
|
|
+
|
|
|
+ var timer = (Number(new Date()) - timestamp) / 1000;
|
|
|
+ // 如果小于5分钟,则返回"刚刚",其他以此类推
|
|
|
+ var tips = '';
|
|
|
+ switch (true) {
|
|
|
+ case timer < 300:
|
|
|
+ tips = '刚刚';
|
|
|
+ break;
|
|
|
+ case timer >= 300 && timer < 3600:
|
|
|
+ tips = parseInt(timer / 60) + '分钟前';
|
|
|
+ break;
|
|
|
+ case timer >= 3600 && timer < 86400:
|
|
|
+ tips = parseInt(timer / 3600) + '小时前';
|
|
|
+ break;
|
|
|
+ case timer >= 86400 && timer < 2592000:
|
|
|
+ tips = parseInt(timer / 86400) + '天前';
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ // 如果format为false,则无论什么时间戳,都显示xx之前
|
|
|
+ if (format === false) {
|
|
|
+ if (timer >= 2592000 && timer < 365 * 86400) {
|
|
|
+ tips = parseInt(timer / (86400 * 30)) + '个月前';
|
|
|
+ } else {
|
|
|
+ tips = parseInt(timer / (86400 * 365)) + '年前';
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ tips = (0, _timeFormat.default)(timestamp, format);
|
|
|
+ }}
|
|
|
+
|
|
|
+ return tips;
|
|
|
+}var _default =
|
|
|
+
|
|
|
+timeFrom;exports.default = _default;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+
|
|
|
+/***/ 244:
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** E:/fp/md/mdapp/uni_modules/vk-uview-ui/libs/util/emitter.js ***!
|
|
|
\*******************************************************************/
|
|
@@ -5279,7 +5337,7 @@ function _broadcast(componentName, eventName, params) {
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 237:
|
|
|
+/***/ 245:
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** E:/fp/md/mdapp/uni_modules/vk-uview-ui/libs/util/async-validator.js ***!
|
|
|
\***************************************************************************/
|
|
@@ -5309,7 +5367,7 @@ function _broadcast(componentName, eventName, params) {
|
|
|
var formatRegExp = /%[sdj%]/g;
|
|
|
var warning = function warning() {}; // don't print warning message when in production env or node runtime
|
|
|
|
|
|
-if (typeof process !== 'undefined' && Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
|
|
|
+if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
|
|
|
'undefined' && typeof document !== 'undefined') {
|
|
|
warning = function warning(type, errors) {
|
|
|
if (typeof console !== 'undefined' && console.warn) {
|
|
@@ -6642,11 +6700,11 @@ Schema.warning = warning;
|
|
|
Schema.messages = messages;var _default =
|
|
|
|
|
|
Schema;exports.default = _default;
|
|
|
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 238)))
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 246)))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 238:
|
|
|
+/***/ 246:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/node-libs-browser/mock/process.js ***!
|
|
|
\********************************************************/
|
|
@@ -6677,7 +6735,7 @@ exports.binding = function (name) {
|
|
|
var path;
|
|
|
exports.cwd = function () { return cwd };
|
|
|
exports.chdir = function (dir) {
|
|
|
- if (!path) path = __webpack_require__(/*! path */ 239);
|
|
|
+ if (!path) path = __webpack_require__(/*! path */ 247);
|
|
|
cwd = path.resolve(dir, cwd);
|
|
|
};
|
|
|
})();
|
|
@@ -6691,7 +6749,7 @@ exports.features = {};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 239:
|
|
|
+/***/ 247:
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/path-browserify/index.js ***!
|
|
|
\***********************************************/
|
|
@@ -7001,65 +7059,7 @@ var substr = 'ab'.substr(-1) === 'b'
|
|
|
}
|
|
|
;
|
|
|
|
|
|
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 238)))
|
|
|
-
|
|
|
-/***/ }),
|
|
|
-
|
|
|
-/***/ 24:
|
|
|
-/*!************************************************************************!*\
|
|
|
- !*** E:/fp/md/mdapp/uni_modules/vk-uview-ui/libs/function/timeFrom.js ***!
|
|
|
- \************************************************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-"use strict";
|
|
|
-Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ../../libs/function/timeFormat.js */ 23));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
|
|
-
|
|
|
-/**
|
|
|
- * 时间戳转为多久之前
|
|
|
- * @param String timestamp 时间戳
|
|
|
- * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
|
|
|
- * 如果为布尔值false,无论什么时间,都返回多久以前的格式
|
|
|
- */
|
|
|
-function timeFrom() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
|
|
|
- // 如果为null,则格式化当前时间
|
|
|
- if (!dateTime) dateTime = Number(new Date());
|
|
|
- // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
|
|
|
- if (dateTime.toString().length == 10) dateTime *= 1000;
|
|
|
- var timestamp = +new Date(Number(dateTime));
|
|
|
-
|
|
|
- var timer = (Number(new Date()) - timestamp) / 1000;
|
|
|
- // 如果小于5分钟,则返回"刚刚",其他以此类推
|
|
|
- var tips = '';
|
|
|
- switch (true) {
|
|
|
- case timer < 300:
|
|
|
- tips = '刚刚';
|
|
|
- break;
|
|
|
- case timer >= 300 && timer < 3600:
|
|
|
- tips = parseInt(timer / 60) + '分钟前';
|
|
|
- break;
|
|
|
- case timer >= 3600 && timer < 86400:
|
|
|
- tips = parseInt(timer / 3600) + '小时前';
|
|
|
- break;
|
|
|
- case timer >= 86400 && timer < 2592000:
|
|
|
- tips = parseInt(timer / 86400) + '天前';
|
|
|
- break;
|
|
|
- default:
|
|
|
- // 如果format为false,则无论什么时间戳,都显示xx之前
|
|
|
- if (format === false) {
|
|
|
- if (timer >= 2592000 && timer < 365 * 86400) {
|
|
|
- tips = parseInt(timer / (86400 * 30)) + '个月前';
|
|
|
- } else {
|
|
|
- tips = parseInt(timer / (86400 * 365)) + '年前';
|
|
|
- }
|
|
|
- } else {
|
|
|
- tips = (0, _timeFormat.default)(timestamp, format);
|
|
|
- }}
|
|
|
-
|
|
|
- return tips;
|
|
|
-}var _default =
|
|
|
-
|
|
|
-timeFrom;exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 246)))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
@@ -13663,7 +13663,7 @@ function type(obj) {
|
|
|
|
|
|
function flushCallbacks$1(vm) {
|
|
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
|
|
- if (Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"NODE_ENV":"development","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
|
@@ -13684,14 +13684,14 @@ function nextTick$1(vm, cb) {
|
|
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
|
|
//2.nextTick 之前存在 render watcher
|
|
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
|
|
- if(Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"NODE_ENV":"development","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:nextVueTick');
|
|
|
}
|
|
|
return nextTick(cb, vm)
|
|
|
}else{
|
|
|
- if(Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"NODE_ENV":"development","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance$1 = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
|
|
']:nextMPTick');
|
|
@@ -13777,7 +13777,7 @@ var patch = function(oldVnode, vnode) {
|
|
|
});
|
|
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
|
|
if (Object.keys(diffData).length) {
|
|
|
- if (Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"NODE_ENV":"development","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
|
|
']差量更新',
|
|
|
JSON.stringify(diffData));
|