|
@@ -84,7 +84,24 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 115:
|
|
|
+/***/ 12:
|
|
|
+/*!**************************************************************!*\
|
|
|
+ !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
|
|
|
+ \**************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
|
|
|
+var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
|
|
|
+function _toPropertyKey(arg) {
|
|
|
+ var key = toPrimitive(arg, "string");
|
|
|
+ return _typeof(key) === "symbol" ? key : String(key);
|
|
|
+}
|
|
|
+module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+
|
|
|
+/***/ 123:
|
|
|
/*!************************************************!*\
|
|
|
!*** E:/work/mdapp/js_sdk/xb-copy/uni-copy.js ***!
|
|
|
\************************************************/
|
|
@@ -127,23 +144,6 @@ function uniCopy(_ref) {
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 12:
|
|
|
-/*!**************************************************************!*\
|
|
|
- !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
|
|
|
- \**************************************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
|
|
|
-var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
|
|
|
-function _toPropertyKey(arg) {
|
|
|
- var key = toPrimitive(arg, "string");
|
|
|
- return _typeof(key) === "symbol" ? key : String(key);
|
|
|
-}
|
|
|
-module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
-
|
|
|
-/***/ }),
|
|
|
-
|
|
|
/***/ 13:
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
|
|
@@ -186,7 +186,7 @@ module.exports = _toPrimitive, module.exports.__esModule = true, module.exports[
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 140:
|
|
|
+/***/ 148:
|
|
|
/*!*************************************!*\
|
|
|
!*** E:/work/mdapp/utils/qrcode.js ***!
|
|
|
\*************************************/
|
|
@@ -2741,7 +2741,7 @@ function initData(vueOptions, context) {
|
|
|
try {
|
|
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
|
|
} catch (e) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
|
}
|
|
|
}
|
|
@@ -9761,7 +9761,7 @@ function type(obj) {
|
|
|
|
|
|
function flushCallbacks$1(vm) {
|
|
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","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 + ']');
|
|
@@ -9782,14 +9782,14 @@ function nextTick$1(vm, cb) {
|
|
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
|
|
//2.nextTick 之前存在 render watcher
|
|
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
|
|
- if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","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({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance$1 = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
|
|
']:nextMPTick');
|
|
@@ -9885,7 +9885,7 @@ var patch = function(oldVnode, vnode) {
|
|
|
});
|
|
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
|
|
if (Object.keys(diffData).length) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
|
|
']差量更新',
|
|
|
JSON.stringify(diffData));
|
|
@@ -10314,7 +10314,7 @@ internalMixin(Vue);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 287:
|
|
|
+/***/ 295:
|
|
|
/*!**************************************************!*\
|
|
|
!*** E:/work/mdapp/pages/estate/img/i_house.png ***!
|
|
|
\**************************************************/
|
|
@@ -10325,7 +10325,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACq
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 288:
|
|
|
+/***/ 296:
|
|
|
/*!************************************************!*\
|
|
|
!*** E:/work/mdapp/pages/estate/img/i_pos.png ***!
|
|
|
\************************************************/
|
|
@@ -11353,7 +11353,205 @@ exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 392:
|
|
|
+/***/ 4:
|
|
|
+/*!**********************************************************************!*\
|
|
|
+ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
|
|
+ \**********************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports) {
|
|
|
+
|
|
|
+function _interopRequireDefault(obj) {
|
|
|
+ return obj && obj.__esModule ? obj : {
|
|
|
+ "default": obj
|
|
|
+ };
|
|
|
+}
|
|
|
+module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+
|
|
|
+/***/ 40:
|
|
|
+/*!********************************************************************!*\
|
|
|
+ !*** E:/work/mdapp/uni_modules/vk-uview-ui/libs/function/route.js ***!
|
|
|
+ \********************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 41));
|
|
|
+var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 43));
|
|
|
+var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
|
|
|
+var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
|
|
|
+/**
|
|
|
+ * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
|
|
|
+ * 并且带有路由拦截功能
|
|
|
+ */
|
|
|
+var Router = /*#__PURE__*/function () {
|
|
|
+ function Router() {
|
|
|
+ (0, _classCallCheck2.default)(this, Router);
|
|
|
+ // 原始属性定义
|
|
|
+ this.config = {
|
|
|
+ type: 'navigateTo',
|
|
|
+ url: '',
|
|
|
+ delta: 1,
|
|
|
+ // navigateBack页面后退时,回退的层数
|
|
|
+ params: {},
|
|
|
+ // 传递的参数
|
|
|
+ animationType: 'pop-in',
|
|
|
+ // 窗口动画,只在APP有效
|
|
|
+ animationDuration: 300,
|
|
|
+ // 窗口动画持续时间,单位毫秒,只在APP有效
|
|
|
+ intercept: false // 是否需要拦截
|
|
|
+ };
|
|
|
+ // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
|
|
|
+ // 这里在构造函数中进行this绑定
|
|
|
+ this.route = this.route.bind(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 判断url前面是否有"/",如果没有则加上,否则无法跳转
|
|
|
+ (0, _createClass2.default)(Router, [{
|
|
|
+ key: "addRootPath",
|
|
|
+ value: function addRootPath(url) {
|
|
|
+ return url[0] === '/' ? url : "/".concat(url);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 整合路由参数
|
|
|
+ }, {
|
|
|
+ key: "mixinParam",
|
|
|
+ value: function mixinParam(url, params) {
|
|
|
+ url = url && this.addRootPath(url);
|
|
|
+
|
|
|
+ // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
|
|
|
+ // 如果有url中有get参数,转换后无需带上"?"
|
|
|
+ var query = '';
|
|
|
+ if (/.*\/.*\?.*=.*/.test(url)) {
|
|
|
+ // object对象转为get类型的参数
|
|
|
+ query = uni.$u.queryParams(params, false);
|
|
|
+ // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
|
|
|
+ return url += "&" + query;
|
|
|
+ } else {
|
|
|
+ // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
|
|
|
+ query = uni.$u.queryParams(params);
|
|
|
+ return url += query;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 对外的方法名称
|
|
|
+ }, {
|
|
|
+ key: "route",
|
|
|
+ value: function () {
|
|
|
+ var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
|
+ var options,
|
|
|
+ params,
|
|
|
+ mergeConfig,
|
|
|
+ isNext,
|
|
|
+ _args = arguments;
|
|
|
+ return _regenerator.default.wrap(function _callee$(_context) {
|
|
|
+ while (1) {
|
|
|
+ switch (_context.prev = _context.next) {
|
|
|
+ case 0:
|
|
|
+ options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
|
+ params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
|
+ // 合并用户的配置和内部的默认配置
|
|
|
+ mergeConfig = {};
|
|
|
+ if (typeof options === 'string') {
|
|
|
+ // 如果options为字符串,则为route(url, params)的形式
|
|
|
+ mergeConfig.url = this.mixinParam(options, params);
|
|
|
+ mergeConfig.type = 'navigateTo';
|
|
|
+ } else {
|
|
|
+ mergeConfig = uni.$u.deepClone(options, this.config);
|
|
|
+ // 否则正常使用mergeConfig中的url和params进行拼接
|
|
|
+ mergeConfig.url = this.mixinParam(options.url, options.params);
|
|
|
+ }
|
|
|
+ if (params.intercept) {
|
|
|
+ this.config.intercept = params.intercept;
|
|
|
+ }
|
|
|
+ // params参数也带给拦截器
|
|
|
+ mergeConfig.params = params;
|
|
|
+ // 合并内外部参数
|
|
|
+ mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
|
|
|
+ // 判断用户是否定义了拦截器
|
|
|
+ if (!(typeof uni.$u.routeIntercept === 'function')) {
|
|
|
+ _context.next = 14;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ _context.next = 10;
|
|
|
+ return new Promise(function (resolve, reject) {
|
|
|
+ uni.$u.routeIntercept(mergeConfig, resolve);
|
|
|
+ });
|
|
|
+ case 10:
|
|
|
+ isNext = _context.sent;
|
|
|
+ // 如果isNext为true,则执行路由跳转
|
|
|
+ isNext && this.openPage(mergeConfig);
|
|
|
+ _context.next = 15;
|
|
|
+ break;
|
|
|
+ case 14:
|
|
|
+ this.openPage(mergeConfig);
|
|
|
+ case 15:
|
|
|
+ case "end":
|
|
|
+ return _context.stop();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, _callee, this);
|
|
|
+ }));
|
|
|
+ function route() {
|
|
|
+ return _route.apply(this, arguments);
|
|
|
+ }
|
|
|
+ return route;
|
|
|
+ }() // 执行路由跳转
|
|
|
+ }, {
|
|
|
+ key: "openPage",
|
|
|
+ value: function openPage(config) {
|
|
|
+ // 解构参数
|
|
|
+ var url = config.url,
|
|
|
+ type = config.type,
|
|
|
+ delta = config.delta,
|
|
|
+ animationType = config.animationType,
|
|
|
+ animationDuration = config.animationDuration;
|
|
|
+ if (config.type == 'navigateTo' || config.type == 'to') {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: url,
|
|
|
+ animationType: animationType,
|
|
|
+ animationDuration: animationDuration
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (config.type == 'redirectTo' || config.type == 'redirect') {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: url
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (config.type == 'switchTab' || config.type == 'tab') {
|
|
|
+ uni.switchTab({
|
|
|
+ url: url
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (config.type == 'reLaunch' || config.type == 'launch') {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: url
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (config.type == 'navigateBack' || config.type == 'back') {
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: delta
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]);
|
|
|
+ return Router;
|
|
|
+}();
|
|
|
+var _default = new Router().route;
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+
|
|
|
+/***/ 400:
|
|
|
/*!*************************************************************************************!*\
|
|
|
!*** E:/work/mdapp/uni_modules/vk-uview-ui/components/u-parse/libs/MpHtmlParser.js ***!
|
|
|
\*************************************************************************************/
|
|
@@ -11368,8 +11566,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
-var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 393));
|
|
|
-var _CssHandler = _interopRequireDefault(__webpack_require__(/*! ./CssHandler.js */ 394));
|
|
|
+var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 401));
|
|
|
+var _CssHandler = _interopRequireDefault(__webpack_require__(/*! ./CssHandler.js */ 402));
|
|
|
/**
|
|
|
* html 解析器
|
|
|
* @tutorial https://github.com/jin-yufeng/Parser
|
|
@@ -11943,7 +12141,7 @@ exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 393:
|
|
|
+/***/ 401:
|
|
|
/*!*******************************************************************************!*\
|
|
|
!*** E:/work/mdapp/uni_modules/vk-uview-ui/components/u-parse/libs/config.js ***!
|
|
|
\*******************************************************************************/
|
|
@@ -12033,7 +12231,7 @@ exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 394:
|
|
|
+/***/ 402:
|
|
|
/*!***********************************************************************************!*\
|
|
|
!*** E:/work/mdapp/uni_modules/vk-uview-ui/components/u-parse/libs/CssHandler.js ***!
|
|
|
\***********************************************************************************/
|
|
@@ -12048,7 +12246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
-var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 393));
|
|
|
+var _config = _interopRequireDefault(__webpack_require__(/*! ./config.js */ 401));
|
|
|
var isLetter = function isLetter(c) {
|
|
|
return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
|
|
|
};
|
|
@@ -12148,215 +12346,17 @@ parser.prototype.Content = function () {
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 4:
|
|
|
-/*!**********************************************************************!*\
|
|
|
- !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
|
|
- \**********************************************************************/
|
|
|
+/***/ 41:
|
|
|
+/*!************************************************************************************************!*\
|
|
|
+ !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
|
|
|
+ \************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
-/***/ (function(module, exports) {
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
-function _interopRequireDefault(obj) {
|
|
|
- return obj && obj.__esModule ? obj : {
|
|
|
- "default": obj
|
|
|
- };
|
|
|
-}
|
|
|
-module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
-
|
|
|
-/***/ }),
|
|
|
-
|
|
|
-/***/ 40:
|
|
|
-/*!********************************************************************!*\
|
|
|
- !*** E:/work/mdapp/uni_modules/vk-uview-ui/libs/function/route.js ***!
|
|
|
- \********************************************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-"use strict";
|
|
|
-/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
-
|
|
|
-var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
-Object.defineProperty(exports, "__esModule", {
|
|
|
- value: true
|
|
|
-});
|
|
|
-exports.default = void 0;
|
|
|
-var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 41));
|
|
|
-var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 43));
|
|
|
-var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
|
|
|
-var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
|
|
|
-/**
|
|
|
- * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
|
|
|
- * 并且带有路由拦截功能
|
|
|
- */
|
|
|
-var Router = /*#__PURE__*/function () {
|
|
|
- function Router() {
|
|
|
- (0, _classCallCheck2.default)(this, Router);
|
|
|
- // 原始属性定义
|
|
|
- this.config = {
|
|
|
- type: 'navigateTo',
|
|
|
- url: '',
|
|
|
- delta: 1,
|
|
|
- // navigateBack页面后退时,回退的层数
|
|
|
- params: {},
|
|
|
- // 传递的参数
|
|
|
- animationType: 'pop-in',
|
|
|
- // 窗口动画,只在APP有效
|
|
|
- animationDuration: 300,
|
|
|
- // 窗口动画持续时间,单位毫秒,只在APP有效
|
|
|
- intercept: false // 是否需要拦截
|
|
|
- };
|
|
|
- // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
|
|
|
- // 这里在构造函数中进行this绑定
|
|
|
- this.route = this.route.bind(this);
|
|
|
- }
|
|
|
-
|
|
|
- // 判断url前面是否有"/",如果没有则加上,否则无法跳转
|
|
|
- (0, _createClass2.default)(Router, [{
|
|
|
- key: "addRootPath",
|
|
|
- value: function addRootPath(url) {
|
|
|
- return url[0] === '/' ? url : "/".concat(url);
|
|
|
- }
|
|
|
-
|
|
|
- // 整合路由参数
|
|
|
- }, {
|
|
|
- key: "mixinParam",
|
|
|
- value: function mixinParam(url, params) {
|
|
|
- url = url && this.addRootPath(url);
|
|
|
-
|
|
|
- // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
|
|
|
- // 如果有url中有get参数,转换后无需带上"?"
|
|
|
- var query = '';
|
|
|
- if (/.*\/.*\?.*=.*/.test(url)) {
|
|
|
- // object对象转为get类型的参数
|
|
|
- query = uni.$u.queryParams(params, false);
|
|
|
- // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
|
|
|
- return url += "&" + query;
|
|
|
- } else {
|
|
|
- // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
|
|
|
- query = uni.$u.queryParams(params);
|
|
|
- return url += query;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 对外的方法名称
|
|
|
- }, {
|
|
|
- key: "route",
|
|
|
- value: function () {
|
|
|
- var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
|
- var options,
|
|
|
- params,
|
|
|
- mergeConfig,
|
|
|
- isNext,
|
|
|
- _args = arguments;
|
|
|
- return _regenerator.default.wrap(function _callee$(_context) {
|
|
|
- while (1) {
|
|
|
- switch (_context.prev = _context.next) {
|
|
|
- case 0:
|
|
|
- options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
|
- params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
|
- // 合并用户的配置和内部的默认配置
|
|
|
- mergeConfig = {};
|
|
|
- if (typeof options === 'string') {
|
|
|
- // 如果options为字符串,则为route(url, params)的形式
|
|
|
- mergeConfig.url = this.mixinParam(options, params);
|
|
|
- mergeConfig.type = 'navigateTo';
|
|
|
- } else {
|
|
|
- mergeConfig = uni.$u.deepClone(options, this.config);
|
|
|
- // 否则正常使用mergeConfig中的url和params进行拼接
|
|
|
- mergeConfig.url = this.mixinParam(options.url, options.params);
|
|
|
- }
|
|
|
- if (params.intercept) {
|
|
|
- this.config.intercept = params.intercept;
|
|
|
- }
|
|
|
- // params参数也带给拦截器
|
|
|
- mergeConfig.params = params;
|
|
|
- // 合并内外部参数
|
|
|
- mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
|
|
|
- // 判断用户是否定义了拦截器
|
|
|
- if (!(typeof uni.$u.routeIntercept === 'function')) {
|
|
|
- _context.next = 14;
|
|
|
- break;
|
|
|
- }
|
|
|
- _context.next = 10;
|
|
|
- return new Promise(function (resolve, reject) {
|
|
|
- uni.$u.routeIntercept(mergeConfig, resolve);
|
|
|
- });
|
|
|
- case 10:
|
|
|
- isNext = _context.sent;
|
|
|
- // 如果isNext为true,则执行路由跳转
|
|
|
- isNext && this.openPage(mergeConfig);
|
|
|
- _context.next = 15;
|
|
|
- break;
|
|
|
- case 14:
|
|
|
- this.openPage(mergeConfig);
|
|
|
- case 15:
|
|
|
- case "end":
|
|
|
- return _context.stop();
|
|
|
- }
|
|
|
- }
|
|
|
- }, _callee, this);
|
|
|
- }));
|
|
|
- function route() {
|
|
|
- return _route.apply(this, arguments);
|
|
|
- }
|
|
|
- return route;
|
|
|
- }() // 执行路由跳转
|
|
|
- }, {
|
|
|
- key: "openPage",
|
|
|
- value: function openPage(config) {
|
|
|
- // 解构参数
|
|
|
- var url = config.url,
|
|
|
- type = config.type,
|
|
|
- delta = config.delta,
|
|
|
- animationType = config.animationType,
|
|
|
- animationDuration = config.animationDuration;
|
|
|
- if (config.type == 'navigateTo' || config.type == 'to') {
|
|
|
- uni.navigateTo({
|
|
|
- url: url,
|
|
|
- animationType: animationType,
|
|
|
- animationDuration: animationDuration
|
|
|
- });
|
|
|
- }
|
|
|
- if (config.type == 'redirectTo' || config.type == 'redirect') {
|
|
|
- uni.redirectTo({
|
|
|
- url: url
|
|
|
- });
|
|
|
- }
|
|
|
- if (config.type == 'switchTab' || config.type == 'tab') {
|
|
|
- uni.switchTab({
|
|
|
- url: url
|
|
|
- });
|
|
|
- }
|
|
|
- if (config.type == 'reLaunch' || config.type == 'launch') {
|
|
|
- uni.reLaunch({
|
|
|
- url: url
|
|
|
- });
|
|
|
- }
|
|
|
- if (config.type == 'navigateBack' || config.type == 'back') {
|
|
|
- uni.navigateBack({
|
|
|
- delta: delta
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }]);
|
|
|
- return Router;
|
|
|
-}();
|
|
|
-var _default = new Router().route;
|
|
|
-exports.default = _default;
|
|
|
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
-
|
|
|
-/***/ }),
|
|
|
-
|
|
|
-/***/ 41:
|
|
|
-/*!************************************************************************************************!*\
|
|
|
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
|
|
|
- \************************************************************************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-// TODO(Babel 8): Remove this file.
|
|
|
-
|
|
|
-var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 42)();
|
|
|
-module.exports = runtime;
|
|
|
+// TODO(Babel 8): Remove this file.
|
|
|
+
|
|
|
+var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 42)();
|
|
|
+module.exports = runtime;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
@@ -12723,7 +12723,7 @@ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exp
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 430:
|
|
|
+/***/ 438:
|
|
|
/*!******************************************************************!*\
|
|
|
!*** E:/work/mdapp/uni_modules/vk-uview-ui/libs/util/emitter.js ***!
|
|
|
\******************************************************************/
|
|
@@ -12794,7 +12794,7 @@ exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 431:
|
|
|
+/***/ 439:
|
|
|
/*!**************************************************************************!*\
|
|
|
!*** E:/work/mdapp/uni_modules/vk-uview-ui/libs/util/async-validator.js ***!
|
|
|
\**************************************************************************/
|
|
@@ -12829,7 +12829,7 @@ function _extends() {
|
|
|
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({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
|
+if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
|
warning = function warning(type, errors) {
|
|
|
if (typeof console !== 'undefined' && console.warn) {
|
|
|
if (errors.every(function (e) {
|
|
@@ -13972,11 +13972,88 @@ 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 */ 432)))
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 440)))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 432:
|
|
|
+/***/ 44:
|
|
|
+/*!*************************************************************************!*\
|
|
|
+ !*** E:/work/mdapp/uni_modules/vk-uview-ui/libs/function/timeFormat.js ***!
|
|
|
+ \*************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+// padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
|
|
|
+// 所以这里做一个兼容polyfill的兼容处理
|
|
|
+if (!String.prototype.padStart) {
|
|
|
+ // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
|
|
|
+ String.prototype.padStart = function (maxLength) {
|
|
|
+ var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
|
|
|
+ if (Object.prototype.toString.call(fillString) !== "[object String]") throw new TypeError('fillString must be String');
|
|
|
+ var str = this;
|
|
|
+ // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
|
|
|
+ if (str.length >= maxLength) return String(str);
|
|
|
+ var fillLength = maxLength - str.length,
|
|
|
+ times = Math.ceil(fillLength / fillString.length);
|
|
|
+ while (times >>= 1) {
|
|
|
+ fillString += fillString;
|
|
|
+ if (times === 1) {
|
|
|
+ fillString += fillString;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return fillString.slice(0, fillLength) + str;
|
|
|
+ };
|
|
|
+}
|
|
|
+
|
|
|
+// 其他更多是格式化有如下:
|
|
|
+// yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合
|
|
|
+function timeFormat() {
|
|
|
+ var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
|
+ var fmt = 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 date = new Date(dateTime);
|
|
|
+ var ret;
|
|
|
+ var opt = {
|
|
|
+ "y+": date.getFullYear().toString(),
|
|
|
+ // 年
|
|
|
+ "m+": (date.getMonth() + 1).toString(),
|
|
|
+ // 月
|
|
|
+ "d+": date.getDate().toString(),
|
|
|
+ // 日
|
|
|
+ "h+": date.getHours().toString(),
|
|
|
+ // 时
|
|
|
+ "M+": date.getMinutes().toString(),
|
|
|
+ // 分
|
|
|
+ "s+": date.getSeconds().toString() // 秒
|
|
|
+ // 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
|
+ };
|
|
|
+
|
|
|
+ for (var k in opt) {
|
|
|
+ ret = new RegExp("(" + k + ")").exec(fmt);
|
|
|
+ if (ret) {
|
|
|
+ fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0"));
|
|
|
+ }
|
|
|
+ ;
|
|
|
+ }
|
|
|
+ ;
|
|
|
+ return fmt;
|
|
|
+}
|
|
|
+var _default = timeFormat;
|
|
|
+exports.default = _default;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+
|
|
|
+/***/ 440:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/node-libs-browser/mock/process.js ***!
|
|
|
\********************************************************/
|
|
@@ -14007,7 +14084,7 @@ exports.binding = function (name) {
|
|
|
var path;
|
|
|
exports.cwd = function () { return cwd };
|
|
|
exports.chdir = function (dir) {
|
|
|
- if (!path) path = __webpack_require__(/*! path */ 433);
|
|
|
+ if (!path) path = __webpack_require__(/*! path */ 441);
|
|
|
cwd = path.resolve(dir, cwd);
|
|
|
};
|
|
|
})();
|
|
@@ -14021,7 +14098,7 @@ exports.features = {};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 433:
|
|
|
+/***/ 441:
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/path-browserify/index.js ***!
|
|
|
\***********************************************/
|
|
@@ -14331,84 +14408,7 @@ var substr = 'ab'.substr(-1) === 'b'
|
|
|
}
|
|
|
;
|
|
|
|
|
|
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 432)))
|
|
|
-
|
|
|
-/***/ }),
|
|
|
-
|
|
|
-/***/ 44:
|
|
|
-/*!*************************************************************************!*\
|
|
|
- !*** E:/work/mdapp/uni_modules/vk-uview-ui/libs/function/timeFormat.js ***!
|
|
|
- \*************************************************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-"use strict";
|
|
|
-
|
|
|
-
|
|
|
-Object.defineProperty(exports, "__esModule", {
|
|
|
- value: true
|
|
|
-});
|
|
|
-exports.default = void 0;
|
|
|
-// padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
|
|
|
-// 所以这里做一个兼容polyfill的兼容处理
|
|
|
-if (!String.prototype.padStart) {
|
|
|
- // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
|
|
|
- String.prototype.padStart = function (maxLength) {
|
|
|
- var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
|
|
|
- if (Object.prototype.toString.call(fillString) !== "[object String]") throw new TypeError('fillString must be String');
|
|
|
- var str = this;
|
|
|
- // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
|
|
|
- if (str.length >= maxLength) return String(str);
|
|
|
- var fillLength = maxLength - str.length,
|
|
|
- times = Math.ceil(fillLength / fillString.length);
|
|
|
- while (times >>= 1) {
|
|
|
- fillString += fillString;
|
|
|
- if (times === 1) {
|
|
|
- fillString += fillString;
|
|
|
- }
|
|
|
- }
|
|
|
- return fillString.slice(0, fillLength) + str;
|
|
|
- };
|
|
|
-}
|
|
|
-
|
|
|
-// 其他更多是格式化有如下:
|
|
|
-// yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合
|
|
|
-function timeFormat() {
|
|
|
- var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
|
- var fmt = 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 date = new Date(dateTime);
|
|
|
- var ret;
|
|
|
- var opt = {
|
|
|
- "y+": date.getFullYear().toString(),
|
|
|
- // 年
|
|
|
- "m+": (date.getMonth() + 1).toString(),
|
|
|
- // 月
|
|
|
- "d+": date.getDate().toString(),
|
|
|
- // 日
|
|
|
- "h+": date.getHours().toString(),
|
|
|
- // 时
|
|
|
- "M+": date.getMinutes().toString(),
|
|
|
- // 分
|
|
|
- "s+": date.getSeconds().toString() // 秒
|
|
|
- // 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
|
- };
|
|
|
-
|
|
|
- for (var k in opt) {
|
|
|
- ret = new RegExp("(" + k + ")").exec(fmt);
|
|
|
- if (ret) {
|
|
|
- fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0"));
|
|
|
- }
|
|
|
- ;
|
|
|
- }
|
|
|
- ;
|
|
|
- return fmt;
|
|
|
-}
|
|
|
-var _default = timeFormat;
|
|
|
-exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 440)))
|
|
|
|
|
|
/***/ }),
|
|
|
|