|
@@ -1464,7 +1464,7 @@ function initData(vueOptions, context) {
|
|
try {
|
|
try {
|
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
|
} catch (e) {
|
|
} catch (e) {
|
|
- if (Object({"VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
|
|
|
+ if (Object({"NODE_ENV":"development","VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -8556,7 +8556,7 @@ function type(obj) {
|
|
|
|
|
|
function flushCallbacks$1(vm) {
|
|
function flushCallbacks$1(vm) {
|
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
|
- if (Object({"VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
|
|
|
+ if (Object({"NODE_ENV":"development","VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
var mpInstance = vm.$scope;
|
|
var mpInstance = vm.$scope;
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
|
@@ -8577,14 +8577,14 @@ function nextTick$1(vm, cb) {
|
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
|
//2.nextTick 之前存在 render watcher
|
|
//2.nextTick 之前存在 render watcher
|
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
|
- if(Object({"VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
|
|
|
+ if(Object({"NODE_ENV":"development","VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
var mpInstance = vm.$scope;
|
|
var mpInstance = vm.$scope;
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
']:nextVueTick');
|
|
']:nextVueTick');
|
|
}
|
|
}
|
|
return nextTick(cb, vm)
|
|
return nextTick(cb, vm)
|
|
}else{
|
|
}else{
|
|
- if(Object({"VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
|
|
|
+ if(Object({"NODE_ENV":"development","VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
var mpInstance$1 = vm.$scope;
|
|
var mpInstance$1 = vm.$scope;
|
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
|
']:nextMPTick');
|
|
']:nextMPTick');
|
|
@@ -8670,7 +8670,7 @@ var patch = function(oldVnode, vnode) {
|
|
});
|
|
});
|
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
|
if (Object.keys(diffData).length) {
|
|
if (Object.keys(diffData).length) {
|
|
- if (Object({"VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
|
|
|
+ if (Object({"NODE_ENV":"development","VUE_APP_NAME":"hotel_uni","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
|
']差量更新',
|
|
']差量更新',
|
|
JSON.stringify(diffData));
|
|
JSON.stringify(diffData));
|
|
@@ -20933,9 +20933,9 @@ function confirmOrderDetail(data) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
"use strict";
|
|
-/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.copyText = copyText;exports.checkOS = checkOS;exports.throttle = throttle;exports.debounce = debounce;exports.default = void 0; /**
|
|
|
|
- * Created by JianJia.Zhou<jianjia.zhou> on 2022/5/26.
|
|
|
|
- */
|
|
|
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.copyText = copyText;exports.checkOS = checkOS;exports.default = void 0; /**
|
|
|
|
+ * Created by JianJia.Zhou<jianjia.zhou> on 2022/5/26.
|
|
|
|
+ */
|
|
function copyText(text, tips) {
|
|
function copyText(text, tips) {
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
data: text,
|
|
data: text,
|
|
@@ -20964,35 +20964,6 @@ function checkOS() {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
-// 节流
|
|
|
|
-function throttle(fn) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
|
|
|
- var last, timer, now;
|
|
|
|
- return function () {
|
|
|
|
- now = Date.now();
|
|
|
|
- if (last && now - last < wait) {
|
|
|
|
- clearTimeout(timer);
|
|
|
|
- timer = setTimeout(function () {
|
|
|
|
- last = now;
|
|
|
|
- fn.call.apply(fn, [this].concat(Array.prototype.slice.call(arguments)));
|
|
|
|
- }, wait);
|
|
|
|
- } else {
|
|
|
|
- last = now;
|
|
|
|
- fn.call.apply(fn, [this].concat(Array.prototype.slice.call(arguments)));
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
-}
|
|
|
|
-// 防抖
|
|
|
|
-function debounce(fn) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
|
|
|
- var timer;
|
|
|
|
- return function () {
|
|
|
|
- var context = this;
|
|
|
|
- var args = arguments;
|
|
|
|
- if (timer) clearTimeout(timer);
|
|
|
|
- timer = setTimeout(function () {
|
|
|
|
- fn.apply(context, args);
|
|
|
|
- }, wait);
|
|
|
|
- };
|
|
|
|
-}
|
|
|
|
|
|
|
|
var shareMessage = function shareMessage(user) {
|
|
var shareMessage = function shareMessage(user) {
|
|
|
|
|
|
@@ -21013,8 +20984,6 @@ var shareMessage = function shareMessage(user) {
|
|
{
|
|
{
|
|
copyText: copyText,
|
|
copyText: copyText,
|
|
checkOS: checkOS,
|
|
checkOS: checkOS,
|
|
- throttle: throttle,
|
|
|
|
- debounce: debounce,
|
|
|
|
shareMessage: shareMessage };exports.default = _default;
|
|
shareMessage: shareMessage };exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|