|
@@ -1557,7 +1557,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":"lab-equipment-mini-program","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"lab-equipment-mini-program","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
|
}
|
|
|
}
|
|
@@ -8938,7 +8938,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":"lab-equipment-mini-program","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"lab-equipment-mini-program","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 + ']');
|
|
@@ -8959,14 +8959,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":"lab-equipment-mini-program","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"lab-equipment-mini-program","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":"lab-equipment-mini-program","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"lab-equipment-mini-program","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');
|
|
@@ -9062,7 +9062,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":"lab-equipment-mini-program","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"lab-equipment-mini-program","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));
|
|
@@ -9519,7 +9519,7 @@ var whiteList = ['/',
|
|
|
pattern: /^\/pages\/list.*/
|
|
|
},
|
|
|
// 支持正则表达式
|
|
|
-'/pages/home/home', '/pages/logo/index', '/pages/login/login', {
|
|
|
+'/pages/home/home', '/pages/logo/index', '/pages/login/login', '/pages/notice/notice', {
|
|
|
pattern: /^\/pages\/visitor\/*/
|
|
|
}, {
|
|
|
pattern: /^\/pages\/login\/*/
|
|
@@ -19342,14 +19342,19 @@ function assetList() {
|
|
|
function assetDetail(barCode) {
|
|
|
return _request.default.get("/visitor/asset/detail/".concat(barCode));
|
|
|
}
|
|
|
-function studyList() {
|
|
|
- return _request.default.get('/visitor/study/list');
|
|
|
+function studyList(x, y) {
|
|
|
+ return _request.default.get('/visitor/study/list', {
|
|
|
+ pageNum: x,
|
|
|
+ pageSize: y
|
|
|
+ }).then(function (res) {
|
|
|
+ return res;
|
|
|
+ });
|
|
|
}
|
|
|
function studyNew(number) {
|
|
|
return _request.default.get("/visitor/study/new?number=".concat(number));
|
|
|
}
|
|
|
function studyDetail(studyId) {
|
|
|
- return _request.default.get("/visitor/study/detail/".concat(noticeId));
|
|
|
+ return _request.default.get("/visitor/study/detail/".concat(studyId));
|
|
|
}
|
|
|
function getImage(src) {
|
|
|
if (!src) {
|
|
@@ -19497,7 +19502,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
-var devUrl = 'http://192.168.0.105:80/dev-api';
|
|
|
+var devUrl = 'http://192.168.0.100:80/dev-api';
|
|
|
// let devUrl = 'http://localhost:80/dev-api';
|
|
|
var prodUrl = 'http://localhost:80/prod-api';
|
|
|
var baseUrl = true ? devUrl : undefined;
|
|
@@ -24026,7 +24031,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":"lab-equipment-mini-program","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":"lab-equipment-mini-program","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) {
|