修复小程序

This commit is contained in:
2024-01-23 13:29:13 +08:00
parent a41b5fe587
commit 30f4b0c147
52 changed files with 99 additions and 97 deletions

View File

@@ -7379,10 +7379,10 @@ function updateChildComponent (
// keep a copy of raw propsData
vm.$options.propsData = propsData;
}
// fixed by xxxxxx update properties(mp runtime)
vm._$updateProperties && vm._$updateProperties(vm);
// update listeners
listeners = listeners || emptyObject;
var oldListeners = vm.$options._parentListeners;
@@ -7913,7 +7913,7 @@ function initProps (vm, propsOptions) {
}
//fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
if(
key === 'value' &&
key === 'value' &&
Array.isArray(vm.$options.behaviors) &&
vm.$options.behaviors.indexOf('uni://form-field') !== -1
){
@@ -7925,7 +7925,7 @@ function initProps (vm, propsOptions) {
var $parent = vm.$parent;
while($parent){
if($parent.__next_tick_pending){
return
return
}
$parent = $parent.$parent;
}
@@ -8253,10 +8253,10 @@ function initMixin (Vue) {
initEvents(vm);
initRender(vm);
callHook(vm, 'beforeCreate');
!vm._$fallback && initInjections(vm); // resolve injections before data/props
!vm._$fallback && initInjections(vm); // resolve injections before data/props
initState(vm);
!vm._$fallback && initProvide(vm); // resolve provide after data/props
!vm._$fallback && callHook(vm, 'created');
!vm._$fallback && callHook(vm, 'created');
/* istanbul ignore if */
if ( true && config.performance && mark) {
@@ -8745,7 +8745,7 @@ function syncKeys(current, pre) {
function nullOrUndefined(currentType, preType) {
if(
(currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
(currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
(preType === NULLTYPE || preType === UNDEFINEDTYPE)
) {
return false
@@ -9003,7 +9003,7 @@ function mountComponent$1(
}
}
}
!vm._$fallback && callHook(vm, 'beforeMount');
var updateComponent = function () {
@@ -9353,7 +9353,7 @@ Vue.prototype.__patch__ = patch;
// public mount method
Vue.prototype.$mount = function(
el ,
hydrating
hydrating
) {
return mountComponent$1(this, el, hydrating)
};
@@ -10810,7 +10810,7 @@ function queryParams() {
};
for (var key in data) {
var _ret = _loop(key);
if (_ret === "continue") continue;
if (_ret === "continue") ;
}
return _result.length ? prefix + _result.join('&') : '';
}
@@ -21823,9 +21823,9 @@ function timeFormat() {
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;
@@ -21935,7 +21935,7 @@ function colorGradient() {
var sB = (endB - startB) / step;
var colorArr = [];
for (var i = 0; i < step; i++) {
//计算每一步的hex值
//计算每一步的hex值
var hex = rgbToHex('rgb(' + Math.round(sR * i + startR) + ',' + Math.round(sG * i + startG) + ',' + Math.round(sB * i + startB) + ')');
colorArr.push(hex);
}
@@ -21974,7 +21974,7 @@ function hexToRgb(sColor) {
return sColor;
}
}
;
// 将rgb表示方式转换为hex表示方式
function rgbToHex(rgb) {
@@ -22068,7 +22068,7 @@ Object.defineProperty(exports, "__esModule", {
exports.default = void 0;
/**
* 本算法来源于简书开源代码详见https://www.jianshu.com/p/fdbf293d0a85
* 全局唯一标识符uuidGlobally Unique Identifier,也称作 uuid(Universally Unique IDentifier)
* 全局唯一标识符uuidGlobally Unique Identifier,也称作 uuid(Universally Unique IDentifier)
* 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
* 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
* v-for的时候,推荐使用后端返回的id而不是循环的index
@@ -22179,7 +22179,7 @@ exports.default = void 0;
/**
* 根据主题type值,获取对应的图标
* @param String type 主题名称,primary|info|error|warning|success
* @param String fill 是否使用fill填充实体的图标
* @param String fill 是否使用fill填充实体的图标
*/
function type2icon() {
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
@@ -22500,8 +22500,8 @@ exports.sys = sys;
function os() {
return uni.getSystemInfoSync().platform;
}
;
function sys() {
function sys() {
return uni.getSystemInfoSync();
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
@@ -22526,10 +22526,10 @@ var timeout = null;
/**
* 防抖原理一定时间内只有最后一次操作再过wait毫秒后才执行函数
*
* @param {Function} func 要执行的回调函数
*
* @param {Function} func 要执行的回调函数
* @param {Number} wait 延时的时间
* @param {Boolean} immediate 是否立即执行
* @param {Boolean} immediate 是否立即执行
* @return null
*/
function debounce(func) {
@@ -22573,8 +22573,8 @@ exports.default = void 0;
var timer, flag;
/**
* 节流原理:在一定时间内,只能触发一次
*
* @param {Function} func 要执行的回调函数
*
* @param {Function} func 要执行的回调函数
* @param {Number} wait 延时的时间
* @param {Boolean} immediate 是否立即执行
* @return null
@@ -22602,8 +22602,8 @@ function throttle(func) {
}
}
}
;
var _default = throttle;
var _default = throttle;
exports.default = _default;
/***/ }),
@@ -25114,7 +25114,7 @@ function _iterableToArrayLimit(arr, i) {
if (Object(_i) !== _i) return;
_n = !1;
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
;
}
} catch (err) {
_d = !0, _e = err;
@@ -25479,4 +25479,4 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
/***/ })
}]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +1,7 @@
{
"description": "项目配置文件。",
"packOptions": {
"ignore": [],
"include": []
"ignore": []
},
"setting": {
"urlCheck": false,
@@ -10,21 +9,28 @@
"postcss": true,
"minified": true,
"newFeature": true,
"bigPackageSizeSupport": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"condition": false
"bigPackageSizeSupport": true
},
"compileType": "miniprogram",
"libVersion": "3.3.1",
"libVersion": "",
"appid": "wx2edefe049c6a37b9",
"projectname": "xlcs-user",
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}